org.opennms.reporting.availability
Class Created

java.lang.Object
  extended by org.opennms.reporting.availability.Created
All Implemented Interfaces:
Serializable

public class Created
extends Object
implements Serializable

Class Created.

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

Constructor Summary
Created()
           
 
Method Summary
 void deleteDay()
           
 void deleteHour()
           
 void deleteMin()
           
 void deleteSec()
           
 void deleteYear()
           
 BigDecimal getContent()
          Returns the value of field 'content'.
 int getDay()
          Returns the value of field 'day'.
 int getHour()
          Returns the value of field 'hour'.
 int getMin()
          Returns the value of field 'min'.
 String getMonth()
          Returns the value of field 'month'.
 String getPeriod()
          Returns the value of field 'period'.
 int getSec()
          Returns the value of field 'sec'.
 int getYear()
          Returns the value of field 'year'.
 boolean hasDay()
          Method hasDay.
 boolean hasHour()
          Method hasHour.
 boolean hasMin()
          Method hasMin.
 boolean hasSec()
          Method hasSec.
 boolean hasYear()
          Method hasYear.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setContent(BigDecimal content)
          Sets the value of field 'content'.
 void setDay(int day)
          Sets the value of field 'day'.
 void setHour(int hour)
          Sets the value of field 'hour'.
 void setMin(int min)
          Sets the value of field 'min'.
 void setMonth(String month)
          Sets the value of field 'month'.
 void setPeriod(String period)
          Sets the value of field 'period'.
 void setSec(int sec)
          Sets the value of field 'sec'.
 void setYear(int year)
          Sets the value of field 'year'.
static Created unmarshal(Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Created

public Created()
Method Detail

deleteDay

public void deleteDay()

deleteHour

public void deleteHour()

deleteMin

public void deleteMin()

deleteSec

public void deleteSec()

deleteYear

public void deleteYear()

getContent

public BigDecimal getContent()
Returns the value of field 'content'. The field 'content' has the following description: internal content storage

Returns:
the value of field 'Content'.

getDay

public int getDay()
Returns the value of field 'day'.

Returns:
the value of field 'Day'.

getHour

public int getHour()
Returns the value of field 'hour'.

Returns:
the value of field 'Hour'.

getMin

public int getMin()
Returns the value of field 'min'.

Returns:
the value of field 'Min'.

getMonth

public String getMonth()
Returns the value of field 'month'.

Returns:
the value of field 'Month'.

getPeriod

public String getPeriod()
Returns the value of field 'period'.

Returns:
the value of field 'Period'.

getSec

public int getSec()
Returns the value of field 'sec'.

Returns:
the value of field 'Sec'.

getYear

public int getYear()
Returns the value of field 'year'.

Returns:
the value of field 'Year'.

hasDay

public boolean hasDay()
Method hasDay.

Returns:
true if at least one Day has been added

hasHour

public boolean hasHour()
Method hasHour.

Returns:
true if at least one Hour has been added

hasMin

public boolean hasMin()
Method hasMin.

Returns:
true if at least one Min has been added

hasSec

public boolean hasSec()
Method hasSec.

Returns:
true if at least one Sec has been added

hasYear

public boolean hasYear()
Method hasYear.

Returns:
true if at least one Year has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

setContent

public void setContent(BigDecimal content)
Sets the value of field 'content'. The field 'content' has the following description: internal content storage

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

setDay

public void setDay(int day)
Sets the value of field 'day'.

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

setHour

public void setHour(int hour)
Sets the value of field 'hour'.

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

setMin

public void setMin(int min)
Sets the value of field 'min'.

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

setMonth

public void setMonth(String month)
Sets the value of field 'month'.

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

setPeriod

public void setPeriod(String period)
Sets the value of field 'period'.

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

setSec

public void setSec(int sec)
Sets the value of field 'sec'.

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

setYear

public void setYear(int year)
Sets the value of field 'year'.

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

unmarshal

public static Created unmarshal(Reader reader)
                         throws org.exolab.castor.xml.MarshalException,
                                org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.opennms.reporting.availability.Created
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright © 2011. All Rights Reserved.