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 CanonicalizationMethodImpl
011: extends
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.CanonicalizationMethodTypeImpl
013: implements
014: com.sun.xml.wss.saml.internal.saml11.jaxb10.CanonicalizationMethod,
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.CanonicalizationMethod.class);
026: }
027:
028: public java.lang.String ____jaxb_ri____getNamespaceURI() {
029: return "http://www.w3.org/2000/09/xmldsig#";
030: }
031:
032: public java.lang.String ____jaxb_ri____getLocalName() {
033: return "CanonicalizationMethod";
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.CanonicalizationMethodImpl.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("http://www.w3.org/2000/09/xmldsig#",
046: "CanonicalizationMethod");
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.CanonicalizationMethod.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\u001ccom.s"
080: + "un.msv.grammar.MixedExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.grammar.Un"
081: + "aryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsr\u0000\u001dcom.sun.msv.grammar."
082: + "ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.msv.grammar.OneOrMor"
083: + "eExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\fsr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valu"
084: + "exp\u0000psq\u0000~\u0000\u0000q\u0000~\u0000\u0013p\u0000sr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000"
085: + "\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq\u0000~\u0000\u0004ppsr\u00002com.sun.msv.gra"
086: + "mmar.Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000\u0012\u0001q"
087: + "\u0000~\u0000\u0018sr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.s"
088: + "un.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u0000&com.sun.msv.grammar"
089: + ".NamespaceNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\fnamespaceURIt\u0000\u0012Ljava/lang/S"
090: + "tring;xq\u0000~\u0000\u001bt\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssr"
091: + "\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
092: + "\u0000xq\u0000~\u0000\u0004q\u0000~\u0000\u0019q\u0000~\u0000\"sq\u0000~\u0000\u0015ppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000"
093: + "\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003"
094: + "L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0004ppsr\u0000#com.sun.m"
095: + "sv.datatype.xsd.AnyURIType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatyp"
096: + "e.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.x"
097: + "sd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDat"
098: + "atypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u001eL\u0000\btypeNameq\u0000~\u0000\u001eL\u0000\nw"
099: + "hiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xp"
100: + "t\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006anyURIsr\u00005com.sun.msv."
101: + "datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com."
102: + "sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com"
103: + ".sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~"
104: + "\u0000\u0004q\u0000~\u0000\u0013psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNa"
105: + "meq\u0000~\u0000\u001eL\u0000\fnamespaceURIq\u0000~\u0000\u001expq\u0000~\u0000/q\u0000~\u0000.sr\u0000#com.sun.msv.gramm"
106: + "ar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001eL\u0000\fnamespaceUR"
107: + "Iq\u0000~\u0000\u001exq\u0000~\u0000\u001bt\u0000\tAlgorithmt\u0000\u0000sq\u0000~\u0000\u000eppsq\u0000~\u0000\u0015q\u0000~\u0000\u0013psq\u0000~\u0000$ppsr\u0000\"c"
108: + "om.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000)q\u0000~\u0000.t\u0000\u0005QN"
109: + "ameq\u0000~\u00002q\u0000~\u00004sq\u0000~\u00005q\u0000~\u0000@q\u0000~\u0000.sq\u0000~\u00007t\u0000\u0004typet\u0000)http://www.w3.o"
110: + "rg/2001/XMLSchema-instanceq\u0000~\u0000\"sq\u0000~\u00007t\u0000\u0016CanonicalizationMeth"
111: + "odt\u0000\"http://www.w3.org/2000/09/xmldsig#sr\u0000\"com.sun.msv.gramm"
112: + "ar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/gramm"
113: + "ar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expre"
114: + "ssionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006pa"
115: + "rentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0006\u0001pq\u0000~\u0000\nq\u0000~\u0000"
116: + "\u0011q\u0000~\u0000\tq\u0000~\u0000\u000fq\u0000~\u0000;q\u0000~\u0000\rx"));
117: }
118: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
119: schemaFragment);
120: }
121:
122: public class Unmarshaller
123: extends
124: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
125:
126: public Unmarshaller(
127: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
128: super (context, "----");
129: }
130:
131: protected Unmarshaller(
132: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
133: int startState) {
134: this (context);
135: state = startState;
136: }
137:
138: public java.lang.Object owner() {
139: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.CanonicalizationMethodImpl.this ;
140: }
141:
142: public void enterElement(java.lang.String ___uri,
143: java.lang.String ___local, java.lang.String ___qname,
144: org.xml.sax.Attributes __atts)
145: throws org.xml.sax.SAXException {
146: int attIdx;
147: outer: while (true) {
148: switch (state) {
149: case 1:
150: attIdx = context.getAttribute("", "Algorithm");
151: if (attIdx >= 0) {
152: context.consumeAttribute(attIdx);
153: context.getCurrentHandler().enterElement(
154: ___uri, ___local, ___qname, __atts);
155: return;
156: }
157: break;
158: case 3:
159: revertToParentFromEnterElement(___uri, ___local,
160: ___qname, __atts);
161: return;
162: case 0:
163: if (("CanonicalizationMethod" == ___local)
164: && ("http://www.w3.org/2000/09/xmldsig#" == ___uri)) {
165: context.pushAttributes(__atts, true);
166: state = 1;
167: return;
168: }
169: break;
170: }
171: super .enterElement(___uri, ___local, ___qname, __atts);
172: break;
173: }
174: }
175:
176: public void leaveElement(java.lang.String ___uri,
177: java.lang.String ___local, java.lang.String ___qname)
178: throws org.xml.sax.SAXException {
179: int attIdx;
180: outer: while (true) {
181: switch (state) {
182: case 1:
183: attIdx = context.getAttribute("", "Algorithm");
184: if (attIdx >= 0) {
185: context.consumeAttribute(attIdx);
186: context.getCurrentHandler().leaveElement(
187: ___uri, ___local, ___qname);
188: return;
189: }
190: break;
191: case 3:
192: revertToParentFromLeaveElement(___uri, ___local,
193: ___qname);
194: return;
195: case 2:
196: if (("CanonicalizationMethod" == ___local)
197: && ("http://www.w3.org/2000/09/xmldsig#" == ___uri)) {
198: context.popAttributes();
199: state = 3;
200: return;
201: }
202: break;
203: }
204: super .leaveElement(___uri, ___local, ___qname);
205: break;
206: }
207: }
208:
209: public void enterAttribute(java.lang.String ___uri,
210: java.lang.String ___local, java.lang.String ___qname)
211: throws org.xml.sax.SAXException {
212: int attIdx;
213: outer: while (true) {
214: switch (state) {
215: case 1:
216: if (("Algorithm" == ___local) && ("" == ___uri)) {
217: spawnHandlerFromEnterAttribute(
218: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.CanonicalizationMethodTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.CanonicalizationMethodImpl.this ).new Unmarshaller(
219: context)), 2, ___uri, ___local,
220: ___qname);
221: return;
222: }
223: break;
224: case 3:
225: revertToParentFromEnterAttribute(___uri, ___local,
226: ___qname);
227: return;
228: }
229: super .enterAttribute(___uri, ___local, ___qname);
230: break;
231: }
232: }
233:
234: public void leaveAttribute(java.lang.String ___uri,
235: java.lang.String ___local, java.lang.String ___qname)
236: throws org.xml.sax.SAXException {
237: int attIdx;
238: outer: while (true) {
239: switch (state) {
240: case 1:
241: attIdx = context.getAttribute("", "Algorithm");
242: if (attIdx >= 0) {
243: context.consumeAttribute(attIdx);
244: context.getCurrentHandler().leaveAttribute(
245: ___uri, ___local, ___qname);
246: return;
247: }
248: break;
249: case 3:
250: revertToParentFromLeaveAttribute(___uri, ___local,
251: ___qname);
252: return;
253: }
254: super .leaveAttribute(___uri, ___local, ___qname);
255: break;
256: }
257: }
258:
259: public void handleText(final java.lang.String value)
260: throws org.xml.sax.SAXException {
261: int attIdx;
262: outer: while (true) {
263: try {
264: switch (state) {
265: case 1:
266: attIdx = context.getAttribute("", "Algorithm");
267: if (attIdx >= 0) {
268: context.consumeAttribute(attIdx);
269: context.getCurrentHandler().text(value);
270: return;
271: }
272: break;
273: case 3:
274: revertToParentFromText(value);
275: return;
276: }
277: } catch (java.lang.RuntimeException e) {
278: handleUnexpectedTextException(value, e);
279: }
280: break;
281: }
282: }
283:
284: }
285:
286: }
|