public class NodeTypeDefinitionImpl extends Object implements javax.jcr.nodetype.NodeTypeDefinition
NodeTypeDefinition interface.
All method calls are delegated to the wrapped QNodeTypeDefinition,
performing the translation from Names to JCR names
(and vice versa) where necessary.| Constructor and Description |
|---|
NodeTypeDefinitionImpl(org.apache.jackrabbit.spi.QNodeTypeDefinition ntd,
org.apache.jackrabbit.spi.commons.conversion.NamePathResolver resolver,
javax.jcr.ValueFactory valueFactory) |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.nodetype.NodeDefinition[] |
getDeclaredChildNodeDefinitions() |
javax.jcr.nodetype.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(org.apache.jackrabbit.spi.QNodeTypeDefinition ntd,
org.apache.jackrabbit.spi.commons.conversion.NamePathResolver resolver,
javax.jcr.ValueFactory valueFactory)
public String getName()
getName in interface javax.jcr.nodetype.NodeTypeDefinitionpublic 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 javax.jcr.nodetype.NodeTypeDefinitionStringspublic 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 javax.jcr.nodetype.NodeTypeDefinitionbooleanpublic 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 javax.jcr.nodetype.NodeTypeDefinitionbooleanpublic boolean isMixin()
isMixin in interface javax.jcr.nodetype.NodeTypeDefinitionpublic boolean hasOrderableChildNodes()
hasOrderableChildNodes in interface javax.jcr.nodetype.NodeTypeDefinitionpublic String getPrimaryItemName()
getPrimaryItemName in interface javax.jcr.nodetype.NodeTypeDefinitionpublic javax.jcr.nodetype.NodeDefinition[] getDeclaredChildNodeDefinitions()
getDeclaredChildNodeDefinitions in interface javax.jcr.nodetype.NodeTypeDefinitionpublic javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
getDeclaredPropertyDefinitions in interface javax.jcr.nodetype.NodeTypeDefinitionCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.