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

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

public class ContentDescriptor
extends Object

Represents a particular type of package that is present on resources of this type, such as libraries, log files, and deployed applications. Each package discovered on these resources will be of one of the defined package types (i.e. an instance of this element).

Java class for content element declaration.

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

 <element name="content">
   <complexType>
     <complexContent>
       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         <sequence>
           <element name="configuration" type="{urn:xmlns:rhq-configuration}configuration" minOccurs="0"/>
           <element ref="{urn:xmlns:rhq-plugin}version" minOccurs="0"/>
         </sequence>
         <attribute name="category" use="required" type="{urn:xmlns:rhq-plugin}contentDescriptorCategory" />
         <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
         <attribute name="discoveryInterval" type="{http://www.w3.org/2001/XMLSchema}int" default="43200000" />
         <attribute name="displayName" type="{http://www.w3.org/2001/XMLSchema}string" />
         <attribute name="isCreationType" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
         <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         <attribute name="supportsArchitecture" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       </restriction>
     </complexContent>
   </complexType>
 </element>
 


Field Summary
protected  ContentDescriptorCategory category
           
protected  ConfigurationDescriptor configuration
           
protected  String description
           
protected  Integer discoveryInterval
           
protected  String displayName
           
protected  Boolean isCreationType
           
protected  String name
           
protected  Boolean supportsArchitecture
           
protected  Version version
           
 
Constructor Summary
ContentDescriptor()
           
 
Method Summary
 ContentDescriptorCategory getCategory()
          Gets the value of the category property.
 ConfigurationDescriptor getConfiguration()
          Gets the value of the configuration property.
 String getDescription()
          Gets the value of the description property.
 int getDiscoveryInterval()
          Gets the value of the discoveryInterval property.
 String getDisplayName()
          Gets the value of the displayName property.
 String getName()
          Gets the value of the name property.
 Version getVersion()
          Resource version to which this content applies.
 boolean isIsCreationType()
          Gets the value of the isCreationType property.
 boolean isSupportsArchitecture()
          Gets the value of the supportsArchitecture property.
 void setCategory(ContentDescriptorCategory value)
          Sets the value of the category property.
 void setConfiguration(ConfigurationDescriptor value)
          Sets the value of the configuration property.
 void setDescription(String value)
          Sets the value of the description property.
 void setDiscoveryInterval(Integer value)
          Sets the value of the discoveryInterval property.
 void setDisplayName(String value)
          Sets the value of the displayName property.
 void setIsCreationType(Boolean value)
          Sets the value of the isCreationType property.
 void setName(String value)
          Sets the value of the name property.
 void setSupportsArchitecture(Boolean value)
          Sets the value of the supportsArchitecture property.
 void setVersion(Version value)
          Resource version to which this content applies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

protected ConfigurationDescriptor configuration

version

protected Version version

category

protected ContentDescriptorCategory category

description

protected String description

discoveryInterval

protected Integer discoveryInterval

displayName

protected String displayName

isCreationType

protected Boolean isCreationType

name

protected String name

supportsArchitecture

protected Boolean supportsArchitecture
Constructor Detail

ContentDescriptor

public ContentDescriptor()
Method Detail

getConfiguration

public ConfigurationDescriptor getConfiguration()
Gets the value of the configuration property.

Returns:
possible object is ConfigurationDescriptor

setConfiguration

public void setConfiguration(ConfigurationDescriptor value)
Sets the value of the configuration property.

Parameters:
value - allowed object is ConfigurationDescriptor

getVersion

public Version getVersion()
Resource version to which this content applies. If this is omitted, the content applies to all versions.

Returns:
possible object is Version

setVersion

public void setVersion(Version value)
Resource version to which this content applies. If this is omitted, the content applies to all versions.

Parameters:
value - allowed object is Version

getCategory

public ContentDescriptorCategory getCategory()
Gets the value of the category property.

Returns:
possible object is ContentDescriptorCategory

setCategory

public void setCategory(ContentDescriptorCategory value)
Sets the value of the category property.

Parameters:
value - allowed object is ContentDescriptorCategory

getDescription

public String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

public void setDescription(String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getDiscoveryInterval

public int getDiscoveryInterval()
Gets the value of the discoveryInterval property.

Returns:
possible object is Integer

setDiscoveryInterval

public void setDiscoveryInterval(Integer value)
Sets the value of the discoveryInterval property.

Parameters:
value - allowed object is Integer

getDisplayName

public String getDisplayName()
Gets the value of the displayName property.

Returns:
possible object is String

setDisplayName

public void setDisplayName(String value)
Sets the value of the displayName property.

Parameters:
value - allowed object is String

isIsCreationType

public boolean isIsCreationType()
Gets the value of the isCreationType property.

Returns:
possible object is Boolean

setIsCreationType

public void setIsCreationType(Boolean value)
Sets the value of the isCreationType property.

Parameters:
value - allowed object is Boolean

getName

public String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

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

Parameters:
value - allowed object is String

isSupportsArchitecture

public boolean isSupportsArchitecture()
Gets the value of the supportsArchitecture property.

Returns:
possible object is Boolean

setSupportsArchitecture

public void setSupportsArchitecture(Boolean value)
Sets the value of the supportsArchitecture property.

Parameters:
value - allowed object is Boolean


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