public interface EffectiveNodeType
EffectiveNodeType
...Modifier and Type | Method and Description |
---|---|
void |
checkAddNodeConstraints(Name name,
ItemDefinitionProvider definitionProvider) |
void |
checkAddNodeConstraints(Name name,
QNodeTypeDefinition nodeTypeDefinition,
ItemDefinitionProvider definitionProvider) |
void |
checkRemoveItemConstraints(Name name)
Deprecated.
Use
hasRemoveNodeConstraint(Name) and
hasRemovePropertyConstraint(Name) respectively. |
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.
|
Name[] getAllNodeTypes()
Name[] getInheritedNodeTypes()
Name[] getMergedNodeTypes()
boolean includesNodeType(Name nodeTypeName)
nodeTypeName
- name of node typetrue
if the given node type is included, otherwise
false
boolean supportsMixin(Name mixin)
mixin
- name of mixin typetrue
if the mixin type is supported, otherwise
false
boolean includesNodeTypes(Name[] nodeTypeNames)
nodeTypeNames
- array of node type namestrue
if all of the given node types are included,
otherwise false
QNodeDefinition[] getAllQNodeDefinitions()
QPropertyDefinition[] getAllQPropertyDefinitions()
QNodeDefinition[] getAutoCreateQNodeDefinitions()
QPropertyDefinition[] getAutoCreateQPropertyDefinitions()
QNodeDefinition[] getMandatoryQNodeDefinitions()
QPropertyDefinition[] getMandatoryQPropertyDefinitions()
QNodeDefinition[] getNamedQNodeDefinitions(Name name)
QPropertyDefinition[] getNamedQPropertyDefinitions(Name name)
QNodeDefinition[] getUnnamedQNodeDefinitions()
QPropertyDefinition[] getUnnamedQPropertyDefinitions()
void checkAddNodeConstraints(Name name, ItemDefinitionProvider definitionProvider) throws ConstraintViolationException
name
- definitionProvider
- ConstraintViolationException
void checkAddNodeConstraints(Name name, QNodeTypeDefinition nodeTypeDefinition, ItemDefinitionProvider definitionProvider) throws ConstraintViolationException, NoSuchNodeTypeException
name
- nodeTypeDefinition
- definitionProvider
- @throws ConstraintViolationException @throws NoSuchNodeTypeExceptionConstraintViolationException
NoSuchNodeTypeException
void checkRemoveItemConstraints(Name name) throws ConstraintViolationException
hasRemoveNodeConstraint(Name)
and
hasRemovePropertyConstraint(Name)
respectively.name
- ConstraintViolationException
boolean hasRemoveNodeConstraint(Name nodeName)
true
if a single node definition matching the
specified nodeName
is either mandatory or protected.nodeName
- true
if a single node definition matching the
specified nodeName
is either mandatory or protected.boolean hasRemovePropertyConstraint(Name propertyName)
true
if a single property definition matching the
specified propertyName
is either mandatory or protected.propertyName
- true
if a single property definition matching the
specified propertyName
is either mandatory or protected.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.