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 ComponentImpl
011: implements
012: org.jaffa.presentation.portlet.component.componentdomain.Component,
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 _Type;
018: protected java.lang.String _Description;
019: protected com.sun.xml.bind.util.ListImpl _MandatoryFunction = new com.sun.xml.bind.util.ListImpl(
020: new java.util.ArrayList());
021: protected com.sun.xml.bind.util.ListImpl _OptionalFunction = new com.sun.xml.bind.util.ListImpl(
022: new java.util.ArrayList());
023: protected java.lang.String _ClassName;
024: protected java.lang.String _Id;
025: private final static com.sun.msv.grammar.Grammar schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
026: .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\t\u0003\u00cd$ppsq\u0000~\u0000\u0000\u0005\u0089\u00c2rppsq\u0000~\u0000\u0000\u0005))\u0013ppsq\u0000~\u0000\u0000\u0004\u00c8\u008f\u00b4ppsq\u0000~\u0000\u0000\u00030_\u00c8ppsr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001\u0001\u0098/\u00e7ppsr\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\u0001\u0098/\u00dcsr\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\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\u001aL\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\u001aL\u0000\fnamespaceURIq\u0000~\u0000\u001axpq\u0000~\u0000\u001eq\u0000~\u0000\u001dsr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001aL\u0000\fnamespaceURIq\u0000~\u0000\u001axr\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\u0010\u0001psq\u0000~\u0000\f\u0001\u0098/\u00dcpp\u0000q\u0000~\u0000\u0015sq\u0000~\u0000&t\u0000\u0005classq\u0000~\u0000*sq\u0000~\u0000\n\u0001\u0098/\u00e7ppsq\u0000~\u0000\f\u0001\u0098/\u00dcq\u0000~\u0000\u0011p\u0000q\u0000~\u0000\u0015sq\u0000~\u0000&t\u0000\u0004typeq\u0000~\u0000*q\u0000~\u0000,sq\u0000~\u0000\n\u0000`\u0099Zppsr\u0000 com.sun.msv.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.grammar.UnaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000`\u0099Oq\u0000~\u0000\u0011psq\u0000~\u0000\f\u0000`\u0099Lq\u0000~\u0000\u0011p\u0000sq\u0000~\u0000\f\u0000`\u0099App\u0000sq\u0000~\u0000\n\u0000`\u00996ppsq\u0000~\u00006\u0000`\u0099+q\u0000~\u0000\u0011psr\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\rxq\u0000~\u0000\u0003\u0000`\u0099(q\u0000~\u0000\u0011psr\u00002com.sun.msv.grammar.Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\bq\u0000~\u0000-q\u0000~\u0000@sr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\'q\u0000~\u0000,sq\u0000~\u0000&t\u0000Jorg.jaffa.presentation.portlet.component.componentdomain.MandatoryFunctiont\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000&t\u0000\u0012mandatory-functionq\u0000~\u0000*q\u0000~\u0000,sq\u0000~\u0000\n\u0000`\u0099Zppsq\u0000~\u00006\u0000`\u0099Oq\u0000~\u0000\u0011psq\u0000~\u0000\f\u0000`\u0099Lq\u0000~\u0000\u0011p\u0000sq\u0000~\u0000\f\u0000`\u0099App\u0000sq\u0000~\u0000\n\u0000`\u00996ppsq\u0000~\u00006\u0000`\u0099+q\u0000~\u0000\u0011psq\u0000~\u0000=\u0000`\u0099(q\u0000~\u0000\u0011pq\u0000~\u0000@q\u0000~\u0000Bq\u0000~\u0000,sq\u0000~\u0000&t\u0000Iorg.jaffa.presentation.portlet.component.componentdomain.OptionalFunctionq\u0000~\u0000Esq\u0000~\u0000&t\u0000\u0011optional-functionq\u0000~\u0000*q\u0000~\u0000,sq\u0000~\u0000=\u0003z\n\u00adppq\u0000~\u0000\u0015sq\u0000~\u0000&t\u0000\u0002idq\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~\u0000W[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\u000f\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfq\u0000~\u0000\bpppppppq\u0000~\u00008q\u0000~\u0000Ipppppppppq\u0000~\u00005q\u0000~\u0000Hpppq\u0000~\u0000\u0007pppppppppppppppppppppppq\u0000~\u0000\u0006pppppppppppppppq\u0000~\u0000\u000bq\u0000~\u00001ppppppppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\tppppppppppppppppppppppq\u0000~\u0000\u0005pppppppppppppppppq\u0000~\u0000<q\u0000~\u0000Mpppppppppq\u0000~\u0000;q\u0000~\u0000Lppppppppppppppp");
027:
028: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
029: return org.jaffa.presentation.portlet.component.componentdomain.Component.class;
030: }
031:
032: public java.lang.String getType() {
033: return _Type;
034: }
035:
036: public void setType(java.lang.String value) {
037: _Type = value;
038: }
039:
040: public java.lang.String getDescription() {
041: return _Description;
042: }
043:
044: public void setDescription(java.lang.String value) {
045: _Description = value;
046: }
047:
048: public java.util.List getMandatoryFunction() {
049: return _MandatoryFunction;
050: }
051:
052: public java.util.List getOptionalFunction() {
053: return _OptionalFunction;
054: }
055:
056: public java.lang.String getClassName() {
057: return _ClassName;
058: }
059:
060: public void setClassName(java.lang.String value) {
061: _ClassName = value;
062: }
063:
064: public java.lang.String getId() {
065: return _Id;
066: }
067:
068: public void setId(java.lang.String value) {
069: _Id = value;
070: }
071:
072: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
073: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
074: return new org.jaffa.presentation.portlet.component.componentdomain.impl.ComponentImpl.Unmarshaller(
075: context);
076: }
077:
078: public java.lang.Class getPrimaryInterfaceClass() {
079: return PRIMARY_INTERFACE_CLASS();
080: }
081:
082: public void serializeElements(
083: com.sun.xml.bind.serializer.XMLSerializer context)
084: throws org.xml.sax.SAXException {
085: int idx3 = 0;
086: final int len3 = _MandatoryFunction.size();
087: int idx4 = 0;
088: final int len4 = _OptionalFunction.size();
089: if (_Description != null) {
090: context.startElement("", "description");
091: context.endAttributes();
092: try {
093: context.text(((java.lang.String) _Description));
094: } catch (java.lang.Exception e) {
095: com.sun.xml.bind.marshaller.Util
096: .handlePrintConversionException(this , e,
097: context);
098: }
099: context.endElement();
100: }
101: context.startElement("", "class");
102: context.endAttributes();
103: try {
104: context.text(((java.lang.String) _ClassName));
105: } catch (java.lang.Exception e) {
106: com.sun.xml.bind.marshaller.Util
107: .handlePrintConversionException(this , e, context);
108: }
109: context.endElement();
110: if (_Type != null) {
111: context.startElement("", "type");
112: context.endAttributes();
113: try {
114: context.text(((java.lang.String) _Type));
115: } catch (java.lang.Exception e) {
116: com.sun.xml.bind.marshaller.Util
117: .handlePrintConversionException(this , e,
118: context);
119: }
120: context.endElement();
121: }
122: while (idx3 != len3) {
123: if (_MandatoryFunction.get(idx3) instanceof javax.xml.bind.Element) {
124: context
125: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _MandatoryFunction
126: .get(idx3++)));
127: } else {
128: context.startElement("", "mandatory-function");
129: int idx_3 = idx3;
130: context
131: .childAsAttributes(((com.sun.xml.bind.serializer.XMLSerializable) _MandatoryFunction
132: .get(idx_3++)));
133: context.endAttributes();
134: context
135: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _MandatoryFunction
136: .get(idx3++)));
137: context.endElement();
138: }
139: }
140: while (idx4 != len4) {
141: if (_OptionalFunction.get(idx4) instanceof javax.xml.bind.Element) {
142: context
143: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _OptionalFunction
144: .get(idx4++)));
145: } else {
146: context.startElement("", "optional-function");
147: int idx_4 = idx4;
148: context
149: .childAsAttributes(((com.sun.xml.bind.serializer.XMLSerializable) _OptionalFunction
150: .get(idx_4++)));
151: context.endAttributes();
152: context
153: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _OptionalFunction
154: .get(idx4++)));
155: context.endElement();
156: }
157: }
158: }
159:
160: public void serializeAttributes(
161: com.sun.xml.bind.serializer.XMLSerializer context)
162: throws org.xml.sax.SAXException {
163: int idx3 = 0;
164: final int len3 = _MandatoryFunction.size();
165: int idx4 = 0;
166: final int len4 = _OptionalFunction.size();
167: context.startAttribute("", "id");
168: try {
169: context.text(((java.lang.String) _Id));
170: } catch (java.lang.Exception e) {
171: com.sun.xml.bind.marshaller.Util
172: .handlePrintConversionException(this , e, context);
173: }
174: context.endAttribute();
175: }
176:
177: public void serializeAttributeBodies(
178: com.sun.xml.bind.serializer.XMLSerializer context)
179: throws org.xml.sax.SAXException {
180: int idx3 = 0;
181: final int len3 = _MandatoryFunction.size();
182: int idx4 = 0;
183: final int len4 = _OptionalFunction.size();
184: }
185:
186: public java.lang.Class getPrimaryInterface() {
187: return (org.jaffa.presentation.portlet.component.componentdomain.Component.class);
188: }
189:
190: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
191: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
192: schemaFragment);
193: }
194:
195: public class Unmarshaller extends
196: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
197:
198: public Unmarshaller(
199: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
200: super (context, "--------------");
201: }
202:
203: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
204: return org.jaffa.presentation.portlet.component.componentdomain.impl.ComponentImpl.this ;
205: }
206:
207: public void enterElement(java.lang.String ___uri,
208: java.lang.String ___local, org.xml.sax.Attributes __atts)
209: throws com.sun.xml.bind.unmarshaller.UnreportedException {
210: switch (state) {
211: case 0:
212: if (("" == ___uri) && ("description" == ___local)) {
213: context.pushAttributes(__atts);
214: state = 10;
215: return;
216: }
217: if (("" == ___uri) && ("class" == ___local)) {
218: context.pushAttributes(__atts);
219: state = 1;
220: return;
221: }
222: break;
223: case 3:
224: if (("" == ___uri)
225: && ("mandatory-function" == ___local)) {
226: context.pushAttributes(__atts);
227: goto6();
228: return;
229: }
230: if (("" == ___uri) && ("type" == ___local)) {
231: context.pushAttributes(__atts);
232: state = 8;
233: return;
234: }
235: if (("" == ___uri) && ("optional-function" == ___local)) {
236: context.pushAttributes(__atts);
237: goto4();
238: return;
239: }
240: revertToParentFromEnterElement(___uri, ___local, __atts);
241: return;
242: }
243: super .enterElement(___uri, ___local, __atts);
244: }
245:
246: public void leaveElement(java.lang.String ___uri,
247: java.lang.String ___local)
248: throws com.sun.xml.bind.unmarshaller.UnreportedException {
249: switch (state) {
250: case 9:
251: if (("" == ___uri) && ("type" == ___local)) {
252: context.popAttributes();
253: state = 3;
254: return;
255: }
256: break;
257: case 3:
258: revertToParentFromLeaveElement(___uri, ___local);
259: return;
260: case 2:
261: if (("" == ___uri) && ("class" == ___local)) {
262: context.popAttributes();
263: state = 3;
264: return;
265: }
266: break;
267: case 7:
268: if (("" == ___uri)
269: && ("mandatory-function" == ___local)) {
270: context.popAttributes();
271: state = 3;
272: return;
273: }
274: break;
275: case 5:
276: if (("" == ___uri) && ("optional-function" == ___local)) {
277: context.popAttributes();
278: state = 3;
279: return;
280: }
281: break;
282: case 11:
283: if (("" == ___uri) && ("description" == ___local)) {
284: context.popAttributes();
285: goto0();
286: return;
287: }
288: break;
289: }
290: super .leaveElement(___uri, ___local);
291: }
292:
293: public void enterAttribute(java.lang.String ___uri,
294: java.lang.String ___local)
295: throws com.sun.xml.bind.unmarshaller.UnreportedException {
296: switch (state) {
297: case 0:
298: if (("" == ___uri) && ("id" == ___local)) {
299: state = 12;
300: return;
301: }
302: break;
303: case 3:
304: revertToParentFromEnterAttribute(___uri, ___local);
305: return;
306: case 6:
307: if (("" == ___uri) && ("name" == ___local)) {
308: _MandatoryFunction
309: .add(((org.jaffa.presentation.portlet.component.componentdomain.impl.MandatoryFunctionImpl) spawnChildFromEnterAttribute(
310: (org.jaffa.presentation.portlet.component.componentdomain.impl.MandatoryFunctionImpl.class),
311: 7, ___uri, ___local)));
312: return;
313: }
314: break;
315: case 4:
316: if (("" == ___uri) && ("name" == ___local)) {
317: _OptionalFunction
318: .add(((org.jaffa.presentation.portlet.component.componentdomain.impl.OptionalFunctionImpl) spawnChildFromEnterAttribute(
319: (org.jaffa.presentation.portlet.component.componentdomain.impl.OptionalFunctionImpl.class),
320: 5, ___uri, ___local)));
321: return;
322: }
323: break;
324: }
325: super .enterAttribute(___uri, ___local);
326: }
327:
328: public void leaveAttribute(java.lang.String ___uri,
329: java.lang.String ___local)
330: throws com.sun.xml.bind.unmarshaller.UnreportedException {
331: switch (state) {
332: case 3:
333: revertToParentFromLeaveAttribute(___uri, ___local);
334: return;
335: case 13:
336: if (("" == ___uri) && ("id" == ___local)) {
337: goto0();
338: return;
339: }
340: break;
341: }
342: super .leaveAttribute(___uri, ___local);
343: }
344:
345: public void text(java.lang.String value)
346: throws com.sun.xml.bind.unmarshaller.UnreportedException {
347: try {
348: switch (state) {
349: case 1:
350: try {
351: _ClassName = value;
352: } catch (java.lang.Exception e) {
353: handleParseConversionException(e);
354: }
355: state = 2;
356: return;
357: case 3:
358: revertToParentFromText(value);
359: return;
360: case 8:
361: try {
362: _Type = value;
363: } catch (java.lang.Exception e) {
364: handleParseConversionException(e);
365: }
366: state = 9;
367: return;
368: case 10:
369: try {
370: _Description = value;
371: } catch (java.lang.Exception e) {
372: handleParseConversionException(e);
373: }
374: state = 11;
375: return;
376: case 12:
377: try {
378: _Id = value;
379: } catch (java.lang.Exception e) {
380: handleParseConversionException(e);
381: }
382: state = 13;
383: return;
384: }
385: } catch (java.lang.RuntimeException e) {
386: handleUnexpectedTextException(value, e);
387: }
388: }
389:
390: public void leaveChild(int nextState)
391: throws com.sun.xml.bind.unmarshaller.UnreportedException {
392: switch (nextState) {
393: case 7:
394: state = 7;
395: return;
396: case 5:
397: state = 5;
398: return;
399: }
400: super .leaveChild(nextState);
401: }
402:
403: private void goto0()
404: throws com.sun.xml.bind.unmarshaller.UnreportedException {
405: int idx;
406: state = 0;
407: idx = context.getAttribute("", "id");
408: if (idx >= 0) {
409: context.consumeAttribute(idx);
410: return;
411: }
412: }
413:
414: private void goto6()
415: throws com.sun.xml.bind.unmarshaller.UnreportedException {
416: int idx;
417: state = 6;
418: idx = context.getAttribute("", "name");
419: if (idx >= 0) {
420: context.consumeAttribute(idx);
421: return;
422: }
423: }
424:
425: private void goto4()
426: throws com.sun.xml.bind.unmarshaller.UnreportedException {
427: int idx;
428: state = 4;
429: idx = context.getAttribute("", "name");
430: if (idx >= 0) {
431: context.consumeAttribute(idx);
432: return;
433: }
434: }
435:
436: }
437:
438: }
|