org.opennms.netmgt.xml.event
Class Header

java.lang.Object
  extended by org.opennms.netmgt.xml.event.Header
All Implemented Interfaces:
java.io.Serializable

public class Header
extends java.lang.Object
implements java.io.Serializable

Class Header.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Header()
           
 
Method Summary
 java.lang.String getCreated()
          Returns the value of field 'created'.
 java.lang.String getDpName()
          Returns the value of field 'dpName'.
 java.lang.String getMstation()
          Returns the value of field 'mstation'.
 java.lang.String getVer()
          Returns the value of field 'ver'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setCreated(java.lang.String created)
          Sets the value of field 'created'.
 void setDpName(java.lang.String dpName)
          Sets the value of field 'dpName'.
 void setMstation(java.lang.String mstation)
          Sets the value of field 'mstation'.
 void setVer(java.lang.String ver)
          Sets the value of field 'ver'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Header

public Header()
Method Detail

getCreated

public java.lang.String getCreated()
Returns the value of field 'created'. The field 'created' has the following description: The time at which this log was generated. The time is in the format generated by the java.text.DateFormat using the DateFormat.FULL style for the default locale. For example: "Monday, February 18, 2002 3:01:58 PM EST"

Returns:
String

getDpName

public java.lang.String getDpName()
Returns the value of field 'dpName'.

Returns:
String

getMstation

public java.lang.String getMstation()
Returns the value of field 'mstation'.

Returns:
String

getVer

public java.lang.String getVer()
Returns the value of field 'ver'.

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setCreated

public void setCreated(java.lang.String created)
Sets the value of field 'created'. The field 'created' has the following description: The time at which this log was generated. The time is in the format generated by the java.text.DateFormat using the DateFormat.FULL style for the default locale. For example: "Monday, February 18, 2002 3:01:58 PM EST"

Parameters:
created - the value of field 'created'.

setDpName

public void setDpName(java.lang.String dpName)
Sets the value of field 'dpName'.

Parameters:
dpName - the value of field 'dpName'.

setMstation

public void setMstation(java.lang.String mstation)
Sets the value of field 'mstation'.

Parameters:
mstation - the value of field 'mstation'.

setVer

public void setVer(java.lang.String ver)
Sets the value of field 'ver'.

Parameters:
ver - the value of field 'ver'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.