001 /*
002 * XML Type: port-completionType
003 * Namespace: http://geronimo.apache.org/xml/ns/naming-1.2
004 * Java type: org.apache.geronimo.xbeans.geronimo.naming.GerPortCompletionType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.naming.impl;
009 /**
010 * An XML port-completionType(@http://geronimo.apache.org/xml/ns/naming-1.2).
011 *
012 * This is a complex type.
013 */
014 public class GerPortCompletionTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.naming.GerPortCompletionType
015 {
016
017 public GerPortCompletionTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName PORT$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "port");
024 private static final javax.xml.namespace.QName BINDINGNAME$2 =
025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/naming-1.2", "binding-name");
026
027
028 /**
029 * Gets the "port" element
030 */
031 public org.apache.geronimo.xbeans.geronimo.naming.GerPortType getPort()
032 {
033 synchronized (monitor())
034 {
035 check_orphaned();
036 org.apache.geronimo.xbeans.geronimo.naming.GerPortType target = null;
037 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPortType)get_store().find_element_user(PORT$0, 0);
038 if (target == null)
039 {
040 return null;
041 }
042 return target;
043 }
044 }
045
046 /**
047 * Sets the "port" element
048 */
049 public void setPort(org.apache.geronimo.xbeans.geronimo.naming.GerPortType port)
050 {
051 synchronized (monitor())
052 {
053 check_orphaned();
054 org.apache.geronimo.xbeans.geronimo.naming.GerPortType target = null;
055 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPortType)get_store().find_element_user(PORT$0, 0);
056 if (target == null)
057 {
058 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPortType)get_store().add_element_user(PORT$0);
059 }
060 target.set(port);
061 }
062 }
063
064 /**
065 * Appends and returns a new empty "port" element
066 */
067 public org.apache.geronimo.xbeans.geronimo.naming.GerPortType addNewPort()
068 {
069 synchronized (monitor())
070 {
071 check_orphaned();
072 org.apache.geronimo.xbeans.geronimo.naming.GerPortType target = null;
073 target = (org.apache.geronimo.xbeans.geronimo.naming.GerPortType)get_store().add_element_user(PORT$0);
074 return target;
075 }
076 }
077
078 /**
079 * Gets the "binding-name" element
080 */
081 public java.lang.String getBindingName()
082 {
083 synchronized (monitor())
084 {
085 check_orphaned();
086 org.apache.xmlbeans.SimpleValue target = null;
087 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BINDINGNAME$2, 0);
088 if (target == null)
089 {
090 return null;
091 }
092 return target.getStringValue();
093 }
094 }
095
096 /**
097 * Gets (as xml) the "binding-name" element
098 */
099 public org.apache.xmlbeans.XmlString xgetBindingName()
100 {
101 synchronized (monitor())
102 {
103 check_orphaned();
104 org.apache.xmlbeans.XmlString target = null;
105 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BINDINGNAME$2, 0);
106 return target;
107 }
108 }
109
110 /**
111 * Sets the "binding-name" element
112 */
113 public void setBindingName(java.lang.String bindingName)
114 {
115 synchronized (monitor())
116 {
117 check_orphaned();
118 org.apache.xmlbeans.SimpleValue target = null;
119 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BINDINGNAME$2, 0);
120 if (target == null)
121 {
122 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BINDINGNAME$2);
123 }
124 target.setStringValue(bindingName);
125 }
126 }
127
128 /**
129 * Sets (as xml) the "binding-name" element
130 */
131 public void xsetBindingName(org.apache.xmlbeans.XmlString bindingName)
132 {
133 synchronized (monitor())
134 {
135 check_orphaned();
136 org.apache.xmlbeans.XmlString target = null;
137 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BINDINGNAME$2, 0);
138 if (target == null)
139 {
140 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(BINDINGNAME$2);
141 }
142 target.set(bindingName);
143 }
144 }
145 }