org.opennms.netmgt.config.rrd
Class DataSourceDef

java.lang.Object
  extended by org.opennms.netmgt.config.rrd.DataSourceDef
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Def

public class DataSourceDef
extends Object
implements Serializable

Class DataSourceDef.

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

Constructor Summary
DataSourceDef()
           
 
Method Summary
 Backend getBackend()
          Returns the value of field 'backend'.
 Cf getCf()
          Returns the value of field 'cf'.
 String getName()
          Returns the value of field 'name'.
 String getRpn()
          Returns the value of field 'rpn'.
 String getRrd()
          Returns the value of field 'rrd'.
 String getSource()
          Returns the value of field 'source'.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setBackend(Backend backend)
          Sets the value of field 'backend'.
 void setCf(Cf cf)
          Sets the value of field 'cf'.
 void setName(String name)
          Sets the value of field 'name'.
 void setRpn(String rpn)
          Sets the value of field 'rpn'.
 void setRrd(String rrd)
          Sets the value of field 'rrd'.
 void setSource(String source)
          Sets the value of field 'source'.
static DataSourceDef 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

DataSourceDef

public DataSourceDef()
Method Detail

getBackend

public Backend getBackend()
Returns the value of field 'backend'.

Returns:
the value of field 'Backend'.

getCf

public Cf getCf()
Returns the value of field 'cf'.

Returns:
the value of field 'Cf'.

getName

public String getName()
Returns the value of field 'name'.

Returns:
the value of field 'Name'.

getRpn

public String getRpn()
Returns the value of field 'rpn'.

Returns:
the value of field 'Rpn'.

getRrd

public String getRrd()
Returns the value of field 'rrd'.

Returns:
the value of field 'Rrd'.

getSource

public String getSource()
Returns the value of field 'source'.

Returns:
the value of field 'Source'.

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

setBackend

public void setBackend(Backend backend)
Sets the value of field 'backend'.

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

setCf

public void setCf(Cf cf)
Sets the value of field 'cf'.

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

setName

public void setName(String name)
Sets the value of field 'name'.

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

setRpn

public void setRpn(String rpn)
Sets the value of field 'rpn'.

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

setRrd

public void setRrd(String rrd)
Sets the value of field 'rrd'.

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

setSource

public void setSource(String source)
Sets the value of field 'source'.

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

unmarshal

public static DataSourceDef 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.DataSourceDef
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.