001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0
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: 2003.03.06 at 09:44:40 PST
006: //
007:
008: package org.jaffa.security.businessfunctionsdomain.impl;
009:
010: public class BusinessFunctionImpl implements
011: org.jaffa.security.businessfunctionsdomain.BusinessFunction,
012: com.sun.xml.bind.unmarshaller.UnmarshallableObject,
013: com.sun.xml.bind.serializer.XMLSerializable,
014: com.sun.xml.bind.validator.ValidatableObject {
015:
016: protected java.lang.String _Description;
017: protected java.lang.String _Name;
018: private final static com.sun.msv.grammar.Grammar schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
019: .deserialize("\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/grammar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0003I\u0000\u000ecachedHashCodeL\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0002xp\u0001\fL\u000fppsr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001\u0000U\u00d9cppsr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000U\u00d9Xsr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000p\u0000sr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003\u0000U\u00d9Mppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0016L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u0000.com.sun.msv.datatype.xsd.WhiteSpaceProcessor$1\u0013JMoI\u00db\u00a4G\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\nppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0016L\u0000\fnamespaceURIq\u0000~\u0000\u0016xpq\u0000~\u0000\u001aq\u0000~\u0000\u0019sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0016L\u0000\fnamespaceURIq\u0000~\u0000\u0016xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u000bdescriptiont\u0000\u0000sr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\tsq\u0000~\u0000\f\u0001psr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\txq\u0000~\u0000\u0003\u0000\u00b6r\u00a7ppq\u0000~\u0000\u0011sq\u0000~\u0000\"t\u0000\u0004nameq\u0000~\u0000&sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0002\u0000\u0004I\u0000\u0005countI\u0000\tthresholdL\u0000\u0006parentq\u0000~\u0000/[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\u0002\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfpppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u0005pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u0007ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp");
020:
021: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
022: return org.jaffa.security.businessfunctionsdomain.BusinessFunction.class;
023: }
024:
025: public java.lang.String getDescription() {
026: return _Description;
027: }
028:
029: public void setDescription(java.lang.String value) {
030: _Description = value;
031: }
032:
033: public java.lang.String getName() {
034: return _Name;
035: }
036:
037: public void setName(java.lang.String value) {
038: _Name = value;
039: }
040:
041: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
042: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
043: return new org.jaffa.security.businessfunctionsdomain.impl.BusinessFunctionImpl.Unmarshaller(
044: context);
045: }
046:
047: public java.lang.Class getPrimaryInterfaceClass() {
048: return PRIMARY_INTERFACE_CLASS();
049: }
050:
051: public void serializeElements(
052: com.sun.xml.bind.serializer.XMLSerializer context)
053: throws org.xml.sax.SAXException {
054: if (_Description != null) {
055: context.startElement("", "description");
056: context.endAttributes();
057: try {
058: context.text(((java.lang.String) _Description));
059: } catch (java.lang.Exception e) {
060: com.sun.xml.bind.marshaller.Util
061: .handlePrintConversionException(this , e,
062: context);
063: }
064: context.endElement();
065: }
066: }
067:
068: public void serializeAttributes(
069: com.sun.xml.bind.serializer.XMLSerializer context)
070: throws org.xml.sax.SAXException {
071: context.startAttribute("", "name");
072: try {
073: context.text(((java.lang.String) _Name));
074: } catch (java.lang.Exception e) {
075: com.sun.xml.bind.marshaller.Util
076: .handlePrintConversionException(this , e, context);
077: }
078: context.endAttribute();
079: }
080:
081: public void serializeAttributeBodies(
082: com.sun.xml.bind.serializer.XMLSerializer context)
083: throws org.xml.sax.SAXException {
084: }
085:
086: public java.lang.Class getPrimaryInterface() {
087: return (org.jaffa.security.businessfunctionsdomain.BusinessFunction.class);
088: }
089:
090: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
091: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
092: schemaFragment);
093: }
094:
095: public class Unmarshaller extends
096: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
097:
098: public Unmarshaller(
099: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
100: super (context, "-----");
101: }
102:
103: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
104: return org.jaffa.security.businessfunctionsdomain.impl.BusinessFunctionImpl.this ;
105: }
106:
107: public void enterElement(java.lang.String ___uri,
108: java.lang.String ___local, org.xml.sax.Attributes __atts)
109: throws com.sun.xml.bind.unmarshaller.UnreportedException {
110: switch (state) {
111: case 0:
112: if (("" == ___uri) && ("description" == ___local)) {
113: context.pushAttributes(__atts);
114: state = 3;
115: return;
116: }
117: revertToParentFromEnterElement(___uri, ___local, __atts);
118: return;
119: }
120: super .enterElement(___uri, ___local, __atts);
121: }
122:
123: public void leaveElement(java.lang.String ___uri,
124: java.lang.String ___local)
125: throws com.sun.xml.bind.unmarshaller.UnreportedException {
126: switch (state) {
127: case 0:
128: revertToParentFromLeaveElement(___uri, ___local);
129: return;
130: case 4:
131: if (("" == ___uri) && ("description" == ___local)) {
132: context.popAttributes();
133: goto0();
134: return;
135: }
136: break;
137: }
138: super .leaveElement(___uri, ___local);
139: }
140:
141: public void enterAttribute(java.lang.String ___uri,
142: java.lang.String ___local)
143: throws com.sun.xml.bind.unmarshaller.UnreportedException {
144: switch (state) {
145: case 0:
146: if (("" == ___uri) && ("name" == ___local)) {
147: state = 1;
148: return;
149: }
150: revertToParentFromEnterAttribute(___uri, ___local);
151: return;
152: }
153: super .enterAttribute(___uri, ___local);
154: }
155:
156: public void leaveAttribute(java.lang.String ___uri,
157: java.lang.String ___local)
158: throws com.sun.xml.bind.unmarshaller.UnreportedException {
159: switch (state) {
160: case 0:
161: revertToParentFromLeaveAttribute(___uri, ___local);
162: return;
163: case 2:
164: if (("" == ___uri) && ("name" == ___local)) {
165: goto0();
166: return;
167: }
168: break;
169: }
170: super .leaveAttribute(___uri, ___local);
171: }
172:
173: public void text(java.lang.String value)
174: throws com.sun.xml.bind.unmarshaller.UnreportedException {
175: try {
176: switch (state) {
177: case 3:
178: try {
179: _Description = value;
180: } catch (java.lang.Exception e) {
181: handleParseConversionException(e);
182: }
183: state = 4;
184: return;
185: case 0:
186: revertToParentFromText(value);
187: return;
188: case 1:
189: try {
190: _Name = value;
191: } catch (java.lang.Exception e) {
192: handleParseConversionException(e);
193: }
194: state = 2;
195: return;
196: }
197: } catch (java.lang.RuntimeException e) {
198: handleUnexpectedTextException(value, e);
199: }
200: }
201:
202: private void goto0()
203: throws com.sun.xml.bind.unmarshaller.UnreportedException {
204: int idx;
205: state = 0;
206: idx = context.getAttribute("", "name");
207: if (idx >= 0) {
208: context.consumeAttribute(idx);
209: return;
210: }
211: }
212:
213: }
214:
215: }
|