001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.5-b16-fcs
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2005.09.05 at 03:09:41 PM IST
006: //
007:
008: package com.sun.xml.wss.saml.internal.saml11.jaxb10.impl;
009:
010: public class SubjectLocalityTypeImpl
011: implements
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectLocalityType,
013: com.sun.xml.bind.JAXBObject,
014: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallableObject,
015: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializable,
016: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.ValidatableObject {
017:
018: protected java.lang.String _DNSAddress;
019: protected java.lang.String _IPAddress;
020: public final static java.lang.Class version = (com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.JAXBVersion.class);
021: private static com.sun.msv.grammar.Grammar schemaFragment;
022:
023: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
024: return (com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectLocalityType.class);
025: }
026:
027: public java.lang.String getDNSAddress() {
028: return _DNSAddress;
029: }
030:
031: public void setDNSAddress(java.lang.String value) {
032: _DNSAddress = value;
033: }
034:
035: public java.lang.String getIPAddress() {
036: return _IPAddress;
037: }
038:
039: public void setIPAddress(java.lang.String value) {
040: _IPAddress = value;
041: }
042:
043: public com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
044: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
045: return new com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl.Unmarshaller(
046: context);
047: }
048:
049: public void serializeBody(
050: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
051: throws org.xml.sax.SAXException {
052: }
053:
054: public void serializeAttributes(
055: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
056: throws org.xml.sax.SAXException {
057: if (_DNSAddress != null) {
058: context.startAttribute("", "DNSAddress");
059: try {
060: context.text(((java.lang.String) _DNSAddress),
061: "DNSAddress");
062: } catch (java.lang.Exception e) {
063: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.Util
064: .handlePrintConversionException(this , e,
065: context);
066: }
067: context.endAttribute();
068: }
069: if (_IPAddress != null) {
070: context.startAttribute("", "IPAddress");
071: try {
072: context.text(((java.lang.String) _IPAddress),
073: "IPAddress");
074: } catch (java.lang.Exception e) {
075: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.Util
076: .handlePrintConversionException(this , e,
077: context);
078: }
079: context.endAttribute();
080: }
081: }
082:
083: public void serializeURIs(
084: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
085: throws org.xml.sax.SAXException {
086: }
087:
088: public java.lang.Class getPrimaryInterface() {
089: return (com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectLocalityType.class);
090: }
091:
092: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
093: if (schemaFragment == null) {
094: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
095: .deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
096: + "n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
097: + "mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
098: + "on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
099: + "expandedExpq\u0000~\u0000\u0002xpppsr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
100: + "\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L"
101: + "\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xq\u0000~"
102: + "\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\u001bcom.sun.ms"
103: + "v.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Da"
104: + "tatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;"
105: + "xq\u0000~\u0000\u0003q\u0000~\u0000\fpsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
106: + "\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomic"
107: + "Type\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000"
108: + "\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
109: + "\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0015L\u0000\nwhit"
110: + "eSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 "
111: + "http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.dat"
112: + "atype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun"
113: + ".msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.s"
114: + "un.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003"
115: + "q\u0000~\u0000\fpsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalName"
116: + "q\u0000~\u0000\u0015L\u0000\fnamespaceURIq\u0000~\u0000\u0015xpq\u0000~\u0000\u0019q\u0000~\u0000\u0018sr\u0000#com.sun.msv.grammar"
117: + ".SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0015L\u0000\fnamespaceURIq"
118: + "\u0000~\u0000\u0015xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\nDNSAddr"
119: + "esst\u0000\u0000sr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000"
120: + "\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\u000b\u0001q\u0000~\u0000\'sq\u0000~\u0000\u0006ppsq\u0000~\u0000\bq\u0000~\u0000\fpq\u0000~\u0000\u0010sq\u0000~\u0000!t\u0000"
121: + "\tIPAddressq\u0000~\u0000%q\u0000~\u0000\'sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000"
122: + "\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$C"
123: + "losedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHas"
124: + "h\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv"
125: + "/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0003\u0001pq\u0000~\u0000\u0005q\u0000~\u0000\u0007q\u0000~\u0000)x"));
126: }
127: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
128: schemaFragment);
129: }
130:
131: public class Unmarshaller
132: extends
133: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
134:
135: public Unmarshaller(
136: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
137: super (context, "-------");
138: }
139:
140: protected Unmarshaller(
141: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
142: int startState) {
143: this (context);
144: state = startState;
145: }
146:
147: public java.lang.Object owner() {
148: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl.this ;
149: }
150:
151: public void enterElement(java.lang.String ___uri,
152: java.lang.String ___local, java.lang.String ___qname,
153: org.xml.sax.Attributes __atts)
154: throws org.xml.sax.SAXException {
155: int attIdx;
156: outer: while (true) {
157: switch (state) {
158: case 3:
159: attIdx = context.getAttribute("", "IPAddress");
160: if (attIdx >= 0) {
161: final java.lang.String v = context
162: .eatAttribute(attIdx);
163: state = 6;
164: eatText1(v);
165: continue outer;
166: }
167: state = 6;
168: continue outer;
169: case 0:
170: attIdx = context.getAttribute("", "DNSAddress");
171: if (attIdx >= 0) {
172: final java.lang.String v = context
173: .eatAttribute(attIdx);
174: state = 3;
175: eatText2(v);
176: continue outer;
177: }
178: state = 3;
179: continue outer;
180: case 6:
181: revertToParentFromEnterElement(___uri, ___local,
182: ___qname, __atts);
183: return;
184: }
185: super .enterElement(___uri, ___local, ___qname, __atts);
186: break;
187: }
188: }
189:
190: private void eatText1(final java.lang.String value)
191: throws org.xml.sax.SAXException {
192: try {
193: _IPAddress = value;
194: } catch (java.lang.Exception e) {
195: handleParseConversionException(e);
196: }
197: }
198:
199: private void eatText2(final java.lang.String value)
200: throws org.xml.sax.SAXException {
201: try {
202: _DNSAddress = value;
203: } catch (java.lang.Exception e) {
204: handleParseConversionException(e);
205: }
206: }
207:
208: public void leaveElement(java.lang.String ___uri,
209: java.lang.String ___local, java.lang.String ___qname)
210: throws org.xml.sax.SAXException {
211: int attIdx;
212: outer: while (true) {
213: switch (state) {
214: case 3:
215: attIdx = context.getAttribute("", "IPAddress");
216: if (attIdx >= 0) {
217: final java.lang.String v = context
218: .eatAttribute(attIdx);
219: state = 6;
220: eatText1(v);
221: continue outer;
222: }
223: state = 6;
224: continue outer;
225: case 0:
226: attIdx = context.getAttribute("", "DNSAddress");
227: if (attIdx >= 0) {
228: final java.lang.String v = context
229: .eatAttribute(attIdx);
230: state = 3;
231: eatText2(v);
232: continue outer;
233: }
234: state = 3;
235: continue outer;
236: case 6:
237: revertToParentFromLeaveElement(___uri, ___local,
238: ___qname);
239: return;
240: }
241: super .leaveElement(___uri, ___local, ___qname);
242: break;
243: }
244: }
245:
246: public void enterAttribute(java.lang.String ___uri,
247: java.lang.String ___local, java.lang.String ___qname)
248: throws org.xml.sax.SAXException {
249: int attIdx;
250: outer: while (true) {
251: switch (state) {
252: case 3:
253: if (("IPAddress" == ___local) && ("" == ___uri)) {
254: state = 4;
255: return;
256: }
257: state = 6;
258: continue outer;
259: case 0:
260: if (("DNSAddress" == ___local) && ("" == ___uri)) {
261: state = 1;
262: return;
263: }
264: state = 3;
265: continue outer;
266: case 6:
267: revertToParentFromEnterAttribute(___uri, ___local,
268: ___qname);
269: return;
270: }
271: super .enterAttribute(___uri, ___local, ___qname);
272: break;
273: }
274: }
275:
276: public void leaveAttribute(java.lang.String ___uri,
277: java.lang.String ___local, java.lang.String ___qname)
278: throws org.xml.sax.SAXException {
279: int attIdx;
280: outer: while (true) {
281: switch (state) {
282: case 3:
283: attIdx = context.getAttribute("", "IPAddress");
284: if (attIdx >= 0) {
285: final java.lang.String v = context
286: .eatAttribute(attIdx);
287: state = 6;
288: eatText1(v);
289: continue outer;
290: }
291: state = 6;
292: continue outer;
293: case 5:
294: if (("IPAddress" == ___local) && ("" == ___uri)) {
295: state = 6;
296: return;
297: }
298: break;
299: case 0:
300: attIdx = context.getAttribute("", "DNSAddress");
301: if (attIdx >= 0) {
302: final java.lang.String v = context
303: .eatAttribute(attIdx);
304: state = 3;
305: eatText2(v);
306: continue outer;
307: }
308: state = 3;
309: continue outer;
310: case 2:
311: if (("DNSAddress" == ___local) && ("" == ___uri)) {
312: state = 3;
313: return;
314: }
315: break;
316: case 6:
317: revertToParentFromLeaveAttribute(___uri, ___local,
318: ___qname);
319: return;
320: }
321: super .leaveAttribute(___uri, ___local, ___qname);
322: break;
323: }
324: }
325:
326: public void handleText(final java.lang.String value)
327: throws org.xml.sax.SAXException {
328: int attIdx;
329: outer: while (true) {
330: try {
331: switch (state) {
332: case 3:
333: attIdx = context.getAttribute("", "IPAddress");
334: if (attIdx >= 0) {
335: final java.lang.String v = context
336: .eatAttribute(attIdx);
337: state = 6;
338: eatText1(v);
339: continue outer;
340: }
341: state = 6;
342: continue outer;
343: case 0:
344: attIdx = context.getAttribute("", "DNSAddress");
345: if (attIdx >= 0) {
346: final java.lang.String v = context
347: .eatAttribute(attIdx);
348: state = 3;
349: eatText2(v);
350: continue outer;
351: }
352: state = 3;
353: continue outer;
354: case 4:
355: state = 5;
356: eatText1(value);
357: return;
358: case 6:
359: revertToParentFromText(value);
360: return;
361: case 1:
362: state = 2;
363: eatText2(value);
364: return;
365: }
366: } catch (java.lang.RuntimeException e) {
367: handleUnexpectedTextException(value, e);
368: }
369: break;
370: }
371: }
372:
373: }
374:
375: }
|