Package ro.sync.ecss.extensions.api
Class AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions
- java.lang.Object
-
- ro.sync.ecss.extensions.api.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.
-
-
Constructor Summary
Constructors Constructor Description WrapInAncestorsOptions()
-
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.
-
-
-
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
.
-
-