org.opennms.netmgt.config.datacollection
Class ResourceType

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

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

a custom resource type

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

Constructor Summary
ResourceType()
           
 
Method Summary
 java.lang.String getLabel()
          Returns the value of field 'label'.
 java.lang.String getName()
          Returns the value of field 'name'.
 PersistenceSelectorStrategy getPersistenceSelectorStrategy()
          Returns the value of field 'persistenceSelectorStrategy'.
 java.lang.String getResourceLabel()
          Returns the value of field 'resourceLabel'.
 StorageStrategy getStorageStrategy()
          Returns the value of field 'storageStrategy'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setLabel(java.lang.String label)
          Sets the value of field 'label'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setPersistenceSelectorStrategy(PersistenceSelectorStrategy persistenceSelectorStrategy)
          Sets the value of field 'persistenceSelectorStrategy'.
 void setResourceLabel(java.lang.String resourceLabel)
          Sets the value of field 'resourceLabel'.
 void setStorageStrategy(StorageStrategy storageStrategy)
          Sets the value of field 'storageStrategy'.
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

ResourceType

public ResourceType()
Method Detail

getLabel

public java.lang.String getLabel()
Returns the value of field 'label'. The field 'label' has the following description: resource type label (this is what users see in the webUI)

Returns:
String

getName

public java.lang.String getName()
Returns the value of field 'name'. The field 'name' has the following description: resource type name

Returns:
String

getPersistenceSelectorStrategy

public PersistenceSelectorStrategy getPersistenceSelectorStrategy()
Returns the value of field 'persistenceSelectorStrategy'. The field 'persistenceSelectorStrategy' has the following description: Selects a PersistenceSelectorStrategy that decides which data is persisted and which is not.

Returns:
PersistenceSelectorStrategy

getResourceLabel

public java.lang.String getResourceLabel()
Returns the value of field 'resourceLabel'. The field 'resourceLabel' has the following description: resource label expression (this is what users see in the webUI for each resource of this type)

Returns:
String

getStorageStrategy

public StorageStrategy getStorageStrategy()
Returns the value of field 'storageStrategy'. The field 'storageStrategy' has the following description: Selects a StorageStrategy that decides where data is stored.

Returns:
StorageStrategy

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

setLabel

public void setLabel(java.lang.String label)
Sets the value of field 'label'. The field 'label' has the following description: resource type label (this is what users see in the webUI)

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

setName

public void setName(java.lang.String name)
Sets the value of field 'name'. The field 'name' has the following description: resource type name

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

setPersistenceSelectorStrategy

public void setPersistenceSelectorStrategy(PersistenceSelectorStrategy persistenceSelectorStrategy)
Sets the value of field 'persistenceSelectorStrategy'. The field 'persistenceSelectorStrategy' has the following description: Selects a PersistenceSelectorStrategy that decides which data is persisted and which is not.

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

setResourceLabel

public void setResourceLabel(java.lang.String resourceLabel)
Sets the value of field 'resourceLabel'. The field 'resourceLabel' has the following description: resource label expression (this is what users see in the webUI for each resource of this type)

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

setStorageStrategy

public void setStorageStrategy(StorageStrategy storageStrategy)
Sets the value of field 'storageStrategy'. The field 'storageStrategy' has the following description: Selects a StorageStrategy that decides where data is stored.

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

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.