Class AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions

  • Enclosing class:
    AuthorSchemaAwareEditingHandlerAdapter

    public static class AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions
    extends java.lang.Object
    One of the default smart paste strategies involves detecting an path o ancestors from the context element to the inserted one. These are the preferences that control how these ancestors are chosen.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<javax.xml.namespace.QName> getForbiddenParents​(javax.xml.namespace.QName elementName, java.util.Collection<javax.xml.namespace.QName> possibleParents)
      Gets a list with the parents that should be used in a solution.
      java.util.Set<javax.xml.namespace.QName> getPreferredParents​(javax.xml.namespace.QName elementName, java.util.Collection<javax.xml.namespace.QName> possibleParents)
      Gets a list of preferred parents for the given element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WrapInAncestorsOptions

        public WrapInAncestorsOptions()
    • Method Detail

      • getPreferredParents

        public java.util.Set<javax.xml.namespace.QName> getPreferredParents​(javax.xml.namespace.QName elementName,
                                                                            java.util.Collection<javax.xml.namespace.QName> possibleParents)
        Gets a list of preferred parents for the given element.
        Parameters:
        elementName - Element name.
        possibleParents - The detected possible parents.
        Returns:
        The list with preferred parents or null to go with the defaults.
      • getForbiddenParents

        public java.util.Set<javax.xml.namespace.QName> getForbiddenParents​(javax.xml.namespace.QName elementName,
                                                                            java.util.Collection<javax.xml.namespace.QName> possibleParents)
        Gets a list with the parents that should be used in a solution.
        Parameters:
        elementName - Element name.
        possibleParents - The detected possible parents.
        Returns:
        The list with forbidden parents or null.