org.opennms.netmgt.config.rrd
Class Datasources

java.lang.Object
  extended by org.opennms.netmgt.config.rrd.Datasources
All Implemented Interfaces:
java.io.Serializable

public class Datasources
extends java.lang.Object
implements java.io.Serializable

Class Datasources.

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

Constructor Summary
Datasources()
           
 
Method Summary
 void addDef(Def vDef)
          Method addDef
 void addDef(int index, Def vDef)
          Method addDef
 void addExport_data(Export_data vExport_data)
          Method addExport_data
 void addExport_data(int index, Export_data vExport_data)
          Method addExport_data
 void clearDef()
          Method clearDef
 void clearExport_data()
          Method clearExport_data
 java.util.Enumeration enumerateDef()
          Method enumerateDef
 java.util.Enumeration enumerateExport_data()
          Method enumerateExport_data
 Def[] getDef()
          Method getDef
 Def getDef(int index)
          Method getDef
 java.util.ArrayList getDefCollection()
          Method getDefCollection Returns a reference to 'def'.
 int getDefCount()
          Method getDefCount
 Export_data[] getExport_data()
          Method getExport_data
 Export_data getExport_data(int index)
          Method getExport_data
 java.util.ArrayList getExport_dataCollection()
          Method getExport_dataCollection Returns a reference to 'export_data'.
 int getExport_dataCount()
          Method getExport_dataCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeDef(Def vDef)
          Method removeDef
 boolean removeExport_data(Export_data vExport_data)
          Method removeExport_data
 void setDef(java.util.ArrayList defCollection)
          Method setDef Sets the value of 'def' by copying the given ArrayList.
 void setDef(Def[] defArray)
          Method setDef
 void setDef(int index, Def vDef)
          Method setDef
 void setDefCollection(java.util.ArrayList defCollection)
          Method setDefCollection Sets the value of 'def' by setting it to the given ArrayList.
 void setExport_data(java.util.ArrayList export_dataCollection)
          Method setExport_data Sets the value of 'export_data' by copying the given ArrayList.
 void setExport_data(Export_data[] export_dataArray)
          Method setExport_data
 void setExport_data(int index, Export_data vExport_data)
          Method setExport_data
 void setExport_dataCollection(java.util.ArrayList export_dataCollection)
          Method setExport_dataCollection Sets the value of 'export_data' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Datasources

public Datasources()
Method Detail

addDef

public void addDef(Def vDef)
            throws java.lang.IndexOutOfBoundsException
Method addDef

Parameters:
vDef -
Throws:
java.lang.IndexOutOfBoundsException

addDef

public void addDef(int index,
                   Def vDef)
            throws java.lang.IndexOutOfBoundsException
Method addDef

Parameters:
index -
vDef -
Throws:
java.lang.IndexOutOfBoundsException

addExport_data

public void addExport_data(Export_data vExport_data)
                    throws java.lang.IndexOutOfBoundsException
Method addExport_data

Parameters:
vExport_data -
Throws:
java.lang.IndexOutOfBoundsException

addExport_data

public void addExport_data(int index,
                           Export_data vExport_data)
                    throws java.lang.IndexOutOfBoundsException
Method addExport_data

Parameters:
index -
vExport_data -
Throws:
java.lang.IndexOutOfBoundsException

clearDef

public void clearDef()
Method clearDef


clearExport_data

public void clearExport_data()
Method clearExport_data


enumerateDef

public java.util.Enumeration enumerateDef()
Method enumerateDef

Returns:
Enumeration

enumerateExport_data

public java.util.Enumeration enumerateExport_data()
Method enumerateExport_data

Returns:
Enumeration

getDef

public Def getDef(int index)
           throws java.lang.IndexOutOfBoundsException
Method getDef

Parameters:
index -
Returns:
Def
Throws:
java.lang.IndexOutOfBoundsException

getDef

public Def[] getDef()
Method getDef

Returns:
Def

getDefCollection

public java.util.ArrayList getDefCollection()
Method getDefCollection Returns a reference to 'def'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getDefCount

public int getDefCount()
Method getDefCount

Returns:
int

getExport_data

public Export_data getExport_data(int index)
                           throws java.lang.IndexOutOfBoundsException
Method getExport_data

Parameters:
index -
Returns:
Export_data
Throws:
java.lang.IndexOutOfBoundsException

getExport_data

public Export_data[] getExport_data()
Method getExport_data

Returns:
Export_data

getExport_dataCollection

public java.util.ArrayList getExport_dataCollection()
Method getExport_dataCollection Returns a reference to 'export_data'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getExport_dataCount

public int getExport_dataCount()
Method getExport_dataCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeDef

public boolean removeDef(Def vDef)
Method removeDef

Parameters:
vDef -
Returns:
boolean

removeExport_data

public boolean removeExport_data(Export_data vExport_data)
Method removeExport_data

Parameters:
vExport_data -
Returns:
boolean

setDef

public void setDef(int index,
                   Def vDef)
            throws java.lang.IndexOutOfBoundsException
Method setDef

Parameters:
index -
vDef -
Throws:
java.lang.IndexOutOfBoundsException

setDef

public void setDef(Def[] defArray)
Method setDef

Parameters:
defArray -

setDef

public void setDef(java.util.ArrayList defCollection)
Method setDef Sets the value of 'def' by copying the given ArrayList.

Parameters:
defCollection - the Vector to copy.

setDefCollection

public void setDefCollection(java.util.ArrayList defCollection)
Method setDefCollection Sets the value of 'def' by setting it to the given ArrayList. No type checking is performed.

Parameters:
defCollection - the ArrayList to copy.

setExport_data

public void setExport_data(int index,
                           Export_data vExport_data)
                    throws java.lang.IndexOutOfBoundsException
Method setExport_data

Parameters:
index -
vExport_data -
Throws:
java.lang.IndexOutOfBoundsException

setExport_data

public void setExport_data(Export_data[] export_dataArray)
Method setExport_data

Parameters:
export_dataArray -

setExport_data

public void setExport_data(java.util.ArrayList export_dataCollection)
Method setExport_data Sets the value of 'export_data' by copying the given ArrayList.

Parameters:
export_dataCollection - the Vector to copy.

setExport_dataCollection

public void setExport_dataCollection(java.util.ArrayList export_dataCollection)
Method setExport_dataCollection Sets the value of 'export_data' by setting it to the given ArrayList. No type checking is performed.

Parameters:
export_dataCollection - the ArrayList to copy.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.