public class ResourceRecord extends SuggestionRecord
Document
.doc, docMap
Constructor and Description |
---|
ResourceRecord(org.dom4j.Document doc,
SchemaHelper schemaHelper)
Constructor - creates a new ResourceRecord but doesn't assign an id
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreationDate()
Sets the creation date for this ResourceRecord.
|
java.lang.String |
getDescription()
Gets the description attribute of the ResourceRecord object
|
java.lang.String |
getEmailPrimary()
Gets the emailPrimary attribute of the ResourceRecord object
|
java.lang.String[] |
getGradeRanges()
we want to collect all the gradeRange Values and return them as an Array
|
java.lang.String |
getGradeRangesDisplay()
return a pretty-printed list of gradeRanges as a string
|
java.lang.String |
getInstName()
Gets the instName attribute of the ResourceRecord object
|
java.lang.String |
getLastModified()
Gets the lastModified attribute of the ResourceRecord object
|
java.lang.String |
getNameFirst()
Gets the nameFirst attribute of the ResourceRecord object
|
java.lang.String |
getNameLast()
Gets the nameLast attribute of the ResourceRecord object
|
java.lang.String |
getTitle()
Gets the title attribute of the ResourceRecord object
|
java.lang.String |
getUrl()
Gets the url attribute of the ResourceRecord object
|
void |
setCreationDate(java.lang.String dateStr)
writes a String representaton of the date to both contributor and
metaMetadata/dateInfo nodes.
|
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 ResourceRecord object
|
void |
setEmailPrimary(java.lang.String val)
Sets the emailPrimary attribute of the ResourceRecord object
|
void |
setGradeRanges(java.lang.String[] vals)
GradeRange xpath is //educational/audiences/audience/gradeRange to set a
gradeRange we have to be concerned with the entire AUDIENCE element at this
point (Suggest-a-url), none of the other fields have meaningful values, so
we can simply wipe out the existing audiences and add new ones
|
void |
setInstName(java.lang.String val)
Sets the instName attribute of the ResourceRecord object
|
void |
setLastModified(java.lang.String dateStr)
Sets the lastModified attribute of the ResourceRecord object
|
void |
setNameFirst(java.lang.String val)
Sets the nameFirst attribute of the ResourceRecord object
|
void |
setNameLast(java.lang.String val)
Sets the nameLast attribute of the ResourceRecord object
|
void |
setTitle(java.lang.String val)
Sets the title attribute of the ResourceRecord object
|
void |
setUrl(java.lang.String val)
Sets the url attribute of the ResourceRecord object
|
java.lang.String |
toString()
Print selected fields of this object for debugging purposes
|
get, getDoc, getDocMap, put
public ResourceRecord(org.dom4j.Document doc, SchemaHelper schemaHelper)
doc
- Document
public java.lang.String getTitle()
java.lang.Exception
- Description of the Exceptionpublic void setTitle(java.lang.String val) throws java.lang.Exception
val
- The new title valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getUrl()
java.lang.Exception
- Description of the Exceptionpublic void setUrl(java.lang.String val) throws java.lang.Exception
val
- The new url valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getDescription()
java.lang.Exception
- Description of the Exceptionpublic void setDescription(java.lang.String val) throws java.lang.Exception
val
- The new description valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String[] getGradeRanges() throws java.lang.Exception
java.lang.Exception
- Description of the Exceptionpublic java.lang.String getGradeRangesDisplay() throws java.lang.Exception
java.lang.Exception
- Description of the Exceptionpublic void setGradeRanges(java.lang.String[] vals) throws java.lang.Exception
vals
- The new gradeRanges valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getCreationDate()
setCreationDate(java.lang.String)
we use
metaMetadata/dateInfo herejava.lang.Exception
- Description of the Exceptionpublic void setCreationDate(java.lang.String dateStr) throws java.lang.Exception
issue: is it okay to use the same string representation for these nodes (they have different type definitions)
dateStr
- The new creationDate valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getLastModified()
java.lang.Exception
- Description of the Exceptionpublic void setLastModified(java.lang.String dateStr) throws java.lang.Exception
dateStr
- The new lastModified valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getNameFirst()
java.lang.Exception
- Description of the Exceptionpublic 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()
java.lang.Exception
- Description of the Exceptionpublic void setNameLast(java.lang.String val) throws java.lang.Exception
val
- The new nameLast valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getEmailPrimary()
java.lang.Exception
- Description of the Exceptionpublic void setEmailPrimary(java.lang.String val) throws java.lang.Exception
val
- The new emailPrimary valuejava.lang.Exception
- Description of the Exceptionpublic java.lang.String getInstName()
java.lang.Exception
- Description of the Exceptionpublic void setInstName(java.lang.String val) throws java.lang.Exception
val
- The new instName valuejava.lang.Exception
- Description of the Exceptionpublic static void setDebug(boolean db)
db
- The new debug valuepublic java.lang.String toString()
toString
in class java.lang.Object