public class EffectiveNodeType extends Object
Modifier and Type | Method and Description |
---|---|
void |
checkMandatoryItems(Tree tree) |
void |
checkOrderableChildNodes() |
void |
checkRemoveProperty(PropertyState property) |
void |
checkSetProperty(PropertyState property) |
Iterable<NodeDefinition> |
getAutoCreateNodeDefinitions() |
Iterable<PropertyDefinition> |
getAutoCreatePropertyDefinitions() |
Iterable<NodeDefinition> |
getMandatoryNodeDefinitions() |
Iterable<PropertyDefinition> |
getMandatoryPropertyDefinitions() |
Iterable<NodeDefinition> |
getNamedNodeDefinitions(String oakName)
Return all node definitions that match the specified oak name.
|
Iterable<PropertyDefinition> |
getNamedPropertyDefinitions(String oakName)
Return all property definitions that match the specified oak name.
|
NodeDefinition |
getNodeDefinition(String childName,
EffectiveNodeType childEffective) |
Iterable<NodeDefinition> |
getNodeDefinitions() |
PropertyDefinition |
getPropertyDefinition(String propertyName,
boolean isMultiple,
int type,
boolean exactTypeMatch)
Calculates the applicable definition for the property with the specified
characteristics under a parent with this effective type.
|
Iterable<PropertyDefinition> |
getPropertyDefinitions() |
Iterable<NodeDefinition> |
getResidualNodeDefinitions()
Return all residual node definitions.
|
Iterable<PropertyDefinition> |
getResidualPropertyDefinitions()
Return all residual property definitions.
|
boolean |
includesNodeType(String nodeTypeName)
Determines whether this effective node type representation includes
(either through inheritance or aggregation) the given node type.
|
boolean |
includesNodeTypes(String[] nodeTypeNames)
Determines whether this effective node type representation includes
(either through inheritance or aggregation) all of the given node types.
|
boolean |
supportsMixin(String mixin)
Determines whether this effective node type supports adding
the specified mixin.
|
public boolean includesNodeType(String nodeTypeName)
nodeTypeName
- name of node typetrue
if the given node type is included, otherwise false
.public boolean includesNodeTypes(String[] nodeTypeNames)
nodeTypeNames
- array of node type namestrue
if all of the given node types are included,
otherwise false
public boolean supportsMixin(String mixin)
mixin
- name of mixin typetrue
if the mixin type is supported, otherwise false
public Iterable<NodeDefinition> getNodeDefinitions()
public Iterable<PropertyDefinition> getPropertyDefinitions()
public Iterable<NodeDefinition> getAutoCreateNodeDefinitions()
public Iterable<PropertyDefinition> getAutoCreatePropertyDefinitions()
public Iterable<NodeDefinition> getMandatoryNodeDefinitions()
public Iterable<PropertyDefinition> getMandatoryPropertyDefinitions()
public Iterable<NodeDefinition> getNamedNodeDefinitions(String oakName)
oakName
- An internal oak name.public Iterable<PropertyDefinition> getNamedPropertyDefinitions(String oakName)
oakName
- An internal oak name.public Iterable<NodeDefinition> getResidualNodeDefinitions()
public Iterable<PropertyDefinition> getResidualPropertyDefinitions()
public void checkSetProperty(PropertyState property) throws RepositoryException
RepositoryException
public void checkRemoveProperty(PropertyState property) throws RepositoryException
RepositoryException
public void checkMandatoryItems(Tree tree) throws ConstraintViolationException
ConstraintViolationException
public void checkOrderableChildNodes() throws UnsupportedRepositoryOperationException
UnsupportedRepositoryOperationException
public PropertyDefinition getPropertyDefinition(String propertyName, boolean isMultiple, int type, boolean exactTypeMatch) throws ConstraintViolationException
propertyName
- The internal oak name of the property for which the
definition should be retrieved.isMultiple
- true
if the target property is multi-valued.type
- The target type of the property.exactTypeMatch
- true
if the required type of the definition
must exactly match the type of the target property.ConstraintViolationException
- If no matching definition can be found.RepositoryException
- If another error occurs.public NodeDefinition getNodeDefinition(String childName, EffectiveNodeType childEffective) throws ConstraintViolationException
childName
- The internal oak name of the target node.childEffective
- ConstraintViolationException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"