org.apache.jetspeed.prefs.om.impl
Class NodeImpl

java.lang.Object
  extended by org.apache.jetspeed.prefs.om.impl.NodeImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Node

public class NodeImpl
extends java.lang.Object
implements Node

Nodeinterface implementation.

Represents a preferences node.

Author:
David Le Strat
See Also:
Serialized Form

Constructor Summary
NodeImpl()
           Preferences node implementation default constructor.
NodeImpl(java.lang.Long parentNodeId, java.lang.String nodeName, int nodeType, java.lang.String fullPath)
           Node constructor given:
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.sql.Timestamp getCreationDate()
          Getter for creation date.
 java.lang.String getFullPath()
          Getter for the full path.
 java.sql.Timestamp getModifiedDate()
          Getter for the modified date.
 long getNodeId()
          Getter for the node id.
 java.util.Collection getNodeKeys()
          Getter for the keys associated to a specific nodes.
 java.lang.String getNodeName()
          Getter for the node name.
 java.util.Collection getNodeProperties()
          Getter for the node properties.
 int getNodeType()
          Getter for the node type.
 java.lang.Long getParentNodeId()
          Getter for the parent node id.
 void setCreationDate(java.sql.Timestamp creationDate)
          Setter for the creation date.
 void setFullPath(java.lang.String fullPath)
          Setter for the full path.
 void setModifiedDate(java.sql.Timestamp modifiedDate)
          Setter for the modified date.
 void setNodeId(long nodeId)
          Setter for the node id.
 void setNodeKeys(java.util.Collection nodeKeys)
          Setter for the keys associated to a specific nodes.
 void setNodeName(java.lang.String nodeName)
          Setter for the node name.
 void setNodeProperties(java.util.Collection nodeProperties)
          Setter for the node properties.
 void setNodeType(int nodeType)
          Setter for the node type.
 void setParentNodeId(java.lang.Long parentNodeId)
          Setter for the parent node id.
 java.lang.String toString()
           Convert Node to string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeImpl

public NodeImpl()

Preferences node implementation default constructor.


NodeImpl

public NodeImpl(java.lang.Long parentNodeId,
                java.lang.String nodeName,
                int nodeType,
                java.lang.String fullPath)

Node constructor given:

Parameters:
parentNodeId - The parent node id.
nodeName - The node name.
nodeType - The node type.
fullPath - The full path.
Method Detail

getNodeId

public long getNodeId()
Description copied from interface: Node

Getter for the node id.

Specified by:
getNodeId in interface Node
Returns:
The node id.
See Also:
Node.getNodeId()

setNodeId

public void setNodeId(long nodeId)
Description copied from interface: Node

Setter for the node id.

Specified by:
setNodeId in interface Node
Parameters:
nodeId - The node id.
See Also:
org.apache.jetspeed.prefs.om.Node#setNodeId(int)

getParentNodeId

public java.lang.Long getParentNodeId()
Description copied from interface: Node

Getter for the parent node id.

Passed as an Integer to be able to pass null if no parent is associated to a node.

Specified by:
getParentNodeId in interface Node
Returns:
The parent node id.
See Also:
Node.getParentNodeId()

setParentNodeId

public void setParentNodeId(java.lang.Long parentNodeId)
Description copied from interface: Node

Setter for the parent node id.

Specified by:
setParentNodeId in interface Node
Parameters:
parentNodeId - The parent node id.
See Also:
Node.setParentNodeId(java.lang.Long)

getNodeProperties

public java.util.Collection getNodeProperties()
Description copied from interface: Node

Getter for the node properties.

Specified by:
getNodeProperties in interface Node
Returns:
The node properties.
See Also:
Node.getNodeProperties()

setNodeProperties

public void setNodeProperties(java.util.Collection nodeProperties)
Description copied from interface: Node

Setter for the node properties.

Specified by:
setNodeProperties in interface Node
See Also:
Node.setNodeProperties(java.util.Collection)

getNodeKeys

public java.util.Collection getNodeKeys()
Description copied from interface: Node

Getter for the keys associated to a specific nodes.

Specified by:
getNodeKeys in interface Node
Returns:
The node keys.
See Also:
Node.getNodeKeys()

setNodeKeys

public void setNodeKeys(java.util.Collection nodeKeys)
Description copied from interface: Node

Setter for the keys associated to a specific nodes.

Specified by:
setNodeKeys in interface Node
Parameters:
nodeKeys - The node keys.
See Also:
Node.setNodeKeys(java.util.Collection)

getNodeName

public java.lang.String getNodeName()
Description copied from interface: Node

Getter for the node name.

Specified by:
getNodeName in interface Node
Returns:
The node name.
See Also:
Node.getNodeName()

setNodeName

public void setNodeName(java.lang.String nodeName)
Description copied from interface: Node

Setter for the node name.

Specified by:
setNodeName in interface Node
Parameters:
nodeName - The node name.
See Also:
Node.setNodeName(java.lang.String)

getNodeType

public int getNodeType()
Description copied from interface: Node

Getter for the node type.

Specified by:
getNodeType in interface Node
Returns:
The node type.
See Also:
Node.getNodeType()

setNodeType

public void setNodeType(int nodeType)
Description copied from interface: Node

Setter for the node type.

Specified by:
setNodeType in interface Node
Parameters:
nodeType - The node type.
See Also:
Node.setNodeType(int)

getFullPath

public java.lang.String getFullPath()
Description copied from interface: Node

Getter for the full path.

Specified by:
getFullPath in interface Node
Returns:
The full path.
See Also:
Node.getFullPath()

setFullPath

public void setFullPath(java.lang.String fullPath)
Description copied from interface: Node

Setter for the full path.

Specified by:
setFullPath in interface Node
Parameters:
fullPath - The full path.
See Also:
Node.setFullPath(java.lang.String)

getCreationDate

public java.sql.Timestamp getCreationDate()
Description copied from interface: Node

Getter for creation date.

Specified by:
getCreationDate in interface Node
Returns:
The creation date.
See Also:
Node.getCreationDate()

setCreationDate

public void setCreationDate(java.sql.Timestamp creationDate)
Description copied from interface: Node

Setter for the creation date.

Specified by:
setCreationDate in interface Node
Parameters:
creationDate - The creation date.
See Also:
Node.setCreationDate(java.sql.Timestamp)

getModifiedDate

public java.sql.Timestamp getModifiedDate()
Description copied from interface: Node

Getter for the modified date.

Specified by:
getModifiedDate in interface Node
Returns:
The modified date.
See Also:
Node.getModifiedDate()

setModifiedDate

public void setModifiedDate(java.sql.Timestamp modifiedDate)
Description copied from interface: Node

Setter for the modified date.

Specified by:
setModifiedDate in interface Node
Parameters:
modifiedDate - The modified date.
See Also:
Node.setModifiedDate(java.sql.Timestamp)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()

Convert Node to string.

Overrides:
toString in class java.lang.Object
Returns:
The Node string value.


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.