|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.nodetype.NodeTypeImpl
A NodeTypeImpl
...
Method Summary | |
boolean |
canAddChildNode(String childNodeName)
|
boolean |
canAddChildNode(String childNodeName,
String nodeTypeName)
|
boolean |
canRemoveItem(String itemName)
|
boolean |
canSetProperty(String propertyName,
Value value)
|
boolean |
canSetProperty(String propertyName,
Value[] values)
|
static void |
checkSetPropertyValueConstraints(PropertyDefinitionImpl def,
InternalValue[] values)
Tests if the value constraints defined in the property definition def are satisfied by the the specified values . |
NodeDefinitionImpl |
getApplicableChildNodeDefinition(QName nodeName)
Returns the applicable child node definition for a child node with the specified name. |
NodeDefinitionImpl |
getApplicableChildNodeDefinition(QName nodeName,
QName nodeTypeName)
Returns the applicable child node definition for a child node with the specified name and node type. |
PropertyDefinitionImpl |
getApplicablePropertyDefinition(QName propertyName,
int type,
boolean multiValued)
Returns the applicable property definition for a property with the specified name and type. |
NodeDefinition[] |
getAutoCreatedNodeDefinitions()
Returns an array containing only those child node definitions of this node type (including the child node definitions inherited from supertypes of this node type) where
returns true . |
PropertyDefinition[] |
getAutoCreatedPropertyDefinitions()
Returns an array containing only those property definitions of this node type (including the property definitions inherited from supertypes of this node type) where
returns true . |
NodeDefinition[] |
getChildNodeDefinitions()
|
NodeDefinition[] |
getDeclaredChildNodeDefinitions()
|
PropertyDefinition[] |
getDeclaredPropertyDefinitions()
|
NodeType[] |
getDeclaredSupertypes()
|
NodeTypeDef |
getDefinition()
Returns the definition of this node type. |
NodeType[] |
getInheritedSupertypes()
Returns all inherited supertypes of this node type. |
NodeDefinition[] |
getMandatoryNodeDefinitions()
Returns an array containing only those child node definitions of this node type (including the child node definitions inherited from supertypes of this node type) where
returns true . |
PropertyDefinition[] |
getMandatoryPropertyDefinitions()
Returns an array containing only those property definitions of this node type (including the property definitions inherited from supertypes of this node type) where
returns true . |
String |
getName()
|
String |
getPrimaryItemName()
|
PropertyDefinition[] |
getPropertyDefinitions()
|
QName |
getQName()
Returns the 'internal', i.e. |
NodeType[] |
getSupertypes()
|
boolean |
hasOrderableChildNodes()
|
boolean |
isDerivedFrom(QName nodeTypeName)
Checks if this node type is directly or indirectly derived from the specified node type. |
boolean |
isMixin()
|
boolean |
isNodeType(String nodeTypeName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public NodeDefinitionImpl getApplicableChildNodeDefinition(QName nodeName) throws RepositoryException
nodeName
-
RepositoryException
- if no applicable child node definition
could be foundpublic NodeDefinitionImpl getApplicableChildNodeDefinition(QName nodeName, QName nodeTypeName) throws RepositoryException
nodeName
- nodeTypeName
-
RepositoryException
- if no applicable child node definition
could be foundpublic PropertyDefinitionImpl getApplicablePropertyDefinition(QName propertyName, int type, boolean multiValued) throws RepositoryException
propertyName
- type
- multiValued
-
RepositoryException
- if no applicable property definition
could be foundpublic boolean isDerivedFrom(QName nodeTypeName)
nodeTypeName
-
public NodeTypeDef getDefinition()
public NodeDefinition[] getAutoCreatedNodeDefinitions()
ItemDefinition.isAutoCreated()
returns true
.
ItemDefinition.isAutoCreated()
public PropertyDefinition[] getAutoCreatedPropertyDefinitions()
ItemDefinition.isAutoCreated()
returns true
.
ItemDefinition.isAutoCreated()
public PropertyDefinition[] getMandatoryPropertyDefinitions()
ItemDefinition.isMandatory()
returns true
.
ItemDefinition.isMandatory()
public NodeDefinition[] getMandatoryNodeDefinitions()
ItemDefinition.isMandatory()
returns true
.
ItemDefinition.isMandatory()
public static void checkSetPropertyValueConstraints(PropertyDefinitionImpl def, InternalValue[] values) throws ConstraintViolationException, RepositoryException
def
are satisfied by the the specified values
.
Note that the protected flag is not checked. Also note that no
type conversions are attempted if the type of the given values does not
match the required type as specified in the given definition.
def
- The definiton of the propertyvalues
- An array of InternalValue
objects.
ConstraintViolationException
RepositoryException
public QName getQName()
public NodeType[] getInheritedSupertypes()
NodeType
objects.getSupertypes()
,
getDeclaredSupertypes()
public String getName()
getName
in interface NodeType
public String getPrimaryItemName()
getPrimaryItemName
in interface NodeType
public boolean isMixin()
isMixin
in interface NodeType
public boolean isNodeType(String nodeTypeName)
isNodeType
in interface NodeType
public boolean hasOrderableChildNodes()
hasOrderableChildNodes
in interface NodeType
public NodeType[] getSupertypes()
getSupertypes
in interface NodeType
public NodeDefinition[] getChildNodeDefinitions()
getChildNodeDefinitions
in interface NodeType
public PropertyDefinition[] getPropertyDefinitions()
getPropertyDefinitions
in interface NodeType
public NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes
in interface NodeType
public NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions
in interface NodeType
public boolean canSetProperty(String propertyName, Value value)
canSetProperty
in interface NodeType
public boolean canSetProperty(String propertyName, Value[] values)
canSetProperty
in interface NodeType
public boolean canAddChildNode(String childNodeName)
canAddChildNode
in interface NodeType
public boolean canAddChildNode(String childNodeName, String nodeTypeName)
canAddChildNode
in interface NodeType
public boolean canRemoveItem(String itemName)
canRemoveItem
in interface NodeType
public PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions
in interface NodeType
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |