XLangSource
Class JaxParse
- public class JaxParse
This is the class that could load a XLang File.
- Author:
- eSundar
- Version: XLang1.0
| Field Summary |
(package private) Document | doc The default Document Object |
| Constructor Summary |
JaxParse(String _fileName) Creates new JaxParse Make sure that you give a file that Exists. |
| Method Summary |
void | createInputDeclElements() Reads the required nodes |
Vector | expressions() |
String[] | getFirstLevelNode(NodeList _nodeList, String _nodeName) If there is a first level Node like John 1234
this method will return the Name Node
if passed the customer Node List and the String name |
NodeList | getNodeList(String _tagName) Gets the Node List for a given Node Tag Name |
String | getNodeValue(Node _node) If the Node Value is something like myName This method will return
myName if we pass the Name Node |
Hashtable | nameType() |
Hashtable | nameValue() |
doc
Document doc
- The default Document Object
JaxParse
public JaxParse(String _fileName)
throws MalFormedExpressionException
- Creates new JaxParse Make sure that you give a file that Exists. Otherwise the
the Exception will be caught and printed out for you
- Parameters:
- _fileName - The XML File Of Interest
createInputDeclElements
public void createInputDeclElements()
- Reads the required nodes
expressions
public Vector expressions()
getFirstLevelNode
public String[] getFirstLevelNode(NodeList _nodeList, String _nodeName)
- If there is a first level Node like John 1234
this method will return the Name Node
if passed the customer Node List and the String name
getNodeList
public NodeList getNodeList(String _tagName)
- Gets the Node List for a given Node Tag Name
getNodeValue
public String getNodeValue(Node _node)
- If the Node Value is something like myName This method will return
myName if we pass the Name Node
nameType
public Hashtable nameType()
nameValue
public Hashtable nameValue()
to Class org.w3c.dom.Document- The default Document Object
to Class java.util.Hashtable
to Class java.util.Hashtable