|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLMap
Provides a hashmap-like interface into an XML-based metadata file, hashed by user-defined named keys. The XMLMap stores objects, often strings, which map to a user-defined label. The current version requires that the mapping be created using a mapping class that has been defined and made available as part of the org.dlese.dpc.xml.maps package, and instantiable via the XMLMapFactory class in this package. A future release will utilize XML-based configuration files instead.
Although not strictly required, each implementing class should utilize the init method for intialization and subsequently call the destroy method in order to release resources.
Method Summary | |
---|---|
void |
destroy()
Should release resources and call the finalize method. |
List |
getKeys()
Method to retrieve the list of names used to identify desired values. |
Object |
getValue(String name)
Accessor method for retrieving a specific named value. |
List |
getValues()
Method to retrieve the list of values stored in this map. |
boolean |
init()
Should initialize members as required. |
void |
setMap()
Use this method to populate the XMLMap with the desired named values. |
void |
setValue(String name,
Object xmlObject)
Setter method for updating a specific named value. |
Method Detail |
---|
boolean init()
void destroy()
void setMap()
List getKeys()
List getValues()
Object getValue(String name)
void setValue(String name, Object xmlObject)
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |