public class EffectiveNodeTypeImpl extends Object implements Cloneable, EffectiveNodeType
EffectiveNodeType
represents one or more
NodeType
s as one 'effective' node type where inheritance
is resolved.
Instances of EffectiveNodeType
are immutable.
Modifier and Type | Method and Description |
---|---|
void |
checkAddNodeConstraints(Name name,
ItemDefinitionProvider definitionProvider) |
void |
checkAddNodeConstraints(Name name,
QNodeTypeDefinition nodeTypeDefinition,
ItemDefinitionProvider definitionProvider) |
void |
checkRemoveItemConstraints(Name name) |
protected Object |
clone() |
Name[] |
getAllNodeTypes() |
QNodeDefinition[] |
getAllQNodeDefinitions() |
QPropertyDefinition[] |
getAllQPropertyDefinitions() |
QNodeDefinition[] |
getAutoCreateQNodeDefinitions() |
QPropertyDefinition[] |
getAutoCreateQPropertyDefinitions() |
Name[] |
getInheritedNodeTypes() |
QNodeDefinition[] |
getMandatoryQNodeDefinitions() |
QPropertyDefinition[] |
getMandatoryQPropertyDefinitions() |
Name[] |
getMergedNodeTypes() |
QNodeDefinition[] |
getNamedQNodeDefinitions(Name name) |
QPropertyDefinition[] |
getNamedQPropertyDefinitions(Name name) |
QNodeDefinition[] |
getUnnamedQNodeDefinitions() |
QPropertyDefinition[] |
getUnnamedQPropertyDefinitions() |
boolean |
hasRemoveNodeConstraint(Name nodeName)
Returns
true if a single node definition matching the
specified nodeName is either mandatory or protected. |
boolean |
hasRemovePropertyConstraint(Name propertyName)
Returns
true if a single property definition matching the
specified propertyName is either mandatory or protected. |
boolean |
includesNodeType(Name nodeTypeName)
Determines whether this effective node type representation includes
(either through inheritance or aggregation) the given node type.
|
boolean |
includesNodeTypes(Name[] nodeTypeNames)
Determines whether this effective node type representation includes
(either through inheritance or aggregation) all of the given node types.
|
boolean |
supportsMixin(Name mixin)
Determines whether this effective node type supports adding
the specified mixin.
|
public Name[] getInheritedNodeTypes()
getInheritedNodeTypes
in interface EffectiveNodeType
EffectiveNodeType.getInheritedNodeTypes()
public Name[] getAllNodeTypes()
getAllNodeTypes
in interface EffectiveNodeType
EffectiveNodeType.getAllNodeTypes()
public Name[] getMergedNodeTypes()
getMergedNodeTypes
in interface EffectiveNodeType
EffectiveNodeType.getMergedNodeTypes()
public QNodeDefinition[] getAllQNodeDefinitions()
getAllQNodeDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getAllQNodeDefinitions()
public QPropertyDefinition[] getAllQPropertyDefinitions()
getAllQPropertyDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getAllQPropertyDefinitions()
public QNodeDefinition[] getAutoCreateQNodeDefinitions()
getAutoCreateQNodeDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getAutoCreateQNodeDefinitions()
public QPropertyDefinition[] getAutoCreateQPropertyDefinitions()
getAutoCreateQPropertyDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getAutoCreateQPropertyDefinitions()
public QPropertyDefinition[] getMandatoryQPropertyDefinitions()
getMandatoryQPropertyDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getMandatoryQPropertyDefinitions()
public QNodeDefinition[] getMandatoryQNodeDefinitions()
getMandatoryQNodeDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getMandatoryQNodeDefinitions()
public QNodeDefinition[] getNamedQNodeDefinitions(Name name)
getNamedQNodeDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getNamedQNodeDefinitions(Name)
public QNodeDefinition[] getUnnamedQNodeDefinitions()
getUnnamedQNodeDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getUnnamedQNodeDefinitions()
public QPropertyDefinition[] getNamedQPropertyDefinitions(Name name)
getNamedQPropertyDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getNamedQPropertyDefinitions(Name)
public QPropertyDefinition[] getUnnamedQPropertyDefinitions()
getUnnamedQPropertyDefinitions
in interface EffectiveNodeType
EffectiveNodeType.getUnnamedQPropertyDefinitions()
public boolean includesNodeType(Name nodeTypeName)
EffectiveNodeType
includesNodeType
in interface EffectiveNodeType
nodeTypeName
- name of node typetrue
if the given node type is included, otherwise
false
public boolean includesNodeTypes(Name[] nodeTypeNames)
EffectiveNodeType
includesNodeTypes
in interface EffectiveNodeType
nodeTypeNames
- array of node type namestrue
if all of the given node types are included,
otherwise false
public boolean supportsMixin(Name mixin)
EffectiveNodeType
supportsMixin
in interface EffectiveNodeType
mixin
- name of mixin typetrue
if the mixin type is supported, otherwise
false
EffectiveNodeType.supportsMixin(Name)
public void checkAddNodeConstraints(Name name, ItemDefinitionProvider definitionProvider) throws ConstraintViolationException
checkAddNodeConstraints
in interface EffectiveNodeType
ConstraintViolationException
EffectiveNodeType.checkAddNodeConstraints(Name, ItemDefinitionProvider)
public void checkAddNodeConstraints(Name name, QNodeTypeDefinition nodeTypeDefinition, ItemDefinitionProvider definitionProvider) throws ConstraintViolationException, NoSuchNodeTypeException
checkAddNodeConstraints
in interface EffectiveNodeType
definitionProvider
- @throws ConstraintViolationException @throws NoSuchNodeTypeExceptionConstraintViolationException
NoSuchNodeTypeException
EffectiveNodeType.checkAddNodeConstraints(org.apache.jackrabbit.spi.Name,QNodeTypeDefinition, ItemDefinitionProvider)
public void checkRemoveItemConstraints(Name name) throws ConstraintViolationException
checkRemoveItemConstraints
in interface EffectiveNodeType
ConstraintViolationException
EffectiveNodeType.checkRemoveItemConstraints(Name)
public boolean hasRemoveNodeConstraint(Name nodeName)
EffectiveNodeType
true
if a single node definition matching the
specified nodeName
is either mandatory or protected.hasRemoveNodeConstraint
in interface EffectiveNodeType
true
if a single node definition matching the
specified nodeName
is either mandatory or protected.EffectiveNodeType.hasRemoveNodeConstraint(Name)
public boolean hasRemovePropertyConstraint(Name propertyName)
EffectiveNodeType
true
if a single property definition matching the
specified propertyName
is either mandatory or protected.hasRemovePropertyConstraint
in interface EffectiveNodeType
true
if a single property definition matching the
specified propertyName
is either mandatory or protected.EffectiveNodeType.hasRemovePropertyConstraint(Name)
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.