|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.web.jcr.rest.client.domain.NodeType
@Immutable public class NodeType
The NodeType class is the business object for a ModeShape supported node type.
Nested Class Summary | |
---|---|
protected static class |
NodeType.NodeTypes
|
Field Summary |
---|
Fields inherited from interface javax.jcr.nodetype.NodeType |
---|
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 Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 needed
IllegalArgumentException
- if the name is nullMethod Detail |
---|
public 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()
protected List<NodeType> allSuperTypes()
protected Set<String> allSuperTypeNames()
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()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |