Interface EffectiveNodeType
-
- All Known Implementing Classes:
EffectiveNodeTypeImpl
public interface EffectiveNodeType
EffectiveNodeType
...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
checkAddNodeConstraints(Name name, ItemDefinitionProvider definitionProvider)
void
checkAddNodeConstraints(Name name, QNodeTypeDefinition nodeTypeDefinition, ItemDefinitionProvider definitionProvider)
void
checkRemoveItemConstraints(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()
boolean
hasRemoveNodeConstraint(Name nodeName)
Returnstrue
if a single node definition matching the specifiednodeName
is either mandatory or protected.boolean
hasRemovePropertyConstraint(Name propertyName)
Returnstrue
if a single property definition matching the specifiedpropertyName
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.
-
-
-
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:
true
if 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:
true
if 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:
true
if 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
void checkRemoveItemConstraints(Name name) throws ConstraintViolationException
Deprecated.UsehasRemoveNodeConstraint(Name)
andhasRemovePropertyConstraint(Name)
respectively.- Parameters:
name
-- Throws:
ConstraintViolationException
-
hasRemoveNodeConstraint
boolean hasRemoveNodeConstraint(Name nodeName)
Returnstrue
if a single node definition matching the specifiednodeName
is either mandatory or protected.- Parameters:
nodeName
-- Returns:
true
if a single node definition matching the specifiednodeName
is either mandatory or protected.
-
hasRemovePropertyConstraint
boolean hasRemovePropertyConstraint(Name propertyName)
Returnstrue
if a single property definition matching the specifiedpropertyName
is either mandatory or protected.- Parameters:
propertyName
-- Returns:
true
if a single property definition matching the specifiedpropertyName
is either mandatory or protected.
-
-