Class NodeTypeDefinitionImpl
- java.lang.Object
-
- org.apache.jackrabbit.core.nodetype.NodeTypeDefinitionImpl
-
- All Implemented Interfaces:
NodeTypeDefinition
public class NodeTypeDefinitionImpl extends Object implements NodeTypeDefinition
This class implements theNodeTypeDefinitioninterface. All method calls are delegated to the wrappedQNodeTypeDefinition, performing the translation fromNames to JCR names (and vice versa) where necessary.
-
-
Constructor Summary
Constructors Constructor Description NodeTypeDefinitionImpl(QNodeTypeDefinition ntd, NamePathResolver resolver, ValueFactory valueFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeDefinition[]getDeclaredChildNodeDefinitions()PropertyDefinition[]getDeclaredPropertyDefinitions()String[]getDeclaredSupertypeNames()Returns the names of the supertypes actually declared in this node type.StringgetName()StringgetPrimaryItemName()booleanhasOrderableChildNodes()booleanisAbstract()Returnstrueif this is an abstract node type; returnsfalseotherwise.booleanisMixin()booleanisQueryable()Returnstrueif the node type is queryable, meaning that the available-query-operators, full-text-searchable and query-orderable attributes of its property definitions take effect.
-
-
-
Constructor Detail
-
NodeTypeDefinitionImpl
public NodeTypeDefinitionImpl(QNodeTypeDefinition ntd, NamePathResolver resolver, ValueFactory valueFactory)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceNodeTypeDefinition
-
getDeclaredSupertypeNames
public String[] getDeclaredSupertypeNames()
Returns the names of the supertypes actually declared in this node type.In implementations that support node type registration, if this
NodeTypeDefinitionobject is actually a newly-created emptyNodeTypeTemplate, then this method will return an array containing a single string indicating the node typent:base.- Specified by:
getDeclaredSupertypeNamesin interfaceNodeTypeDefinition- Returns:
- an array of
Strings - Since:
- JCR 2.0
-
isAbstract
public boolean isAbstract()
Returnstrueif this is an abstract node type; returnsfalseotherwise.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
NodeTypeDefinitionobject is actually a newly-created emptyNodeTypeTemplate, then this method will returnfalse.- Specified by:
isAbstractin interfaceNodeTypeDefinition- Returns:
- a
boolean - Since:
- JCR 2.0
-
isQueryable
public boolean isQueryable()
Returnstrueif the node type is queryable, meaning that the available-query-operators, full-text-searchable and query-orderable attributes of its property definitions take effect. SeePropertyDefinition.getAvailableQueryOperators(),PropertyDefinition.isFullTextSearchable()andPropertyDefinition.isQueryOrderable().If a node type is declared non-queryable then these attributes of its property definitions have no effect.
- Specified by:
isQueryablein interfaceNodeTypeDefinition- Returns:
- a
boolean - Since:
- JCR 2.0
-
isMixin
public boolean isMixin()
- Specified by:
isMixinin interfaceNodeTypeDefinition
-
hasOrderableChildNodes
public boolean hasOrderableChildNodes()
- Specified by:
hasOrderableChildNodesin interfaceNodeTypeDefinition
-
getPrimaryItemName
public String getPrimaryItemName()
- Specified by:
getPrimaryItemNamein interfaceNodeTypeDefinition
-
getDeclaredChildNodeDefinitions
public NodeDefinition[] getDeclaredChildNodeDefinitions()
- Specified by:
getDeclaredChildNodeDefinitionsin interfaceNodeTypeDefinition
-
getDeclaredPropertyDefinitions
public PropertyDefinition[] getDeclaredPropertyDefinitions()
- Specified by:
getDeclaredPropertyDefinitionsin interfaceNodeTypeDefinition
-
-