001 /*
002 * XML Type: jbi-type
003 * Namespace: http://servicemix.apache.org/xml/ns/jbi-1.0
004 * Java type: org.apache.servicemix.geronimo.deployment.SMJbiType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.servicemix.geronimo.deployment.impl;
009 /**
010 * An XML jbi-type(@http://servicemix.apache.org/xml/ns/jbi-1.0).
011 *
012 * This is a complex type.
013 */
014 public class SMJbiTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.servicemix.geronimo.deployment.SMJbiType
015 {
016
017 public SMJbiTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName ENVIRONMENT$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/deployment-1.2", "environment");
024
025
026 /**
027 * Gets the "environment" element
028 */
029 public org.apache.geronimo.deployment.xbeans.EnvironmentType getEnvironment()
030 {
031 synchronized (monitor())
032 {
033 check_orphaned();
034 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null;
035 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(ENVIRONMENT$0, 0);
036 if (target == null)
037 {
038 return null;
039 }
040 return target;
041 }
042 }
043
044 /**
045 * True if has "environment" element
046 */
047 public boolean isSetEnvironment()
048 {
049 synchronized (monitor())
050 {
051 check_orphaned();
052 return get_store().count_elements(ENVIRONMENT$0) != 0;
053 }
054 }
055
056 /**
057 * Sets the "environment" element
058 */
059 public void setEnvironment(org.apache.geronimo.deployment.xbeans.EnvironmentType environment)
060 {
061 synchronized (monitor())
062 {
063 check_orphaned();
064 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null;
065 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().find_element_user(ENVIRONMENT$0, 0);
066 if (target == null)
067 {
068 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(ENVIRONMENT$0);
069 }
070 target.set(environment);
071 }
072 }
073
074 /**
075 * Appends and returns a new empty "environment" element
076 */
077 public org.apache.geronimo.deployment.xbeans.EnvironmentType addNewEnvironment()
078 {
079 synchronized (monitor())
080 {
081 check_orphaned();
082 org.apache.geronimo.deployment.xbeans.EnvironmentType target = null;
083 target = (org.apache.geronimo.deployment.xbeans.EnvironmentType)get_store().add_element_user(ENVIRONMENT$0);
084 return target;
085 }
086 }
087
088 /**
089 * Unsets the "environment" element
090 */
091 public void unsetEnvironment()
092 {
093 synchronized (monitor())
094 {
095 check_orphaned();
096 get_store().remove_element(ENVIRONMENT$0, 0);
097 }
098 }
099 }