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 DigestValueImpl
011: implements
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.DigestValue,
013: com.sun.xml.bind.RIElement,
014: com.sun.xml.bind.JAXBObject,
015: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallableObject,
016: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializable,
017: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.ValidatableObject {
018:
019: protected byte[] _Value;
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: public DigestValueImpl() {
024: }
025:
026: public DigestValueImpl(byte[] value) {
027: _Value = value;
028: }
029:
030: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
031: return (com.sun.xml.wss.saml.internal.saml11.jaxb10.DigestValue.class);
032: }
033:
034: public java.lang.String ____jaxb_ri____getNamespaceURI() {
035: return "http://www.w3.org/2000/09/xmldsig#";
036: }
037:
038: public java.lang.String ____jaxb_ri____getLocalName() {
039: return "DigestValue";
040: }
041:
042: public byte[] getValue() {
043: return _Value;
044: }
045:
046: public void setValue(byte[] value) {
047: _Value = value;
048: }
049:
050: public com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
051: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
052: return new com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.DigestValueImpl.Unmarshaller(
053: context);
054: }
055:
056: public void serializeBody(
057: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
058: throws org.xml.sax.SAXException {
059: context.startElement("http://www.w3.org/2000/09/xmldsig#",
060: "DigestValue");
061: context.endNamespaceDecls();
062: context.endAttributes();
063: try {
064: context.text(com.sun.msv.datatype.xsd.Base64BinaryType
065: .save(((byte[]) _Value)), "Value");
066: } catch (java.lang.Exception e) {
067: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.Util
068: .handlePrintConversionException(this , e, context);
069: }
070: context.endElement();
071: }
072:
073: public void serializeAttributes(
074: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
075: throws org.xml.sax.SAXException {
076: }
077:
078: public void serializeURIs(
079: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
080: throws org.xml.sax.SAXException {
081: }
082:
083: public java.lang.Class getPrimaryInterface() {
084: return (com.sun.xml.wss.saml.internal.saml11.jaxb10.DigestValue.class);
085: }
086:
087: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
088: if (schemaFragment == null) {
089: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
090: .deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
091: + "\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
092: + "grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
093: + "\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
094: + "msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
095: + "ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
096: + "mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
097: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1q\u0000~\u0000\u0003L\u0000\u0004exp2q\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.g"
098: + "rammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datat"
099: + "ype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000"
100: + "~\u0000\u0004ppsr\u0000\'com.sun.msv.datatype.xsd.FinalComponent\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I"
101: + "\u0000\nfinalValuexr\u0000\u001ecom.sun.msv.datatype.xsd.Proxy\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\b"
102: + "baseTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatatypeImpl;xr\u0000\'com."
103: + "sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUr"
104: + "it\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0012L\u0000\nwhiteSpacet\u0000.Lcom/s"
105: + "un/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000\"http://www.w3.o"
106: + "rg/2000/09/xmldsig#t\u0000\u000fDigestValueTypesr\u00005com.sun.msv.datatyp"
107: + "e.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv"
108: + ".datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u0000)com.sun.ms"
109: + "v.datatype.xsd.Base64BinaryType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.da"
110: + "tatype.xsd.BinaryBaseType\u00a7\u00ce\u000e\u0097^\u00afW\u0011\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype"
111: + ".xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xs"
112: + "d.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0011t\u0000 http://www.w3.org/2001/XML"
113: + "Schemat\u0000\fbase64Binaryq\u0000~\u0000\u0019\u0000\u0000\u0000\u0000sr\u00000com.sun.msv.grammar.Expres"
114: + "sion$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean"
115: + "\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f"
116: + "\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0012L\u0000\fnamespaceURIq\u0000~\u0000\u0012xpq\u0000~\u0000 q\u0000~\u0000\u0015sr\u0000\u001dco"
117: + "m.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.ms"
118: + "v.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000"
119: + "\u0001xq\u0000~\u0000\u0004q\u0000~\u0000$psq\u0000~\u0000\nppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000"
120: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001cq\u0000~\u0000\u001ft\u0000\u0005QNameq\u0000~\u0000\u0019q\u0000~\u0000\"sq\u0000~\u0000%q\u0000~\u0000.q\u0000~\u0000\u001fsr\u0000#c"
121: + "om.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~"
122: + "\u0000\u0012L\u0000\fnamespaceURIq\u0000~\u0000\u0012xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000"
123: + "\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-instances"
124: + "r\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
125: + "\u0000\u0000xq\u0000~\u0000\u0004sq\u0000~\u0000#\u0001q\u0000~\u00006sq\u0000~\u00000t\u0000\u000bDigestValueq\u0000~\u0000\u0015sr\u0000\"com.sun.msv"
126: + ".grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv"
127: + "/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar"
128: + ".ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersio"
129: + "nL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0002\u0001pq\u0000~"
130: + "\u0000\tq\u0000~\u0000(x"));
131: }
132: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
133: schemaFragment);
134: }
135:
136: public class Unmarshaller
137: extends
138: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
139:
140: public Unmarshaller(
141: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
142: super (context, "----");
143: }
144:
145: protected Unmarshaller(
146: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
147: int startState) {
148: this (context);
149: state = startState;
150: }
151:
152: public java.lang.Object owner() {
153: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.DigestValueImpl.this ;
154: }
155:
156: public void enterElement(java.lang.String ___uri,
157: java.lang.String ___local, java.lang.String ___qname,
158: org.xml.sax.Attributes __atts)
159: throws org.xml.sax.SAXException {
160: int attIdx;
161: outer: while (true) {
162: switch (state) {
163: case 0:
164: if (("DigestValue" == ___local)
165: && ("http://www.w3.org/2000/09/xmldsig#" == ___uri)) {
166: context.pushAttributes(__atts, true);
167: state = 1;
168: return;
169: }
170: break;
171: case 3:
172: revertToParentFromEnterElement(___uri, ___local,
173: ___qname, __atts);
174: return;
175: }
176: super .enterElement(___uri, ___local, ___qname, __atts);
177: break;
178: }
179: }
180:
181: public void leaveElement(java.lang.String ___uri,
182: java.lang.String ___local, java.lang.String ___qname)
183: throws org.xml.sax.SAXException {
184: int attIdx;
185: outer: while (true) {
186: switch (state) {
187: case 2:
188: if (("DigestValue" == ___local)
189: && ("http://www.w3.org/2000/09/xmldsig#" == ___uri)) {
190: context.popAttributes();
191: state = 3;
192: return;
193: }
194: break;
195: case 3:
196: revertToParentFromLeaveElement(___uri, ___local,
197: ___qname);
198: return;
199: }
200: super .leaveElement(___uri, ___local, ___qname);
201: break;
202: }
203: }
204:
205: public void enterAttribute(java.lang.String ___uri,
206: java.lang.String ___local, java.lang.String ___qname)
207: throws org.xml.sax.SAXException {
208: int attIdx;
209: outer: while (true) {
210: switch (state) {
211: case 3:
212: revertToParentFromEnterAttribute(___uri, ___local,
213: ___qname);
214: return;
215: }
216: super .enterAttribute(___uri, ___local, ___qname);
217: break;
218: }
219: }
220:
221: public void leaveAttribute(java.lang.String ___uri,
222: java.lang.String ___local, java.lang.String ___qname)
223: throws org.xml.sax.SAXException {
224: int attIdx;
225: outer: while (true) {
226: switch (state) {
227: case 3:
228: revertToParentFromLeaveAttribute(___uri, ___local,
229: ___qname);
230: return;
231: }
232: super .leaveAttribute(___uri, ___local, ___qname);
233: break;
234: }
235: }
236:
237: public void handleText(final java.lang.String value)
238: throws org.xml.sax.SAXException {
239: int attIdx;
240: outer: while (true) {
241: try {
242: switch (state) {
243: case 3:
244: revertToParentFromText(value);
245: return;
246: case 1:
247: state = 2;
248: eatText1(value);
249: return;
250: }
251: } catch (java.lang.RuntimeException e) {
252: handleUnexpectedTextException(value, e);
253: }
254: break;
255: }
256: }
257:
258: private void eatText1(final java.lang.String value)
259: throws org.xml.sax.SAXException {
260: try {
261: _Value = com.sun.msv.datatype.xsd.Base64BinaryType
262: .load(com.sun.xml.bind.WhiteSpaceProcessor
263: .collapse(value));
264: } catch (java.lang.Exception e) {
265: handleParseConversionException(e);
266: }
267: }
268:
269: }
270:
271: }
|