org.apache.jackrabbit.state.nodetype
Class NodeDefinitionState

java.lang.Object
  extended byorg.apache.jackrabbit.state.nodetype.ItemDefinitionState
      extended byorg.apache.jackrabbit.state.nodetype.NodeDefinitionState

public class NodeDefinitionState
extends ItemDefinitionState

Node definition state. Instances of this class are used to hold and manage the internal state of node definitions.


Constructor Summary
NodeDefinitionState()
          Creates an empty node definition state instance.
 
Method Summary
 void addRequiredPrimaryTypeNames(Name requiredPrimaryTypeName)
          Adds a type name to the list of required primary types.
 boolean allowsSameNameSiblings()
          Returns the value of the AllowsSameNameSiblings node definition property.
 Name getDefaultPrimaryTypeName()
          Returns the name of the default primary type of the defined node.
 Name[] getRequiredPrimaryTypeNames()
          Returns the names of the required primary types of the defined node.
 void setAllowsSameNameSiblings(boolean allowsSameNameSiblings)
          Sets the value of the AllowsSameNameSiblings node definition property.
 void setDefaultPrimaryTypeName(Name defaultPrimaryType)
          Sets the name of the default primary type of the defined node.
 
Methods inherited from class org.apache.jackrabbit.state.nodetype.ItemDefinitionState
getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected, setAutoCreated, setMandatory, setName, setOnParentVersion, setProtected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeDefinitionState

public NodeDefinitionState()
Creates an empty node definition state instance.

Method Detail

getDefaultPrimaryTypeName

public Name getDefaultPrimaryTypeName()
Returns the name of the default primary type of the defined node.

Returns:
default primary type name

setDefaultPrimaryTypeName

public void setDefaultPrimaryTypeName(Name defaultPrimaryType)
Sets the name of the default primary type of the defined node.

Parameters:
defaultPrimaryType - new default primary type name

getRequiredPrimaryTypeNames

public Name[] getRequiredPrimaryTypeNames()
Returns the names of the required primary types of the defined node.

Returns:
type names

addRequiredPrimaryTypeNames

public void addRequiredPrimaryTypeNames(Name requiredPrimaryTypeName)
Adds a type name to the list of required primary types.

Parameters:
requiredPrimaryTypeName - type name

allowsSameNameSiblings

public boolean allowsSameNameSiblings()
Returns the value of the AllowsSameNameSiblings node definition property.

Returns:
AllowsSameNameSiblings property value

setAllowsSameNameSiblings

public void setAllowsSameNameSiblings(boolean allowsSameNameSiblings)
Sets the value of the AllowsSameNameSiblings node definition property.

Parameters:
allowsSameNameSiblings - new AllowsSameNameSiblings property value


Copyright © 2004-2005 . All Rights Reserved.