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.12.18 at 12:29:17 PST
006: //
007:
008: package org.jaffa.components.navigation.domain.impl;
009:
010: public class DesktopMenuImpl implements
011: org.jaffa.components.navigation.domain.DesktopMenu,
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 _MenuOption = new com.sun.xml.bind.util.ListImpl(
017: new java.util.ArrayList());
018: protected java.lang.String _StrutsTileTemplate;
019: protected java.lang.String _Label;
020: private final static com.sun.msv.grammar.Grammar schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
021: .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\u0002K\u00fa\u0083ppsq\u0000~\u0000\u0000\u0000\u00abwlppsr\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\u00bb\u00aepp\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\u00bb\u00a3sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\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\u0015L\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\u0015L\u0000\fnamespaceURIq\u0000~\u0000\u0015xpq\u0000~\u0000\u0019q\u0000~\u0000\u0018sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0015L\u0000\fnamespaceURIq\u0000~\u0000\u0015xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0005labelt\u0000\u0000sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001\u0000U\u00bb\u00b9ppsq\u0000~\u0000\u0007\u0000U\u00bb\u00aeq\u0000~\u0000\u0010p\u0000q\u0000~\u0000\u000esq\u0000~\u0000!t\u0000\u0014struts-tile-templateq\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\u000f\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\u00a0\u0083\u0012ppsq\u0000~\u0000\u0007\u0001\u00a0\u0083\u000fpp\u0000sq\u0000~\u0000\u0007\u0001\u00a0\u0083\u0004pp\u0000sq\u0000~\u0000&\u0001\u00a0\u0082\u00f9ppsq\u0000~\u0000.\u0001\u00a0\u0082\u00eeq\u0000~\u0000\u0010psr\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\bxq\u0000~\u0000\u0003\u0001\u00a0\u0082\u00ebq\u0000~\u0000\u0010psr\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~\u00008sr\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\u00001org.jaffa.components.navigation.domain.MenuOptiont\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000!t\u0000\u000bmenu-optionq\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~\u0000A[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\u0006\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u0005ppppppppppppppppppppppppq\u0000~\u00004ppppppppppq\u0000~\u00003ppq\u0000~\u0000\u0006pppppppppppppppppppppq\u0000~\u00000pppppppppppppq\u0000~\u0000\'ppppppppppppppppppppppppppppp");
022:
023: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
024: return org.jaffa.components.navigation.domain.DesktopMenu.class;
025: }
026:
027: public java.util.List getMenuOption() {
028: return _MenuOption;
029: }
030:
031: public java.lang.String getStrutsTileTemplate() {
032: return _StrutsTileTemplate;
033: }
034:
035: public void setStrutsTileTemplate(java.lang.String value) {
036: _StrutsTileTemplate = value;
037: }
038:
039: public java.lang.String getLabel() {
040: return _Label;
041: }
042:
043: public void setLabel(java.lang.String value) {
044: _Label = value;
045: }
046:
047: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
048: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
049: return new org.jaffa.components.navigation.domain.impl.DesktopMenuImpl.Unmarshaller(
050: context);
051: }
052:
053: public java.lang.Class getPrimaryInterfaceClass() {
054: return PRIMARY_INTERFACE_CLASS();
055: }
056:
057: public void serializeElements(
058: com.sun.xml.bind.serializer.XMLSerializer context)
059: throws org.xml.sax.SAXException {
060: int idx1 = 0;
061: final int len1 = _MenuOption.size();
062: context.startElement("", "label");
063: context.endAttributes();
064: try {
065: context.text(((java.lang.String) _Label));
066: } catch (java.lang.Exception e) {
067: com.sun.xml.bind.marshaller.Util
068: .handlePrintConversionException(this , e, context);
069: }
070: context.endElement();
071: if (_StrutsTileTemplate != null) {
072: context.startElement("", "struts-tile-template");
073: context.endAttributes();
074: try {
075: context.text(((java.lang.String) _StrutsTileTemplate));
076: } catch (java.lang.Exception e) {
077: com.sun.xml.bind.marshaller.Util
078: .handlePrintConversionException(this , e,
079: context);
080: }
081: context.endElement();
082: }
083: while (idx1 != len1) {
084: if (_MenuOption.get(idx1) instanceof javax.xml.bind.Element) {
085: context
086: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _MenuOption
087: .get(idx1++)));
088: } else {
089: context.startElement("", "menu-option");
090: int idx_2 = idx1;
091: context
092: .childAsAttributes(((com.sun.xml.bind.serializer.XMLSerializable) _MenuOption
093: .get(idx_2++)));
094: context.endAttributes();
095: context
096: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _MenuOption
097: .get(idx1++)));
098: context.endElement();
099: }
100: }
101: }
102:
103: public void serializeAttributes(
104: com.sun.xml.bind.serializer.XMLSerializer context)
105: throws org.xml.sax.SAXException {
106: int idx1 = 0;
107: final int len1 = _MenuOption.size();
108: }
109:
110: public void serializeAttributeBodies(
111: com.sun.xml.bind.serializer.XMLSerializer context)
112: throws org.xml.sax.SAXException {
113: int idx1 = 0;
114: final int len1 = _MenuOption.size();
115: }
116:
117: public java.lang.Class getPrimaryInterface() {
118: return (org.jaffa.components.navigation.domain.DesktopMenu.class);
119: }
120:
121: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
122: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
123: schemaFragment);
124: }
125:
126: public class Unmarshaller extends
127: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
128:
129: public Unmarshaller(
130: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
131: super (context, "---------");
132: }
133:
134: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
135: return org.jaffa.components.navigation.domain.impl.DesktopMenuImpl.this ;
136: }
137:
138: public void enterElement(java.lang.String ___uri,
139: java.lang.String ___local, org.xml.sax.Attributes __atts)
140: throws com.sun.xml.bind.unmarshaller.UnreportedException {
141: switch (state) {
142: case 6:
143: if (("" == ___uri) && ("menu-option" == ___local)) {
144: context.pushAttributes(__atts);
145: state = 4;
146: return;
147: }
148: revertToParentFromEnterElement(___uri, ___local, __atts);
149: return;
150: case 0:
151: if (("" == ___uri) && ("label" == ___local)) {
152: context.pushAttributes(__atts);
153: state = 1;
154: return;
155: }
156: break;
157: case 3:
158: if (("" == ___uri)
159: && ("struts-tile-template" == ___local)) {
160: context.pushAttributes(__atts);
161: state = 7;
162: return;
163: }
164: if (("" == ___uri) && ("menu-option" == ___local)) {
165: context.pushAttributes(__atts);
166: state = 4;
167: return;
168: }
169: break;
170: case 4:
171: if (("" == ___uri) && ("label" == ___local)) {
172: _MenuOption
173: .add(((org.jaffa.components.navigation.domain.impl.MenuOptionImpl) spawnChildFromEnterElement(
174: (org.jaffa.components.navigation.domain.impl.MenuOptionImpl.class),
175: 5, ___uri, ___local, __atts)));
176: return;
177: }
178: break;
179: }
180: super .enterElement(___uri, ___local, __atts);
181: }
182:
183: public void leaveElement(java.lang.String ___uri,
184: java.lang.String ___local)
185: throws com.sun.xml.bind.unmarshaller.UnreportedException {
186: switch (state) {
187: case 8:
188: if (("" == ___uri)
189: && ("struts-tile-template" == ___local)) {
190: context.popAttributes();
191: state = 3;
192: return;
193: }
194: break;
195: case 6:
196: revertToParentFromLeaveElement(___uri, ___local);
197: return;
198: case 2:
199: if (("" == ___uri) && ("label" == ___local)) {
200: context.popAttributes();
201: state = 3;
202: return;
203: }
204: break;
205: case 5:
206: if (("" == ___uri) && ("menu-option" == ___local)) {
207: context.popAttributes();
208: state = 6;
209: return;
210: }
211: break;
212: }
213: super .leaveElement(___uri, ___local);
214: }
215:
216: public void enterAttribute(java.lang.String ___uri,
217: java.lang.String ___local)
218: throws com.sun.xml.bind.unmarshaller.UnreportedException {
219: switch (state) {
220: case 6:
221: revertToParentFromEnterAttribute(___uri, ___local);
222: return;
223: }
224: super .enterAttribute(___uri, ___local);
225: }
226:
227: public void leaveAttribute(java.lang.String ___uri,
228: java.lang.String ___local)
229: throws com.sun.xml.bind.unmarshaller.UnreportedException {
230: switch (state) {
231: case 6:
232: revertToParentFromLeaveAttribute(___uri, ___local);
233: return;
234: }
235: super .leaveAttribute(___uri, ___local);
236: }
237:
238: public void text(java.lang.String value)
239: throws com.sun.xml.bind.unmarshaller.UnreportedException {
240: try {
241: switch (state) {
242: case 6:
243: revertToParentFromText(value);
244: return;
245: case 7:
246: try {
247: _StrutsTileTemplate = value;
248: } catch (java.lang.Exception e) {
249: handleParseConversionException(e);
250: }
251: state = 8;
252: return;
253: case 1:
254: try {
255: _Label = value;
256: } catch (java.lang.Exception e) {
257: handleParseConversionException(e);
258: }
259: state = 2;
260: return;
261: }
262: } catch (java.lang.RuntimeException e) {
263: handleUnexpectedTextException(value, e);
264: }
265: }
266:
267: public void leaveChild(int nextState)
268: throws com.sun.xml.bind.unmarshaller.UnreportedException {
269: switch (nextState) {
270: case 5:
271: state = 5;
272: return;
273: }
274: super.leaveChild(nextState);
275: }
276:
277: }
278:
279: }
|