org.apache.geronimo.system.plugin.model
Class ConfigXmlContentType

java.lang.Object
  extended by org.apache.geronimo.system.plugin.model.ConfigXmlContentType
All Implemented Interfaces:
Serializable

public class ConfigXmlContentType
extends Object
implements Serializable

Lets a plugin declare data that should be inserted into config.xml when the plugin is installed. This is normally used to add ports and other settings that the user is likely to want to change. The gbean entries declared here will be written into config.xml for the new module when the plugin is installed.

Java class for config-xml-contentType complex type.

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

 <complexType name="config-xml-contentType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://geronimo.apache.org/xml/ns/attributes-1.2}comment" minOccurs="0"/>
         <element ref="{http://geronimo.apache.org/xml/ns/attributes-1.2}gbean" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="condition" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="load" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="server" type="{http://www.w3.org/2001/XMLSchema}string" default="default" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  String comment
           
protected  String condition
           
protected  List<GbeanType> gbean
           
protected  Boolean load
           
protected  String server
           
 
Constructor Summary
ConfigXmlContentType()
           
 
Method Summary
 String getComment()
          Gets the value of the comment property.
 String getCondition()
          Gets the value of the condition property.
 List<GbeanType> getGbean()
          Gets the value of the gbean property.
 String getServer()
          Gets the value of the server property.
 boolean isLoad()
          Gets the value of the load property.
 void setComment(String value)
          Sets the value of the comment property.
 void setCondition(String value)
          Sets the value of the condition property.
 void setLoad(Boolean value)
          Sets the value of the load property.
 void setServer(String value)
          Sets the value of the server property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comment

protected String comment

gbean

protected List<GbeanType> gbean

condition

protected String condition

load

protected Boolean load

server

protected String server
Constructor Detail

ConfigXmlContentType

public ConfigXmlContentType()
Method Detail

getComment

public String getComment()
Gets the value of the comment property.

Returns:
possible object is String

setComment

public void setComment(String value)
Sets the value of the comment property.

Parameters:
value - allowed object is String

getGbean

public List<GbeanType> getGbean()
Gets the value of the gbean 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 gbean property.

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

    getGbean().add(newItem);
 

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


getCondition

public String getCondition()
Gets the value of the condition property.

Returns:
possible object is String

setCondition

public void setCondition(String value)
Sets the value of the condition property.

Parameters:
value - allowed object is String

isLoad

public boolean isLoad()
Gets the value of the load property.

Returns:
possible object is Boolean

setLoad

public void setLoad(Boolean value)
Sets the value of the load property.

Parameters:
value - allowed object is Boolean

getServer

public String getServer()
Gets the value of the server property.

Returns:
possible object is String

setServer

public void setServer(String value)
Sets the value of the server property.

Parameters:
value - allowed object is String


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.