|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.xml.XMLMapFactory
Provides support for XMLDirectory implementations by using static constants and methods to create individual XMLMap instances. Once a mapping class is created, support for the class should be added here.
This first release supports only reader maps. Writer maps can be added, and eventually only an XML-based metadata-definition configuration file will be required.
NOTE: The caller is respsonsible for requesting the correct reader corresponding to a specific XML file. The only indication that an invalid reader was requested will be the absence of expected values whenever the XMLMap instance is inspected.
Field Summary | |
---|---|
static int |
DLESE
defines instances of DlsesXMLReader |
static int |
REVIEW_STATUS
defines instances of ReviewStatusXMLReader |
Method Summary | |
---|---|
static XMLMap |
instanceMap(File file,
int mapType)
Accepts a File argument and creates an XMLMap instance of the requested type. |
static XMLMap |
instanceMap(String filepath,
int mapType)
Accepts a filepath argument and creates an XMLMap instance of the requested type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DLESE
public static final int REVIEW_STATUS
Method Detail |
public static XMLMap instanceMap(String filepath, int mapType)
filepath
- qualified path to a well-formed XML file.mapType
- integer correspoinding to one of this class's predefined static constants
public static XMLMap instanceMap(File file, int mapType)
file
- a well-formed XML file corresponding to the requested XML mapType.mapType
- integer correspoinding to one of this class's predefined static constants
|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |