public class CommentRecord extends SuggestionRecord
doc, docMap
Constructor and Description |
---|
CommentRecord(org.dom4j.Document doc,
SchemaHelper schemaHelper)
Creates a new CommentRecord given a LOCALIZED dom4j.Document and
SchemaHelper, but doesn't assign an id
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreationDate()
Gets the creation date for this CommentRecord.
|
java.lang.String |
getDescription()
Gets the description attribute of the CommentRecord object
|
java.lang.String |
getEmail()
Gets the email attribute of the CommentRecord object
|
java.lang.String |
getInstName()
Gets the instName attribute of the CommentRecord object
|
java.lang.String |
getItemID()
Gets the itemID attribute of the CommentRecord object
|
java.lang.String |
getNameFirst()
Gets the nameFirst attribute of the CommentRecord object
|
java.lang.String |
getNameLast()
Gets the nameLast attribute of the CommentRecord object
|
java.lang.String |
getRole()
There may be more than one contributor element.
|
java.lang.String |
getShare()
Gets the share attribute of the CommentRecord object
|
java.lang.String |
getTitle()
Gets the title attribute of the CommentRecord object
|
static void |
main(java.lang.String[] args)
The main program for the CommentRecord class
|
void |
setCreationDate(java.lang.String dateStr)
Writes a String representaton of the date to various locations in the instance
document.
|
static void |
setDebug(boolean db)
Sets the debug attribute of the Emailer object
|
void |
setDescription(java.lang.String val)
Sets the description attribute of the CommentRecord object
|
void |
setEmail(java.lang.String val)
Sets the email attribute of the CommentRecord object
|
void |
setInstName(java.lang.String val)
Sets the instName attribute of the CommentRecord object
|
void |
setItemID(java.lang.String val)
Sets the itemID attribute of the CommentRecord object
|
void |
setNameFirst(java.lang.String val)
Sets the nameFirst attribute of the CommentRecord object
|
void |
setNameLast(java.lang.String val)
Sets the nameLast attribute of the CommentRecord object
|
void |
setRole(java.lang.String val)
Sets the role attribute of the CommentRecord object for the contributor/PERSON
tagset.
|
void |
setShare(java.lang.String val)
Sets the share attribute of the CommentRecord object
|
void |
setTitle(java.lang.String val)
Sets the title attribute of the CommentRecord object
|
java.lang.String |
toString()
Print selected fields of this object for debugging purposes
|
get, getDoc, getDocMap, put
public CommentRecord(org.dom4j.Document doc, SchemaHelper schemaHelper)
doc
- Document
schemaHelper
- NOT YET DOCUMENTEDpublic java.lang.String getTitle()
public void setTitle(java.lang.String val) throws java.lang.Exception
val
- The new title valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getItemID()
public void setItemID(java.lang.String val) throws java.lang.Exception
val
- The new itemID valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getDescription()
public void setDescription(java.lang.String val) throws java.lang.Exception
val
- The new description valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getRole()
public void setRole(java.lang.String val) throws java.lang.Exception
val
- The new role valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getShare()
public void setShare(java.lang.String val) throws java.lang.Exception
val
- The new share valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getNameFirst()
public void setNameFirst(java.lang.String val) throws java.lang.Exception
val
- The new nameFirst valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getNameLast()
public void setNameLast(java.lang.String val) throws java.lang.Exception
val
- The new nameLast valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getEmail()
public void setEmail(java.lang.String val) throws java.lang.Exception
val
- The new email valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getInstName()
public void setInstName(java.lang.String val) throws java.lang.Exception
val
- The new instName valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getCreationDate()
public void setCreationDate(java.lang.String dateStr) throws java.lang.Exception
dateStr
- The creationDate value (e.g., "2007-09-23")java.lang.Exception
- if the creationDate cannot be setpublic static void setDebug(boolean db)
db
- The new debug valuepublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- NOT YET DOCUMENTEDpublic java.lang.String toString()
toString
in class java.lang.Object