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 NameIdentifierTypeImpl
011: implements
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.NameIdentifierType,
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 _Value;
019: protected java.lang.String _NameQualifier;
020: protected java.lang.String _Format;
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.NameIdentifierType.class);
026: }
027:
028: public java.lang.String getValue() {
029: return _Value;
030: }
031:
032: public void setValue(java.lang.String value) {
033: _Value = value;
034: }
035:
036: public java.lang.String getNameQualifier() {
037: return _NameQualifier;
038: }
039:
040: public void setNameQualifier(java.lang.String value) {
041: _NameQualifier = value;
042: }
043:
044: public java.lang.String getFormat() {
045: return _Format;
046: }
047:
048: public void setFormat(java.lang.String value) {
049: _Format = value;
050: }
051:
052: public com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
053: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
054: return new com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierTypeImpl.Unmarshaller(
055: context);
056: }
057:
058: public void serializeBody(
059: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
060: throws org.xml.sax.SAXException {
061: try {
062: context.text(((java.lang.String) _Value), "Value");
063: } catch (java.lang.Exception e) {
064: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.Util
065: .handlePrintConversionException(this , e, context);
066: }
067: }
068:
069: public void serializeAttributes(
070: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
071: throws org.xml.sax.SAXException {
072: if (_Format != null) {
073: context.startAttribute("", "Format");
074: try {
075: context.text(((java.lang.String) _Format), "Format");
076: } catch (java.lang.Exception e) {
077: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.Util
078: .handlePrintConversionException(this , e,
079: context);
080: }
081: context.endAttribute();
082: }
083: if (_NameQualifier != null) {
084: context.startAttribute("", "NameQualifier");
085: try {
086: context.text(((java.lang.String) _NameQualifier),
087: "NameQualifier");
088: } catch (java.lang.Exception e) {
089: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.Util
090: .handlePrintConversionException(this , e,
091: context);
092: }
093: context.endAttribute();
094: }
095: }
096:
097: public void serializeURIs(
098: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
099: throws org.xml.sax.SAXException {
100: }
101:
102: public java.lang.Class getPrimaryInterface() {
103: return (com.sun.xml.wss.saml.internal.saml11.jaxb10.NameIdentifierType.class);
104: }
105:
106: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
107: if (schemaFragment == null) {
108: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
109: .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"
110: + "n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
111: + "mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
112: + "on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
113: + "expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000"
114: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000"
115: + "~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003sr\u0000\u0011java.lan"
116: + "g.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000#com.sun.msv.datatype.xsd"
117: + ".StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.dataty"
118: + "pe.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype."
119: + "xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDa"
120: + "tatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\b"
121: + "typeNameq\u0000~\u0000\u0011L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/White"
122: + "SpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006strin"
123: + "gsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000"
124: + "\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000"
125: + "\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.grammar.Expression$NullSetExpress"
126: + "ion\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\fpsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001e"
127: + "jB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0011L\u0000\fnamespaceURIq\u0000~\u0000\u0011xpq\u0000~\u0000\u0015q\u0000~\u0000\u0014sr\u0000"
128: + "\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\u0000 com.sun"
129: + ".msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClasst"
130: + "\u0000\u001fLcom/sun/msv/grammar/NameClass;xq\u0000~\u0000\u0003q\u0000~\u0000\fpsq\u0000~\u0000\u0007ppsr\u0000#com"
131: + ".sun.msv.datatype.xsd.AnyURIType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u000eq\u0000~\u0000\u0014t\u0000\u0006any"
132: + "URIsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse"
133: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0017q\u0000~\u0000\u001asq\u0000~\u0000\u001bq\u0000~\u0000%q\u0000~\u0000\u0014sr\u0000#com.sun.msv.gramma"
134: + "r.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0011L\u0000\fnamespaceURI"
135: + "q\u0000~\u0000\u0011xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0006Format"
136: + "t\u0000\u0000sr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000"
137: + "\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\u000b\u0001q\u0000~\u0000/sq\u0000~\u0000\u001dppsq\u0000~\u0000\u001fq\u0000~\u0000\fpq\u0000~\u0000\nsq\u0000~\u0000)t\u0000\rNa"
138: + "meQualifierq\u0000~\u0000-q\u0000~\u0000/sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000"
139: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$"
140: + "ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHa"
141: + "sh\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/ms"
142: + "v/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0004\u0001pq\u0000~\u0000\u0005q\u0000~\u00001q\u0000~\u0000\u001eq\u0000~\u0000\u0006x"));
143: }
144: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
145: schemaFragment);
146: }
147:
148: public class Unmarshaller
149: extends
150: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
151:
152: public Unmarshaller(
153: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
154: super (context, "--------");
155: }
156:
157: protected Unmarshaller(
158: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
159: int startState) {
160: this (context);
161: state = startState;
162: }
163:
164: public java.lang.Object owner() {
165: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.NameIdentifierTypeImpl.this ;
166: }
167:
168: public void enterElement(java.lang.String ___uri,
169: java.lang.String ___local, java.lang.String ___qname,
170: org.xml.sax.Attributes __atts)
171: throws org.xml.sax.SAXException {
172: int attIdx;
173: outer: while (true) {
174: switch (state) {
175: case 0:
176: attIdx = context.getAttribute("", "Format");
177: if (attIdx >= 0) {
178: final java.lang.String v = context
179: .eatAttribute(attIdx);
180: state = 3;
181: eatText1(v);
182: continue outer;
183: }
184: state = 3;
185: continue outer;
186: case 3:
187: attIdx = context.getAttribute("", "NameQualifier");
188: if (attIdx >= 0) {
189: final java.lang.String v = context
190: .eatAttribute(attIdx);
191: state = 6;
192: eatText2(v);
193: continue outer;
194: }
195: state = 6;
196: continue outer;
197: case 7:
198: revertToParentFromEnterElement(___uri, ___local,
199: ___qname, __atts);
200: return;
201: }
202: super .enterElement(___uri, ___local, ___qname, __atts);
203: break;
204: }
205: }
206:
207: private void eatText1(final java.lang.String value)
208: throws org.xml.sax.SAXException {
209: try {
210: _Format = com.sun.xml.bind.WhiteSpaceProcessor
211: .collapse(value);
212: } catch (java.lang.Exception e) {
213: handleParseConversionException(e);
214: }
215: }
216:
217: private void eatText2(final java.lang.String value)
218: throws org.xml.sax.SAXException {
219: try {
220: _NameQualifier = value;
221: } catch (java.lang.Exception e) {
222: handleParseConversionException(e);
223: }
224: }
225:
226: public void leaveElement(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 0:
233: attIdx = context.getAttribute("", "Format");
234: if (attIdx >= 0) {
235: final java.lang.String v = context
236: .eatAttribute(attIdx);
237: state = 3;
238: eatText1(v);
239: continue outer;
240: }
241: state = 3;
242: continue outer;
243: case 3:
244: attIdx = context.getAttribute("", "NameQualifier");
245: if (attIdx >= 0) {
246: final java.lang.String v = context
247: .eatAttribute(attIdx);
248: state = 6;
249: eatText2(v);
250: continue outer;
251: }
252: state = 6;
253: continue outer;
254: case 7:
255: revertToParentFromLeaveElement(___uri, ___local,
256: ___qname);
257: return;
258: }
259: super .leaveElement(___uri, ___local, ___qname);
260: break;
261: }
262: }
263:
264: public void enterAttribute(java.lang.String ___uri,
265: java.lang.String ___local, java.lang.String ___qname)
266: throws org.xml.sax.SAXException {
267: int attIdx;
268: outer: while (true) {
269: switch (state) {
270: case 0:
271: if (("Format" == ___local) && ("" == ___uri)) {
272: state = 1;
273: return;
274: }
275: state = 3;
276: continue outer;
277: case 3:
278: if (("NameQualifier" == ___local) && ("" == ___uri)) {
279: state = 4;
280: return;
281: }
282: state = 6;
283: continue outer;
284: case 7:
285: revertToParentFromEnterAttribute(___uri, ___local,
286: ___qname);
287: return;
288: }
289: super .enterAttribute(___uri, ___local, ___qname);
290: break;
291: }
292: }
293:
294: public void leaveAttribute(java.lang.String ___uri,
295: java.lang.String ___local, java.lang.String ___qname)
296: throws org.xml.sax.SAXException {
297: int attIdx;
298: outer: while (true) {
299: switch (state) {
300: case 5:
301: if (("NameQualifier" == ___local) && ("" == ___uri)) {
302: state = 6;
303: return;
304: }
305: break;
306: case 0:
307: attIdx = context.getAttribute("", "Format");
308: if (attIdx >= 0) {
309: final java.lang.String v = context
310: .eatAttribute(attIdx);
311: state = 3;
312: eatText1(v);
313: continue outer;
314: }
315: state = 3;
316: continue outer;
317: case 2:
318: if (("Format" == ___local) && ("" == ___uri)) {
319: state = 3;
320: return;
321: }
322: break;
323: case 3:
324: attIdx = context.getAttribute("", "NameQualifier");
325: if (attIdx >= 0) {
326: final java.lang.String v = context
327: .eatAttribute(attIdx);
328: state = 6;
329: eatText2(v);
330: continue outer;
331: }
332: state = 6;
333: continue outer;
334: case 7:
335: revertToParentFromLeaveAttribute(___uri, ___local,
336: ___qname);
337: return;
338: }
339: super .leaveAttribute(___uri, ___local, ___qname);
340: break;
341: }
342: }
343:
344: public void handleText(final java.lang.String value)
345: throws org.xml.sax.SAXException {
346: int attIdx;
347: outer: while (true) {
348: try {
349: switch (state) {
350: case 0:
351: attIdx = context.getAttribute("", "Format");
352: if (attIdx >= 0) {
353: final java.lang.String v = context
354: .eatAttribute(attIdx);
355: state = 3;
356: eatText1(v);
357: continue outer;
358: }
359: state = 3;
360: continue outer;
361: case 1:
362: state = 2;
363: eatText1(value);
364: return;
365: case 3:
366: attIdx = context.getAttribute("",
367: "NameQualifier");
368: if (attIdx >= 0) {
369: final java.lang.String v = context
370: .eatAttribute(attIdx);
371: state = 6;
372: eatText2(v);
373: continue outer;
374: }
375: state = 6;
376: continue outer;
377: case 7:
378: revertToParentFromText(value);
379: return;
380: case 6:
381: state = 7;
382: eatText3(value);
383: return;
384: case 4:
385: state = 5;
386: eatText2(value);
387: return;
388: }
389: } catch (java.lang.RuntimeException e) {
390: handleUnexpectedTextException(value, e);
391: }
392: break;
393: }
394: }
395:
396: private void eatText3(final java.lang.String value)
397: throws org.xml.sax.SAXException {
398: try {
399: _Value = value;
400: } catch (java.lang.Exception e) {
401: handleParseConversionException(e);
402: }
403: }
404:
405: }
406:
407: }
|