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:47 PST
006: //
007:
008: package org.jaffa.presentation.portlet.component.componentdomain.impl;
009:
010: public class OptionalFunctionImpl
011: implements
012: org.jaffa.presentation.portlet.component.componentdomain.OptionalFunction,
013: com.sun.xml.bind.unmarshaller.UnmarshallableObject,
014: com.sun.xml.bind.serializer.XMLSerializable,
015: com.sun.xml.bind.validator.ValidatableObject {
016:
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 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expt\u0000 Lcom/sun/msv/grammar/Expression;L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\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\u0001xp\u0001\u00a6\u00dc,ppsr\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\u0001L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003\u0001\u0098/\u00d1ppsr\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\u000eL\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\u000eL\u0000\fnamespaceURIq\u0000~\u0000\u000expq\u0000~\u0000\u0012q\u0000~\u0000\u0011sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000eL\u0000\fnamespaceURIq\u0000~\u0000\u000exr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004namet\u0000\u0000sr\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\u0000\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp");
020:
021: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
022: return org.jaffa.presentation.portlet.component.componentdomain.OptionalFunction.class;
023: }
024:
025: public java.lang.String getName() {
026: return _Name;
027: }
028:
029: public void setName(java.lang.String value) {
030: _Name = value;
031: }
032:
033: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
034: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
035: return new org.jaffa.presentation.portlet.component.componentdomain.impl.OptionalFunctionImpl.Unmarshaller(
036: context);
037: }
038:
039: public java.lang.Class getPrimaryInterfaceClass() {
040: return PRIMARY_INTERFACE_CLASS();
041: }
042:
043: public void serializeElements(
044: com.sun.xml.bind.serializer.XMLSerializer context)
045: throws org.xml.sax.SAXException {
046: }
047:
048: public void serializeAttributes(
049: com.sun.xml.bind.serializer.XMLSerializer context)
050: throws org.xml.sax.SAXException {
051: context.startAttribute("", "name");
052: try {
053: context.text(((java.lang.String) _Name));
054: } catch (java.lang.Exception e) {
055: com.sun.xml.bind.marshaller.Util
056: .handlePrintConversionException(this , e, context);
057: }
058: context.endAttribute();
059: }
060:
061: public void serializeAttributeBodies(
062: com.sun.xml.bind.serializer.XMLSerializer context)
063: throws org.xml.sax.SAXException {
064: }
065:
066: public java.lang.Class getPrimaryInterface() {
067: return (org.jaffa.presentation.portlet.component.componentdomain.OptionalFunction.class);
068: }
069:
070: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
071: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
072: schemaFragment);
073: }
074:
075: public class Unmarshaller extends
076: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
077:
078: public Unmarshaller(
079: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
080: super (context, "---");
081: }
082:
083: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
084: return org.jaffa.presentation.portlet.component.componentdomain.impl.OptionalFunctionImpl.this ;
085: }
086:
087: public void enterElement(java.lang.String ___uri,
088: java.lang.String ___local, org.xml.sax.Attributes __atts)
089: throws com.sun.xml.bind.unmarshaller.UnreportedException {
090: switch (state) {
091: case 0:
092: revertToParentFromEnterElement(___uri, ___local, __atts);
093: return;
094: }
095: super .enterElement(___uri, ___local, __atts);
096: }
097:
098: public void leaveElement(java.lang.String ___uri,
099: java.lang.String ___local)
100: throws com.sun.xml.bind.unmarshaller.UnreportedException {
101: switch (state) {
102: case 0:
103: revertToParentFromLeaveElement(___uri, ___local);
104: return;
105: }
106: super .leaveElement(___uri, ___local);
107: }
108:
109: public void enterAttribute(java.lang.String ___uri,
110: java.lang.String ___local)
111: throws com.sun.xml.bind.unmarshaller.UnreportedException {
112: switch (state) {
113: case 0:
114: if (("" == ___uri) && ("name" == ___local)) {
115: state = 1;
116: return;
117: }
118: revertToParentFromEnterAttribute(___uri, ___local);
119: return;
120: }
121: super .enterAttribute(___uri, ___local);
122: }
123:
124: public void leaveAttribute(java.lang.String ___uri,
125: java.lang.String ___local)
126: throws com.sun.xml.bind.unmarshaller.UnreportedException {
127: switch (state) {
128: case 2:
129: if (("" == ___uri) && ("name" == ___local)) {
130: goto0();
131: return;
132: }
133: break;
134: case 0:
135: revertToParentFromLeaveAttribute(___uri, ___local);
136: return;
137: }
138: super .leaveAttribute(___uri, ___local);
139: }
140:
141: public void text(java.lang.String value)
142: throws com.sun.xml.bind.unmarshaller.UnreportedException {
143: try {
144: switch (state) {
145: case 0:
146: revertToParentFromText(value);
147: return;
148: case 1:
149: try {
150: _Name = value;
151: } catch (java.lang.Exception e) {
152: handleParseConversionException(e);
153: }
154: state = 2;
155: return;
156: }
157: } catch (java.lang.RuntimeException e) {
158: handleUnexpectedTextException(value, e);
159: }
160: }
161:
162: private void goto0()
163: throws com.sun.xml.bind.unmarshaller.UnreportedException {
164: int idx;
165: state = 0;
166: idx = context.getAttribute("", "name");
167: if (idx >= 0) {
168: context.consumeAttribute(idx);
169: return;
170: }
171: }
172:
173: }
174:
175: }
|