001 /*
002 * XML Type: credentialType
003 * Namespace: http://geronimo.apache.org/xml/ns/credentialstore-1.0
004 * Java type: org.apache.geronimo.xbeans.geronimo.credentialstore.CredentialType
005 *
006 * Automatically generated - do not modify.
007 */
008 package org.apache.geronimo.xbeans.geronimo.credentialstore.impl;
009 /**
010 * An XML credentialType(@http://geronimo.apache.org/xml/ns/credentialstore-1.0).
011 *
012 * This is a complex type.
013 */
014 public class CredentialTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.xbeans.geronimo.credentialstore.CredentialType
015 {
016
017 public CredentialTypeImpl(org.apache.xmlbeans.SchemaType sType)
018 {
019 super(sType);
020 }
021
022 private static final javax.xml.namespace.QName TYPE$0 =
023 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/credentialstore-1.0", "type");
024 private static final javax.xml.namespace.QName VALUE$2 =
025 new javax.xml.namespace.QName("http://geronimo.apache.org/xml/ns/credentialstore-1.0", "value");
026
027
028 /**
029 * Gets the "type" element
030 */
031 public java.lang.String getType()
032 {
033 synchronized (monitor())
034 {
035 check_orphaned();
036 org.apache.xmlbeans.SimpleValue target = null;
037 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$0, 0);
038 if (target == null)
039 {
040 return null;
041 }
042 return target.getStringValue();
043 }
044 }
045
046 /**
047 * Gets (as xml) the "type" element
048 */
049 public org.apache.xmlbeans.XmlString xgetType()
050 {
051 synchronized (monitor())
052 {
053 check_orphaned();
054 org.apache.xmlbeans.XmlString target = null;
055 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TYPE$0, 0);
056 return target;
057 }
058 }
059
060 /**
061 * Sets the "type" element
062 */
063 public void setType(java.lang.String type)
064 {
065 synchronized (monitor())
066 {
067 check_orphaned();
068 org.apache.xmlbeans.SimpleValue target = null;
069 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$0, 0);
070 if (target == null)
071 {
072 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TYPE$0);
073 }
074 target.setStringValue(type);
075 }
076 }
077
078 /**
079 * Sets (as xml) the "type" element
080 */
081 public void xsetType(org.apache.xmlbeans.XmlString type)
082 {
083 synchronized (monitor())
084 {
085 check_orphaned();
086 org.apache.xmlbeans.XmlString target = null;
087 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TYPE$0, 0);
088 if (target == null)
089 {
090 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TYPE$0);
091 }
092 target.set(type);
093 }
094 }
095
096 /**
097 * Gets the "value" element
098 */
099 public java.lang.String getValue()
100 {
101 synchronized (monitor())
102 {
103 check_orphaned();
104 org.apache.xmlbeans.SimpleValue target = null;
105 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
106 if (target == null)
107 {
108 return null;
109 }
110 return target.getStringValue();
111 }
112 }
113
114 /**
115 * Gets (as xml) the "value" element
116 */
117 public org.apache.xmlbeans.XmlString xgetValue()
118 {
119 synchronized (monitor())
120 {
121 check_orphaned();
122 org.apache.xmlbeans.XmlString target = null;
123 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$2, 0);
124 return target;
125 }
126 }
127
128 /**
129 * Sets the "value" element
130 */
131 public void setValue(java.lang.String value)
132 {
133 synchronized (monitor())
134 {
135 check_orphaned();
136 org.apache.xmlbeans.SimpleValue target = null;
137 target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
138 if (target == null)
139 {
140 target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$2);
141 }
142 target.setStringValue(value);
143 }
144 }
145
146 /**
147 * Sets (as xml) the "value" element
148 */
149 public void xsetValue(org.apache.xmlbeans.XmlString value)
150 {
151 synchronized (monitor())
152 {
153 check_orphaned();
154 org.apache.xmlbeans.XmlString target = null;
155 target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$2, 0);
156 if (target == null)
157 {
158 target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALUE$2);
159 }
160 target.set(value);
161 }
162 }
163 }