|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectspase.parser122.XMLParser
spase.parser122.Resource
public class Resource
A container of resource description.
| Field Summary | |
|---|---|
ResourceHeader |
mResourceHeader
|
java.lang.String |
mResourceID
|
| Constructor Summary | |
|---|---|
Resource()
Creates an instance of a Resource |
|
Resource(org.w3c.dom.Node node)
Creates an instance of a Resource and populates it with the contents of a parsed XML file starting at the passed Node. |
|
| Method Summary | |
|---|---|
XMLParser |
getMemberNode(java.lang.String name)
Retrieve the code nodes in the class. |
ResourceHeader |
getResourceHeader()
|
java.lang.String |
getResourceID()
|
java.lang.String |
getXMLDocument(int level)
Create an XML representation of the resource. |
java.lang.String |
getXMLDocument(int level,
java.lang.String path,
int key)
Create an XML representation of the resource. |
static void |
main(java.lang.String[] args)
Entry point for testing. |
void |
makeEditNodes()
Make an instance of every node for use in an editor |
void |
makeNew(java.lang.String item)
Create a new item in the resource. |
void |
makeSkeletonNodes()
Create skeleton nodes for all resources. |
void |
reset()
|
void |
setResourceHeader(org.w3c.dom.Node node)
|
void |
setResourceID(java.lang.String value)
|
void |
setResourceID(java.lang.String[] value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String mResourceID
public ResourceHeader mResourceHeader
| Constructor Detail |
|---|
public Resource()
public Resource(org.w3c.dom.Node node)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void reset()
public void makeEditNodes()
makeEditNodes in class XMLParserpublic void makeSkeletonNodes()
makeSkeletonNodes in class XMLParserpublic XMLParser getMemberNode(java.lang.String name)
getMemberNode in class XMLParsername - the name associated with a member.public java.lang.String getXMLDocument(int level)
getXMLDocument in class XMLParserlevel - the number of levels to indent the document.
public java.lang.String getXMLDocument(int level,
java.lang.String path,
int key)
getXMLDocument in class XMLParserlevel - the number of levels to indent the document.path - the path to the element.key - the index (key) of the element at the path.public void makeNew(java.lang.String item)
public void setResourceID(java.lang.String value)
public void setResourceID(java.lang.String[] value)
public java.lang.String getResourceID()
public void setResourceHeader(org.w3c.dom.Node node)
throws java.lang.Exception
java.lang.Exceptionpublic ResourceHeader getResourceHeader()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||