|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectspase.parser134.XMLParser
spase.parser134.Source
public class Source
A container of Source information.
| Constructor Summary | |
|---|---|
Source()
|
|
Source(boolean forEdit)
|
|
Source(org.w3c.dom.Node node)
|
|
| Method Summary | |
|---|---|
Checksum |
getChecksum()
|
DataExtent |
getDataExtent()
|
XMLParser |
getMemberNode(java.lang.String name)
Locates a node in a structure based on the the "name" associated with the member. |
java.util.ArrayList<java.lang.String> |
getMirrorURL()
|
java.lang.String |
getSourceType()
|
java.lang.String |
getURL()
|
java.lang.String |
getXMLDocument(int n)
Return a string containing an XML representation of this instance. |
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)
Return a string containing an XML representation of this isntance. |
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<Source> 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()
Create an instance of all nodes for use when editing. |
void |
makeNewMember(java.lang.String item)
Create a new member. |
void |
makeSkeletonNodes()
Create all nodes for use when editing which currently do not exist. |
void |
removeMember(java.lang.String item,
int index)
Remove an elment of a member. |
void |
reset()
|
void |
setChecksum(org.w3c.dom.Node node)
|
void |
setDataExtent(org.w3c.dom.Node node)
|
void |
setMirrorURL(java.lang.String value)
|
void |
setMirrorURL(java.lang.String[] value)
|
void |
setRequired()
|
void |
setSourceType(java.lang.String value)
|
void |
setSourceType(java.lang.String[] value)
|
void |
setURL(java.lang.String value)
|
void |
setURL(java.lang.String[] value)
|
| Methods inherited from class spase.parser134.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 Source()
public Source(boolean forEdit)
public Source(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 setRequired()
public void makeEditNodes()
XMLParser
makeEditNodes in class XMLParserpublic void makeSkeletonNodes()
XMLParser
makeSkeletonNodes in class XMLParserpublic XMLParser getMemberNode(java.lang.String name)
XMLParser
getMemberNode in class XMLParsername - 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)
XMLParser
getXMLDocument in class XMLParsern - 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)
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 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 setSourceType(java.lang.String value)
public void setSourceType(java.lang.String[] value)
public java.lang.String getSourceType()
public void setURL(java.lang.String value)
public void setURL(java.lang.String[] value)
public java.lang.String getURL()
public void setMirrorURL(java.lang.String value)
public void setMirrorURL(java.lang.String[] value)
public java.util.ArrayList<java.lang.String> getMirrorURL()
public void setChecksum(org.w3c.dom.Node node)
throws java.lang.Exception
java.lang.Exceptionpublic Checksum getChecksum()
public void setDataExtent(org.w3c.dom.Node node)
throws java.lang.Exception
java.lang.Exceptionpublic DataExtent getDataExtent()
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<Source> list)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||