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 AudienceImpl
011: implements
012: com.sun.xml.wss.saml.internal.saml11.jaxb10.Audience,
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 java.lang.String _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 AudienceImpl() {
024: }
025:
026: public AudienceImpl(java.lang.String 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.Audience.class);
032: }
033:
034: public java.lang.String ____jaxb_ri____getNamespaceURI() {
035: return "urn:oasis:names:tc:SAML:1.0:assertion";
036: }
037:
038: public java.lang.String ____jaxb_ri____getLocalName() {
039: return "Audience";
040: }
041:
042: public java.lang.String getValue() {
043: return _Value;
044: }
045:
046: public void setValue(java.lang.String 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.AudienceImpl.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("urn:oasis:names:tc:SAML:1.0:assertion",
060: "Audience");
061: context.endNamespaceDecls();
062: context.endAttributes();
063: try {
064: context.text(((java.lang.String) _Value), "Value");
065: } catch (java.lang.Exception e) {
066: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.Util
067: .handlePrintConversionException(this , e, context);
068: }
069: context.endElement();
070: }
071:
072: public void serializeAttributes(
073: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializer context)
074: throws org.xml.sax.SAXException {
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.Audience.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\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
090: + "\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
091: + "grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
092: + "\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
093: + "msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
094: + "ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
095: + "mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
096: + "\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"
097: + "rammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datat"
098: + "ype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000"
099: + "~\u0000\u0004ppsr\u0000#com.sun.msv.datatype.xsd.AnyURIType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*c"
100: + "om.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com."
101: + "sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv."
102: + "datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljav"
103: + "a/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0012L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/d"
104: + "atatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/"
105: + "XMLSchemat\u0000\u0006anyURIsr\u00005com.sun.msv.datatype.xsd.WhiteSpacePro"
106: + "cessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.White"
107: + "SpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expressio"
108: + "n$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean\u00cd r"
109: + "\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002"
110: + "\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0012L\u0000\fnamespaceURIq\u0000~\u0000\u0012xpq\u0000~\u0000\u0016q\u0000~\u0000\u0015sr\u0000\u001dcom.s"
111: + "un.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\bppsr\u0000 com.sun.msv.g"
112: + "rammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq"
113: + "\u0000~\u0000\u0004q\u0000~\u0000\u001dpsq\u0000~\u0000\nppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000"
114: + "\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u000fq\u0000~\u0000\u0015t\u0000\u0005QNameq\u0000~\u0000\u0019q\u0000~\u0000\u001bsq\u0000~\u0000\u001eq\u0000~\u0000\'q\u0000~\u0000\u0015sr\u0000#com."
115: + "sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0012L"
116: + "\u0000\fnamespaceURIq\u0000~\u0000\u0012xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
117: + "\u0002\u0000\u0000xpt\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-instancesr\u00000"
118: + "com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000x"
119: + "q\u0000~\u0000\u0004sq\u0000~\u0000\u001c\u0001q\u0000~\u0000/sq\u0000~\u0000)t\u0000\bAudiencet\u0000%urn:oasis:names:tc:SAML"
120: + ":1.0:assertionsr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001"
121: + "\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedH"
122: + "ash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef"
123: + "\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/gramm"
124: + "ar/ExpressionPool;xp\u0000\u0000\u0000\u0002\u0001pq\u0000~\u0000\tq\u0000~\u0000!x"));
125: }
126: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
127: schemaFragment);
128: }
129:
130: public class Unmarshaller
131: extends
132: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
133:
134: public Unmarshaller(
135: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context) {
136: super (context, "----");
137: }
138:
139: protected Unmarshaller(
140: com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallingContext context,
141: int startState) {
142: this (context);
143: state = startState;
144: }
145:
146: public java.lang.Object owner() {
147: return com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.AudienceImpl.this ;
148: }
149:
150: public void enterElement(java.lang.String ___uri,
151: java.lang.String ___local, java.lang.String ___qname,
152: org.xml.sax.Attributes __atts)
153: throws org.xml.sax.SAXException {
154: int attIdx;
155: outer: while (true) {
156: switch (state) {
157: case 3:
158: revertToParentFromEnterElement(___uri, ___local,
159: ___qname, __atts);
160: return;
161: case 0:
162: if (("Audience" == ___local)
163: && ("urn:oasis:names:tc:SAML:1.0:assertion" == ___uri)) {
164: context.pushAttributes(__atts, true);
165: state = 1;
166: return;
167: }
168: break;
169: }
170: super .enterElement(___uri, ___local, ___qname, __atts);
171: break;
172: }
173: }
174:
175: public void leaveElement(java.lang.String ___uri,
176: java.lang.String ___local, java.lang.String ___qname)
177: throws org.xml.sax.SAXException {
178: int attIdx;
179: outer: while (true) {
180: switch (state) {
181: case 2:
182: if (("Audience" == ___local)
183: && ("urn:oasis:names:tc:SAML:1.0:assertion" == ___uri)) {
184: context.popAttributes();
185: state = 3;
186: return;
187: }
188: break;
189: case 3:
190: revertToParentFromLeaveElement(___uri, ___local,
191: ___qname);
192: return;
193: }
194: super .leaveElement(___uri, ___local, ___qname);
195: break;
196: }
197: }
198:
199: public void enterAttribute(java.lang.String ___uri,
200: java.lang.String ___local, java.lang.String ___qname)
201: throws org.xml.sax.SAXException {
202: int attIdx;
203: outer: while (true) {
204: switch (state) {
205: case 3:
206: revertToParentFromEnterAttribute(___uri, ___local,
207: ___qname);
208: return;
209: }
210: super .enterAttribute(___uri, ___local, ___qname);
211: break;
212: }
213: }
214:
215: public void leaveAttribute(java.lang.String ___uri,
216: java.lang.String ___local, java.lang.String ___qname)
217: throws org.xml.sax.SAXException {
218: int attIdx;
219: outer: while (true) {
220: switch (state) {
221: case 3:
222: revertToParentFromLeaveAttribute(___uri, ___local,
223: ___qname);
224: return;
225: }
226: super .leaveAttribute(___uri, ___local, ___qname);
227: break;
228: }
229: }
230:
231: public void handleText(final java.lang.String value)
232: throws org.xml.sax.SAXException {
233: int attIdx;
234: outer: while (true) {
235: try {
236: switch (state) {
237: case 3:
238: revertToParentFromText(value);
239: return;
240: case 1:
241: state = 2;
242: eatText1(value);
243: return;
244: }
245: } catch (java.lang.RuntimeException e) {
246: handleUnexpectedTextException(value, e);
247: }
248: break;
249: }
250: }
251:
252: private void eatText1(final java.lang.String value)
253: throws org.xml.sax.SAXException {
254: try {
255: _Value = com.sun.xml.bind.WhiteSpaceProcessor
256: .collapse(value);
257: } catch (java.lang.Exception e) {
258: handleParseConversionException(e);
259: }
260: }
261:
262: }
263:
264: }
|