public abstract class AbstractNodeType extends java.lang.Object implements NodeType
AbstractNodeType
...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 |
---|---|
NodeDefinition[] |
getDeclaredChildNodeDefinitions()
Returns an array containing the child node definitions actually declared
in this node type.
|
PropertyDefinition[] |
getDeclaredPropertyDefinitions()
Returns an array containing the property definitions actually declared in
this node type.
|
NodeTypeIterator |
getDeclaredSubtypes()
Returns the direct subtypes of this node type in the node type
inheritance hierarchy, that is, those which actually declared this node
type in their list of supertypes.
|
java.lang.String[] |
getDeclaredSupertypeNames()
Returns the names of the supertypes actually declared in this node type.
|
NodeType[] |
getDeclaredSupertypes()
Returns the direct supertypes of this node type in the node type
inheritance hierarchy, that is, those actually declared in this node
type.
|
QNodeTypeDefinition |
getDefinition()
Returns the node type definition.
|
java.lang.String |
getName()
Returns the name of the node type.
|
java.lang.String |
getPrimaryItemName()
Returns the name of the primary item (one of the child items of the nodes
of this node type).
|
NodeTypeIterator |
getSubtypes()
Returns all subtypes of this node type in the node type inheritance
hierarchy.
|
NodeTypeIterator |
getSubtypes(boolean directOnly)
Returns the node types derived from this node type.
|
boolean |
isAbstract()
Returns
true if this is an abstract node type; returns
false otherwise. |
boolean |
isMixin()
Returns
true if this is a mixin type; returns
false if it is primary. |
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)
Returns
true if the name of this node type or any of
its direct or indirect supertypes is equal to nodeTypeName ,
otherwise returns false . |
boolean |
isQueryable()
Returns
true if the node type is queryable, meaning that the
available-query-operators, full-text-searchable and query-orderable
attributes of its property definitions take effect. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canAddChildNode, canAddChildNode, canRemoveItem, canRemoveNode, canRemoveProperty, canSetProperty, canSetProperty, getChildNodeDefinitions, getPropertyDefinitions, getSupertypes
hasOrderableChildNodes
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()
In implementations that support node type registration, if this
NodeTypeDefinition
object is actually a newly-created empty
NodeTypeTemplate
, then this method will return
null
.
getName
in interface NodeTypeDefinition
String
public boolean isAbstract()
true
if this is an abstract node type; returns
false
otherwise.
An abstract node type is one that cannot be assigned as the primary or mixin type of a node but can be used in the definitions of other node types as a superclass.
In implementations that support node type registration, if this
NodeTypeDefinition
object is actually a newly-created empty
NodeTypeTemplate
, then this method will return
false
.
isAbstract
in interface NodeTypeDefinition
boolean
public boolean isMixin()
true
if this is a mixin type; returns
false
if it is primary.
In implementations that support node type registration, if this
NodeTypeDefinition
object is actually a newly-created empty
NodeTypeTemplate
, then this method will return
false
.
isMixin
in interface NodeTypeDefinition
boolean
public boolean isQueryable()
true
if the node type is queryable, meaning that the
available-query-operators, full-text-searchable and query-orderable
attributes of its property definitions take effect. See PropertyDefinition.getAvailableQueryOperators()
,
PropertyDefinition.isFullTextSearchable()
and
PropertyDefinition.isQueryOrderable()
.
If a node type is declared non-queryable then these attributes of its property definitions have no effect.
In implementations that support node type registration, if this
NodeTypeDefinition
object is actually a newly-created empty
NodeTypeTemplate
, then this method will return
an implementation-determined defalt value.
isQueryable
in interface NodeTypeDefinition
boolean
public java.lang.String[] getDeclaredSupertypeNames()
In implementations that support node type registration, if this
NodeTypeDefinition
object is actually a newly-created empty
NodeTypeTemplate
, then this method will return an empty array.
getDeclaredSupertypeNames
in interface NodeTypeDefinition
String
spublic NodeType[] getDeclaredSupertypes()
getDeclaredSupertypes
in interface NodeType
NodeType
objects.NodeType.getSupertypes()
public NodeTypeIterator getDeclaredSubtypes()
NodeType
getDeclaredSubtypes
in interface NodeType
NodeTypeIterator
.NodeType.getDeclaredSubtypes()
public NodeTypeIterator getSubtypes()
NodeType
getSubtypes
in interface NodeType
NodeTypeIterator
.NodeType.getSubtypes()
public NodeDefinition[] getDeclaredChildNodeDefinitions()
In implementations that support node type registration, if this
NodeTypeDefinition
object is actually a newly-created empty
NodeTypeTemplate
, then this method will return
null
.
getDeclaredChildNodeDefinitions
in interface NodeTypeDefinition
NodeDefinition
spublic java.lang.String getPrimaryItemName()
null
. This indicator is used by the method
Node.getPrimaryItem()
.
In implementations that support node type registration, if this
NodeTypeDefinition
object is actually a newly-created empty
NodeTypeTemplate
, then this method will return
null
.
getPrimaryItemName
in interface NodeTypeDefinition
String
public PropertyDefinition[] getDeclaredPropertyDefinitions()
NodeTypeDefinition
In implementations that support node type registration, if this
NodeTypeDefinition
object is actually a newly-created empty
NodeTypeTemplate
, then this method will return
null
.
getDeclaredPropertyDefinitions
in interface NodeTypeDefinition
PropertyDefinition
sNodeTypeDefinition.getDeclaredPropertyDefinitions()
public boolean isNodeType(java.lang.String nodeTypeName)
true
if the name of this node type or any of
its direct or indirect supertypes is equal to nodeTypeName
,
otherwise returns false
.isNodeType
in interface NodeType
nodeTypeName
- the name of a node type.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 - 2019 Adobe. All Rights Reserved