public abstract class AbstractNodeType
extends java.lang.Object
AbstractNodeType
...Constructor and Description |
---|
AbstractNodeType(QNodeTypeDefinition ntd,
AbstractNodeTypeManager ntMgr,
NamePathResolver resolver)
Create a new
AbstractNodeType . |
Modifier and Type | Method and Description |
---|---|
NodeDefinition[] |
getDeclaredChildNodeDefinitions() |
PropertyDefinition[] |
getDeclaredPropertyDefinitions() |
NodeTypeIterator |
getDeclaredSubtypes() |
java.lang.String[] |
getDeclaredSupertypeNames() |
NodeType[] |
getDeclaredSupertypes() |
QNodeTypeDefinition |
getDefinition()
Returns the node type definition.
|
java.lang.String |
getName() |
java.lang.String |
getPrimaryItemName() |
NodeTypeIterator |
getSubtypes() |
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(java.lang.String nodeTypeName) |
boolean |
isQueryable() |
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 java.lang.String getName()
public boolean isAbstract()
public boolean isMixin()
public boolean isQueryable()
public java.lang.String[] getDeclaredSupertypeNames()
public NodeType[] getDeclaredSupertypes()
public NodeTypeIterator getDeclaredSubtypes()
javax.jcr.nodetype.NodeType#getDeclaredSubtypes()
public NodeTypeIterator getSubtypes()
javax.jcr.nodetype.NodeType#getSubtypes()
public NodeDefinition[] getDeclaredChildNodeDefinitions()
public java.lang.String getPrimaryItemName()
public PropertyDefinition[] getDeclaredPropertyDefinitions()
javax.jcr.nodetype.NodeTypeDefinition#getDeclaredPropertyDefinitions()
public boolean isNodeType(java.lang.String nodeTypeName)
public 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 NodeTypeIterator getSubtypes(boolean directOnly)
directOnly
- if true
only direct subtypes will be consideredNodeTypeIterator
.NodeType#getSubtypes
,
NodeType#getDeclaredSubtypes
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"