org.wso2.registry
Class Comment

java.lang.Object
  extended by org.wso2.registry.Comment

public class Comment
extends java.lang.Object

Represents comments and its metadata. Note that only the Comment.text field needs to be filled when adding new comments. All other attributes are ignored and they are filled with appropriate values for the current context. Therefore, when contructing an instance of this class outside the Regisrty impl, it is recommended to use new Comment("my comment text") constructor.


Constructor Summary
Comment()
           
Comment(java.lang.String commentText)
           
 
Method Summary
 java.lang.String getCommentPath()
           
 java.lang.String getResourcePath()
           
 java.lang.String getText()
           
 java.util.Date getTime()
           
 java.lang.String getUser()
           
 void setCommentPath(java.lang.String commentPath)
           
 void setResourcePath(java.lang.String resourcePath)
           
 void setText(java.lang.String text)
           
 void setTime(java.util.Date time)
           
 void setUser(java.lang.String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment()

Comment

public Comment(java.lang.String commentText)
Method Detail

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getUser

public java.lang.String getUser()

setUser

public void setUser(java.lang.String user)

getTime

public java.util.Date getTime()

setTime

public void setTime(java.util.Date time)

getResourcePath

public java.lang.String getResourcePath()

setResourcePath

public void setResourcePath(java.lang.String resourcePath)

getCommentPath

public java.lang.String getCommentPath()

setCommentPath

public void setCommentPath(java.lang.String commentPath)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.