public interface DefinitionProvider
Modifier and Type | Method and Description |
---|---|
PropertyDefinition |
getDefinition(Tree parent,
PropertyState propertyState,
boolean exactTypeMatch)
Calculates the applicable definition for the property state under the
given parent tree.
|
NodeDefinition |
getDefinition(Tree parent,
String nodeName)
Returns the node definition for a child node of
parent named
nodeName with a default primary type. |
NodeDefinition |
getDefinition(Tree parent,
Tree targetNode)
Calculates the applicable definition for the child node under the given
parent node.
|
NodeDefinition |
getRootDefinition() |
NodeDefinition getRootDefinition() throws RepositoryException
RepositoryException
NodeDefinition getDefinition(Tree parent, String nodeName) throws ConstraintViolationException, RepositoryException
parent
named
nodeName
with a default primary type. First the non-residual
child node definitions of parent
are checked matching the
given node name. Then the residual definitions are checked.parent
- the parent node.nodeName
- The internal oak name of the child node.ConstraintViolationException
- If no matching definition can be found.RepositoryException
- If another error occurs.NodeDefinition getDefinition(Tree parent, Tree targetNode) throws ConstraintViolationException, RepositoryException
parent
- The parent node.targetNode
- The child node for which the definition is calculated.ConstraintViolationException
- If no matching definition can be found.RepositoryException
- If another error occurs.PropertyDefinition getDefinition(Tree parent, PropertyState propertyState, boolean exactTypeMatch) throws ConstraintViolationException, RepositoryException
parent
- The parent tree.propertyState
- The target property.ConstraintViolationException
- If no matching definition can be found.RepositoryException
- If another error occurs."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"