org.opennms.web.parsers
Class XMLHeader

java.lang.Object
  extended by org.opennms.web.parsers.XMLHeader

public class XMLHeader
extends Object

This class holds the information parsed from a header of an OpenNMS xml file.

Version:
1.1.1.1
Author:
Jason Johns , OpenNMS

Field Summary
protected  Document m_document
           
protected  Element m_headerElement
           
protected  Element m_root
           
protected  String m_version
           
 
Constructor Summary
XMLHeader()
          Default constructor, does nothing
XMLHeader(String version, Document document)
           
 
Method Summary
 void buildDocument()
           
 Element getHeaderElement()
           
 String getMasterStation()
          Returns the master station
 String getVersion()
          Returns the version
 void setMasterStation(String aStation)
          Sets the master station
 void setVersion(String aVersion)
          Sets the version
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_document

protected Document m_document

m_root

protected Element m_root

m_headerElement

protected Element m_headerElement

m_version

protected String m_version
Constructor Detail

XMLHeader

public XMLHeader()
Default constructor, does nothing


XMLHeader

public XMLHeader(String version,
                 Document document)
Method Detail

setVersion

public void setVersion(String aVersion)
Sets the version

Parameters:
aVersion - the version

getVersion

public String getVersion()
Returns the version

Returns:
the version

setMasterStation

public void setMasterStation(String aStation)
Sets the master station

Parameters:
aStation - the master station

getMasterStation

public String getMasterStation()
Returns the master station

Returns:
the master station

buildDocument

public void buildDocument()

getHeaderElement

public Element getHeaderElement()

toString

public String toString()
Overrides:
toString in class Object


Copyright ? 2007. All Rights Reserved.