Class AbstractNodeType
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.nodetype.AbstractNodeType
-
- All Implemented Interfaces:
javax.jcr.nodetype.NodeType,javax.jcr.nodetype.NodeTypeDefinition
public abstract class AbstractNodeType extends java.lang.Object implements javax.jcr.nodetype.NodeTypeAbstractNodeType...
-
-
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
Constructors Constructor Description AbstractNodeType(QNodeTypeDefinition ntd, AbstractNodeTypeManager ntMgr, NamePathResolver resolver)Create a newAbstractNodeType.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.jcr.nodetype.NodeDefinition[]getDeclaredChildNodeDefinitions()javax.jcr.nodetype.PropertyDefinition[]getDeclaredPropertyDefinitions()javax.jcr.nodetype.NodeTypeIteratorgetDeclaredSubtypes()java.lang.String[]getDeclaredSupertypeNames()javax.jcr.nodetype.NodeType[]getDeclaredSupertypes()QNodeTypeDefinitiongetDefinition()Returns the node type definition.java.lang.StringgetName()java.lang.StringgetPrimaryItemName()javax.jcr.nodetype.NodeTypeIteratorgetSubtypes()javax.jcr.nodetype.NodeTypeIteratorgetSubtypes(boolean directOnly)Returns the node types derived from this node type.booleanisAbstract()booleanisMixin()booleanisNodeType(java.lang.String nodeTypeName)abstract 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.booleanisQueryable()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AbstractNodeType
public AbstractNodeType(QNodeTypeDefinition ntd, AbstractNodeTypeManager ntMgr, NamePathResolver resolver)
Create a newAbstractNodeType.- Parameters:
ntd- the underlying node type definition.ntMgr- the node type manager.resolver- the name/path resolver of the session that created this node type instance.
-
-
Method Detail
-
getDefinition
public QNodeTypeDefinition getDefinition()
Returns the node type definition.- Returns:
- the internal node type definition.
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejavax.jcr.nodetype.NodeTypeDefinition
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfacejavax.jcr.nodetype.NodeTypeDefinition
-
isMixin
public boolean isMixin()
- Specified by:
isMixinin interfacejavax.jcr.nodetype.NodeTypeDefinition
-
isQueryable
public boolean isQueryable()
- Specified by:
isQueryablein interfacejavax.jcr.nodetype.NodeTypeDefinition
-
getDeclaredSupertypeNames
public java.lang.String[] getDeclaredSupertypeNames()
- Specified by:
getDeclaredSupertypeNamesin interfacejavax.jcr.nodetype.NodeTypeDefinition
-
getDeclaredSupertypes
public javax.jcr.nodetype.NodeType[] getDeclaredSupertypes()
- Specified by:
getDeclaredSupertypesin interfacejavax.jcr.nodetype.NodeType
-
getDeclaredSubtypes
public javax.jcr.nodetype.NodeTypeIterator getDeclaredSubtypes()
- Specified by:
getDeclaredSubtypesin interfacejavax.jcr.nodetype.NodeType- See Also:
NodeType.getDeclaredSubtypes()
-
getSubtypes
public javax.jcr.nodetype.NodeTypeIterator getSubtypes()
- Specified by:
getSubtypesin interfacejavax.jcr.nodetype.NodeType- See Also:
NodeType.getSubtypes()
-
getDeclaredChildNodeDefinitions
public javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()
- Specified by:
getDeclaredChildNodeDefinitionsin interfacejavax.jcr.nodetype.NodeTypeDefinition
-
getPrimaryItemName
public java.lang.String getPrimaryItemName()
- Specified by:
getPrimaryItemNamein interfacejavax.jcr.nodetype.NodeTypeDefinition
-
getDeclaredPropertyDefinitions
public javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
- Specified by:
getDeclaredPropertyDefinitionsin interfacejavax.jcr.nodetype.NodeTypeDefinition- See Also:
NodeTypeDefinition.getDeclaredPropertyDefinitions()
-
isNodeType
public boolean isNodeType(java.lang.String nodeTypeName)
- Specified by:
isNodeTypein interfacejavax.jcr.nodetype.NodeType
-
isNodeType
public abstract 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.- 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.
-
getSubtypes
public javax.jcr.nodetype.NodeTypeIterator getSubtypes(boolean directOnly)
Returns the node types derived from this node type.- Parameters:
directOnly- iftrueonly direct subtypes will be considered- Returns:
- an
NodeTypeIterator. - See Also:
NodeType.getSubtypes(),NodeType.getDeclaredSubtypes()
-
-