org.apache.jackrabbit.state.nodetype
Class NodeTypeState

java.lang.Object
  extended byorg.apache.jackrabbit.state.nodetype.NodeTypeState

public class NodeTypeState
extends Object

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


Constructor Summary
NodeTypeState()
          Creates an empty node type state instance.
 
Method Summary
 void addChildNodeDefinition(NodeDefinitionState state)
          Adds a node definition state to the list of child node definition states of the node type.
 void addPropertyDefinitionState(PropertyDefinitionState state)
          Adds a property definition state to the list of property definition states of the node type.
 void addSupertypeName(Name name)
          Adds a supertype name to the list of declared supertypes.
 NodeDefinitionState[] getChildNodeDefinitionStates()
          Returns the child node definition states of the node type.
 Name getName()
          Returns the node type name.
 Name getPrimaryItemName()
          Returns the name of the primary item of the node type.
 PropertyDefinitionState[] getPropertyDefinitionStates()
          Returns the property definition states of the node type.
 Name[] getSupertypeNames()
          Returns the names of the declared supertypes.
 boolean isHasOrderableChildNodes()
          Returns the value of the HasOrderableChildNodes node type property.
 boolean isMixin()
          Returns the value of the Mixin node type property.
 void setHasOrderableChildNodes(boolean hasOrderableChildNodes)
          Sets the value of the HasOrderableChildNodes node type property.
 void setMixin(boolean mixin)
          Sets the value of the Mixin node type property.
 void setName(Name name)
          Sets the node type name.
 void setPrimaryItemName(Name primaryItemName)
          Sets the name of the primary item of the node type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTypeState

public NodeTypeState()
Creates an empty node type state instance.

Method Detail

getName

public Name getName()
Returns the node type name.

Returns:
qualified name

setName

public void setName(Name name)
Sets the node type name.

Parameters:
name - new qualified name

isMixin

public boolean isMixin()
Returns the value of the Mixin node type property.

Returns:
Mixin property value

setMixin

public void setMixin(boolean mixin)
Sets the value of the Mixin node type property.

Parameters:
mixin - new Mixin property value

isHasOrderableChildNodes

public boolean isHasOrderableChildNodes()
Returns the value of the HasOrderableChildNodes node type property.

Returns:
HasOrderableChildNodes property value

setHasOrderableChildNodes

public void setHasOrderableChildNodes(boolean hasOrderableChildNodes)
Sets the value of the HasOrderableChildNodes node type property.

Parameters:
hasOrderableChildNodes - new HasOrderableChildNodes property value

getPrimaryItemName

public Name getPrimaryItemName()
Returns the name of the primary item of the node type.

Returns:
primary item name

setPrimaryItemName

public void setPrimaryItemName(Name primaryItemName)
Sets the name of the primary item of the node type.

Parameters:
primaryItemName - new primary item name

getSupertypeNames

public Name[] getSupertypeNames()
Returns the names of the declared supertypes.

Returns:
supertype names

addSupertypeName

public void addSupertypeName(Name name)
Adds a supertype name to the list of declared supertypes.

Parameters:
name - supertype name

getChildNodeDefinitionStates

public NodeDefinitionState[] getChildNodeDefinitionStates()
Returns the child node definition states of the node type.

Returns:
child node definition states

addChildNodeDefinition

public void addChildNodeDefinition(NodeDefinitionState state)
Adds a node definition state to the list of child node definition states of the node type.

Parameters:
state - child node definition state

getPropertyDefinitionStates

public PropertyDefinitionState[] getPropertyDefinitionStates()
Returns the property definition states of the node type.

Returns:
property definition states

addPropertyDefinitionState

public void addPropertyDefinitionState(PropertyDefinitionState state)
Adds a property definition state to the list of property definition states of the node type.

Parameters:
state - property definition state


Copyright © 2004-2005 . All Rights Reserved.