|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.suggest.SuggestionRecord org.dlese.dpc.suggest.resource.ResourceRecord
public class ResourceRecord
Wrapper for a suggested resource record, which is in ADN item-level format
and represented as a Document
.
Field Summary |
---|
Fields inherited from class org.dlese.dpc.suggest.SuggestionRecord |
---|
doc, docMap |
Constructor Summary | |
---|---|
ResourceRecord(Document doc,
SchemaHelper schemaHelper)
Constructor - creates a new ResourceRecord but doesn't assign an id |
Method Summary | |
---|---|
String |
getCreationDate()
Sets the creation date for this ResourceRecord. |
String |
getDescription()
Gets the description attribute of the ResourceRecord object |
String |
getEmailPrimary()
Gets the emailPrimary attribute of the ResourceRecord object |
String[] |
getGradeRanges()
we want to collect all the gradeRange Values and return them as an Array |
String |
getGradeRangesDisplay()
return a pretty-printed list of gradeRanges as a string |
String |
getInstName()
Gets the instName attribute of the ResourceRecord object |
String |
getLastModified()
Gets the lastModified attribute of the ResourceRecord object |
String |
getNameFirst()
Gets the nameFirst attribute of the ResourceRecord object |
String |
getNameLast()
Gets the nameLast attribute of the ResourceRecord object |
String |
getTitle()
Gets the title attribute of the ResourceRecord object |
String |
getUrl()
Gets the url attribute of the ResourceRecord object |
void |
setCreationDate(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(String val)
Sets the description attribute of the ResourceRecord object |
void |
setEmailPrimary(String val)
Sets the emailPrimary attribute of the ResourceRecord object |
void |
setGradeRanges(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(String val)
Sets the instName attribute of the ResourceRecord object |
void |
setLastModified(String dateStr)
Sets the lastModified attribute of the ResourceRecord object |
void |
setNameFirst(String val)
Sets the nameFirst attribute of the ResourceRecord object |
void |
setNameLast(String val)
Sets the nameLast attribute of the ResourceRecord object |
void |
setTitle(String val)
Sets the title attribute of the ResourceRecord object |
void |
setUrl(String val)
Sets the url attribute of the ResourceRecord object |
String |
toString()
Print selected fields of this object for debugging purposes |
Methods inherited from class org.dlese.dpc.suggest.SuggestionRecord |
---|
get, getDoc, getDocMap, put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceRecord(Document doc, SchemaHelper schemaHelper)
doc
- Document
Method Detail |
---|
public String getTitle()
Exception
- Description of the Exceptionpublic void setTitle(String val) throws Exception
val
- The new title value
Exception
- Description of the Exceptionpublic String getUrl()
Exception
- Description of the Exceptionpublic void setUrl(String val) throws Exception
val
- The new url value
Exception
- Description of the Exceptionpublic String getDescription()
Exception
- Description of the Exceptionpublic void setDescription(String val) throws Exception
val
- The new description value
Exception
- Description of the Exceptionpublic String[] getGradeRanges() throws Exception
Exception
- Description of the Exceptionpublic String getGradeRangesDisplay() throws Exception
Exception
- Description of the Exceptionpublic void setGradeRanges(String[] vals) throws Exception
vals
- The new gradeRanges value
Exception
- Description of the Exceptionpublic String getCreationDate()
setCreationDate(java.lang.String)
we use
metaMetadata/dateInfo here
Exception
- Description of the Exceptionpublic void setCreationDate(String dateStr) throws Exception
issue: is it okay to use the same string representation for these nodes (they have different type definitions)
dateStr
- The new creationDate value
Exception
- Description of the Exceptionpublic String getLastModified()
Exception
- Description of the Exceptionpublic void setLastModified(String dateStr) throws Exception
dateStr
- The new lastModified value
Exception
- Description of the Exceptionpublic String getNameFirst()
Exception
- Description of the Exceptionpublic void setNameFirst(String val) throws Exception
val
- The new nameFirst value
Exception
- Description of the Exceptionpublic String getNameLast()
Exception
- Description of the Exceptionpublic void setNameLast(String val) throws Exception
val
- The new nameLast value
Exception
- Description of the Exceptionpublic String getEmailPrimary()
Exception
- Description of the Exceptionpublic void setEmailPrimary(String val) throws Exception
val
- The new emailPrimary value
Exception
- Description of the Exceptionpublic String getInstName()
Exception
- Description of the Exceptionpublic void setInstName(String val) throws Exception
val
- The new instName value
Exception
- Description of the Exceptionpublic static void setDebug(boolean db)
db
- The new debug valuepublic String toString()
toString
in class Object
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |