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 AttributeDesignatorTypeImpl
011: implements
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.AttributeDesignatorType,
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 _AttributeName;
019: protected java.lang.String _AttributeNamespace;
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.AttributeDesignatorType.class);
025: }
026:
027: public java.lang.String getAttributeName() {
028: return _AttributeName;
029: }
030:
031: public void setAttributeName(java.lang.String value) {
032: _AttributeName = value;
033: }
034:
035: public java.lang.String getAttributeNamespace() {
036: return _AttributeNamespace;
037: }
038:
039: public void setAttributeNamespace(java.lang.String value) {
040: _AttributeNamespace = 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.AttributeDesignatorTypeImpl.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: context.startAttribute("", "AttributeName");
058: try {
059: context.text(((java.lang.String) _AttributeName),
060: "AttributeName");
061: } catch (java.lang.Exception e) {
062: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.Util
063: .handlePrintConversionException(this , e, context);
064: }
065: context.endAttribute();
066: context.startAttribute("", "AttributeNamespace");
067: try {
068: context.text(((java.lang.String) _AttributeNamespace),
069: "AttributeNamespace");
070: } catch (java.lang.Exception e) {
071: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.Util
072: .handlePrintConversionException(this , e, context);
073: }
074: context.endAttribute();
075: }
076:
077: public void serializeURIs(
078: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
079: throws org.xml.sax.SAXException {
080: }
081:
082: public java.lang.Class getPrimaryInterface() {
083: return (com.sun.xml.wss.saml.internal.saml11.jaxb10.AttributeDesignatorType.class);
084: }
085:
086: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
087: if (schemaFragment == null) {
088: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
089: .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"
090: + "n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
091: + "mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
092: + "on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
093: + "expandedExpq\u0000~\u0000\u0002xpppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000"
094: + "\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameCl"
095: + "ass;xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt"
096: + "\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLco"
097: + "m/sun/msv/util/StringPair;xq\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa"
098: + "\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000"
099: + "\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAt"
100: + "omicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType"
101: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000"
102: + "\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0013L\u0000\n"
103: + "whiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;x"
104: + "pt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv"
105: + ".datatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com"
106: + ".sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000c"
107: + "om.sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq"
108: + "\u0000~\u0000\u0003q\u0000~\u0000\u000epsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocal"
109: + "Nameq\u0000~\u0000\u0013L\u0000\fnamespaceURIq\u0000~\u0000\u0013xpq\u0000~\u0000\u0017q\u0000~\u0000\u0016sr\u0000#com.sun.msv.gra"
110: + "mmar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0013L\u0000\fnamespace"
111: + "URIq\u0000~\u0000\u0013xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\rAtt"
112: + "ributeNamet\u0000\u0000sq\u0000~\u0000\u0006ppsq\u0000~\u0000\tppsr\u0000#com.sun.msv.datatype.xsd.An"
113: + "yURIType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0010q\u0000~\u0000\u0016t\u0000\u0006anyURIsr\u00005com.sun.msv.datat"
114: + "ype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0019q\u0000~\u0000\u001csq"
115: + "\u0000~\u0000\u001dq\u0000~\u0000(q\u0000~\u0000\u0016sq\u0000~\u0000\u001ft\u0000\u0012AttributeNamespaceq\u0000~\u0000#sr\u0000\"com.sun.ms"
116: + "v.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/ms"
117: + "v/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.gramma"
118: + "r.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersi"
119: + "onL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0001\u0001pq\u0000"
120: + "~\u0000\u0005x"));
121: }
122: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
123: schemaFragment);
124: }
125:
126: public class Unmarshaller
127: extends
128: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
129:
130: public Unmarshaller(
131: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
132: super (context, "-------");
133: }
134:
135: protected Unmarshaller(
136: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
137: int startState) {
138: this (context);
139: state = startState;
140: }
141:
142: public java.lang.Object owner() {
143: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.AttributeDesignatorTypeImpl.this ;
144: }
145:
146: public void enterElement(java.lang.String ___uri,
147: java.lang.String ___local, java.lang.String ___qname,
148: org.xml.sax.Attributes __atts)
149: throws org.xml.sax.SAXException {
150: int attIdx;
151: outer: while (true) {
152: switch (state) {
153: case 3:
154: attIdx = context.getAttribute("",
155: "AttributeNamespace");
156: if (attIdx >= 0) {
157: final java.lang.String v = context
158: .eatAttribute(attIdx);
159: state = 6;
160: eatText1(v);
161: continue outer;
162: }
163: break;
164: case 6:
165: revertToParentFromEnterElement(___uri, ___local,
166: ___qname, __atts);
167: return;
168: case 0:
169: attIdx = context.getAttribute("", "AttributeName");
170: if (attIdx >= 0) {
171: final java.lang.String v = context
172: .eatAttribute(attIdx);
173: state = 3;
174: eatText2(v);
175: continue outer;
176: }
177: break;
178: }
179: super .enterElement(___uri, ___local, ___qname, __atts);
180: break;
181: }
182: }
183:
184: private void eatText1(final java.lang.String value)
185: throws org.xml.sax.SAXException {
186: try {
187: _AttributeNamespace = com.sun.xml.bind.WhiteSpaceProcessor
188: .collapse(value);
189: } catch (java.lang.Exception e) {
190: handleParseConversionException(e);
191: }
192: }
193:
194: private void eatText2(final java.lang.String value)
195: throws org.xml.sax.SAXException {
196: try {
197: _AttributeName = value;
198: } catch (java.lang.Exception e) {
199: handleParseConversionException(e);
200: }
201: }
202:
203: public void leaveElement(java.lang.String ___uri,
204: java.lang.String ___local, java.lang.String ___qname)
205: throws org.xml.sax.SAXException {
206: int attIdx;
207: outer: while (true) {
208: switch (state) {
209: case 3:
210: attIdx = context.getAttribute("",
211: "AttributeNamespace");
212: if (attIdx >= 0) {
213: final java.lang.String v = context
214: .eatAttribute(attIdx);
215: state = 6;
216: eatText1(v);
217: continue outer;
218: }
219: break;
220: case 6:
221: revertToParentFromLeaveElement(___uri, ___local,
222: ___qname);
223: return;
224: case 0:
225: attIdx = context.getAttribute("", "AttributeName");
226: if (attIdx >= 0) {
227: final java.lang.String v = context
228: .eatAttribute(attIdx);
229: state = 3;
230: eatText2(v);
231: continue outer;
232: }
233: break;
234: }
235: super .leaveElement(___uri, ___local, ___qname);
236: break;
237: }
238: }
239:
240: public void enterAttribute(java.lang.String ___uri,
241: java.lang.String ___local, java.lang.String ___qname)
242: throws org.xml.sax.SAXException {
243: int attIdx;
244: outer: while (true) {
245: switch (state) {
246: case 3:
247: if (("AttributeNamespace" == ___local)
248: && ("" == ___uri)) {
249: state = 4;
250: return;
251: }
252: break;
253: case 6:
254: revertToParentFromEnterAttribute(___uri, ___local,
255: ___qname);
256: return;
257: case 0:
258: if (("AttributeName" == ___local) && ("" == ___uri)) {
259: state = 1;
260: return;
261: }
262: break;
263: }
264: super .enterAttribute(___uri, ___local, ___qname);
265: break;
266: }
267: }
268:
269: public void leaveAttribute(java.lang.String ___uri,
270: java.lang.String ___local, java.lang.String ___qname)
271: throws org.xml.sax.SAXException {
272: int attIdx;
273: outer: while (true) {
274: switch (state) {
275: case 3:
276: attIdx = context.getAttribute("",
277: "AttributeNamespace");
278: if (attIdx >= 0) {
279: final java.lang.String v = context
280: .eatAttribute(attIdx);
281: state = 6;
282: eatText1(v);
283: continue outer;
284: }
285: break;
286: case 6:
287: revertToParentFromLeaveAttribute(___uri, ___local,
288: ___qname);
289: return;
290: case 0:
291: attIdx = context.getAttribute("", "AttributeName");
292: if (attIdx >= 0) {
293: final java.lang.String v = context
294: .eatAttribute(attIdx);
295: state = 3;
296: eatText2(v);
297: continue outer;
298: }
299: break;
300: case 5:
301: if (("AttributeNamespace" == ___local)
302: && ("" == ___uri)) {
303: state = 6;
304: return;
305: }
306: break;
307: case 2:
308: if (("AttributeName" == ___local) && ("" == ___uri)) {
309: state = 3;
310: return;
311: }
312: break;
313: }
314: super .leaveAttribute(___uri, ___local, ___qname);
315: break;
316: }
317: }
318:
319: public void handleText(final java.lang.String value)
320: throws org.xml.sax.SAXException {
321: int attIdx;
322: outer: while (true) {
323: try {
324: switch (state) {
325: case 3:
326: attIdx = context.getAttribute("",
327: "AttributeNamespace");
328: if (attIdx >= 0) {
329: final java.lang.String v = context
330: .eatAttribute(attIdx);
331: state = 6;
332: eatText1(v);
333: continue outer;
334: }
335: break;
336: case 6:
337: revertToParentFromText(value);
338: return;
339: case 4:
340: state = 5;
341: eatText1(value);
342: return;
343: case 0:
344: attIdx = context.getAttribute("",
345: "AttributeName");
346: if (attIdx >= 0) {
347: final java.lang.String v = context
348: .eatAttribute(attIdx);
349: state = 3;
350: eatText2(v);
351: continue outer;
352: }
353: break;
354: case 1:
355: state = 2;
356: eatText2(value);
357: return;
358: }
359: } catch (java.lang.RuntimeException e) {
360: handleUnexpectedTextException(value, e);
361: }
362: break;
363: }
364: }
365:
366: }
367:
368: }
|