org.apache.jackrabbit.core.nodetype
Interface NodeDef

All Superinterfaces:
ItemDef
All Known Implementing Classes:
NodeDefImpl

public interface NodeDef
extends ItemDef

NodeDef is the internal representation of a node definition. It refers to QNames only and is thus isolated from session-specific namespace mappings.

See Also:
NodeDefinition

Field Summary
static NodeDef[] EMPTY_ARRAY
           
 
Fields inherited from interface org.apache.jackrabbit.core.nodetype.ItemDef
ANY_NAME
 
Method Summary
 boolean allowsSameNameSiblings()
          Reports whether this node can have same-name siblings.
 QName getDefaultPrimaryType()
          Returns the name of the default primary type.
 NodeDefId getId()
          Returns an identifier for this node definition.
 QName[] getRequiredPrimaryTypes()
          Returns the array of names of the required primary types.
 
Methods inherited from interface org.apache.jackrabbit.core.nodetype.ItemDef
definesNode, definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 

Field Detail

EMPTY_ARRAY

public static final NodeDef[] EMPTY_ARRAY
Method Detail

getId

public NodeDefId getId()
Returns an identifier for this node definition.

Returns:
an identifier for this node definition.

getDefaultPrimaryType

public QName getDefaultPrimaryType()
Returns the name of the default primary type.

Returns:
the name of the default primary type.

getRequiredPrimaryTypes

public QName[] getRequiredPrimaryTypes()
Returns the array of names of the required primary types.

Returns:
the array of names of the required primary types.

allowsSameNameSiblings

public boolean allowsSameNameSiblings()
Reports whether this node can have same-name siblings.

Returns:
the 'allowsSameNameSiblings' flag.


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.