org.opennms.netmgt.config.webuiColors
Class CategoryColors

java.lang.Object
  extended by org.opennms.netmgt.config.webuiColors.CategoryColors
All Implemented Interfaces:
Serializable

public class CategoryColors
extends Object
implements Serializable

Top-level element of the webui-colors.xml configuration file. The colors used in the categories box of the WebUI.

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

Constructor Summary
CategoryColors()
           
 
Method Summary
 String getGreen()
          Returns the value of field 'green'.
 String getRed()
          Returns the value of field 'red'.
 String getYellow()
          Returns the value of field 'yellow'.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setGreen(String green)
          Sets the value of field 'green'.
 void setRed(String red)
          Sets the value of field 'red'.
 void setYellow(String yellow)
          Sets the value of field 'yellow'.
static CategoryColors 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

CategoryColors

public CategoryColors()
Method Detail

getGreen

public String getGreen()
Returns the value of field 'green'. The field 'green' has the following description: The color used for a normal status

Returns:
the value of field 'Green'.

getRed

public String getRed()
Returns the value of field 'red'. The field 'red' has the following description: The color used for an abnormal status

Returns:
the value of field 'Red'.

getYellow

public String getYellow()
Returns the value of field 'yellow'. The field 'yellow' has the following description: The color used for a warning status

Returns:
the value of field 'Yellow'.

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

setGreen

public void setGreen(String green)
Sets the value of field 'green'. The field 'green' has the following description: The color used for a normal status

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

setRed

public void setRed(String red)
Sets the value of field 'red'. The field 'red' has the following description: The color used for an abnormal status

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

setYellow

public void setYellow(String yellow)
Sets the value of field 'yellow'. The field 'yellow' has the following description: The color used for a warning status

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

unmarshal

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

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.webuiColors.CategoryColors
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 © 2008. All Rights Reserved.