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 SubjectLocalityImpl
011: extends
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl
013: implements
014: com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectLocality,
015: com.sun.xml.bind.RIElement,
016: com.sun.xml.bind.JAXBObject,
017: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallableObject,
018: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializable,
019: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.ValidatableObject {
020:
021: public final static java.lang.Class version = (com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.JAXBVersion.class);
022: private static com.sun.msv.grammar.Grammar schemaFragment;
023:
024: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
025: return (com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectLocality.class);
026: }
027:
028: public java.lang.String ____jaxb_ri____getNamespaceURI() {
029: return "urn:oasis:names:tc:SAML:1.0:assertion";
030: }
031:
032: public java.lang.String ____jaxb_ri____getLocalName() {
033: return "SubjectLocality";
034: }
035:
036: public com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
037: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
038: return new com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityImpl.Unmarshaller(
039: context);
040: }
041:
042: public void serializeBody(
043: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
044: throws org.xml.sax.SAXException {
045: context.startElement("urn:oasis:names:tc:SAML:1.0:assertion",
046: "SubjectLocality");
047: super .serializeURIs(context);
048: context.endNamespaceDecls();
049: super .serializeAttributes(context);
050: context.endAttributes();
051: super .serializeBody(context);
052: context.endElement();
053: }
054:
055: public void serializeAttributes(
056: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
057: throws org.xml.sax.SAXException {
058: }
059:
060: public void serializeURIs(
061: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
062: throws org.xml.sax.SAXException {
063: }
064:
065: public java.lang.Class getPrimaryInterface() {
066: return (com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectLocality.class);
067: }
068:
069: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
070: if (schemaFragment == null) {
071: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
072: .deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
073: + "\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
074: + "grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
075: + "\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
076: + "msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
077: + "ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
078: + "mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
079: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1q\u0000~\u0000\u0003L\u0000\u0004exp2q\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsq\u0000~\u0000\u0007ppsr\u0000\u001dcom.s"
080: + "un.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.msv.g"
081: + "rammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq"
082: + "\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\u001bcom.sun."
083: + "msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/"
084: + "Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPai"
085: + "r;xq\u0000~\u0000\u0004q\u0000~\u0000\u0010psr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
086: + "\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtom"
087: + "icType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000"
088: + "\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
089: + "\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0019L\u0000\nwh"
090: + "iteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt"
091: + "\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.d"
092: + "atatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.s"
093: + "un.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com"
094: + ".sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~"
095: + "\u0000\u0004q\u0000~\u0000\u0010psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNa"
096: + "meq\u0000~\u0000\u0019L\u0000\fnamespaceURIq\u0000~\u0000\u0019xpq\u0000~\u0000\u001dq\u0000~\u0000\u001csr\u0000#com.sun.msv.gramm"
097: + "ar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0019L\u0000\fnamespaceUR"
098: + "Iq\u0000~\u0000\u0019xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\nDNSAd"
099: + "dresst\u0000\u0000sr\u00000com.sun.msv.grammar.Expression$EpsilonExpression"
100: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\u000f\u0001q\u0000~\u0000+sq\u0000~\u0000\u000bppsq\u0000~\u0000\rq\u0000~\u0000\u0010pq\u0000~\u0000\u0014sq\u0000~\u0000%"
101: + "t\u0000\tIPAddressq\u0000~\u0000)q\u0000~\u0000+sq\u0000~\u0000\u000bppsq\u0000~\u0000\rq\u0000~\u0000\u0010psq\u0000~\u0000\u0011ppsr\u0000\"com.su"
102: + "n.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0016q\u0000~\u0000\u001ct\u0000\u0005QNamesr"
103: + "\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000"
104: + "\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001fq\u0000~\u0000\"sq\u0000~\u0000#q\u0000~\u00006q\u0000~\u0000\u001csq\u0000~\u0000%t\u0000\u0004typet\u0000)http://www."
105: + "w3.org/2001/XMLSchema-instanceq\u0000~\u0000+sq\u0000~\u0000%t\u0000\u000fSubjectLocalityt"
106: + "\u0000%urn:oasis:names:tc:SAML:1.0:assertionsr\u0000\"com.sun.msv.gramm"
107: + "ar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/gramm"
108: + "ar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expre"
109: + "ssionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006pa"
110: + "rentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0005\u0001pq\u0000~\u0000\nq\u0000~\u0000"
111: + "\tq\u0000~\u00001q\u0000~\u0000\fq\u0000~\u0000-x"));
112: }
113: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
114: schemaFragment);
115: }
116:
117: public class Unmarshaller
118: extends
119: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
120:
121: public Unmarshaller(
122: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
123: super (context, "----");
124: }
125:
126: protected Unmarshaller(
127: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
128: int startState) {
129: this (context);
130: state = startState;
131: }
132:
133: public java.lang.Object owner() {
134: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityImpl.this ;
135: }
136:
137: public void enterElement(java.lang.String ___uri,
138: java.lang.String ___local, java.lang.String ___qname,
139: org.xml.sax.Attributes __atts)
140: throws org.xml.sax.SAXException {
141: int attIdx;
142: outer: while (true) {
143: switch (state) {
144: case 3:
145: revertToParentFromEnterElement(___uri, ___local,
146: ___qname, __atts);
147: return;
148: case 1:
149: attIdx = context.getAttribute("", "DNSAddress");
150: if (attIdx >= 0) {
151: context.consumeAttribute(attIdx);
152: context.getCurrentHandler().enterElement(
153: ___uri, ___local, ___qname, __atts);
154: return;
155: }
156: attIdx = context.getAttribute("", "IPAddress");
157: if (attIdx >= 0) {
158: context.consumeAttribute(attIdx);
159: context.getCurrentHandler().enterElement(
160: ___uri, ___local, ___qname, __atts);
161: return;
162: }
163: spawnHandlerFromEnterElement(
164: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityImpl.this ).new Unmarshaller(
165: context)), 2, ___uri, ___local,
166: ___qname, __atts);
167: return;
168: case 0:
169: if (("SubjectLocality" == ___local)
170: && ("urn:oasis:names:tc:SAML:1.0:assertion" == ___uri)) {
171: context.pushAttributes(__atts, false);
172: state = 1;
173: return;
174: }
175: break;
176: }
177: super .enterElement(___uri, ___local, ___qname, __atts);
178: break;
179: }
180: }
181:
182: public void leaveElement(java.lang.String ___uri,
183: java.lang.String ___local, java.lang.String ___qname)
184: throws org.xml.sax.SAXException {
185: int attIdx;
186: outer: while (true) {
187: switch (state) {
188: case 3:
189: revertToParentFromLeaveElement(___uri, ___local,
190: ___qname);
191: return;
192: case 1:
193: attIdx = context.getAttribute("", "DNSAddress");
194: if (attIdx >= 0) {
195: context.consumeAttribute(attIdx);
196: context.getCurrentHandler().leaveElement(
197: ___uri, ___local, ___qname);
198: return;
199: }
200: attIdx = context.getAttribute("", "IPAddress");
201: if (attIdx >= 0) {
202: context.consumeAttribute(attIdx);
203: context.getCurrentHandler().leaveElement(
204: ___uri, ___local, ___qname);
205: return;
206: }
207: spawnHandlerFromLeaveElement(
208: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityImpl.this ).new Unmarshaller(
209: context)), 2, ___uri, ___local,
210: ___qname);
211: return;
212: case 2:
213: if (("SubjectLocality" == ___local)
214: && ("urn:oasis:names:tc:SAML:1.0:assertion" == ___uri)) {
215: context.popAttributes();
216: state = 3;
217: return;
218: }
219: break;
220: }
221: super .leaveElement(___uri, ___local, ___qname);
222: break;
223: }
224: }
225:
226: public void enterAttribute(java.lang.String ___uri,
227: java.lang.String ___local, java.lang.String ___qname)
228: throws org.xml.sax.SAXException {
229: int attIdx;
230: outer: while (true) {
231: switch (state) {
232: case 3:
233: revertToParentFromEnterAttribute(___uri, ___local,
234: ___qname);
235: return;
236: case 1:
237: if (("DNSAddress" == ___local) && ("" == ___uri)) {
238: spawnHandlerFromEnterAttribute(
239: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityImpl.this ).new Unmarshaller(
240: context)), 2, ___uri, ___local,
241: ___qname);
242: return;
243: }
244: if (("IPAddress" == ___local) && ("" == ___uri)) {
245: spawnHandlerFromEnterAttribute(
246: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityImpl.this ).new Unmarshaller(
247: context)), 2, ___uri, ___local,
248: ___qname);
249: return;
250: }
251: spawnHandlerFromEnterAttribute(
252: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityImpl.this ).new Unmarshaller(
253: context)), 2, ___uri, ___local,
254: ___qname);
255: return;
256: }
257: super .enterAttribute(___uri, ___local, ___qname);
258: break;
259: }
260: }
261:
262: public void leaveAttribute(java.lang.String ___uri,
263: java.lang.String ___local, java.lang.String ___qname)
264: throws org.xml.sax.SAXException {
265: int attIdx;
266: outer: while (true) {
267: switch (state) {
268: case 3:
269: revertToParentFromLeaveAttribute(___uri, ___local,
270: ___qname);
271: return;
272: case 1:
273: attIdx = context.getAttribute("", "DNSAddress");
274: if (attIdx >= 0) {
275: context.consumeAttribute(attIdx);
276: context.getCurrentHandler().leaveAttribute(
277: ___uri, ___local, ___qname);
278: return;
279: }
280: attIdx = context.getAttribute("", "IPAddress");
281: if (attIdx >= 0) {
282: context.consumeAttribute(attIdx);
283: context.getCurrentHandler().leaveAttribute(
284: ___uri, ___local, ___qname);
285: return;
286: }
287: spawnHandlerFromLeaveAttribute(
288: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityImpl.this ).new Unmarshaller(
289: context)), 2, ___uri, ___local,
290: ___qname);
291: return;
292: }
293: super .leaveAttribute(___uri, ___local, ___qname);
294: break;
295: }
296: }
297:
298: public void handleText(final java.lang.String value)
299: throws org.xml.sax.SAXException {
300: int attIdx;
301: outer: while (true) {
302: try {
303: switch (state) {
304: case 3:
305: revertToParentFromText(value);
306: return;
307: case 1:
308: attIdx = context.getAttribute("", "DNSAddress");
309: if (attIdx >= 0) {
310: context.consumeAttribute(attIdx);
311: context.getCurrentHandler().text(value);
312: return;
313: }
314: attIdx = context.getAttribute("", "IPAddress");
315: if (attIdx >= 0) {
316: context.consumeAttribute(attIdx);
317: context.getCurrentHandler().text(value);
318: return;
319: }
320: spawnHandlerFromText(
321: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectLocalityImpl.this ).new Unmarshaller(
322: context)), 2, value);
323: return;
324: }
325: } catch (java.lang.RuntimeException e) {
326: handleUnexpectedTextException(value, e);
327: }
328: break;
329: }
330: }
331:
332: }
333:
334: }
|