@Immutable public class NodeType extends Object implements IModeShapeObject, NodeType
| Modifier and Type | Class and Description |
|---|---|
protected static class |
NodeType.NodeTypes |
MIX_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| Constructor and Description |
|---|
NodeType(String name,
boolean isMixin,
boolean isAbstract,
List<String> superTypes,
List<PropertyDefinition> propertyDefinitions,
List<ChildNodeDefinition> childNodeDefinitions,
String primaryItemName,
boolean hasOrderableChildNodes,
boolean isQueryable,
Map<String,NodeType> nodeTypes)
Constructs a new instance.
|
public NodeType(String name, boolean isMixin, boolean isAbstract, List<String> superTypes, List<PropertyDefinition> propertyDefinitions, List<ChildNodeDefinition> childNodeDefinitions, String primaryItemName, boolean hasOrderableChildNodes, boolean isQueryable, Map<String,NodeType> nodeTypes)
name - the node type name; may not be nullisMixin - true if this node type is a mixin, or false otherwiseisAbstract - true if this node type is an abstract node type, or false otherwisesuperTypes - the names of the declared supertypes for this node type; may be null or empty if there are nonepropertyDefinitions - the property definitions declared on this node type; may be null or empty if there are nonechildNodeDefinitions - the child node definitions declared on this node type; may be null or empty if there are noneprimaryItemName - the name of the primary child item; may be null or emptyhasOrderableChildNodes - true if this node type's children are orderable, or false otherwiseisQueryable - true if this node type can be queried, or false otherwisenodeTypes - the map of node types keyed by their name; may be null only if no node types will be found when neededIllegalArgumentException - if the name is nullpublic String getName()
getName in interface NodeTypeDefinitiongetName in interface IModeShapeObjectnull)IModeShapeObject.getName()public NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes in interface NodeTypeNodeType.getDeclaredSupertypes()public NodeType[] getSupertypes()
getSupertypes in interface NodeTypeNodeType.getSupertypes()public String[] getDeclaredSupertypeNames()
getDeclaredSupertypeNames in interface NodeTypeDefinitionNodeTypeDefinition.getDeclaredSupertypeNames()public NodeTypeIterator getDeclaredSubtypes()
getDeclaredSubtypes in interface NodeTypeNodeType.getDeclaredSubtypes()public NodeTypeIterator getSubtypes()
getSubtypes in interface NodeTypeNodeType.getSubtypes()public NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions in interface NodeTypeDefinitionNodeTypeDefinition.getDeclaredChildNodeDefinitions()public NodeDefinition[] getChildNodeDefinitions()
getChildNodeDefinitions in interface NodeTypeNodeType.getChildNodeDefinitions()protected Collection<ChildNodeDefinition> declaredChildNodeDefinitions()
protected Collection<ChildNodeDefinition> allChildNodeDefinitions()
public PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions in interface NodeTypeDefinitionNodeTypeDefinition.getDeclaredPropertyDefinitions()public PropertyDefinition[] getPropertyDefinitions()
getPropertyDefinitions in interface NodeTypeNodeType.getPropertyDefinitions()protected Collection<PropertyDefinition> declaredPropertyDefinitions()
protected Collection<PropertyDefinition> allPropertyDefinitions()
public String getPrimaryItemName()
getPrimaryItemName in interface NodeTypeDefinitionNodeTypeDefinition.getPrimaryItemName()public boolean hasOrderableChildNodes()
hasOrderableChildNodes in interface NodeTypeDefinitionNodeTypeDefinition.hasOrderableChildNodes()public boolean isAbstract()
isAbstract in interface NodeTypeDefinitionNodeTypeDefinition.isAbstract()public boolean isMixin()
isMixin in interface NodeTypeDefinitionNodeTypeDefinition.isMixin()public boolean isQueryable()
isQueryable in interface NodeTypeDefinitionNodeTypeDefinition.isQueryable()public boolean isNodeType(String nodeTypeName)
isNodeType in interface NodeTypeNodeType.isNodeType(java.lang.String)public String getShortDescription()
getShortDescription in interface IModeShapeObjectnull)IModeShapeObject.getShortDescription()public boolean canAddChildNode(String childNodeName)
This implementation always returns false.
canAddChildNode in interface NodeTypeNodeType.canAddChildNode(java.lang.String)public boolean canAddChildNode(String childNodeName, String nodeTypeName)
canAddChildNode in interface NodeTypeNodeType.canAddChildNode(java.lang.String, java.lang.String)public boolean canRemoveItem(String itemName)
This implementation always returns false.
canRemoveItem in interface NodeTypeNodeType.canRemoveItem(java.lang.String)public boolean canRemoveNode(String nodeName)
This implementation always returns false.
canRemoveNode in interface NodeTypeNodeType.canRemoveNode(java.lang.String)public boolean canRemoveProperty(String propertyName)
This implementation always returns false.
canRemoveProperty in interface NodeTypeNodeType.canRemoveProperty(java.lang.String)public boolean canSetProperty(String propertyName, Value value)
This implementation always returns false.
canSetProperty in interface NodeTypeNodeType.canSetProperty(java.lang.String, javax.jcr.Value)public boolean canSetProperty(String propertyName, Value[] values)
This implementation always returns false.
canSetProperty in interface NodeTypeNodeType.canSetProperty(java.lang.String, javax.jcr.Value[])public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.