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 DigestMethodImpl
011: extends
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.DigestMethodTypeImpl
013: implements
014: com.sun.xml.wss.saml.internal.saml11.jaxb10.DigestMethod,
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.DigestMethod.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 "DigestMethod";
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.DigestMethodImpl.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: "DigestMethod");
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.DigestMethod.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.DifferenceNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000"
088: + "\u0003nc1q\u0000~\u0000\u0001L\u0000\u0003nc2q\u0000~\u0000\u0001xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
089: + "\u0001\u0002\u0000\u0000xpsr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001bs"
090: + "r\u0000#com.sun.msv.grammar.ChoiceNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003nc1q\u0000~\u0000\u0001"
091: + "L\u0000\u0003nc2q\u0000~\u0000\u0001xq\u0000~\u0000\u001bsr\u0000&com.sun.msv.grammar.NamespaceNameClass\u0000"
092: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\fnamespaceURIt\u0000\u0012Ljava/lang/String;xq\u0000~\u0000\u001bt\u0000\u0000sq\u0000~\u0000"
093: + "!t\u0000\"http://www.w3.org/2000/09/xmldsig#sq\u0000~\u0000!t\u0000+http://java.s"
094: + "un.com/jaxb/xjc/dummy-elementssr\u00000com.sun.msv.grammar.Expres"
095: + "sion$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004q\u0000~\u0000\u0019q\u0000~\u0000*sq\u0000~\u0000\u0015ppsr\u0000"
096: + "\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/"
097: + "datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/"
098: + "StringPair;xq\u0000~\u0000\u0004ppsr\u0000#com.sun.msv.datatype.xsd.AnyURIType\u0000\u0000"
099: + "\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000"
100: + "\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr"
101: + "\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnames"
102: + "paceUriq\u0000~\u0000\"L\u0000\btypeNameq\u0000~\u0000\"L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/dat"
103: + "atype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XM"
104: + "LSchemat\u0000\u0006anyURIsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProce"
105: + "ssor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSp"
106: + "aceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$"
107: + "NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004q\u0000~\u0000\u0013psr\u0000\u001bcom.sun.msv.util"
108: + ".StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\"L\u0000\fnamespaceURIq\u0000~\u0000\"x"
109: + "pq\u0000~\u00007q\u0000~\u00006sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
110: + "\u0002L\u0000\tlocalNameq\u0000~\u0000\"L\u0000\fnamespaceURIq\u0000~\u0000\"xq\u0000~\u0000\u001bt\u0000\tAlgorithmq\u0000~\u0000"
111: + "$sq\u0000~\u0000\u000eppsq\u0000~\u0000\u0015q\u0000~\u0000\u0013psq\u0000~\u0000,ppsr\u0000\"com.sun.msv.datatype.xsd.Qn"
112: + "ameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00001q\u0000~\u00006t\u0000\u0005QNameq\u0000~\u0000:q\u0000~\u0000<sq\u0000~\u0000=q\u0000~\u0000Gq\u0000"
113: + "~\u00006sq\u0000~\u0000?t\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-instance"
114: + "q\u0000~\u0000*sq\u0000~\u0000?t\u0000\fDigestMethodq\u0000~\u0000&sr\u0000\"com.sun.msv.grammar.Expre"
115: + "ssionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Expre"
116: + "ssionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPoo"
117: + "l$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$L"
118: + "com/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0006\u0001pq\u0000~\u0000\u000fq\u0000~\u0000\u0011q\u0000~\u0000\rq\u0000"
119: + "~\u0000Bq\u0000~\u0000\tq\u0000~\u0000\nx"));
120: }
121: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
122: schemaFragment);
123: }
124:
125: public class Unmarshaller
126: extends
127: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
128:
129: public Unmarshaller(
130: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
131: super (context, "----");
132: }
133:
134: protected Unmarshaller(
135: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
136: int startState) {
137: this (context);
138: state = startState;
139: }
140:
141: public java.lang.Object owner() {
142: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.DigestMethodImpl.this ;
143: }
144:
145: public void enterElement(java.lang.String ___uri,
146: java.lang.String ___local, java.lang.String ___qname,
147: org.xml.sax.Attributes __atts)
148: throws org.xml.sax.SAXException {
149: int attIdx;
150: outer: while (true) {
151: switch (state) {
152: case 3:
153: revertToParentFromEnterElement(___uri, ___local,
154: ___qname, __atts);
155: return;
156: case 1:
157: attIdx = context.getAttribute("", "Algorithm");
158: if (attIdx >= 0) {
159: context.consumeAttribute(attIdx);
160: context.getCurrentHandler().enterElement(
161: ___uri, ___local, ___qname, __atts);
162: return;
163: }
164: break;
165: case 0:
166: if (("DigestMethod" == ___local)
167: && ("http://www.w3.org/2000/09/xmldsig#" == ___uri)) {
168: context.pushAttributes(__atts, true);
169: state = 1;
170: return;
171: }
172: break;
173: }
174: super .enterElement(___uri, ___local, ___qname, __atts);
175: break;
176: }
177: }
178:
179: public void leaveElement(java.lang.String ___uri,
180: java.lang.String ___local, java.lang.String ___qname)
181: throws org.xml.sax.SAXException {
182: int attIdx;
183: outer: while (true) {
184: switch (state) {
185: case 3:
186: revertToParentFromLeaveElement(___uri, ___local,
187: ___qname);
188: return;
189: case 2:
190: if (("DigestMethod" == ___local)
191: && ("http://www.w3.org/2000/09/xmldsig#" == ___uri)) {
192: context.popAttributes();
193: state = 3;
194: return;
195: }
196: break;
197: case 1:
198: attIdx = context.getAttribute("", "Algorithm");
199: if (attIdx >= 0) {
200: context.consumeAttribute(attIdx);
201: context.getCurrentHandler().leaveElement(
202: ___uri, ___local, ___qname);
203: return;
204: }
205: break;
206: }
207: super .leaveElement(___uri, ___local, ___qname);
208: break;
209: }
210: }
211:
212: public void enterAttribute(java.lang.String ___uri,
213: java.lang.String ___local, java.lang.String ___qname)
214: throws org.xml.sax.SAXException {
215: int attIdx;
216: outer: while (true) {
217: switch (state) {
218: case 3:
219: revertToParentFromEnterAttribute(___uri, ___local,
220: ___qname);
221: return;
222: case 1:
223: if (("Algorithm" == ___local) && ("" == ___uri)) {
224: spawnHandlerFromEnterAttribute(
225: (((com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.DigestMethodTypeImpl) com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.DigestMethodImpl.this ).new Unmarshaller(
226: context)), 2, ___uri, ___local,
227: ___qname);
228: return;
229: }
230: break;
231: }
232: super .enterAttribute(___uri, ___local, ___qname);
233: break;
234: }
235: }
236:
237: public void leaveAttribute(java.lang.String ___uri,
238: java.lang.String ___local, java.lang.String ___qname)
239: throws org.xml.sax.SAXException {
240: int attIdx;
241: outer: while (true) {
242: switch (state) {
243: case 3:
244: revertToParentFromLeaveAttribute(___uri, ___local,
245: ___qname);
246: return;
247: case 1:
248: attIdx = context.getAttribute("", "Algorithm");
249: if (attIdx >= 0) {
250: context.consumeAttribute(attIdx);
251: context.getCurrentHandler().leaveAttribute(
252: ___uri, ___local, ___qname);
253: return;
254: }
255: break;
256: }
257: super .leaveAttribute(___uri, ___local, ___qname);
258: break;
259: }
260: }
261:
262: public void handleText(final java.lang.String value)
263: throws org.xml.sax.SAXException {
264: int attIdx;
265: outer: while (true) {
266: try {
267: switch (state) {
268: case 3:
269: revertToParentFromText(value);
270: return;
271: case 1:
272: attIdx = context.getAttribute("", "Algorithm");
273: if (attIdx >= 0) {
274: context.consumeAttribute(attIdx);
275: context.getCurrentHandler().text(value);
276: return;
277: }
278: break;
279: }
280: } catch (java.lang.RuntimeException e) {
281: handleUnexpectedTextException(value, e);
282: }
283: break;
284: }
285: }
286:
287: }
288:
289: }
|