public class EffectiveNodeType
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkMandatoryItems(Tree tree) |
void |
checkOrderableChildNodes() |
void |
checkRemoveProperty(PropertyState property) |
void |
checkSetProperty(PropertyState property) |
java.lang.Iterable<NodeDefinition> |
getAutoCreateNodeDefinitions() |
java.lang.Iterable<PropertyDefinition> |
getAutoCreatePropertyDefinitions() |
java.lang.Iterable<NodeDefinition> |
getMandatoryNodeDefinitions() |
java.lang.Iterable<PropertyDefinition> |
getMandatoryPropertyDefinitions() |
java.lang.Iterable<NodeDefinition> |
getNamedNodeDefinitions(java.lang.String oakName)
Return all node definitions that match the specified oak name.
|
java.lang.Iterable<PropertyDefinition> |
getNamedPropertyDefinitions(java.lang.String oakName)
Return all property definitions that match the specified oak name.
|
NodeDefinition |
getNodeDefinition(java.lang.String childName,
EffectiveNodeType childEffective) |
java.lang.Iterable<NodeDefinition> |
getNodeDefinitions() |
PropertyDefinition |
getPropertyDefinition(java.lang.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.
|
java.lang.Iterable<PropertyDefinition> |
getPropertyDefinitions() |
java.lang.Iterable<NodeDefinition> |
getResidualNodeDefinitions()
Return all residual node definitions.
|
java.lang.Iterable<PropertyDefinition> |
getResidualPropertyDefinitions()
Return all residual property definitions.
|
boolean |
includesNodeType(java.lang.String nodeTypeName)
Determines whether this effective node type representation includes
(either through inheritance or aggregation) the given node type.
|
boolean |
includesNodeTypes(java.lang.String[] nodeTypeNames)
Determines whether this effective node type representation includes
(either through inheritance or aggregation) all of the given node types.
|
boolean |
supportsMixin(java.lang.String mixin)
Determines whether this effective node type supports adding
the specified mixin.
|
public boolean includesNodeType(java.lang.String nodeTypeName)
nodeTypeName - name of node typetrue if the given node type is included, otherwise false.public boolean includesNodeTypes(java.lang.String[] nodeTypeNames)
nodeTypeNames - array of node type namestrue if all of the given node types are included,
otherwise falsepublic boolean supportsMixin(java.lang.String mixin)
mixin - name of mixin typetrue if the mixin type is supported, otherwise falsepublic java.lang.Iterable<NodeDefinition> getNodeDefinitions()
public java.lang.Iterable<PropertyDefinition> getPropertyDefinitions()
public java.lang.Iterable<NodeDefinition> getAutoCreateNodeDefinitions()
public java.lang.Iterable<PropertyDefinition> getAutoCreatePropertyDefinitions()
public java.lang.Iterable<NodeDefinition> getMandatoryNodeDefinitions()
public java.lang.Iterable<PropertyDefinition> getMandatoryPropertyDefinitions()
public java.lang.Iterable<NodeDefinition> getNamedNodeDefinitions(java.lang.String oakName)
oakName - An internal oak name.public java.lang.Iterable<PropertyDefinition> getNamedPropertyDefinitions(java.lang.String oakName)
oakName - An internal oak name.public java.lang.Iterable<NodeDefinition> getResidualNodeDefinitions()
public java.lang.Iterable<PropertyDefinition> getResidualPropertyDefinitions()
public void checkSetProperty(PropertyState property) throws RepositoryException
RepositoryExceptionpublic void checkRemoveProperty(PropertyState property) throws RepositoryException
RepositoryExceptionpublic void checkMandatoryItems(Tree tree) throws ConstraintViolationException
ConstraintViolationExceptionpublic void checkOrderableChildNodes()
throws UnsupportedRepositoryOperationException
UnsupportedRepositoryOperationExceptionpublic PropertyDefinition getPropertyDefinition(java.lang.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(java.lang.String childName,
EffectiveNodeType childEffective)
throws ConstraintViolationException
childName - The internal oak name of the target node.childEffective - ConstraintViolationException"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"