|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.nodetype.EffectiveNodeTypeImpl
public class EffectiveNodeTypeImpl
An EffectiveNodeType represents one or more
NodeTypes as one 'effective' node type where inheritance
is resolved.
Instances of EffectiveNodeType are immutable.
| Method Summary | |
|---|---|
void |
checkAddNodeConstraints(org.apache.jackrabbit.spi.Name name,
ItemDefinitionProvider definitionProvider)
|
void |
checkAddNodeConstraints(org.apache.jackrabbit.spi.Name name,
org.apache.jackrabbit.spi.QNodeTypeDefinition nodeTypeDefinition,
ItemDefinitionProvider definitionProvider)
|
void |
checkRemoveItemConstraints(org.apache.jackrabbit.spi.Name name)
|
protected Object |
clone()
|
org.apache.jackrabbit.spi.Name[] |
getAllNodeTypes()
|
org.apache.jackrabbit.spi.QNodeDefinition[] |
getAllQNodeDefinitions()
|
org.apache.jackrabbit.spi.QPropertyDefinition[] |
getAllQPropertyDefinitions()
|
org.apache.jackrabbit.spi.QNodeDefinition[] |
getAutoCreateQNodeDefinitions()
|
org.apache.jackrabbit.spi.QPropertyDefinition[] |
getAutoCreateQPropertyDefinitions()
|
org.apache.jackrabbit.spi.Name[] |
getInheritedNodeTypes()
|
org.apache.jackrabbit.spi.QNodeDefinition[] |
getMandatoryQNodeDefinitions()
|
org.apache.jackrabbit.spi.QPropertyDefinition[] |
getMandatoryQPropertyDefinitions()
|
org.apache.jackrabbit.spi.Name[] |
getMergedNodeTypes()
|
org.apache.jackrabbit.spi.QNodeDefinition[] |
getNamedQNodeDefinitions(org.apache.jackrabbit.spi.Name name)
|
org.apache.jackrabbit.spi.QPropertyDefinition[] |
getNamedQPropertyDefinitions(org.apache.jackrabbit.spi.Name name)
|
org.apache.jackrabbit.spi.QNodeDefinition[] |
getUnnamedQNodeDefinitions()
|
org.apache.jackrabbit.spi.QPropertyDefinition[] |
getUnnamedQPropertyDefinitions()
|
boolean |
hasRemoveNodeConstraint(org.apache.jackrabbit.spi.Name nodeName)
Returns true if a single node definition matching the
specified nodeName is either mandatory or protected. |
boolean |
hasRemovePropertyConstraint(org.apache.jackrabbit.spi.Name propertyName)
Returns true if a single property definition matching the
specified propertyName is either mandatory or protected. |
boolean |
includesNodeType(org.apache.jackrabbit.spi.Name nodeTypeName)
Determines whether this effective node type representation includes (either through inheritance or aggregation) the given node type. |
boolean |
includesNodeTypes(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
Determines whether this effective node type representation includes (either through inheritance or aggregation) all of the given node types. |
boolean |
supportsMixin(org.apache.jackrabbit.spi.Name mixin)
Determines whether this effective node type supports adding the specified mixin. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public org.apache.jackrabbit.spi.Name[] getInheritedNodeTypes()
getInheritedNodeTypes in interface EffectiveNodeTypeEffectiveNodeType.getInheritedNodeTypes()public org.apache.jackrabbit.spi.Name[] getAllNodeTypes()
getAllNodeTypes in interface EffectiveNodeTypeEffectiveNodeType.getAllNodeTypes()public org.apache.jackrabbit.spi.Name[] getMergedNodeTypes()
getMergedNodeTypes in interface EffectiveNodeTypeEffectiveNodeType.getMergedNodeTypes()public org.apache.jackrabbit.spi.QNodeDefinition[] getAllQNodeDefinitions()
getAllQNodeDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getAllQNodeDefinitions()public org.apache.jackrabbit.spi.QPropertyDefinition[] getAllQPropertyDefinitions()
getAllQPropertyDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getAllQPropertyDefinitions()public org.apache.jackrabbit.spi.QNodeDefinition[] getAutoCreateQNodeDefinitions()
getAutoCreateQNodeDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getAutoCreateQNodeDefinitions()public org.apache.jackrabbit.spi.QPropertyDefinition[] getAutoCreateQPropertyDefinitions()
getAutoCreateQPropertyDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getAutoCreateQPropertyDefinitions()public org.apache.jackrabbit.spi.QPropertyDefinition[] getMandatoryQPropertyDefinitions()
getMandatoryQPropertyDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getMandatoryQPropertyDefinitions()public org.apache.jackrabbit.spi.QNodeDefinition[] getMandatoryQNodeDefinitions()
getMandatoryQNodeDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getMandatoryQNodeDefinitions()public org.apache.jackrabbit.spi.QNodeDefinition[] getNamedQNodeDefinitions(org.apache.jackrabbit.spi.Name name)
getNamedQNodeDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getNamedQNodeDefinitions(Name)public org.apache.jackrabbit.spi.QNodeDefinition[] getUnnamedQNodeDefinitions()
getUnnamedQNodeDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getUnnamedQNodeDefinitions()public org.apache.jackrabbit.spi.QPropertyDefinition[] getNamedQPropertyDefinitions(org.apache.jackrabbit.spi.Name name)
getNamedQPropertyDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getNamedQPropertyDefinitions(Name)public org.apache.jackrabbit.spi.QPropertyDefinition[] getUnnamedQPropertyDefinitions()
getUnnamedQPropertyDefinitions in interface EffectiveNodeTypeEffectiveNodeType.getUnnamedQPropertyDefinitions()public boolean includesNodeType(org.apache.jackrabbit.spi.Name nodeTypeName)
EffectiveNodeType
includesNodeType in interface EffectiveNodeTypenodeTypeName - name of node type
true if the given node type is included, otherwise
falsepublic boolean includesNodeTypes(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
EffectiveNodeType
includesNodeTypes in interface EffectiveNodeTypenodeTypeNames - array of node type names
true if all of the given node types are included,
otherwise falsepublic boolean supportsMixin(org.apache.jackrabbit.spi.Name mixin)
EffectiveNodeType
supportsMixin in interface EffectiveNodeTypemixin - name of mixin type
true if the mixin type is supported, otherwise
falseEffectiveNodeType.supportsMixin(Name)
public void checkAddNodeConstraints(org.apache.jackrabbit.spi.Name name,
ItemDefinitionProvider definitionProvider)
throws ConstraintViolationException
checkAddNodeConstraints in interface EffectiveNodeTypeConstraintViolationExceptionEffectiveNodeType.checkAddNodeConstraints(Name, ItemDefinitionProvider)
public void checkAddNodeConstraints(org.apache.jackrabbit.spi.Name name,
org.apache.jackrabbit.spi.QNodeTypeDefinition nodeTypeDefinition,
ItemDefinitionProvider definitionProvider)
throws ConstraintViolationException,
NoSuchNodeTypeException
checkAddNodeConstraints in interface EffectiveNodeTypedefinitionProvider - @throws ConstraintViolationException @throws NoSuchNodeTypeException
ConstraintViolationException
NoSuchNodeTypeExceptionEffectiveNodeType.checkAddNodeConstraints(org.apache.jackrabbit.spi.Name,QNodeTypeDefinition, ItemDefinitionProvider)
public void checkRemoveItemConstraints(org.apache.jackrabbit.spi.Name name)
throws ConstraintViolationException
checkRemoveItemConstraints in interface EffectiveNodeTypeConstraintViolationExceptionEffectiveNodeType.checkRemoveItemConstraints(Name)public boolean hasRemoveNodeConstraint(org.apache.jackrabbit.spi.Name nodeName)
EffectiveNodeTypetrue if a single node definition matching the
specified nodeName is either mandatory or protected.
hasRemoveNodeConstraint in interface EffectiveNodeTypetrue if a single node definition matching the
specified nodeName is either mandatory or protected.EffectiveNodeType.hasRemoveNodeConstraint(Name)public boolean hasRemovePropertyConstraint(org.apache.jackrabbit.spi.Name propertyName)
EffectiveNodeTypetrue if a single property definition matching the
specified propertyName is either mandatory or protected.
hasRemovePropertyConstraint in interface EffectiveNodeTypetrue if a single property definition matching the
specified propertyName is either mandatory or protected.EffectiveNodeType.hasRemovePropertyConstraint(Name)protected Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||