org.opennms.netmgt.config.rrd
Class GraphLine

java.lang.Object
  extended by org.opennms.netmgt.config.rrd.GraphLine
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Area, Line, Stack

public class GraphLine
extends Object
implements Serializable

Class GraphLine.

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

Constructor Summary
GraphLine()
           
 
Method Summary
 void deleteValue1()
           
 void deleteValue2()
           
 void deleteWidth()
           
 String getColor()
          Returns the value of field 'color'.
 String getDatasource()
          Returns the value of field 'datasource'.
 String getLegend()
          Returns the value of field 'legend'.
 String getTime1()
          Returns the value of field 'time1'.
 String getTime2()
          Returns the value of field 'time2'.
 double getValue1()
          Returns the value of field 'value1'.
 double getValue2()
          Returns the value of field 'value2'.
 int getWidth()
          Returns the value of field 'width'.
 boolean hasValue1()
          Method hasValue1.
 boolean hasValue2()
          Method hasValue2.
 boolean hasWidth()
          Method hasWidth.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setColor(String color)
          Sets the value of field 'color'.
 void setDatasource(String datasource)
          Sets the value of field 'datasource'.
 void setLegend(String legend)
          Sets the value of field 'legend'.
 void setTime1(String time1)
          Sets the value of field 'time1'.
 void setTime2(String time2)
          Sets the value of field 'time2'.
 void setValue1(double value1)
          Sets the value of field 'value1'.
 void setValue2(double value2)
          Sets the value of field 'value2'.
 void setWidth(int width)
          Sets the value of field 'width'.
static GraphLine 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

GraphLine

public GraphLine()
Method Detail

deleteValue1

public void deleteValue1()

deleteValue2

public void deleteValue2()

deleteWidth

public void deleteWidth()

getColor

public String getColor()
Returns the value of field 'color'.

Returns:
the value of field 'Color'.

getDatasource

public String getDatasource()
Returns the value of field 'datasource'.

Returns:
the value of field 'Datasource'.

getLegend

public String getLegend()
Returns the value of field 'legend'.

Returns:
the value of field 'Legend'.

getTime1

public String getTime1()
Returns the value of field 'time1'.

Returns:
the value of field 'Time1'.

getTime2

public String getTime2()
Returns the value of field 'time2'.

Returns:
the value of field 'Time2'.

getValue1

public double getValue1()
Returns the value of field 'value1'.

Returns:
the value of field 'Value1'.

getValue2

public double getValue2()
Returns the value of field 'value2'.

Returns:
the value of field 'Value2'.

getWidth

public int getWidth()
Returns the value of field 'width'.

Returns:
the value of field 'Width'.

hasValue1

public boolean hasValue1()
Method hasValue1.

Returns:
true if at least one Value1 has been added

hasValue2

public boolean hasValue2()
Method hasValue2.

Returns:
true if at least one Value2 has been added

hasWidth

public boolean hasWidth()
Method hasWidth.

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

setColor

public void setColor(String color)
Sets the value of field 'color'.

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

setDatasource

public void setDatasource(String datasource)
Sets the value of field 'datasource'.

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

setLegend

public void setLegend(String legend)
Sets the value of field 'legend'.

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

setTime1

public void setTime1(String time1)
Sets the value of field 'time1'.

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

setTime2

public void setTime2(String time2)
Sets the value of field 'time2'.

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

setValue1

public void setValue1(double value1)
Sets the value of field 'value1'.

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

setValue2

public void setValue2(double value2)
Sets the value of field 'value2'.

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

setWidth

public void setWidth(int width)
Sets the value of field 'width'.

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

unmarshal

public static GraphLine 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.rrd.GraphLine
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 © 2009. All Rights Reserved.