public abstract class AbstractNodeType extends Object implements javax.jcr.nodetype.NodeType
AbstractNodeType...| Modifier and Type | Field and Description |
|---|---|
protected QNodeTypeDefinition |
ntd |
protected AbstractNodeTypeManager |
ntMgr |
protected NamePathResolver |
resolver |
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 |
|---|
AbstractNodeType(QNodeTypeDefinition ntd,
AbstractNodeTypeManager ntMgr,
NamePathResolver resolver)
Create a new
AbstractNodeType. |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.nodetype.NodeDefinition[] |
getDeclaredChildNodeDefinitions() |
javax.jcr.nodetype.PropertyDefinition[] |
getDeclaredPropertyDefinitions() |
javax.jcr.nodetype.NodeTypeIterator |
getDeclaredSubtypes() |
String[] |
getDeclaredSupertypeNames() |
javax.jcr.nodetype.NodeType[] |
getDeclaredSupertypes() |
QNodeTypeDefinition |
getDefinition()
Returns the node type definition.
|
String |
getName() |
String |
getPrimaryItemName() |
javax.jcr.nodetype.NodeTypeIterator |
getSubtypes() |
javax.jcr.nodetype.NodeTypeIterator |
getSubtypes(boolean directOnly)
Returns the node types derived from this node type.
|
boolean |
isAbstract() |
boolean |
isMixin() |
abstract boolean |
isNodeType(Name nodeTypeName)
Test if this nodetype equals or is directly or indirectly derived from
the node type with the specified
nodeTypeName, without
checking of a node type of that name really exists. |
boolean |
isNodeType(String nodeTypeName) |
boolean |
isQueryable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final AbstractNodeTypeManager ntMgr
protected final QNodeTypeDefinition ntd
protected final NamePathResolver resolver
public AbstractNodeType(QNodeTypeDefinition ntd, AbstractNodeTypeManager ntMgr, NamePathResolver resolver)
AbstractNodeType.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.public QNodeTypeDefinition getDefinition()
public String getName()
getName 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 String[] getDeclaredSupertypeNames()
getDeclaredSupertypeNames in interface javax.jcr.nodetype.NodeTypeDefinitionpublic javax.jcr.nodetype.NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes in interface javax.jcr.nodetype.NodeTypepublic javax.jcr.nodetype.NodeTypeIterator getDeclaredSubtypes()
getDeclaredSubtypes in interface javax.jcr.nodetype.NodeTypeNodeType.getDeclaredSubtypes()public javax.jcr.nodetype.NodeTypeIterator getSubtypes()
getSubtypes in interface javax.jcr.nodetype.NodeTypeNodeType.getSubtypes()public javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions in interface javax.jcr.nodetype.NodeTypeDefinitionpublic String getPrimaryItemName()
getPrimaryItemName in interface javax.jcr.nodetype.NodeTypeDefinitionpublic javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions in interface javax.jcr.nodetype.NodeTypeDefinitionNodeTypeDefinition.getDeclaredPropertyDefinitions()public boolean isNodeType(String nodeTypeName)
isNodeType in interface javax.jcr.nodetype.NodeTypepublic abstract boolean isNodeType(Name nodeTypeName)
nodeTypeName, without
checking of a node type of that name really exists.nodeTypeName - A node type name.nodeTypeName or if it is directly or indirectly derived
from it; otherwise false. If no node type exists with the
specified name this method will also return false.public javax.jcr.nodetype.NodeTypeIterator getSubtypes(boolean directOnly)
directOnly - if true only direct subtypes will be consideredNodeTypeIterator.NodeType.getSubtypes(),
NodeType.getDeclaredSubtypes()Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.