Package ro.sync.ecss.extensions.api
Class AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions
java.lang.Object
ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions
- Enclosing class:
- AuthorSchemaAwareEditingHandlerAdapter
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetForbiddenParents
(QName elementName, Collection<QName> possibleParents) Gets a list with the parents that should be used in a solution.getPreferredParents
(QName elementName, Collection<QName> possibleParents) Gets a list of preferred parents for the given element.
-
Constructor Details
-
WrapInAncestorsOptions
public WrapInAncestorsOptions()
-
-
Method Details
-
getPreferredParents
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
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
.
-