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) Documentdoc
           The default Document Object

Constructor Summary
JaxParse(String _fileName)
           Creates new JaxParse Make sure that you give a file that Exists.

Method Summary
 voidcreateInputDeclElements()
           Reads the required nodes
 Vectorexpressions()
           
 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
 NodeListgetNodeList(String _tagName)
           Gets the Node List for a given Node Tag Name
 StringgetNodeValue(Node _node)
           If the Node Value is something like myName This method will return myName if we pass the Name Node
 HashtablenameType()
           
 HashtablenameValue()
           

Field Detail

doc

Document doc
The default Document Object
Constructor Detail

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
Method Detail

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()

Association Links

to Class org.w3c.dom.Document

The default Document Object

to Class java.util.Hashtable

to Class java.util.Hashtable



Hosted by www.Geocities.ws

1