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.10.22 at 04:07:37 PDT
006: //
007:
008: package org.jaffa.tools.patternmetaengine.domain.impl;
009:
010: public class ModuleImpl implements
011: org.jaffa.tools.patternmetaengine.domain.Module,
012: com.sun.xml.bind.unmarshaller.UnmarshallableObject,
013: com.sun.xml.bind.serializer.XMLSerializable,
014: com.sun.xml.bind.validator.ValidatableObject {
015:
016: protected com.sun.xml.bind.util.ListImpl _ViewersDomainPattern = new com.sun.xml.bind.util.ListImpl(
017: new java.util.ArrayList());
018: protected java.lang.String _Labels;
019: protected com.sun.xml.bind.util.ListImpl _MaintenanceDomainPattern = new com.sun.xml.bind.util.ListImpl(
020: new java.util.ArrayList());
021: protected java.lang.String _ModuleTilePrefix;
022: protected java.lang.String _Name;
023: protected com.sun.xml.bind.util.ListImpl _FindersDomainPattern = new com.sun.xml.bind.util.ListImpl(
024: new java.util.ArrayList());
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\b\u00ff\u001dVppsq\u0000~\u0000\u0000\by\u00ecsppsq\u0000~\u0000\u0000\u0006\u00c7\u00f0\\ppsq\u0000~\u0000\u0000\u0005\u0015\u00f4Eppsq\u0000~\u0000\u0000\u0003c\u00f8.ppsr\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\u00b1\u00fc\u000fpp\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\u00b1\u00fc\u0004ppsr\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\u0004namet\u0000\u0000sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001\u0001\u00b1\u00fc\u001appsq\u0000~\u0000\n\u0001\u00b1\u00fc\u000fsr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000p\u0000q\u0000~\u0000\u0011sq\u0000~\u0000\"t\u0000\u0012module-tile-prefixq\u0000~\u0000&sr\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*\u0001psr\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\u0001\u00b1\u00fc\u0012ppsq\u0000~\u0000\n\u0001\u00b1\u00fc\u000fpp\u0000q\u0000~\u0000\u0011sq\u0000~\u0000\"t\u0000\u0016finders-domain-patternq\u0000~\u0000&sq\u0000~\u00001\u0001\u00b1\u00fc\u0012ppsq\u0000~\u0000\n\u0001\u00b1\u00fc\u000fpp\u0000q\u0000~\u0000\u0011sq\u0000~\u0000\"t\u0000\u0016viewers-domain-patternq\u0000~\u0000&sq\u0000~\u00001\u0001\u00b1\u00fc\u0012ppsq\u0000~\u0000\n\u0001\u00b1\u00fc\u000fpp\u0000q\u0000~\u0000\u0011sq\u0000~\u0000\"t\u0000\u001amaintenance-domain-patternq\u0000~\u0000&sq\u0000~\u0000\'\u0000\u00850\u00deppsq\u0000~\u0000\n\u0000\u00850\u00d3q\u0000~\u0000+p\u0000sq\u0000~\u0000\u000e\u0000\u00850\u00c8ppsr\u0000)com.sun.msv.datatype.xsd.EnumerationFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0006valuest\u0000\u000fLjava/util/Set;xr\u00009com.sun.msv.datatype.xsd.DataTypeWithValueConstraintFacet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.DataTypeWithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueCheckFlagL\u0000\bbaseTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatatypeImpl;L\u0000\fconcreteTypet\u0000\'Lcom/sun/msv/datatype/xsd/ConcreteType;L\u0000\tfacetNameq\u0000~\u0000\u0016xq\u0000~\u0000\u0015q\u0000~\u0000&t\u0000\u0006labelsq\u0000~\u0000\u001d\u0000\u0000q\u0000~\u0000\u0018q\u0000~\u0000\u0018t\u0000\u000benumerationsr\u0000\u0011java.util.HashSet\u00baD\u0085\u0095\u0096\u00b8\u00b74\u0003\u0000\u0000xpw\f\u0000\u0000\u0000\u0010?@\u0000\u0000\u0000\u0000\u0000\u0003t\u0000\u0006ignoret\u0000\u0007replacet\u0000\u0005mergexq\u0000~\u0000\u001fsq\u0000~\u0000 q\u0000~\u0000Iq\u0000~\u0000&sq\u0000~\u0000\"t\u0000\u0006labelsq\u0000~\u0000&q\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~\u0000T[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\n\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfq\u0000~\u00007q\u0000~\u0000;pppppq\u0000~\u0000(q\u0000~\u0000\tpppq\u0000~\u0000\bpppq\u0000~\u0000\u0007pppq\u0000~\u0000\u0006pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000?ppppppppppppppppppppppppq\u0000~\u0000\u0005ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u00003");
027:
028: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
029: return org.jaffa.tools.patternmetaengine.domain.Module.class;
030: }
031:
032: public java.util.List getViewersDomainPattern() {
033: return _ViewersDomainPattern;
034: }
035:
036: public java.lang.String getLabels() {
037: return _Labels;
038: }
039:
040: public void setLabels(java.lang.String value) {
041: _Labels = value;
042: }
043:
044: public java.util.List getMaintenanceDomainPattern() {
045: return _MaintenanceDomainPattern;
046: }
047:
048: public java.lang.String getModuleTilePrefix() {
049: return _ModuleTilePrefix;
050: }
051:
052: public void setModuleTilePrefix(java.lang.String value) {
053: _ModuleTilePrefix = value;
054: }
055:
056: public java.lang.String getName() {
057: return _Name;
058: }
059:
060: public void setName(java.lang.String value) {
061: _Name = value;
062: }
063:
064: public java.util.List getFindersDomainPattern() {
065: return _FindersDomainPattern;
066: }
067:
068: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
069: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
070: return new org.jaffa.tools.patternmetaengine.domain.impl.ModuleImpl.Unmarshaller(
071: context);
072: }
073:
074: public java.lang.Class getPrimaryInterfaceClass() {
075: return PRIMARY_INTERFACE_CLASS();
076: }
077:
078: public void serializeElements(
079: com.sun.xml.bind.serializer.XMLSerializer context)
080: throws org.xml.sax.SAXException {
081: int idx1 = 0;
082: final int len1 = _ViewersDomainPattern.size();
083: int idx3 = 0;
084: final int len3 = _MaintenanceDomainPattern.size();
085: int idx6 = 0;
086: final int len6 = _FindersDomainPattern.size();
087: context.startElement("", "name");
088: context.endAttributes();
089: try {
090: context.text(((java.lang.String) _Name));
091: } catch (java.lang.Exception e) {
092: com.sun.xml.bind.marshaller.Util
093: .handlePrintConversionException(this , e, context);
094: }
095: context.endElement();
096: if (_ModuleTilePrefix != null) {
097: context.startElement("", "module-tile-prefix");
098: context.endAttributes();
099: try {
100: context.text(((java.lang.String) _ModuleTilePrefix));
101: } catch (java.lang.Exception e) {
102: com.sun.xml.bind.marshaller.Util
103: .handlePrintConversionException(this , e,
104: context);
105: }
106: context.endElement();
107: }
108: while (idx6 != len6) {
109: context.startElement("", "finders-domain-pattern");
110: int idx_2 = idx6;
111: try {
112: idx_2 += 1;
113: } catch (java.lang.Exception e) {
114: com.sun.xml.bind.marshaller.Util
115: .handlePrintConversionException(this , e,
116: context);
117: }
118: context.endAttributes();
119: try {
120: context.text(((java.lang.String) _FindersDomainPattern
121: .get(idx6++)));
122: } catch (java.lang.Exception e) {
123: com.sun.xml.bind.marshaller.Util
124: .handlePrintConversionException(this , e,
125: context);
126: }
127: context.endElement();
128: }
129: while (idx1 != len1) {
130: context.startElement("", "viewers-domain-pattern");
131: int idx_3 = idx1;
132: try {
133: idx_3 += 1;
134: } catch (java.lang.Exception e) {
135: com.sun.xml.bind.marshaller.Util
136: .handlePrintConversionException(this , e,
137: context);
138: }
139: context.endAttributes();
140: try {
141: context.text(((java.lang.String) _ViewersDomainPattern
142: .get(idx1++)));
143: } catch (java.lang.Exception e) {
144: com.sun.xml.bind.marshaller.Util
145: .handlePrintConversionException(this , e,
146: context);
147: }
148: context.endElement();
149: }
150: while (idx3 != len3) {
151: context.startElement("", "maintenance-domain-pattern");
152: int idx_4 = idx3;
153: try {
154: idx_4 += 1;
155: } catch (java.lang.Exception e) {
156: com.sun.xml.bind.marshaller.Util
157: .handlePrintConversionException(this , e,
158: context);
159: }
160: context.endAttributes();
161: try {
162: context
163: .text(((java.lang.String) _MaintenanceDomainPattern
164: .get(idx3++)));
165: } catch (java.lang.Exception e) {
166: com.sun.xml.bind.marshaller.Util
167: .handlePrintConversionException(this , e,
168: context);
169: }
170: context.endElement();
171: }
172: if (_Labels != null) {
173: context.startElement("", "labels");
174: context.endAttributes();
175: try {
176: context.text(((java.lang.String) _Labels));
177: } catch (java.lang.Exception e) {
178: com.sun.xml.bind.marshaller.Util
179: .handlePrintConversionException(this , e,
180: context);
181: }
182: context.endElement();
183: }
184: }
185:
186: public void serializeAttributes(
187: com.sun.xml.bind.serializer.XMLSerializer context)
188: throws org.xml.sax.SAXException {
189: int idx1 = 0;
190: final int len1 = _ViewersDomainPattern.size();
191: int idx3 = 0;
192: final int len3 = _MaintenanceDomainPattern.size();
193: int idx6 = 0;
194: final int len6 = _FindersDomainPattern.size();
195: }
196:
197: public void serializeAttributeBodies(
198: com.sun.xml.bind.serializer.XMLSerializer context)
199: throws org.xml.sax.SAXException {
200: int idx1 = 0;
201: final int len1 = _ViewersDomainPattern.size();
202: int idx3 = 0;
203: final int len3 = _MaintenanceDomainPattern.size();
204: int idx6 = 0;
205: final int len6 = _FindersDomainPattern.size();
206: }
207:
208: public java.lang.Class getPrimaryInterface() {
209: return (org.jaffa.tools.patternmetaengine.domain.Module.class);
210: }
211:
212: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
213: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
214: schemaFragment);
215: }
216:
217: public class Unmarshaller extends
218: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
219:
220: public Unmarshaller(
221: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
222: super (context, "-----------------");
223: }
224:
225: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
226: return org.jaffa.tools.patternmetaengine.domain.impl.ModuleImpl.this ;
227: }
228:
229: public void enterElement(java.lang.String ___uri,
230: java.lang.String ___local, org.xml.sax.Attributes __atts)
231: throws com.sun.xml.bind.unmarshaller.UnreportedException {
232: switch (state) {
233: case 8:
234: if (("" == ___uri)
235: && ("viewers-domain-pattern" == ___local)) {
236: context.pushAttributes(__atts);
237: state = 9;
238: return;
239: }
240: if (("" == ___uri)
241: && ("finders-domain-pattern" == ___local)) {
242: context.pushAttributes(__atts);
243: state = 6;
244: return;
245: }
246: break;
247: case 14:
248: if (("" == ___uri)
249: && ("maintenance-domain-pattern" == ___local)) {
250: context.pushAttributes(__atts);
251: state = 12;
252: return;
253: }
254: if (("" == ___uri) && ("labels" == ___local)) {
255: context.pushAttributes(__atts);
256: state = 15;
257: return;
258: }
259: revertToParentFromEnterElement(___uri, ___local, __atts);
260: return;
261: case 3:
262: if (("" == ___uri)
263: && ("module-tile-prefix" == ___local)) {
264: context.pushAttributes(__atts);
265: state = 4;
266: return;
267: }
268: if (("" == ___uri)
269: && ("finders-domain-pattern" == ___local)) {
270: context.pushAttributes(__atts);
271: state = 6;
272: return;
273: }
274: break;
275: case 0:
276: if (("" == ___uri) && ("name" == ___local)) {
277: context.pushAttributes(__atts);
278: state = 1;
279: return;
280: }
281: break;
282: case 11:
283: if (("" == ___uri)
284: && ("viewers-domain-pattern" == ___local)) {
285: context.pushAttributes(__atts);
286: state = 9;
287: return;
288: }
289: if (("" == ___uri)
290: && ("maintenance-domain-pattern" == ___local)) {
291: context.pushAttributes(__atts);
292: state = 12;
293: return;
294: }
295: break;
296: }
297: super .enterElement(___uri, ___local, __atts);
298: }
299:
300: public void leaveElement(java.lang.String ___uri,
301: java.lang.String ___local)
302: throws com.sun.xml.bind.unmarshaller.UnreportedException {
303: switch (state) {
304: case 5:
305: if (("" == ___uri)
306: && ("module-tile-prefix" == ___local)) {
307: context.popAttributes();
308: state = 3;
309: return;
310: }
311: break;
312: case 7:
313: if (("" == ___uri)
314: && ("finders-domain-pattern" == ___local)) {
315: context.popAttributes();
316: state = 8;
317: return;
318: }
319: break;
320: case 14:
321: revertToParentFromLeaveElement(___uri, ___local);
322: return;
323: case 16:
324: if (("" == ___uri) && ("labels" == ___local)) {
325: context.popAttributes();
326: state = 14;
327: return;
328: }
329: break;
330: case 10:
331: if (("" == ___uri)
332: && ("viewers-domain-pattern" == ___local)) {
333: context.popAttributes();
334: state = 11;
335: return;
336: }
337: break;
338: case 13:
339: if (("" == ___uri)
340: && ("maintenance-domain-pattern" == ___local)) {
341: context.popAttributes();
342: state = 14;
343: return;
344: }
345: break;
346: case 2:
347: if (("" == ___uri) && ("name" == ___local)) {
348: context.popAttributes();
349: state = 3;
350: return;
351: }
352: break;
353: }
354: super .leaveElement(___uri, ___local);
355: }
356:
357: public void enterAttribute(java.lang.String ___uri,
358: java.lang.String ___local)
359: throws com.sun.xml.bind.unmarshaller.UnreportedException {
360: switch (state) {
361: case 14:
362: revertToParentFromEnterAttribute(___uri, ___local);
363: return;
364: }
365: super .enterAttribute(___uri, ___local);
366: }
367:
368: public void leaveAttribute(java.lang.String ___uri,
369: java.lang.String ___local)
370: throws com.sun.xml.bind.unmarshaller.UnreportedException {
371: switch (state) {
372: case 14:
373: revertToParentFromLeaveAttribute(___uri, ___local);
374: return;
375: }
376: super .leaveAttribute(___uri, ___local);
377: }
378:
379: public void text(java.lang.String value)
380: throws com.sun.xml.bind.unmarshaller.UnreportedException {
381: try {
382: switch (state) {
383: case 12:
384: try {
385: _MaintenanceDomainPattern.add(value);
386: } catch (java.lang.Exception e) {
387: handleParseConversionException(e);
388: }
389: state = 13;
390: return;
391: case 9:
392: try {
393: _ViewersDomainPattern.add(value);
394: } catch (java.lang.Exception e) {
395: handleParseConversionException(e);
396: }
397: state = 10;
398: return;
399: case 14:
400: revertToParentFromText(value);
401: return;
402: case 4:
403: try {
404: _ModuleTilePrefix = value;
405: } catch (java.lang.Exception e) {
406: handleParseConversionException(e);
407: }
408: state = 5;
409: return;
410: case 15:
411: try {
412: _Labels = value;
413: } catch (java.lang.Exception e) {
414: handleParseConversionException(e);
415: }
416: state = 16;
417: return;
418: case 1:
419: try {
420: _Name = value;
421: } catch (java.lang.Exception e) {
422: handleParseConversionException(e);
423: }
424: state = 2;
425: return;
426: case 6:
427: try {
428: _FindersDomainPattern.add(value);
429: } catch (java.lang.Exception e) {
430: handleParseConversionException(e);
431: }
432: state = 7;
433: return;
434: }
435: } catch (java.lang.RuntimeException e) {
436: handleUnexpectedTextException(value, e);
437: }
438: }
439:
440: }
441:
442: }
|