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 AttributeImpl
011: extends
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.AttributeTypeImpl
013: implements
014: com.sun.xml.wss.saml.internal.saml11.jaxb10.Attribute,
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.Attribute.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 "Attribute";
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.AttributeImpl.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: "Attribute");
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.Attribute.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 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.ms"
081: + "v.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsr\u0000\u001dcom.sun."
082: + "msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsq\u0000~\u0000\u0000pp\u0000sq\u0000~\u0000\u000fppsq\u0000"
083: + "~\u0000\fsr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000 com.sun.m"
084: + "sv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~"
085: + "\u0000\u0001xq\u0000~\u0000\u0004q\u0000~\u0000\u0015psr\u00002com.sun.msv.grammar.Expression$AnyStringEx"
086: + "pression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\u0014\u0001q\u0000~\u0000\u0019sr\u0000 com.sun.msv.grammar"
087: + ".AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000"
088: + "\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$EpsilonExpressi"
089: + "on\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004q\u0000~\u0000\u001aq\u0000~\u0000\u001fsr\u0000#com.sun.msv.grammar.SimpleN"
090: + "ameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L\u0000\fnames"
091: + "paceURIq\u0000~\u0000!xq\u0000~\u0000\u001ct\u0000:com.sun.xml.wss.saml.internal.saml11.ja"
092: + "xb10.AttributeValuet\u0000+http://java.sun.com/jaxb/xjc/dummy-ele"
093: + "mentssq\u0000~\u0000\u0000pp\u0000sq\u0000~\u0000\u0007ppsq\u0000~\u0000\u0000pp\u0000sq\u0000~\u0000\u000fppsq\u0000~\u0000\fq\u0000~\u0000\u0015psq\u0000~\u0000\u0016q\u0000~"
094: + "\u0000\u0015pq\u0000~\u0000\u0019q\u0000~\u0000\u001dq\u0000~\u0000\u001fsq\u0000~\u0000 t\u00003com.sun.xml.wss.saml.internal.sam"
095: + "l11.jaxb10.AnyTypeq\u0000~\u0000$sq\u0000~\u0000\u000fppsq\u0000~\u0000\u0016q\u0000~\u0000\u0015psr\u0000\u001bcom.sun.msv.g"
096: + "rammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datat"
097: + "ype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000"
098: + "~\u0000\u0004ppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*co"
099: + "m.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.s"
100: + "un.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.d"
101: + "atatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000!L\u0000\b"
102: + "typeNameq\u0000~\u0000!L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/White"
103: + "SpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0005QName"
104: + "sr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000"
105: + "\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000"
106: + "\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$NullSetExpressio"
107: + "n\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004q\u0000~\u0000\u0015psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB"
108: + "\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000!L\u0000\fnamespaceURIq\u0000~\u0000!xpq\u0000~\u0000:q\u0000~\u00009sq\u0000~\u0000"
109: + " t\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-instanceq\u0000~\u0000\u001fsq\u0000"
110: + "~\u0000 t\u0000\u000eAttributeValuet\u0000%urn:oasis:names:tc:SAML:1.0:assertion"
111: + "sq\u0000~\u0000\u0016ppsq\u0000~\u0000/q\u0000~\u0000\u0015psr\u0000#com.sun.msv.datatype.xsd.StringType\u0000"
112: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxq\u0000~\u00004q\u0000~\u00009t\u0000\u0006stringsr\u00005com.sun.ms"
113: + "v.datatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000<"
114: + "\u0001q\u0000~\u0000?sq\u0000~\u0000@q\u0000~\u0000Lq\u0000~\u00009sq\u0000~\u0000 t\u0000\rAttributeNamet\u0000\u0000sq\u0000~\u0000\u0016ppsq\u0000~\u0000"
115: + "/ppsr\u0000#com.sun.msv.datatype.xsd.AnyURIType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00004q"
116: + "\u0000~\u00009t\u0000\u0006anyURIq\u0000~\u0000=q\u0000~\u0000?sq\u0000~\u0000@q\u0000~\u0000Wq\u0000~\u00009sq\u0000~\u0000 t\u0000\u0012AttributeNam"
117: + "espaceq\u0000~\u0000Rsq\u0000~\u0000\u000fppsq\u0000~\u0000\u0016q\u0000~\u0000\u0015pq\u0000~\u00002q\u0000~\u0000Bq\u0000~\u0000\u001fsq\u0000~\u0000 t\u0000\tAttri"
118: + "buteq\u0000~\u0000Gsr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
119: + "\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;x"
120: + "psr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000"
121: + "\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/Ex"
122: + "pressionPool;xp\u0000\u0000\u0000\f\u0001pq\u0000~\u0000\u000bq\u0000~\u0000&q\u0000~\u0000\u0012q\u0000~\u0000(q\u0000~\u0000\u0013q\u0000~\u0000)q\u0000~\u0000\tq\u0000~\u0000"
123: + "\nq\u0000~\u0000\u000eq\u0000~\u0000-q\u0000~\u0000[q\u0000~\u0000\u0010x"));
124: }
125: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
126: schemaFragment);
127: }
128:
129: public class Unmarshaller
130: extends
131: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
132:
133: public Unmarshaller(
134: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
135: super (context, "----");
136: }
137:
138: protected Unmarshaller(
139: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
140: int startState) {
141: this (context);
142: state = startState;
143: }
144:
145: public java.lang.Object owner() {
146: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.AttributeImpl.this ;
147: }
148:
149: public void enterElement(java.lang.String ___uri,
150: java.lang.String ___local, java.lang.String ___qname,
151: org.xml.sax.Attributes __atts)
152: throws org.xml.sax.SAXException {
153: int attIdx;
154: outer: while (true) {
155: switch (state) {
156: case 3:
157: revertToParentFromEnterElement(___uri, ___local,
158: ___qname, __atts);
159: return;
160: case 0:
161: if (("Attribute" == ___local)
162: && ("urn:oasis:names:tc:SAML:1.0:assertion" == ___uri)) {
163: context.pushAttributes(__atts, false);
164: state = 1;
165: return;
166: }
167: break;
168: case 1:
169: attIdx = context.getAttribute("", "AttributeName");
170: if (attIdx >= 0) {
171: context.consumeAttribute(attIdx);
172: context.getCurrentHandler().enterElement(
173: ___uri, ___local, ___qname, __atts);
174: return;
175: }
176: break;
177: }
178: super .enterElement(___uri, ___local, ___qname, __atts);
179: break;
180: }
181: }
182:
183: public void leaveElement(java.lang.String ___uri,
184: java.lang.String ___local, java.lang.String ___qname)
185: throws org.xml.sax.SAXException {
186: int attIdx;
187: outer: while (true) {
188: switch (state) {
189: case 2:
190: if (("Attribute" == ___local)
191: && ("urn:oasis:names:tc:SAML:1.0:assertion" == ___uri)) {
192: context.popAttributes();
193: state = 3;
194: return;
195: }
196: break;
197: case 3:
198: revertToParentFromLeaveElement(___uri, ___local,
199: ___qname);
200: return;
201: case 1:
202: attIdx = context.getAttribute("", "AttributeName");
203: if (attIdx >= 0) {
204: context.consumeAttribute(attIdx);
205: context.getCurrentHandler().leaveElement(
206: ___uri, ___local, ___qname);
207: return;
208: }
209: break;
210: }
211: super .leaveElement(___uri, ___local, ___qname);
212: break;
213: }
214: }
215:
216: public void enterAttribute(java.lang.String ___uri,
217: java.lang.String ___local, java.lang.String ___qname)
218: throws org.xml.sax.SAXException {
219: int attIdx;
220: outer: while (true) {
221: switch (state) {
222: case 3:
223: revertToParentFromEnterAttribute(___uri, ___local,
224: ___qname);
225: return;
226: case 1:
227: if (("AttributeName" == ___local) && ("" == ___uri)) {
228: spawnHandlerFromEnterAttribute(
229: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.AttributeTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.AttributeImpl.this ).new Unmarshaller(
230: context)), 2, ___uri, ___local,
231: ___qname);
232: return;
233: }
234: break;
235: }
236: super .enterAttribute(___uri, ___local, ___qname);
237: break;
238: }
239: }
240:
241: public void leaveAttribute(java.lang.String ___uri,
242: java.lang.String ___local, java.lang.String ___qname)
243: throws org.xml.sax.SAXException {
244: int attIdx;
245: outer: while (true) {
246: switch (state) {
247: case 3:
248: revertToParentFromLeaveAttribute(___uri, ___local,
249: ___qname);
250: return;
251: case 1:
252: attIdx = context.getAttribute("", "AttributeName");
253: if (attIdx >= 0) {
254: context.consumeAttribute(attIdx);
255: context.getCurrentHandler().leaveAttribute(
256: ___uri, ___local, ___qname);
257: return;
258: }
259: break;
260: }
261: super .leaveAttribute(___uri, ___local, ___qname);
262: break;
263: }
264: }
265:
266: public void handleText(final java.lang.String value)
267: throws org.xml.sax.SAXException {
268: int attIdx;
269: outer: while (true) {
270: try {
271: switch (state) {
272: case 3:
273: revertToParentFromText(value);
274: return;
275: case 1:
276: attIdx = context.getAttribute("",
277: "AttributeName");
278: if (attIdx >= 0) {
279: context.consumeAttribute(attIdx);
280: context.getCurrentHandler().text(value);
281: return;
282: }
283: break;
284: }
285: } catch (java.lang.RuntimeException e) {
286: handleUnexpectedTextException(value, e);
287: }
288: break;
289: }
290: }
291:
292: }
293:
294: }
|