public interface QNodeTypeDefinition
QNodeTypeDefinition
is the SPI representation of a
node type
. It refers to Name
s
only and is therefore independent of session-specific namespace mappings.NodeType
Modifier and Type | Method and Description |
---|---|
QNodeDefinition[] |
getChildNodeDefs()
Returns an array containing the child node definitions.
|
Collection<Name> |
getDependencies()
Returns a collection of node type
Name s that are being
referenced by this node type definition (e.g. |
Name |
getName()
Returns the name of the node type being defined or
null if not set. |
Name |
getPrimaryItemName()
Returns the name of the primary item (one of the child items of the
node's of this node type) or
null if not set. |
QPropertyDefinition[] |
getPropertyDefs()
Returns an array containing the property definitions.
|
Name[] |
getSupertypes()
Returns an array containing the names of the supertypes.
|
Name[] |
getSupportedMixinTypes()
Returns an array containing the names of additional mixin types
supported on this node type.
|
boolean |
hasOrderableChildNodes()
Returns the value of the orderableChildNodes flag.
|
boolean |
isAbstract()
Returns
true if the definition is abstract; false otherwise. |
boolean |
isMixin()
Returns the value of the mixin flag.
|
boolean |
isQueryable()
Returns
true if the definition is queryable; false otherwise. |
Name getName()
null
if not set.null
if not set.Name[] getSupertypes()
nt:base
primary type and
an array containing just nt:base
for other primary types.
The returned array must not be modified by the application.
Name[] getSupportedMixinTypes()
The returned array must not be modified by the application.
null
when there are no known constraints.boolean isMixin()
boolean isAbstract()
true
if the definition is abstract; false
otherwise.true
if the definition is abstract; false
otherwise.boolean isQueryable()
true
if the definition is queryable; false
otherwise.true
if the definition is queryable; false
otherwise.boolean hasOrderableChildNodes()
Name getPrimaryItemName()
null
if not set.null
if not set.QPropertyDefinition[] getPropertyDefs()
QNodeDefinition[] getChildNodeDefs()
Collection<Name> getDependencies()
Name
s that are being
referenced by this node type definition (e.g. as supertypes, as
required/default primary types in child node definitions, as REFERENCE
value constraints in property definitions).
Note that self-references (e.g. a child node definition that specifies the declaring node type as the default primary type) are not considered dependencies.
Name
sCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.