Interface EffectiveNodeType
-
- All Known Implementing Classes:
EffectiveNodeTypeImpl
public interface EffectiveNodeTypeEffectiveNodeType...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcheckAddNodeConstraints(Name name, ItemDefinitionProvider definitionProvider)voidcheckAddNodeConstraints(Name name, QNodeTypeDefinition nodeTypeDefinition, ItemDefinitionProvider definitionProvider)voidcheckRemoveItemConstraints(Name name)Deprecated.UsehasRemoveNodeConstraint(Name)andhasRemovePropertyConstraint(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()booleanhasRemoveNodeConstraint(Name nodeName)Returnstrueif a single node definition matching the specifiednodeNameis either mandatory or protected.booleanhasRemovePropertyConstraint(Name propertyName)Returnstrueif a single property definition matching the specifiedpropertyNameis either mandatory or protected.booleanincludesNodeType(Name nodeTypeName)Determines whether this effective node type representation includes (either through inheritance or aggregation) the given node type.booleanincludesNodeTypes(Name[] nodeTypeNames)Determines whether this effective node type representation includes (either through inheritance or aggregation) all of the given node types.booleansupportsMixin(Name mixin)Determines whether this effective node type supports adding the specified mixin.
-
-
-
Method Detail
-
getAllNodeTypes
Name[] getAllNodeTypes()
-
getInheritedNodeTypes
Name[] getInheritedNodeTypes()
-
getMergedNodeTypes
Name[] getMergedNodeTypes()
-
includesNodeType
boolean includesNodeType(Name nodeTypeName)
Determines whether this effective node type representation includes (either through inheritance or aggregation) the given node type.- Parameters:
nodeTypeName- name of node type- Returns:
trueif the given node type is included, otherwisefalse
-
supportsMixin
boolean supportsMixin(Name mixin)
Determines whether this effective node type supports adding the specified mixin.- Parameters:
mixin- name of mixin type- Returns:
trueif the mixin type is supported, otherwisefalse
-
includesNodeTypes
boolean includesNodeTypes(Name[] nodeTypeNames)
Determines whether this effective node type representation includes (either through inheritance or aggregation) all of the given node types.- Parameters:
nodeTypeNames- array of node type names- Returns:
trueif all of the given node types are included, otherwisefalse
-
getAllQNodeDefinitions
QNodeDefinition[] getAllQNodeDefinitions()
-
getAllQPropertyDefinitions
QPropertyDefinition[] getAllQPropertyDefinitions()
-
getAutoCreateQNodeDefinitions
QNodeDefinition[] getAutoCreateQNodeDefinitions()
-
getAutoCreateQPropertyDefinitions
QPropertyDefinition[] getAutoCreateQPropertyDefinitions()
-
getMandatoryQNodeDefinitions
QNodeDefinition[] getMandatoryQNodeDefinitions()
-
getMandatoryQPropertyDefinitions
QPropertyDefinition[] getMandatoryQPropertyDefinitions()
-
getNamedQNodeDefinitions
QNodeDefinition[] getNamedQNodeDefinitions(Name name)
-
getNamedQPropertyDefinitions
QPropertyDefinition[] getNamedQPropertyDefinitions(Name name)
-
getUnnamedQNodeDefinitions
QNodeDefinition[] getUnnamedQNodeDefinitions()
-
getUnnamedQPropertyDefinitions
QPropertyDefinition[] getUnnamedQPropertyDefinitions()
-
checkAddNodeConstraints
void checkAddNodeConstraints(Name name, ItemDefinitionProvider definitionProvider) throws ConstraintViolationException
- Parameters:
name-definitionProvider-- Throws:
ConstraintViolationException
-
checkAddNodeConstraints
void checkAddNodeConstraints(Name name, QNodeTypeDefinition nodeTypeDefinition, ItemDefinitionProvider definitionProvider) throws ConstraintViolationException, NoSuchNodeTypeException
- Parameters:
name-nodeTypeDefinition-definitionProvider-- Throws:
ConstraintViolationException- @throws NoSuchNodeTypeExceptionNoSuchNodeTypeException
-
checkRemoveItemConstraints
@Deprecated void checkRemoveItemConstraints(Name name) throws ConstraintViolationException
Deprecated.UsehasRemoveNodeConstraint(Name)andhasRemovePropertyConstraint(Name)respectively.- Parameters:
name-- Throws:
ConstraintViolationException
-
hasRemoveNodeConstraint
boolean hasRemoveNodeConstraint(Name nodeName)
Returnstrueif a single node definition matching the specifiednodeNameis either mandatory or protected.- Parameters:
nodeName-- Returns:
trueif a single node definition matching the specifiednodeNameis either mandatory or protected.
-
hasRemovePropertyConstraint
boolean hasRemovePropertyConstraint(Name propertyName)
Returnstrueif a single property definition matching the specifiedpropertyNameis either mandatory or protected.- Parameters:
propertyName-- Returns:
trueif a single property definition matching the specifiedpropertyNameis either mandatory or protected.
-
-