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

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

public class ConfigXmlContentType
extends java.lang.Object
implements java.io.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  java.lang.String comment
           
protected  java.lang.String condition
           
protected  java.util.List<GbeanType> gbean
           
protected  java.lang.Boolean load
           
protected  java.lang.String server
           
 
Constructor Summary
ConfigXmlContentType()
           
 
Method Summary
 java.lang.String getComment()
          Gets the value of the comment property.
 java.lang.String getCondition()
          Gets the value of the condition property.
 java.util.List<GbeanType> getGbean()
          Gets the value of the gbean property.
 java.lang.String getServer()
          Gets the value of the server property.
 boolean isLoad()
          Gets the value of the load property.
 void setComment(java.lang.String value)
          Sets the value of the comment property.
 void setCondition(java.lang.String value)
          Sets the value of the condition property.
 void setLoad(java.lang.Boolean value)
          Sets the value of the load property.
 void setServer(java.lang.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 java.lang.String comment

gbean

protected java.util.List<GbeanType> gbean

condition

protected java.lang.String condition

load

protected java.lang.Boolean load

server

protected java.lang.String server
Constructor Detail

ConfigXmlContentType

public ConfigXmlContentType()
Method Detail

getComment

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

Returns:
possible object is String

setComment

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

Parameters:
value - allowed object is String

getGbean

public java.util.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 java.lang.String getCondition()
Gets the value of the condition property.

Returns:
possible object is String

setCondition

public void setCondition(java.lang.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(java.lang.Boolean value)
Sets the value of the load property.

Parameters:
value - allowed object is Boolean

getServer

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

Returns:
possible object is String

setServer

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

Parameters:
value - allowed object is String


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