|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectspase.parser110.Description
public class Description
A container of resource description.
| Constructor Summary | |
|---|---|
Description()
|
|
| Method Summary | |
|---|---|
void |
addResource(Resource resource)
Add a resource to the description |
void |
clear()
Clear the contents. |
void |
dump()
Print the contents of the description. |
int |
getIndexOf(java.lang.String className,
int stopAt)
Return a string with an XML representation of all resources |
java.util.ArrayList<Resource> |
getResources()
Get the ArrayList of resource descriptions. |
java.lang.String |
getVersion()
Get the version of the SPASE data model desclared in the description. |
java.lang.String |
getXMLDocument(int n)
Return a string with an XML representation of all resources |
java.lang.String |
getXMLDocument(int n,
java.lang.String path,
int key)
Return a string with an XML representation of all resources |
static void |
main(java.lang.String[] args)
Entry point for testing. |
void |
parse(java.lang.String pathname)
Parse a description. |
void |
populate(org.w3c.dom.Document document)
Walk the nodes of the Document and populate the resource classes. |
void |
processNode(org.w3c.dom.Node node)
Walk the nodes of the Document and populate the resource classes. |
void |
processSpase(org.w3c.dom.Node node)
Walk the nodes of the "Spase" object in a Document and populate the resource classes. |
void |
removeResource(int index)
Remove a resource from the description |
int |
size()
Get the the number of resources in this description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Description()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void clear()
throws java.lang.Exception
java.lang.Exception
public void parse(java.lang.String pathname)
throws java.lang.Exception
java.lang.Exception
public void populate(org.w3c.dom.Document document)
throws java.lang.Exception
document - the Document containing a parsed XML file.
java.lang.Exception
public void processNode(org.w3c.dom.Node node)
throws java.lang.Exception
node - the Node.
java.lang.Exception
public void processSpase(org.w3c.dom.Node node)
throws java.lang.Exception
node - the Node.
java.lang.Exceptionpublic java.lang.String getXMLDocument(int n)
public java.lang.String getXMLDocument(int n,
java.lang.String path,
int key)
public int getIndexOf(java.lang.String className,
int stopAt)
public void addResource(Resource resource)
public void removeResource(int index)
public java.util.ArrayList<Resource> getResources()
ArrayList of resource descriptions.
public java.lang.String getVersion()
public int size()
public void dump()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||