@Immutable public class NodeType extends Object implements javax.jcr.nodetype.NodeType
NodeType for the ModeShape client.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| Modifier | Constructor and Description |
|---|---|
protected |
NodeType(org.codehaus.jettison.json.JSONObject json,
NodeTypes nodeTypes) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ChildNodeDefinition> |
allChildNodeDefinitions() |
protected Collection<PropertyDefinition> |
allPropertyDefinitions() |
protected Set<String> |
allSuperTypeNames() |
protected List<NodeType> |
allSuperTypes() |
boolean |
canAddChildNode(String childNodeName) |
boolean |
canAddChildNode(String childNodeName,
String nodeTypeName) |
boolean |
canRemoveItem(String itemName) |
boolean |
canRemoveNode(String nodeName) |
boolean |
canRemoveProperty(String propertyName) |
boolean |
canSetProperty(String propertyName,
javax.jcr.Value value) |
boolean |
canSetProperty(String propertyName,
javax.jcr.Value[] values) |
protected Collection<ChildNodeDefinition> |
declaredChildNodeDefinitions() |
protected Collection<PropertyDefinition> |
declaredPropertyDefinitions() |
boolean |
equals(Object obj) |
javax.jcr.nodetype.NodeDefinition[] |
getChildNodeDefinitions() |
javax.jcr.nodetype.NodeDefinition[] |
getDeclaredChildNodeDefinitions() |
javax.jcr.nodetype.PropertyDefinition[] |
getDeclaredPropertyDefinitions() |
javax.jcr.nodetype.NodeTypeIterator |
getDeclaredSubtypes() |
String[] |
getDeclaredSupertypeNames() |
javax.jcr.nodetype.NodeType[] |
getDeclaredSupertypes() |
String |
getName() |
String |
getPrimaryItemName() |
protected String |
getPrimaryType(String key,
org.codehaus.jettison.json.JSONObject child) |
javax.jcr.nodetype.PropertyDefinition[] |
getPropertyDefinitions() |
javax.jcr.nodetype.NodeTypeIterator |
getSubtypes() |
javax.jcr.nodetype.NodeType[] |
getSupertypes() |
int |
hashCode() |
boolean |
hasOrderableChildNodes() |
boolean |
isAbstract() |
boolean |
isMixin() |
boolean |
isNodeType(String nodeTypeName) |
boolean |
isQueryable() |
String |
toString() |
public String getName()
getName in interface javax.jcr.nodetype.NodeTypeDefinitionpublic javax.jcr.nodetype.NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes in interface javax.jcr.nodetype.NodeTypepublic javax.jcr.nodetype.NodeType[] getSupertypes()
getSupertypes in interface javax.jcr.nodetype.NodeTypepublic String[] getDeclaredSupertypeNames()
getDeclaredSupertypeNames in interface javax.jcr.nodetype.NodeTypeDefinitionpublic javax.jcr.nodetype.NodeTypeIterator getDeclaredSubtypes()
getDeclaredSubtypes in interface javax.jcr.nodetype.NodeTypepublic javax.jcr.nodetype.NodeTypeIterator getSubtypes()
getSubtypes in interface javax.jcr.nodetype.NodeTypeprotected List<NodeType> allSuperTypes()
protected Set<String> allSuperTypeNames()
public javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions in interface javax.jcr.nodetype.NodeTypeDefinitionpublic javax.jcr.nodetype.NodeDefinition[] getChildNodeDefinitions()
getChildNodeDefinitions in interface javax.jcr.nodetype.NodeTypeprotected Collection<ChildNodeDefinition> declaredChildNodeDefinitions()
protected Collection<ChildNodeDefinition> allChildNodeDefinitions()
public javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions in interface javax.jcr.nodetype.NodeTypeDefinitionpublic javax.jcr.nodetype.PropertyDefinition[] getPropertyDefinitions()
getPropertyDefinitions in interface javax.jcr.nodetype.NodeTypeprotected Collection<PropertyDefinition> declaredPropertyDefinitions()
protected Collection<PropertyDefinition> allPropertyDefinitions()
protected String getPrimaryType(String key, org.codehaus.jettison.json.JSONObject child)
public String getPrimaryItemName()
getPrimaryItemName in interface javax.jcr.nodetype.NodeTypeDefinitionpublic boolean hasOrderableChildNodes()
hasOrderableChildNodes in interface javax.jcr.nodetype.NodeTypeDefinitionpublic boolean isAbstract()
isAbstract in interface javax.jcr.nodetype.NodeTypeDefinitionpublic boolean isMixin()
isMixin in interface javax.jcr.nodetype.NodeTypeDefinitionpublic boolean isQueryable()
isQueryable in interface javax.jcr.nodetype.NodeTypeDefinitionpublic boolean isNodeType(String nodeTypeName)
isNodeType 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)
canRemoveNode in interface javax.jcr.nodetype.NodeTypepublic boolean canRemoveProperty(String propertyName)
canRemoveProperty 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.NodeTypeCopyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.