dlestrat 2004/02/27 14:04:16
Modified: components/prefs/src/java/org/apache/jetspeed/prefs/om/impl
NodeImpl.java
Log:
Added toString()
Revision Changes Path
1.2 +17 -2
jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/om/impl/NodeImpl.java
Index: NodeImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/om/impl/NodeImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NodeImpl.java 26 Feb 2004 04:30:45 -0000 1.1
+++ NodeImpl.java 27 Feb 2004 22:04:15 -0000 1.2
@@ -58,8 +58,7 @@
{
this.parentNodeId = parentNodeId;
this.propertySetDefId = propertySetDefId;
- this.nodeName =
- ((nodeName != null) ? nodeName.toLowerCase() : nodeName);
+ this.nodeName = nodeName;
this.nodeType = nodeType;
this.fullPath = fullPath;
this.creationDate = new Timestamp(System.currentTimeMillis());
@@ -244,6 +243,22 @@
public void setModifiedDate(Timestamp modifiedDate)
{
this.modifiedDate = modifiedDate;
+ }
+
+ /**
+ * <p>Convert <code>Node</code> to string.</p>
+ * @return The Node string value.
+ */
+ public String toString()
+ {
+ String toStringNode = "[[parentNodeId, " + this.parentNodeId + "], "
+ + "[propertySetDefId, " + this.propertySetDefId + "], "
+ + "[nodeName, " + this.nodeName + "], "
+ + "[nodeType, " + this.nodeType + "], "
+ + "[fullPath, " + this.fullPath + "], "
+ + "[creationDate, " + this.creationDate + "], "
+ + "[modifiedDate, " + this.modifiedDate + "]]";
+ return toStringNode;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]