|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectspase.parser120.XMLParser
spase.parser120.Resource
spase.parser120.Registry
public class Registry
A container of Registry information.
| Constructor Summary | |
|---|---|
Registry()
|
|
Registry(boolean forEdit)
|
|
Registry(org.w3c.dom.Node 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 n)
Create an XML representation of the resource. |
java.lang.String |
getXMLDocument(int n,
boolean inUseOnly)
Return a string containing an XML representation of this instance. |
java.lang.String |
getXMLDocument(int n,
java.lang.String path,
int key)
Create an XML representation of the resource. |
java.lang.String |
getXMLDocument(int n,
java.lang.String path,
int key,
boolean inUseOnly)
Return a string containing an XML representation of this isntance. |
static java.util.ArrayList<Pair> |
getXPathPairs(java.lang.String prefix,
java.util.ArrayList<Registry> list)
|
java.util.ArrayList<Pair> |
getXPathPairs(java.lang.String prefix,
int index)
Return an ArrayList of string Pairs which contains for each node in the XML document an XPath as the "left" value of the pair and the value as the "right" value of pair. |
static void |
main(java.lang.String[] args)
|
void |
makeEditNodes()
Make an instance of every node for use in an editor |
void |
makeNewMember(java.lang.String item)
Create a new member. |
void |
makeSkeletonNodes()
Create skeleton nodes for all resources. |
void |
removeMember(java.lang.String item,
int index)
Remove an elment of a member. |
void |
reset()
|
void |
setRequired()
|
void |
setResourceHeader(org.w3c.dom.Node node)
|
void |
setResourceID(java.lang.String value)
|
void |
setResourceID(java.lang.String[] value)
|
| Methods inherited from class spase.parser120.Resource |
|---|
makeNew |
| Methods inherited from class spase.parser120.XMLParser |
|---|
addRequired, dump, dumpData, dumpNode, entityEncode, findNode, getAllValues, getBranchText, getClassName, getDefaultStyleSheet, getDocument, getElementPath, getMemberName, getMemberNodeIndex, getMemberNodeName, getMemberParent, getMemberPath, getNodes, getNodes, getNodes, getNodeText, getPath, getPathName, getRequired, getStringReader, getTagClose, getTaggedList, getTaggedList, getTaggedValue, getTaggedValue, getTagOpen, getTopParent, getValues, getValues, getWords, getXPathList, getXPathPairs, indent, isCommonWord, isInList, isInList, isInList, isInUse, isMatch, isRequired, load, load, load, makeTagContent, parseWords, parseXML, parseXML, parseXMLString, printXML, processNode, setClassName, setMember, setMember, setMember, splitMixed, toImproperCase |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Registry()
public Registry(boolean forEdit)
public Registry(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()
reset in class Resourcepublic void setRequired()
public void makeEditNodes()
Resource
makeEditNodes in class Resourcepublic void makeSkeletonNodes()
Resource
makeSkeletonNodes in class Resourcepublic XMLParser getMemberNode(java.lang.String name)
Resource
getMemberNode in class Resourcename - the name associated with a member.public void makeNewMember(java.lang.String item)
XMLParser
makeNewMember in class XMLParseritem - the name of the member to create.
public void removeMember(java.lang.String item,
int index)
XMLParser
removeMember in class XMLParseritem - the name of the member to create.index - the index of the element to remove.public java.lang.String getXMLDocument(int n)
Resource
getXMLDocument in class Resourcen - the number of levels to indent the document.
public java.lang.String getXMLDocument(int n,
boolean inUseOnly)
XMLParser
getXMLDocument in class XMLParsern - the number of levels to indent the document.inUseOnly - indicates whether to include only those elements currently in use.
public java.lang.String getXMLDocument(int n,
java.lang.String path,
int key)
Resource
getXMLDocument in class Resourcen - 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 java.lang.String getXMLDocument(int n,
java.lang.String path,
int key,
boolean inUseOnly)
XMLParser
getXMLDocument in class XMLParsern - 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 setResourceID(java.lang.String value)
setResourceID in class Resourcepublic void setResourceID(java.lang.String[] value)
setResourceID in class Resourcepublic java.lang.String getResourceID()
getResourceID in class Resource
public void setResourceHeader(org.w3c.dom.Node node)
throws java.lang.Exception
setResourceHeader in class Resourcejava.lang.Exceptionpublic ResourceHeader getResourceHeader()
getResourceHeader in class Resource
public java.util.ArrayList<Pair> getXPathPairs(java.lang.String prefix,
int index)
XMLParser
getXPathPairs in class XMLParserprefix - the leading path to add to each XPath.index - the index of the item if part of an array.
Indexes start a 1, a value of 0 indicates it is
not part of an array.
public static java.util.ArrayList<Pair> getXPathPairs(java.lang.String prefix,
java.util.ArrayList<Registry> list)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||