public class NodeTypeImpl
extends org.apache.jackrabbit.spi.commons.nodetype.AbstractNodeType
implements javax.jcr.nodetype.NodeType, javax.jcr.nodetype.NodeTypeDefinition
NodeTypeImpl ...ntd, resolverMIX_CREATED, MIX_LANGUAGE, MIX_LAST_MODIFIED, MIX_LIFECYCLE, MIX_LOCKABLE, MIX_MIMETYPE, MIX_REFERENCEABLE, MIX_SHAREABLE, MIX_SIMPLE_VERSIONABLE, MIX_TITLE, MIX_VERSIONABLE, NT_ACTIVITY, NT_ADDRESS, NT_BASE, NT_CHILD_NODE_DEFINITION, NT_CONFIGURATION, NT_FILE, NT_FOLDER, NT_FROZEN_NODE, NT_HIERARCHY_NODE, NT_LINKED_FILE, NT_NODE_TYPE, NT_PROPERTY_DEFINITION, NT_QUERY, NT_RESOURCE, NT_UNSTRUCTURED, NT_VERSION, NT_VERSION_HISTORY, NT_VERSIONED_CHILD| Modifier and Type | Method and Description |
|---|---|
boolean |
canAddChildNode(String childNodeName) |
boolean |
canAddChildNode(String childNodeName,
String nodeTypeName) |
boolean |
canRemoveItem(String itemName) |
boolean |
canRemoveNode(String nodeName)
Returns
true if removing the child node called
nodeName is allowed by this node type. |
boolean |
canRemoveProperty(String propertyName)
Returns
true if removing the property called
propertyName is allowed by this node type. |
boolean |
canSetProperty(String propertyName,
javax.jcr.Value value) |
boolean |
canSetProperty(String propertyName,
javax.jcr.Value[] values) |
javax.jcr.nodetype.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. |
javax.jcr.nodetype.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. |
javax.jcr.nodetype.NodeDefinition[] |
getChildNodeDefinitions() |
javax.jcr.nodetype.NodeType[] |
getInheritedSupertypes()
Returns all inherited supertypes of this node type.
|
javax.jcr.nodetype.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. |
javax.jcr.nodetype.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. |
javax.jcr.nodetype.PropertyDefinition[] |
getPropertyDefinitions() |
org.apache.jackrabbit.spi.Name |
getQName()
Returns the
Name of this node type. |
javax.jcr.nodetype.NodeType[] |
getSupertypes() |
boolean |
hasOrderableChildNodes() |
boolean |
isDerivedFrom(org.apache.jackrabbit.spi.Name nodeTypeName)
Checks if this node type is directly or indirectly derived from the
specified node type.
|
boolean |
isNodeType(org.apache.jackrabbit.spi.Name nodeTypeName) |
getDeclaredChildNodeDefinitions, getDeclaredPropertyDefinitions, getDeclaredSubtypes, getDeclaredSupertypeNames, getDeclaredSupertypes, getDefinition, getName, getPrimaryItemName, getSubtypes, getSubtypes, isAbstract, isMixin, isNodeType, isQueryableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic boolean isNodeType(org.apache.jackrabbit.spi.Name nodeTypeName)
isNodeType in class org.apache.jackrabbit.spi.commons.nodetype.AbstractNodeTypepublic boolean isDerivedFrom(org.apache.jackrabbit.spi.Name nodeTypeName)
nodeTypeName - the name of a node type.public javax.jcr.nodetype.NodeDefinition[] getAutoCreatedNodeDefinitions()
ItemDefinition.isAutoCreated()
returns true.ItemDefinition.isAutoCreated()public javax.jcr.nodetype.PropertyDefinition[] getAutoCreatedPropertyDefinitions()
ItemDefinition.isAutoCreated()
returns true.ItemDefinition.isAutoCreated()public javax.jcr.nodetype.PropertyDefinition[] getMandatoryPropertyDefinitions()
ItemDefinition.isMandatory()
returns true.ItemDefinition.isMandatory()public javax.jcr.nodetype.NodeDefinition[] getMandatoryNodeDefinitions()
ItemDefinition.isMandatory()
returns true.ItemDefinition.isMandatory()public org.apache.jackrabbit.spi.Name getQName()
Name of this node type.public javax.jcr.nodetype.NodeType[] getInheritedSupertypes()
NodeType objects.getSupertypes(),
AbstractNodeType.getDeclaredSupertypes()public boolean hasOrderableChildNodes()
hasOrderableChildNodes in interface javax.jcr.nodetype.NodeTypeDefinitionpublic javax.jcr.nodetype.NodeType[] getSupertypes()
getSupertypes in interface javax.jcr.nodetype.NodeTypepublic javax.jcr.nodetype.NodeDefinition[] getChildNodeDefinitions()
getChildNodeDefinitions in interface javax.jcr.nodetype.NodeTypepublic javax.jcr.nodetype.PropertyDefinition[] getPropertyDefinitions()
getPropertyDefinitions in interface javax.jcr.nodetype.NodeTypepublic boolean canSetProperty(String propertyName, javax.jcr.Value value)
canSetProperty in interface javax.jcr.nodetype.NodeTypepublic boolean canSetProperty(String propertyName, javax.jcr.Value[] values)
canSetProperty in interface javax.jcr.nodetype.NodeTypepublic boolean canAddChildNode(String childNodeName)
canAddChildNode in interface javax.jcr.nodetype.NodeTypepublic boolean canAddChildNode(String childNodeName, String nodeTypeName)
canAddChildNode in interface javax.jcr.nodetype.NodeTypepublic boolean canRemoveItem(String itemName)
canRemoveItem in interface javax.jcr.nodetype.NodeTypepublic boolean canRemoveNode(String nodeName)
true if removing the child node called
nodeName is allowed by this node type. Returns
false otherwise.canRemoveNode in interface javax.jcr.nodetype.NodeTypenodeName - The name of the child nodepublic boolean canRemoveProperty(String propertyName)
true if removing the property called
propertyName is allowed by this node type. Returns
false otherwise.canRemoveProperty in interface javax.jcr.nodetype.NodeTypepropertyName - The name of the propertyCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.