org.apache.jackrabbit.spi
Interface QNodeDefinition

All Superinterfaces:
QItemDefinition
All Known Implementing Classes:
QNodeDefinitionImpl

public interface QNodeDefinition
extends QItemDefinition

QNodeDefinition is the SPI representation of a node definition. It refers to Names only and is thus isolated from session-specific namespace mappings.

See Also:
NodeDefinition

Field Summary
static QNodeDefinition[] EMPTY_ARRAY
          Empty array of QNodeDefinition.
 
Method Summary
 boolean allowsSameNameSiblings()
          Reports whether this node can have same-name siblings.
 Name getDefaultPrimaryType()
          Returns the name of the default primary type.
 Name[] getRequiredPrimaryTypes()
          Returns the array of names of the required primary types.
 
Methods inherited from interface org.apache.jackrabbit.spi.QItemDefinition
definesNode, definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 

Field Detail

EMPTY_ARRAY

static final QNodeDefinition[] EMPTY_ARRAY
Empty array of QNodeDefinition.

Method Detail

getDefaultPrimaryType

Name getDefaultPrimaryType()
Returns the name of the default primary type.

Returns:
the name of the default primary type.

getRequiredPrimaryTypes

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

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

allowsSameNameSiblings

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

Returns:
the 'allowsSameNameSiblings' flag.


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