public class NodeTypeDefinitionImpl extends Object implements NodeTypeDefinition
NodeTypeDefinition
interface.
All method calls are delegated to the wrapped QNodeTypeDefinition
,
performing the translation from Name
s to JCR names
(and vice versa) where necessary.Constructor and Description |
---|
NodeTypeDefinitionImpl(QNodeTypeDefinition ntd,
NamePathResolver resolver,
ValueFactory valueFactory) |
Modifier and Type | Method and Description |
---|---|
NodeDefinition[] |
getDeclaredChildNodeDefinitions() |
PropertyDefinition[] |
getDeclaredPropertyDefinitions() |
String[] |
getDeclaredSupertypeNames()
Returns the names of the supertypes actually declared in this node type.
|
String |
getName() |
String |
getPrimaryItemName() |
boolean |
hasOrderableChildNodes() |
boolean |
isAbstract()
Returns
true if this is an abstract node type; returns
false otherwise. |
boolean |
isMixin() |
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. |
public NodeTypeDefinitionImpl(QNodeTypeDefinition ntd, NamePathResolver resolver, ValueFactory valueFactory)
public String getName()
getName
in interface NodeTypeDefinition
public 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 array
containing a single string indicating the node type
nt:base
.
getDeclaredSupertypeNames
in interface NodeTypeDefinition
String
spublic 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 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.
isQueryable
in interface NodeTypeDefinition
boolean
public boolean isMixin()
isMixin
in interface NodeTypeDefinition
public boolean hasOrderableChildNodes()
hasOrderableChildNodes
in interface NodeTypeDefinition
public String getPrimaryItemName()
getPrimaryItemName
in interface NodeTypeDefinition
public NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions
in interface NodeTypeDefinition
public PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions
in interface NodeTypeDefinition
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.