Class NodeTypeImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.nodetype.AbstractNodeType
-
- org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeImpl
-
- All Implemented Interfaces:
NodeType,NodeTypeDefinition
public class NodeTypeImpl extends AbstractNodeType implements NodeTypeDefinition
NodeTypeImpl...
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.spi.commons.nodetype.AbstractNodeType
ntd, resolver
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAddChildNode(String childNodeName)booleancanAddChildNode(String childNodeName, String nodeTypeName)booleancanRemoveItem(String itemName)booleancanRemoveNode(String nodeName)booleancanRemoveProperty(String propertyName)booleancanSetProperty(String propertyName, Value value)booleancanSetProperty(String propertyName, Value[] values)NodeDefinition[]getChildNodeDefinitions()PropertyDefinition[]getPropertyDefinitions()NodeType[]getSupertypes()booleanhasOrderableChildNodes()booleanisNodeType(Name nodeTypeName)Test if this nodetype equals or is directly or indirectly derived from the node type with the specifiednodeTypeName, without checking of a node type of that name really exists.-
Methods inherited from class org.apache.jackrabbit.spi.commons.nodetype.AbstractNodeType
getDeclaredChildNodeDefinitions, getDeclaredPropertyDefinitions, getDeclaredSubtypes, getDeclaredSupertypeNames, getDeclaredSupertypes, getDefinition, getName, getPrimaryItemName, getSubtypes, getSubtypes, isAbstract, isMixin, isNodeType, isQueryable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.nodetype.NodeTypeDefinition
getDeclaredChildNodeDefinitions, getDeclaredPropertyDefinitions, getDeclaredSupertypeNames, getName, getPrimaryItemName, isAbstract, isMixin, isQueryable
-
-
-
-
Method Detail
-
isNodeType
public boolean isNodeType(Name nodeTypeName)
Test if this nodetype equals or is directly or indirectly derived from the node type with the specifiednodeTypeName, without checking of a node type of that name really exists.- Specified by:
isNodeTypein classAbstractNodeType- Parameters:
nodeTypeName- A node type name.- Returns:
- true if this node type represents the type with the given
nodeTypeNameor if it is directly or indirectly derived from it; otherwisefalse. If no node type exists with the specified name this method will also returnfalse.
-
hasOrderableChildNodes
public boolean hasOrderableChildNodes()
- Specified by:
hasOrderableChildNodesin interfaceNodeTypeDefinition- See Also:
NodeTypeDefinition.hasOrderableChildNodes()
-
getSupertypes
public NodeType[] getSupertypes()
- Specified by:
getSupertypesin interfaceNodeType- See Also:
NodeType.getSupertypes()
-
getChildNodeDefinitions
public NodeDefinition[] getChildNodeDefinitions()
- Specified by:
getChildNodeDefinitionsin interfaceNodeType- See Also:
NodeType.getChildNodeDefinitions()
-
getPropertyDefinitions
public PropertyDefinition[] getPropertyDefinitions()
- Specified by:
getPropertyDefinitionsin interfaceNodeType- See Also:
NodeType.getPropertyDefinitions()
-
canSetProperty
public boolean canSetProperty(String propertyName, Value value)
- Specified by:
canSetPropertyin interfaceNodeType- See Also:
NodeType.canSetProperty(String, Value)
-
canSetProperty
public boolean canSetProperty(String propertyName, Value[] values)
- Specified by:
canSetPropertyin interfaceNodeType- See Also:
NodeType.canSetProperty(String, Value[])
-
canAddChildNode
public boolean canAddChildNode(String childNodeName)
- Specified by:
canAddChildNodein interfaceNodeType- See Also:
NodeType.canAddChildNode(String)
-
canAddChildNode
public boolean canAddChildNode(String childNodeName, String nodeTypeName)
- Specified by:
canAddChildNodein interfaceNodeType- See Also:
NodeType.canAddChildNode(String, String)
-
canRemoveItem
public boolean canRemoveItem(String itemName)
- Specified by:
canRemoveItemin interfaceNodeType- See Also:
NodeType.canRemoveItem(String)
-
canRemoveNode
public boolean canRemoveNode(String nodeName)
- Specified by:
canRemoveNodein interfaceNodeType- See Also:
NodeType.canRemoveNode(String)
-
canRemoveProperty
public boolean canRemoveProperty(String propertyName)
- Specified by:
canRemovePropertyin interfaceNodeType- See Also:
NodeType.canRemoveProperty(String)
-
-