org.apache.jackrabbit.jcr2spi.nodetype
Interface EffectiveNodeType

All Known Implementing Classes:
EffectiveNodeTypeImpl

public interface EffectiveNodeType

EffectiveNodeType...


Method Summary
 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.
 

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, otherwise false

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, otherwise false

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, otherwise false

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 NoSuchNodeTypeException
Throws:
ConstraintViolationException
NoSuchNodeTypeException

checkRemoveItemConstraints

void checkRemoveItemConstraints(Name name)
                                throws ConstraintViolationException
Deprecated. Use hasRemoveNodeConstraint(Name) and hasRemovePropertyConstraint(Name) respectively.

Parameters:
name -
Throws:
ConstraintViolationException

hasRemoveNodeConstraint

boolean hasRemoveNodeConstraint(Name nodeName)
Returns true if a single node definition matching the specified nodeName is either mandatory or protected.

Parameters:
nodeName -
Returns:
true if a single node definition matching the specified nodeName is either mandatory or protected.

hasRemovePropertyConstraint

boolean hasRemovePropertyConstraint(Name propertyName)
Returns true if a single property definition matching the specified propertyName is either mandatory or protected.

Parameters:
propertyName -
Returns:
true if a single property definition matching the specified propertyName is either mandatory or protected.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.