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 NameIdentifierImpl
011: extends
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierTypeImpl
013: implements
014: com.sun.xml.wss.saml.internal.saml11.jaxb10.NameIdentifier,
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.NameIdentifier.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 "NameIdentifier";
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.NameIdentifierImpl.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: "NameIdentifier");
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.NameIdentifier.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\u0007ppsq\u0000~\u0000\u0007pps"
080: + "r\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxn"
081: + "g/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/uti"
082: + "l/StringPair;xq\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuex"
083: + "p\u0000psr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAl"
084: + "waysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000"
085: + "\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr"
086: + "\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnames"
087: + "paceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0016L\u0000\nwhiteSpacet\u0000."
088: + "Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://ww"
089: + "w.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd"
090: + ".WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.data"
091: + "type.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.gr"
092: + "ammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004q\u0000~\u0000\u0011psr\u0000"
093: + "\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0016L\u0000\fn"
094: + "amespaceURIq\u0000~\u0000\u0016xpq\u0000~\u0000\u001aq\u0000~\u0000\u0019sr\u0000\u001dcom.sun.msv.grammar.ChoiceEx"
095: + "p\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000"
096: + "\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq\u0000~\u0000\u0004q\u0000~\u0000\u0011psq\u0000~\u0000\fppsr\u0000#c"
097: + "om.sun.msv.datatype.xsd.AnyURIType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0013q\u0000~\u0000\u0019t\u0000\u0006a"
098: + "nyURIsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collap"
099: + "se\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001cq\u0000~\u0000\u001fsq\u0000~\u0000 q\u0000~\u0000)q\u0000~\u0000\u0019sr\u0000#com.sun.msv.gram"
100: + "mar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0016L\u0000\fnamespaceU"
101: + "RIq\u0000~\u0000\u0016xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0006Form"
102: + "att\u0000\u0000sr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000"
103: + "\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\u0010\u0001q\u0000~\u00003sq\u0000~\u0000\"ppsq\u0000~\u0000$q\u0000~\u0000\u0011pq\u0000~\u0000\u000fsq\u0000~\u0000-t\u0000\r"
104: + "NameQualifierq\u0000~\u00001q\u0000~\u00003sq\u0000~\u0000\"ppsq\u0000~\u0000$q\u0000~\u0000\u0011psq\u0000~\u0000\fppsr\u0000\"com.s"
105: + "un.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0013q\u0000~\u0000\u0019t\u0000\u0005QNameq"
106: + "\u0000~\u0000+q\u0000~\u0000\u001fsq\u0000~\u0000 q\u0000~\u0000>q\u0000~\u0000\u0019sq\u0000~\u0000-t\u0000\u0004typet\u0000)http://www.w3.org/2"
107: + "001/XMLSchema-instanceq\u0000~\u00003sq\u0000~\u0000-t\u0000\u000eNameIdentifiert\u0000%urn:oas"
108: + "is:names:tc:SAML:1.0:assertionsr\u0000\"com.sun.msv.grammar.Expres"
109: + "sionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Expres"
110: + "sionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool"
111: + "$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lc"
112: + "om/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0006\u0001pq\u0000~\u0000\nq\u0000~\u00005q\u0000~\u0000\tq\u0000~"
113: + "\u00009q\u0000~\u0000#q\u0000~\u0000\u000bx"));
114: }
115: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
116: schemaFragment);
117: }
118:
119: public class Unmarshaller
120: extends
121: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
122:
123: public Unmarshaller(
124: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
125: super (context, "----");
126: }
127:
128: protected Unmarshaller(
129: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
130: int startState) {
131: this (context);
132: state = startState;
133: }
134:
135: public java.lang.Object owner() {
136: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierImpl.this ;
137: }
138:
139: public void enterElement(java.lang.String ___uri,
140: java.lang.String ___local, java.lang.String ___qname,
141: org.xml.sax.Attributes __atts)
142: throws org.xml.sax.SAXException {
143: int attIdx;
144: outer: while (true) {
145: switch (state) {
146: case 1:
147: attIdx = context.getAttribute("", "Format");
148: if (attIdx >= 0) {
149: context.consumeAttribute(attIdx);
150: context.getCurrentHandler().enterElement(
151: ___uri, ___local, ___qname, __atts);
152: return;
153: }
154: attIdx = context.getAttribute("", "NameQualifier");
155: if (attIdx >= 0) {
156: context.consumeAttribute(attIdx);
157: context.getCurrentHandler().enterElement(
158: ___uri, ___local, ___qname, __atts);
159: return;
160: }
161: break;
162: case 3:
163: revertToParentFromEnterElement(___uri, ___local,
164: ___qname, __atts);
165: return;
166: case 0:
167: if (("NameIdentifier" == ___local)
168: && ("urn:oasis:names:tc:SAML:1.0:assertion" == ___uri)) {
169: context.pushAttributes(__atts, true);
170: state = 1;
171: return;
172: }
173: break;
174: }
175: super .enterElement(___uri, ___local, ___qname, __atts);
176: break;
177: }
178: }
179:
180: public void leaveElement(java.lang.String ___uri,
181: java.lang.String ___local, java.lang.String ___qname)
182: throws org.xml.sax.SAXException {
183: int attIdx;
184: outer: while (true) {
185: switch (state) {
186: case 1:
187: attIdx = context.getAttribute("", "Format");
188: if (attIdx >= 0) {
189: context.consumeAttribute(attIdx);
190: context.getCurrentHandler().leaveElement(
191: ___uri, ___local, ___qname);
192: return;
193: }
194: attIdx = context.getAttribute("", "NameQualifier");
195: if (attIdx >= 0) {
196: context.consumeAttribute(attIdx);
197: context.getCurrentHandler().leaveElement(
198: ___uri, ___local, ___qname);
199: return;
200: }
201: break;
202: case 2:
203: if (("NameIdentifier" == ___local)
204: && ("urn:oasis:names:tc:SAML:1.0:assertion" == ___uri)) {
205: context.popAttributes();
206: state = 3;
207: return;
208: }
209: break;
210: case 3:
211: revertToParentFromLeaveElement(___uri, ___local,
212: ___qname);
213: return;
214: }
215: super .leaveElement(___uri, ___local, ___qname);
216: break;
217: }
218: }
219:
220: public void enterAttribute(java.lang.String ___uri,
221: java.lang.String ___local, java.lang.String ___qname)
222: throws org.xml.sax.SAXException {
223: int attIdx;
224: outer: while (true) {
225: switch (state) {
226: case 1:
227: if (("Format" == ___local) && ("" == ___uri)) {
228: spawnHandlerFromEnterAttribute(
229: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierImpl.this ).new Unmarshaller(
230: context)), 2, ___uri, ___local,
231: ___qname);
232: return;
233: }
234: if (("NameQualifier" == ___local) && ("" == ___uri)) {
235: spawnHandlerFromEnterAttribute(
236: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierImpl.this ).new Unmarshaller(
237: context)), 2, ___uri, ___local,
238: ___qname);
239: return;
240: }
241: break;
242: case 3:
243: revertToParentFromEnterAttribute(___uri, ___local,
244: ___qname);
245: return;
246: }
247: super .enterAttribute(___uri, ___local, ___qname);
248: break;
249: }
250: }
251:
252: public void leaveAttribute(java.lang.String ___uri,
253: java.lang.String ___local, java.lang.String ___qname)
254: throws org.xml.sax.SAXException {
255: int attIdx;
256: outer: while (true) {
257: switch (state) {
258: case 1:
259: attIdx = context.getAttribute("", "Format");
260: if (attIdx >= 0) {
261: context.consumeAttribute(attIdx);
262: context.getCurrentHandler().leaveAttribute(
263: ___uri, ___local, ___qname);
264: return;
265: }
266: attIdx = context.getAttribute("", "NameQualifier");
267: if (attIdx >= 0) {
268: context.consumeAttribute(attIdx);
269: context.getCurrentHandler().leaveAttribute(
270: ___uri, ___local, ___qname);
271: return;
272: }
273: break;
274: case 3:
275: revertToParentFromLeaveAttribute(___uri, ___local,
276: ___qname);
277: return;
278: }
279: super .leaveAttribute(___uri, ___local, ___qname);
280: break;
281: }
282: }
283:
284: public void handleText(final java.lang.String value)
285: throws org.xml.sax.SAXException {
286: int attIdx;
287: outer: while (true) {
288: try {
289: switch (state) {
290: case 1:
291: attIdx = context.getAttribute("", "Format");
292: if (attIdx >= 0) {
293: context.consumeAttribute(attIdx);
294: context.getCurrentHandler().text(value);
295: return;
296: }
297: attIdx = context.getAttribute("",
298: "NameQualifier");
299: if (attIdx >= 0) {
300: context.consumeAttribute(attIdx);
301: context.getCurrentHandler().text(value);
302: return;
303: }
304: spawnHandlerFromText(
305: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierImpl.this ).new Unmarshaller(
306: context)), 2, value);
307: return;
308: case 3:
309: revertToParentFromText(value);
310: return;
311: }
312: } catch (java.lang.RuntimeException e) {
313: handleUnexpectedTextException(value, e);
314: }
315: break;
316: }
317: }
318:
319: }
320:
321: }
|