Class EffectiveNodeTypeImpl
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.nodetype.EffectiveNodeTypeImpl
-
- All Implemented Interfaces:
Cloneable,EffectiveNodeType
public class EffectiveNodeTypeImpl extends Object implements Cloneable, EffectiveNodeType
AnEffectiveNodeTyperepresents one or moreNodeTypes as one 'effective' node type where inheritance is resolved.Instances of
EffectiveNodeTypeare immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAddNodeConstraints(org.apache.jackrabbit.spi.Name name, ItemDefinitionProvider definitionProvider)voidcheckAddNodeConstraints(org.apache.jackrabbit.spi.Name name, org.apache.jackrabbit.spi.QNodeTypeDefinition nodeTypeDefinition, ItemDefinitionProvider definitionProvider)voidcheckRemoveItemConstraints(org.apache.jackrabbit.spi.Name name)protected Objectclone()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()booleanhasRemoveNodeConstraint(org.apache.jackrabbit.spi.Name nodeName)Returnstrueif a single node definition matching the specifiednodeNameis either mandatory or protected.booleanhasRemovePropertyConstraint(org.apache.jackrabbit.spi.Name propertyName)Returnstrueif a single property definition matching the specifiedpropertyNameis either mandatory or protected.booleanincludesNodeType(org.apache.jackrabbit.spi.Name nodeTypeName)Determines whether this effective node type representation includes (either through inheritance or aggregation) the given node type.booleanincludesNodeTypes(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.booleansupportsMixin(org.apache.jackrabbit.spi.Name mixin)Determines whether this effective node type supports adding the specified mixin.
-
-
-
Method Detail
-
getInheritedNodeTypes
public org.apache.jackrabbit.spi.Name[] getInheritedNodeTypes()
- Specified by:
getInheritedNodeTypesin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getInheritedNodeTypes()
-
getAllNodeTypes
public org.apache.jackrabbit.spi.Name[] getAllNodeTypes()
- Specified by:
getAllNodeTypesin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getAllNodeTypes()
-
getMergedNodeTypes
public org.apache.jackrabbit.spi.Name[] getMergedNodeTypes()
- Specified by:
getMergedNodeTypesin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getMergedNodeTypes()
-
getAllQNodeDefinitions
public org.apache.jackrabbit.spi.QNodeDefinition[] getAllQNodeDefinitions()
- Specified by:
getAllQNodeDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getAllQNodeDefinitions()
-
getAllQPropertyDefinitions
public org.apache.jackrabbit.spi.QPropertyDefinition[] getAllQPropertyDefinitions()
- Specified by:
getAllQPropertyDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getAllQPropertyDefinitions()
-
getAutoCreateQNodeDefinitions
public org.apache.jackrabbit.spi.QNodeDefinition[] getAutoCreateQNodeDefinitions()
- Specified by:
getAutoCreateQNodeDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getAutoCreateQNodeDefinitions()
-
getAutoCreateQPropertyDefinitions
public org.apache.jackrabbit.spi.QPropertyDefinition[] getAutoCreateQPropertyDefinitions()
- Specified by:
getAutoCreateQPropertyDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getAutoCreateQPropertyDefinitions()
-
getMandatoryQPropertyDefinitions
public org.apache.jackrabbit.spi.QPropertyDefinition[] getMandatoryQPropertyDefinitions()
- Specified by:
getMandatoryQPropertyDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getMandatoryQPropertyDefinitions()
-
getMandatoryQNodeDefinitions
public org.apache.jackrabbit.spi.QNodeDefinition[] getMandatoryQNodeDefinitions()
- Specified by:
getMandatoryQNodeDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getMandatoryQNodeDefinitions()
-
getNamedQNodeDefinitions
public org.apache.jackrabbit.spi.QNodeDefinition[] getNamedQNodeDefinitions(org.apache.jackrabbit.spi.Name name)
- Specified by:
getNamedQNodeDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getNamedQNodeDefinitions(Name)
-
getUnnamedQNodeDefinitions
public org.apache.jackrabbit.spi.QNodeDefinition[] getUnnamedQNodeDefinitions()
- Specified by:
getUnnamedQNodeDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getUnnamedQNodeDefinitions()
-
getNamedQPropertyDefinitions
public org.apache.jackrabbit.spi.QPropertyDefinition[] getNamedQPropertyDefinitions(org.apache.jackrabbit.spi.Name name)
- Specified by:
getNamedQPropertyDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getNamedQPropertyDefinitions(Name)
-
getUnnamedQPropertyDefinitions
public org.apache.jackrabbit.spi.QPropertyDefinition[] getUnnamedQPropertyDefinitions()
- Specified by:
getUnnamedQPropertyDefinitionsin interfaceEffectiveNodeType- See Also:
EffectiveNodeType.getUnnamedQPropertyDefinitions()
-
includesNodeType
public boolean includesNodeType(org.apache.jackrabbit.spi.Name nodeTypeName)
Description copied from interface:EffectiveNodeTypeDetermines whether this effective node type representation includes (either through inheritance or aggregation) the given node type.- Specified by:
includesNodeTypein interfaceEffectiveNodeType- Parameters:
nodeTypeName- name of node type- Returns:
trueif the given node type is included, otherwisefalse
-
includesNodeTypes
public boolean includesNodeTypes(org.apache.jackrabbit.spi.Name[] nodeTypeNames)
Description copied from interface:EffectiveNodeTypeDetermines whether this effective node type representation includes (either through inheritance or aggregation) all of the given node types.- Specified by:
includesNodeTypesin interfaceEffectiveNodeType- Parameters:
nodeTypeNames- array of node type names- Returns:
trueif all of the given node types are included, otherwisefalse
-
supportsMixin
public boolean supportsMixin(org.apache.jackrabbit.spi.Name mixin)
Description copied from interface:EffectiveNodeTypeDetermines whether this effective node type supports adding the specified mixin.- Specified by:
supportsMixinin interfaceEffectiveNodeType- Parameters:
mixin- name of mixin type- Returns:
trueif the mixin type is supported, otherwisefalse- See Also:
EffectiveNodeType.supportsMixin(Name)
-
checkAddNodeConstraints
public void checkAddNodeConstraints(org.apache.jackrabbit.spi.Name name, ItemDefinitionProvider definitionProvider) throws ConstraintViolationException- Specified by:
checkAddNodeConstraintsin interfaceEffectiveNodeType- Throws:
ConstraintViolationException- See Also:
EffectiveNodeType.checkAddNodeConstraints(Name, ItemDefinitionProvider)
-
checkAddNodeConstraints
public void checkAddNodeConstraints(org.apache.jackrabbit.spi.Name name, org.apache.jackrabbit.spi.QNodeTypeDefinition nodeTypeDefinition, ItemDefinitionProvider definitionProvider) throws ConstraintViolationException, NoSuchNodeTypeException- Specified by:
checkAddNodeConstraintsin interfaceEffectiveNodeType- Throws:
ConstraintViolationException- @throws NoSuchNodeTypeExceptionNoSuchNodeTypeException- See Also:
EffectiveNodeType.checkAddNodeConstraints(org.apache.jackrabbit.spi.Name,QNodeTypeDefinition, ItemDefinitionProvider)
-
checkRemoveItemConstraints
public void checkRemoveItemConstraints(org.apache.jackrabbit.spi.Name name) throws ConstraintViolationException- Specified by:
checkRemoveItemConstraintsin interfaceEffectiveNodeType- Throws:
ConstraintViolationException- See Also:
EffectiveNodeType.checkRemoveItemConstraints(Name)
-
hasRemoveNodeConstraint
public boolean hasRemoveNodeConstraint(org.apache.jackrabbit.spi.Name nodeName)
Description copied from interface:EffectiveNodeTypeReturnstrueif a single node definition matching the specifiednodeNameis either mandatory or protected.- Specified by:
hasRemoveNodeConstraintin interfaceEffectiveNodeType- Returns:
trueif a single node definition matching the specifiednodeNameis either mandatory or protected.- See Also:
EffectiveNodeType.hasRemoveNodeConstraint(Name)
-
hasRemovePropertyConstraint
public boolean hasRemovePropertyConstraint(org.apache.jackrabbit.spi.Name propertyName)
Description copied from interface:EffectiveNodeTypeReturnstrueif a single property definition matching the specifiedpropertyNameis either mandatory or protected.- Specified by:
hasRemovePropertyConstraintin interfaceEffectiveNodeType- Returns:
trueif a single property definition matching the specifiedpropertyNameis either mandatory or protected.- See Also:
EffectiveNodeType.hasRemovePropertyConstraint(Name)
-
-