org.opennms.netmgt.config.common
Class Time

java.lang.Object
  extended by org.opennms.netmgt.config.common.Time
All Implemented Interfaces:
java.io.Serializable

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

defines start/end time for the outage

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

Constructor Summary
Time()
           
 
Method Summary
 java.lang.String getBegins()
          Returns the value of field 'begins'.
 java.lang.String getDay()
          Returns the value of field 'day'.
 java.lang.String getEnds()
          Returns the value of field 'ends'.
 java.lang.String getId()
          Returns the value of field 'id'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setBegins(java.lang.String begins)
          Sets the value of field 'begins'.
 void setDay(java.lang.String day)
          Sets the value of field 'day'.
 void setEnds(java.lang.String ends)
          Sets the value of field 'ends'.
 void setId(java.lang.String id)
          Sets the value of field 'id'.
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

Time

public Time()
Method Detail

getBegins

public java.lang.String getBegins()
Returns the value of field 'begins'. The field 'begins' has the following description: when the outage starts

Returns:
String

getDay

public java.lang.String getDay()
Returns the value of field 'day'.

Returns:
String

getEnds

public java.lang.String getEnds()
Returns the value of field 'ends'. The field 'ends' has the following description: when the outage ends

Returns:
String

getId

public java.lang.String getId()
Returns the value of field 'id'. The field 'id' has the following description: an identifier for this event used for reference in the web gui. If this identifer is not assigned it will be assigned an identifer by web gui.

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

setBegins

public void setBegins(java.lang.String begins)
Sets the value of field 'begins'. The field 'begins' has the following description: when the outage starts

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

setDay

public void setDay(java.lang.String day)
Sets the value of field 'day'.

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

setEnds

public void setEnds(java.lang.String ends)
Sets the value of field 'ends'. The field 'ends' has the following description: when the outage ends

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

setId

public void setId(java.lang.String id)
Sets the value of field 'id'. The field 'id' has the following description: an identifier for this event used for reference in the web gui. If this identifer is not assigned it will be assigned an identifer by web gui.

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

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.