portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/om/impl NodeImpl.java
Date Fri, 27 Feb 2004 22:04:16 GMT
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: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message