Class AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions

java.lang.Object
ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions
Enclosing class:
AuthorSchemaAwareEditingHandlerAdapter

public static class AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions extends 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.
  • Constructor Details

    • WrapInAncestorsOptions

      public WrapInAncestorsOptions()
  • Method Details

    • getPreferredParents

      public Set<QName> getPreferredParents(QName elementName, Collection<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 Set<QName> getForbiddenParents(QName elementName, Collection<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.