org.opennms.report.availability
Class Report

java.lang.Object
  extended by org.opennms.report.availability.Report
All Implemented Interfaces:
Serializable

public class Report
extends Object
implements Serializable

The top-level element for availability reports.

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

Constructor Summary
Report()
           
 
Method Summary
 void deleteCatCount()
           
 void deleteSectionCount()
           
 String getAuthor()
          Returns the value of field 'author'.
 int getCatCount()
          Returns the value of field 'catCount'.
 Categories getCategories()
          Returns the value of field 'categories'.
 Created getCreated()
          Returns the value of field 'created'.
 String getLogo()
          Returns the value of field 'logo'.
 int getSectionCount()
          Returns the value of field 'sectionCount'.
 ViewInfo getViewInfo()
          Returns the value of field 'viewInfo'.
 boolean hasCatCount()
          Method hasCatCount.
 boolean hasSectionCount()
          Method hasSectionCount.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setAuthor(String author)
          Sets the value of field 'author'.
 void setCatCount(int catCount)
          Sets the value of field 'catCount'.
 void setCategories(Categories categories)
          Sets the value of field 'categories'.
 void setCreated(Created created)
          Sets the value of field 'created'.
 void setLogo(String logo)
          Sets the value of field 'logo'.
 void setSectionCount(int sectionCount)
          Sets the value of field 'sectionCount'.
 void setViewInfo(ViewInfo viewInfo)
          Sets the value of field 'viewInfo'.
static Report 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

Report

public Report()
Method Detail

deleteCatCount

public void deleteCatCount()

deleteSectionCount

public void deleteSectionCount()

getAuthor

public String getAuthor()
Returns the value of field 'author'.

Returns:
the value of field 'Author'.

getCatCount

public int getCatCount()
Returns the value of field 'catCount'.

Returns:
the value of field 'CatCount'.

getCategories

public Categories getCategories()
Returns the value of field 'categories'.

Returns:
the value of field 'Categories'.

getCreated

public Created getCreated()
Returns the value of field 'created'.

Returns:
the value of field 'Created'.

getLogo

public String getLogo()
Returns the value of field 'logo'.

Returns:
the value of field 'Logo'.

getSectionCount

public int getSectionCount()
Returns the value of field 'sectionCount'.

Returns:
the value of field 'SectionCount'.

getViewInfo

public ViewInfo getViewInfo()
Returns the value of field 'viewInfo'. The field 'viewInfo' has the following description: element name="viewInfo"

Returns:
the value of field 'ViewInfo'.

hasCatCount

public boolean hasCatCount()
Method hasCatCount.

Returns:
true if at least one CatCount has been added

hasSectionCount

public boolean hasSectionCount()
Method hasSectionCount.

Returns:
true if at least one SectionCount 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

setAuthor

public void setAuthor(String author)
Sets the value of field 'author'.

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

setCatCount

public void setCatCount(int catCount)
Sets the value of field 'catCount'.

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

setCategories

public void setCategories(Categories categories)
Sets the value of field 'categories'.

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

setCreated

public void setCreated(Created created)
Sets the value of field 'created'.

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

setLogo

public void setLogo(String logo)
Sets the value of field 'logo'.

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

setSectionCount

public void setSectionCount(int sectionCount)
Sets the value of field 'sectionCount'.

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

setViewInfo

public void setViewInfo(ViewInfo viewInfo)
Sets the value of field 'viewInfo'. The field 'viewInfo' has the following description: element name="viewInfo"

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

unmarshal

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

Parameters:
reader -
Returns:
the unmarshaled org.opennms.report.availability.Repor
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.