|
DLESE Tools v1.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dlese.dpc.xml.maps.ReviewStatusXMLReader
This class provides mapping between Review Status metadata values and the corresponding XML metadata record.
The accessor methods act as an interface with the XMLNode and
XMLRecord classes. The XML processing details are handled by those
classes, but the one requirement of this class is to have knowledge of the paths
structure. Paths are used as keys into the XMLRecord map.
| Field Summary | |
|---|---|
protected boolean |
isValid
boolean value indicates success of initialization |
protected HashMap |
map
mapping of user-defined names to metadata values |
protected File |
xmlFile
source XML file |
protected XMLRecord |
xmlRecord
convenience abstraction of the XML DOM |
| Constructor Summary | |
|---|---|
protected |
ReviewStatusXMLReader()
Default constructor is restricted to assure that a file directory is provided on object creation. |
|
ReviewStatusXMLReader(File xmlfile)
|
|
ReviewStatusXMLReader(String filepath)
|
| Method Summary | |
|---|---|
void |
destroy()
Releases all resources and calls finalize method. |
List |
getKeys()
Retrieves a list the keys contained in the map. |
protected String |
getRecordID()
|
protected String |
getReviewID()
|
protected String |
getReviewPathway()
|
protected String |
getReviewStatus()
|
protected String |
getReviewStatusDate()
|
protected String |
getReviewURL()
|
Object |
getValue(String name)
Getter method to retrieve a specific metadata value. |
List |
getValues()
Retrieves the list of metadata values held in the map. |
boolean |
init()
Creates XMLRecord and intializes local map |
void |
setMap()
After successful initialization, this method creates the map of actual name:value pairs defined within this specific XMLMap instance. |
void |
setValue(String name,
Object xmlObject)
Setter method for setting a specific metadata value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean isValid
protected File xmlFile
protected XMLRecord xmlRecord
protected HashMap map
| Constructor Detail |
protected ReviewStatusXMLReader()
public ReviewStatusXMLReader(File xmlfile)
public ReviewStatusXMLReader(String filepath)
filepath - A qualified filepath to a well-formed XML file.| Method Detail |
public boolean init()
init in interface XMLMappublic void destroy()
destroy in interface XMLMappublic Object getValue(String name)
getValue in interface XMLMapname - the user-defined name identifying the specific value to retrieve.
public void setValue(String name,
Object xmlObject)
setValue in interface XMLMapname - the user-defined name identifying the specific value to update.xmlObject - the value to assoicate with the specified name.public void setMap()
setMap in interface XMLMappublic List getKeys()
getKeys in interface XMLMappublic List getValues()
getValues in interface XMLMapprotected String getRecordID()
protected String getReviewID()
protected String getReviewURL()
protected String getReviewStatus()
protected String getReviewStatusDate()
protected String getReviewPathway()
|
DLESE Tools v1.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||