Simulcast 4.2

gov.nasa.gsfc.aisb.simulcast.util
Class XmlParser

java.lang.Object
  extended by gov.nasa.gsfc.aisb.simulcast.util.XmlParser

public class XmlParser
extends java.lang.Object


Constructor Summary
XmlParser(java.io.File file, java.lang.String rootElementName)
           
XmlParser(java.lang.String msg)
          XmlParser (constructor).
XmlParser(java.lang.String msg, java.lang.String rootElementName)
           
 
Method Summary
 java.lang.String getAttributeValue(java.lang.String attributeName)
          getAttributeValue.
 XmlParser getElement(java.lang.String tag)
          getElement.
 XmlParser getElement(java.lang.String[] tags)
           
 XmlParser[] getElements()
          getElements.
 XmlParser[] getElements(java.lang.String tag)
           
 XmlParser[] getElements(java.lang.String[] tags)
           
 java.lang.String getElementValue()
           
 java.lang.String getElementValue(java.lang.String tag)
          getElementValue.
 java.lang.String getElementValue(java.lang.String[] tags)
           
 java.lang.String[] getElementValues(java.lang.String tag)
          getElementValues.
 java.lang.String[] getElementValues(java.lang.String[] tags)
           
 java.lang.String getTagName()
          getTagName.
 boolean hasElement(java.lang.String tag)
          hasElement.
 boolean hasElement(java.lang.String[] tags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlParser

public XmlParser(java.lang.String msg)
          throws java.lang.Exception
XmlParser (constructor).

Throws:
java.lang.Exception

XmlParser

public XmlParser(java.lang.String msg,
                 java.lang.String rootElementName)
          throws java.lang.Exception
Throws:
java.lang.Exception

XmlParser

public XmlParser(java.io.File file,
                 java.lang.String rootElementName)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getTagName

public java.lang.String getTagName()
getTagName.


hasElement

public boolean hasElement(java.lang.String tag)
hasElement.


hasElement

public boolean hasElement(java.lang.String[] tags)

getElement

public XmlParser getElement(java.lang.String tag)
                     throws java.lang.Exception
getElement.

Throws:
java.lang.Exception

getElement

public XmlParser getElement(java.lang.String[] tags)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getElements

public XmlParser[] getElements()
                        throws java.lang.Exception
getElements.

Throws:
java.lang.Exception

getElements

public XmlParser[] getElements(java.lang.String tag)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getElements

public XmlParser[] getElements(java.lang.String[] tags)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getElementValue

public java.lang.String getElementValue(java.lang.String tag)
                                 throws java.lang.Exception
getElementValue.

Throws:
java.lang.Exception

getElementValue

public java.lang.String getElementValue(java.lang.String[] tags)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getElementValue

public java.lang.String getElementValue()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getElementValues

public java.lang.String[] getElementValues(java.lang.String tag)
                                    throws java.lang.Exception
getElementValues.

Throws:
java.lang.Exception

getElementValues

public java.lang.String[] getElementValues(java.lang.String[] tags)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String attributeName)
                                   throws java.lang.Exception
getAttributeValue.

Throws:
java.lang.Exception

Simulcast 4.2