org.rhq.core.clientapi.descriptor.plugin
Class ServiceDescriptor

java.lang.Object
  extended by org.rhq.core.clientapi.descriptor.plugin.ResourceDescriptor
      extended by org.rhq.core.clientapi.descriptor.plugin.ServiceDescriptor

public class ServiceDescriptor
extends ResourceDescriptor

Java class for service complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="service">
   <complexContent>
     <extension base="{urn:xmlns:rhq-plugin}resource">
       <sequence>
         <element ref="{urn:xmlns:rhq-plugin}service" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attGroup ref="{urn:xmlns:rhq-plugin}creationAttributes"/>
       <attGroup ref="{urn:xmlns:rhq-plugin}embeddedSourceResourceType"/>
       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </complexContent>
 </complexType>
 


Nested Class Summary
 
Nested classes/interfaces inherited from class org.rhq.core.clientapi.descriptor.plugin.ResourceDescriptor
ResourceDescriptor.Subcategories
 
Field Summary
protected  ResourceCreateDeletePolicy createDeletePolicy
           
protected  ResourceCreationData creationDataType
           
protected  List<ServiceDescriptor> services
           
protected  String sourcePlugin
           
protected  String sourceType
           
protected  String type
           
 
Fields inherited from class org.rhq.core.clientapi.descriptor.plugin.ResourceDescriptor
classLoader, clazz, content, description, discovery, event, help, metric, name, operation, pluginConfiguration, processScan, resourceConfiguration, runsInside, singleton, subcategories, subCategory, supportsManualAdd, version
 
Constructor Summary
ServiceDescriptor()
           
 
Method Summary
 ResourceCreateDeletePolicy getCreateDeletePolicy()
          Gets the value of the createDeletePolicy property.
 ResourceCreationData getCreationDataType()
          Gets the value of the creationDataType property.
 List<ServiceDescriptor> getServices()
          Defines child services that are hosted in this resource type.
 String getSourcePlugin()
          Gets the value of the sourcePlugin property.
 String getSourceType()
          Gets the value of the sourceType property.
 String getType()
          Gets the value of the type property.
 void setCreateDeletePolicy(ResourceCreateDeletePolicy value)
          Sets the value of the createDeletePolicy property.
 void setCreationDataType(ResourceCreationData value)
          Sets the value of the creationDataType property.
 void setSourcePlugin(String value)
          Sets the value of the sourcePlugin property.
 void setSourceType(String value)
          Sets the value of the sourceType property.
 void setType(String value)
          Sets the value of the type property.
 
Methods inherited from class org.rhq.core.clientapi.descriptor.plugin.ResourceDescriptor
getClassLoader, getClazz, getContent, getDescription, getDiscovery, getEvent, getHelp, getMetric, getName, getOperation, getOtherAttributes, getPluginConfiguration, getProcessScan, getResourceConfiguration, getRunsInside, getSubcategories, getSubCategory, getVersion, isSingleton, isSupportsManualAdd, setClassLoader, setClazz, setDescription, setDiscovery, setHelp, setName, setPluginConfiguration, setResourceConfiguration, setRunsInside, setSingleton, setSubcategories, setSubCategory, setSupportsManualAdd, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

services

protected List<ServiceDescriptor> services

type

protected String type

createDeletePolicy

protected ResourceCreateDeletePolicy createDeletePolicy

creationDataType

protected ResourceCreationData creationDataType

sourcePlugin

protected String sourcePlugin

sourceType

protected String sourceType
Constructor Detail

ServiceDescriptor

public ServiceDescriptor()
Method Detail

getServices

public List<ServiceDescriptor> getServices()
Defines child services that are hosted in this resource type. Gets the value of the services property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the services property.

For example, to add a new item, do as follows:

    getServices().add(newItem);
 

Objects of the following type(s) are allowed in the list ServiceDescriptor


getType

public String getType()
Gets the value of the type property.

Returns:
possible object is String

setType

public void setType(String value)
Sets the value of the type property.

Parameters:
value - allowed object is String

getCreateDeletePolicy

public ResourceCreateDeletePolicy getCreateDeletePolicy()
Gets the value of the createDeletePolicy property.

Returns:
possible object is ResourceCreateDeletePolicy

setCreateDeletePolicy

public void setCreateDeletePolicy(ResourceCreateDeletePolicy value)
Sets the value of the createDeletePolicy property.

Parameters:
value - allowed object is ResourceCreateDeletePolicy

getCreationDataType

public ResourceCreationData getCreationDataType()
Gets the value of the creationDataType property.

Returns:
possible object is ResourceCreationData

setCreationDataType

public void setCreationDataType(ResourceCreationData value)
Sets the value of the creationDataType property.

Parameters:
value - allowed object is ResourceCreationData

getSourcePlugin

public String getSourcePlugin()
Gets the value of the sourcePlugin property.

Returns:
possible object is String

setSourcePlugin

public void setSourcePlugin(String value)
Sets the value of the sourcePlugin property.

Parameters:
value - allowed object is String

getSourceType

public String getSourceType()
Gets the value of the sourceType property.

Returns:
possible object is String

setSourceType

public void setSourceType(String value)
Sets the value of the sourceType property.

Parameters:
value - allowed object is String


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.