@Immutable @Deprecated public class NodeType extends Object implements IModeShapeObject, NodeType
Modifier and Type | Class and Description |
---|---|
protected static class |
NodeType.NodeTypes
Deprecated.
|
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)
Deprecated.
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Collection<ChildNodeDefinition> |
allChildNodeDefinitions()
Deprecated.
|
protected Collection<PropertyDefinition> |
allPropertyDefinitions()
Deprecated.
|
protected Set<String> |
allSuperTypeNames()
Deprecated.
|
protected List<NodeType> |
allSuperTypes()
Deprecated.
|
boolean |
canAddChildNode(String childNodeName)
Deprecated.
This implementation always returns false.
|
boolean |
canAddChildNode(String childNodeName,
String nodeTypeName)
Deprecated.
|
boolean |
canRemoveItem(String itemName)
Deprecated.
This implementation always returns false.
|
boolean |
canRemoveNode(String nodeName)
Deprecated.
This implementation always returns false.
|
boolean |
canRemoveProperty(String propertyName)
Deprecated.
This implementation always returns false.
|
boolean |
canSetProperty(String propertyName,
Value value)
Deprecated.
This implementation always returns false.
|
boolean |
canSetProperty(String propertyName,
Value[] values)
Deprecated.
This implementation always returns false.
|
protected Collection<ChildNodeDefinition> |
declaredChildNodeDefinitions()
Deprecated.
|
protected Collection<PropertyDefinition> |
declaredPropertyDefinitions()
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
NodeDefinition[] |
getChildNodeDefinitions()
Deprecated.
|
NodeDefinition[] |
getDeclaredChildNodeDefinitions()
Deprecated.
|
PropertyDefinition[] |
getDeclaredPropertyDefinitions()
Deprecated.
|
NodeTypeIterator |
getDeclaredSubtypes()
Deprecated.
|
String[] |
getDeclaredSupertypeNames()
Deprecated.
|
NodeType[] |
getDeclaredSupertypes()
Deprecated.
|
String |
getName()
Deprecated.
|
String |
getPrimaryItemName()
Deprecated.
|
PropertyDefinition[] |
getPropertyDefinitions()
Deprecated.
|
String |
getShortDescription()
Deprecated.
|
NodeTypeIterator |
getSubtypes()
Deprecated.
|
NodeType[] |
getSupertypes()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
hasOrderableChildNodes()
Deprecated.
|
boolean |
isAbstract()
Deprecated.
|
boolean |
isMixin()
Deprecated.
|
boolean |
isNodeType(String nodeTypeName)
Deprecated.
|
boolean |
isQueryable()
Deprecated.
|
String |
toString()
Deprecated.
|
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 NodeTypeDefinition
getName
in interface IModeShapeObject
null
)IModeShapeObject.getName()
public NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes
in interface NodeType
NodeType.getDeclaredSupertypes()
public NodeType[] getSupertypes()
getSupertypes
in interface NodeType
NodeType.getSupertypes()
public String[] getDeclaredSupertypeNames()
getDeclaredSupertypeNames
in interface NodeTypeDefinition
NodeTypeDefinition.getDeclaredSupertypeNames()
public NodeTypeIterator getDeclaredSubtypes()
getDeclaredSubtypes
in interface NodeType
NodeType.getDeclaredSubtypes()
public NodeTypeIterator getSubtypes()
getSubtypes
in interface NodeType
NodeType.getSubtypes()
public NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions
in interface NodeTypeDefinition
NodeTypeDefinition.getDeclaredChildNodeDefinitions()
public NodeDefinition[] getChildNodeDefinitions()
getChildNodeDefinitions
in interface NodeType
NodeType.getChildNodeDefinitions()
protected Collection<ChildNodeDefinition> declaredChildNodeDefinitions()
protected Collection<ChildNodeDefinition> allChildNodeDefinitions()
public PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions
in interface NodeTypeDefinition
NodeTypeDefinition.getDeclaredPropertyDefinitions()
public PropertyDefinition[] getPropertyDefinitions()
getPropertyDefinitions
in interface NodeType
NodeType.getPropertyDefinitions()
protected Collection<PropertyDefinition> declaredPropertyDefinitions()
protected Collection<PropertyDefinition> allPropertyDefinitions()
public String getPrimaryItemName()
getPrimaryItemName
in interface NodeTypeDefinition
NodeTypeDefinition.getPrimaryItemName()
public boolean hasOrderableChildNodes()
hasOrderableChildNodes
in interface NodeTypeDefinition
NodeTypeDefinition.hasOrderableChildNodes()
public boolean isAbstract()
isAbstract
in interface NodeTypeDefinition
NodeTypeDefinition.isAbstract()
public boolean isMixin()
isMixin
in interface NodeTypeDefinition
NodeTypeDefinition.isMixin()
public boolean isQueryable()
isQueryable
in interface NodeTypeDefinition
NodeTypeDefinition.isQueryable()
public boolean isNodeType(String nodeTypeName)
isNodeType
in interface NodeType
NodeType.isNodeType(java.lang.String)
public String getShortDescription()
getShortDescription
in interface IModeShapeObject
null
)IModeShapeObject.getShortDescription()
public boolean canAddChildNode(String childNodeName)
This implementation always returns false.
canAddChildNode
in interface NodeType
NodeType.canAddChildNode(java.lang.String)
public boolean canAddChildNode(String childNodeName, String nodeTypeName)
canAddChildNode
in interface NodeType
NodeType.canAddChildNode(java.lang.String, java.lang.String)
public boolean canRemoveItem(String itemName)
This implementation always returns false.
canRemoveItem
in interface NodeType
NodeType.canRemoveItem(java.lang.String)
public boolean canRemoveNode(String nodeName)
This implementation always returns false.
canRemoveNode
in interface NodeType
NodeType.canRemoveNode(java.lang.String)
public boolean canRemoveProperty(String propertyName)
This implementation always returns false.
canRemoveProperty
in interface NodeType
NodeType.canRemoveProperty(java.lang.String)
public boolean canSetProperty(String propertyName, Value value)
This implementation always returns false.
canSetProperty
in interface NodeType
NodeType.canSetProperty(java.lang.String, javax.jcr.Value)
public boolean canSetProperty(String propertyName, Value[] values)
This implementation always returns false.
canSetProperty
in interface NodeType
NodeType.canSetProperty(java.lang.String, javax.jcr.Value[])
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.