org.apache.jackrabbit.jcr2spi.nodetype
Class EffectiveNodeTypeImpl
java.lang.Object
org.apache.jackrabbit.jcr2spi.nodetype.EffectiveNodeTypeImpl
- All Implemented Interfaces:
- Cloneable, EffectiveNodeType
public class EffectiveNodeTypeImpl
- extends Object
- implements Cloneable, EffectiveNodeType
An EffectiveNodeType represents one or more
NodeTypes as one 'effective' node type where inheritance
is resolved.
Instances of EffectiveNodeType are immutable.
getInheritedNodeTypes
public Name[] getInheritedNodeTypes()
- Specified by:
getInheritedNodeTypes in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getInheritedNodeTypes()
getAllNodeTypes
public Name[] getAllNodeTypes()
- Specified by:
getAllNodeTypes in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getAllNodeTypes()
getMergedNodeTypes
public Name[] getMergedNodeTypes()
- Specified by:
getMergedNodeTypes in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getMergedNodeTypes()
getAllQNodeDefinitions
public QNodeDefinition[] getAllQNodeDefinitions()
- Specified by:
getAllQNodeDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getAllQNodeDefinitions()
getAllQPropertyDefinitions
public QPropertyDefinition[] getAllQPropertyDefinitions()
- Specified by:
getAllQPropertyDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getAllQPropertyDefinitions()
getAutoCreateQNodeDefinitions
public QNodeDefinition[] getAutoCreateQNodeDefinitions()
- Specified by:
getAutoCreateQNodeDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getAutoCreateQNodeDefinitions()
getAutoCreateQPropertyDefinitions
public QPropertyDefinition[] getAutoCreateQPropertyDefinitions()
- Specified by:
getAutoCreateQPropertyDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getAutoCreateQPropertyDefinitions()
getMandatoryQPropertyDefinitions
public QPropertyDefinition[] getMandatoryQPropertyDefinitions()
- Specified by:
getMandatoryQPropertyDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getMandatoryQPropertyDefinitions()
getMandatoryQNodeDefinitions
public QNodeDefinition[] getMandatoryQNodeDefinitions()
- Specified by:
getMandatoryQNodeDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getMandatoryQNodeDefinitions()
getNamedQNodeDefinitions
public QNodeDefinition[] getNamedQNodeDefinitions(Name name)
- Specified by:
getNamedQNodeDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getNamedQNodeDefinitions(Name)
getUnnamedQNodeDefinitions
public QNodeDefinition[] getUnnamedQNodeDefinitions()
- Specified by:
getUnnamedQNodeDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getUnnamedQNodeDefinitions()
getNamedQPropertyDefinitions
public QPropertyDefinition[] getNamedQPropertyDefinitions(Name name)
- Specified by:
getNamedQPropertyDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getNamedQPropertyDefinitions(Name)
getUnnamedQPropertyDefinitions
public QPropertyDefinition[] getUnnamedQPropertyDefinitions()
- Specified by:
getUnnamedQPropertyDefinitions in interface EffectiveNodeType
- See Also:
EffectiveNodeType.getUnnamedQPropertyDefinitions()
includesNodeType
public boolean includesNodeType(Name nodeTypeName)
- Description copied from interface:
EffectiveNodeType
- Determines whether this effective node type representation includes
(either through inheritance or aggregation) the given node type.
- Specified by:
includesNodeType in interface EffectiveNodeType
- Parameters:
nodeTypeName - name of node type
- Returns:
true if the given node type is included, otherwise
false
includesNodeTypes
public boolean includesNodeTypes(Name[] nodeTypeNames)
- Description copied from interface:
EffectiveNodeType
- Determines whether this effective node type representation includes
(either through inheritance or aggregation) all of the given node types.
- Specified by:
includesNodeTypes in interface EffectiveNodeType
- Parameters:
nodeTypeNames - array of node type names
- Returns:
true if all of the given node types are included,
otherwise false
checkAddNodeConstraints
public void checkAddNodeConstraints(Name name,
ItemDefinitionProvider definitionProvider)
throws ConstraintViolationException
- Specified by:
checkAddNodeConstraints in interface EffectiveNodeType
- Throws:
ConstraintViolationException- See Also:
EffectiveNodeType.checkAddNodeConstraints(Name, ItemDefinitionProvider)
checkAddNodeConstraints
public void checkAddNodeConstraints(Name name,
Name nodeTypeName,
ItemDefinitionProvider definitionProvider)
throws ConstraintViolationException,
NoSuchNodeTypeException
- Specified by:
checkAddNodeConstraints in interface EffectiveNodeType
- Throws:
ConstraintViolationException
NoSuchNodeTypeException- See Also:
EffectiveNodeType.checkAddNodeConstraints(Name, ItemDefinitionProvider)
checkRemoveItemConstraints
public void checkRemoveItemConstraints(Name name)
throws ConstraintViolationException
- Specified by:
checkRemoveItemConstraints in interface EffectiveNodeType
- Throws:
ConstraintViolationException- See Also:
EffectiveNodeType.checkRemoveItemConstraints(Name)
clone
protected Object clone()
- Overrides:
clone in class Object
Copyright © 2004-2008 Apache Software Foundation. All Rights Reserved.