org.jboss.dna.jcr.nodetype
Interface NodeTypeDefinition

All Known Subinterfaces:
NodeTypeTemplate
All Known Implementing Classes:
JcrNodeTypeTemplate

@NotThreadSafe
public interface NodeTypeDefinition

An interface for an existing node type definition, patterned after the approach in the proposed JSR-283.


Method Summary
 javax.jcr.nodetype.NodeDefinition[] getDeclaredNodeDefinitions()
          Get the array of child node definition templates for this node type
 javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
          Get the array of property definition templates for this node type.
 String[] getDeclaredSupertypes()
          Get the direct supertypes for this node type.
 String getName()
          Get the name of the node type being defined
 String getPrimaryItemName()
          Get the name of the primary item for this node type
 boolean hasOrderableChildNodes()
          Get whether this node type supports orderable child nodes.
 boolean isAbstract()
          Get whether this node type is abstract.
 boolean isMixin()
          Get whether this node type is a mixin.
 

Method Detail

getName

String getName()
Get the name of the node type being defined

Returns:
the name

getDeclaredSupertypes

String[] getDeclaredSupertypes()
Get the direct supertypes for this node type.

Returns:
the names of the direct supertypes, or an empty array if there are none

isAbstract

boolean isAbstract()
Get whether this node type is abstract.

Returns:
true if this node type is abstract, or false if it is concrete

isMixin

boolean isMixin()
Get whether this node type is a mixin.

Returns:
true if this node type is a mixin, or false if it is concrete

hasOrderableChildNodes

boolean hasOrderableChildNodes()
Get whether this node type supports orderable child nodes.

Returns:
true if this node type supports orderable child nodes, or false otherwise

getPrimaryItemName

String getPrimaryItemName()
Get the name of the primary item for this node type

Returns:
the name of the child node or property that represents the primary item for nodes that use this type, or null if there is none

getDeclaredPropertyDefinitions

javax.jcr.nodetype.PropertyDefinition[] getDeclaredPropertyDefinitions()
Get the array of property definition templates for this node type.

Returns:
the node type's list of property definitions; never null

getDeclaredNodeDefinitions

javax.jcr.nodetype.NodeDefinition[] getDeclaredNodeDefinitions()
Get the array of child node definition templates for this node type

Returns:
the node type's list of child node definitions; never null


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.