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

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

public class NodeImpl
extends Object
implements org.apache.jetspeed.prefs.om.Node

Nodeinterface implementation.

Represents a preferences node.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
private  Timestamp creationDate
           
private  String fullPath
           
private  Timestamp modifiedDate
           
private  long nodeId
           
private  Collection nodeKeys
           
private  String nodeName
           
private  Collection nodeProperties
           
private  int nodeType
           
private  Long parentNodeId
           
private static long serialVersionUID
          The serial version uid.
 
Constructor Summary
NodeImpl()
           Preferences node implementation default constructor.
NodeImpl(Long parentNodeId, String nodeName, int nodeType, String fullPath)
           Node constructor given:
 
Method Summary
 boolean equals(Object o)
           
 Timestamp getCreationDate()
           
 String getFullPath()
           
 Timestamp getModifiedDate()
           
 long getNodeId()
           
 Collection getNodeKeys()
           
 String getNodeName()
           
 Collection getNodeProperties()
           
 int getNodeType()
           
 Long getParentNodeId()
           
 void setCreationDate(Timestamp creationDate)
           
 void setFullPath(String fullPath)
           
 void setModifiedDate(Timestamp modifiedDate)
           
 void setNodeId(long nodeId)
           
 void setNodeKeys(Collection nodeKeys)
           
 void setNodeName(String nodeName)
           
 void setNodeProperties(Collection nodeProperties)
           
 void setNodeType(int nodeType)
           
 void setParentNodeId(Long parentNodeId)
           
 String toString()
           Convert Node to string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serial version uid.

See Also:
Constant Field Values

nodeId

private long nodeId

parentNodeId

private Long parentNodeId

nodeProperties

private Collection nodeProperties

nodeKeys

private Collection nodeKeys

nodeName

private String nodeName

nodeType

private int nodeType

fullPath

private String fullPath

creationDate

private Timestamp creationDate

modifiedDate

private Timestamp modifiedDate
Constructor Detail

NodeImpl

public NodeImpl()

Preferences node implementation default constructor.


NodeImpl

public NodeImpl(Long parentNodeId,
                String nodeName,
                int nodeType,
                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()
Specified by:
getNodeId in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.getNodeId()

setNodeId

public void setNodeId(long nodeId)
Specified by:
setNodeId in interface org.apache.jetspeed.prefs.om.Node
See Also:
org.apache.jetspeed.prefs.om.Node#setNodeId(int)

getParentNodeId

public Long getParentNodeId()
Specified by:
getParentNodeId in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.getParentNodeId()

setParentNodeId

public void setParentNodeId(Long parentNodeId)
Specified by:
setParentNodeId in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.setParentNodeId(java.lang.Long)

getNodeProperties

public Collection getNodeProperties()
Specified by:
getNodeProperties in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.getNodeProperties()

setNodeProperties

public void setNodeProperties(Collection nodeProperties)
Specified by:
setNodeProperties in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.setNodeProperties(java.util.Collection)

getNodeKeys

public Collection getNodeKeys()
Specified by:
getNodeKeys in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.getNodeKeys()

setNodeKeys

public void setNodeKeys(Collection nodeKeys)
Specified by:
setNodeKeys in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.setNodeKeys(java.util.Collection)

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.getNodeName()

setNodeName

public void setNodeName(String nodeName)
Specified by:
setNodeName in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.setNodeName(java.lang.String)

getNodeType

public int getNodeType()
Specified by:
getNodeType in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.getNodeType()

setNodeType

public void setNodeType(int nodeType)
Specified by:
setNodeType in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.setNodeType(int)

getFullPath

public String getFullPath()
Specified by:
getFullPath in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.getFullPath()

setFullPath

public void setFullPath(String fullPath)
Specified by:
setFullPath in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.setFullPath(java.lang.String)

getCreationDate

public Timestamp getCreationDate()
Specified by:
getCreationDate in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.getCreationDate()

setCreationDate

public void setCreationDate(Timestamp creationDate)
Specified by:
setCreationDate in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.setCreationDate(java.sql.Timestamp)

getModifiedDate

public Timestamp getModifiedDate()
Specified by:
getModifiedDate in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.getModifiedDate()

setModifiedDate

public void setModifiedDate(Timestamp modifiedDate)
Specified by:
setModifiedDate in interface org.apache.jetspeed.prefs.om.Node
See Also:
Node.setModifiedDate(java.sql.Timestamp)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()

Convert Node to string.

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


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