001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.4-b18-fcs
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: 2005.03.31 at 08:49:20 EST
006: //
007:
008: package com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl;
009:
010: public class IsAvailableAsResourceImpl
011: implements
012: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.IsAvailableAsResource,
013: com.sun.xml.bind.RIElement,
014: com.sun.xml.bind.JAXBObject,
015: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.UnmarshallableObject,
016: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.XMLSerializable,
017: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.ValidatableObject {
018:
019: protected boolean has_Value;
020: protected boolean _Value;
021: public final static java.lang.Class version = (com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.JAXBVersion.class);
022: private static com.sun.msv.grammar.Grammar schemaFragment;
023:
024: public IsAvailableAsResourceImpl() {
025: }
026:
027: public IsAvailableAsResourceImpl(boolean value) {
028: _Value = value;
029: has_Value = true;
030: }
031:
032: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
033: return (com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.IsAvailableAsResource.class);
034: }
035:
036: public java.lang.String ____jaxb_ri____getNamespaceURI() {
037: return "http://www.metaboss.com/XMLSchemas/MetaBoss/SdlcTools/EnterpriseModel/1.0";
038: }
039:
040: public java.lang.String ____jaxb_ri____getLocalName() {
041: return "IsAvailableAsResource";
042: }
043:
044: public boolean isValue() {
045: return _Value;
046: }
047:
048: public void setValue(boolean value) {
049: _Value = value;
050: has_Value = true;
051: }
052:
053: public com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
054: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.UnmarshallingContext context) {
055: return new com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.IsAvailableAsResourceImpl.Unmarshaller(
056: context);
057: }
058:
059: public void serializeBody(
060: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.XMLSerializer context)
061: throws org.xml.sax.SAXException {
062: if (!has_Value) {
063: context.reportError(com.sun.xml.bind.serializer.Util
064: .createMissingObjectError(this , "Value"));
065: }
066: context
067: .startElement(
068: "http://www.metaboss.com/XMLSchemas/MetaBoss/SdlcTools/EnterpriseModel/1.0",
069: "IsAvailableAsResource");
070: context.endNamespaceDecls();
071: context.endAttributes();
072: try {
073: context.text(javax.xml.bind.DatatypeConverter
074: .printBoolean(((boolean) _Value)), "Value");
075: } catch (java.lang.Exception e) {
076: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.Util
077: .handlePrintConversionException(this , e, context);
078: }
079: context.endElement();
080: }
081:
082: public void serializeAttributes(
083: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.XMLSerializer context)
084: throws org.xml.sax.SAXException {
085: if (!has_Value) {
086: context.reportError(com.sun.xml.bind.serializer.Util
087: .createMissingObjectError(this , "Value"));
088: }
089: }
090:
091: public void serializeURIs(
092: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.XMLSerializer context)
093: throws org.xml.sax.SAXException {
094: if (!has_Value) {
095: context.reportError(com.sun.xml.bind.serializer.Util
096: .createMissingObjectError(this , "Value"));
097: }
098: }
099:
100: public java.lang.Class getPrimaryInterface() {
101: return (com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.IsAvailableAsResource.class);
102: }
103:
104: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
105: if (schemaFragment == null) {
106: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
107: .deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000"
108: + "\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv."
109: + "grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000"
110: + "\fcontentModelt\u0000 Lcom/sun/msv/grammar/Expression;xr\u0000\u001ecom.sun."
111: + "msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
112: + "ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0003xppp\u0000sr\u0000\u001fcom.sun.msv.gra"
113: + "mmar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.BinaryExp"
114: + "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1q\u0000~\u0000\u0003L\u0000\u0004exp2q\u0000~\u0000\u0003xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.g"
115: + "rammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datat"
116: + "ype;L\u0000\u0006exceptq\u0000~\u0000\u0003L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000"
117: + "~\u0000\u0004ppsr\u0000$com.sun.msv.datatype.xsd.BooleanType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*"
118: + "com.sun.msv.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com"
119: + ".sun.msv.datatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv"
120: + ".datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Lja"
121: + "va/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0012L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/"
122: + "datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001"
123: + "/XMLSchemat\u0000\u0007booleansr\u00005com.sun.msv.datatype.xsd.WhiteSpaceP"
124: + "rocessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.Whi"
125: + "teSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Express"
126: + "ion$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.util"
127: + ".StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0012L\u0000\fnamespaceURIq\u0000~\u0000\u0012x"
128: + "pq\u0000~\u0000\u0016q\u0000~\u0000\u0015sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000"
129: + "\bppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000"
130: + "\u0003L\u0000\tnameClassq\u0000~\u0000\u0001xq\u0000~\u0000\u0004sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005v"
131: + "aluexp\u0000psq\u0000~\u0000\nppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000"
132: + "\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u000fq\u0000~\u0000\u0015t\u0000\u0005QNameq\u0000~\u0000\u0019q\u0000~\u0000\u001bsq\u0000~\u0000\u001cq\u0000~\u0000\'q\u0000~\u0000\u0015sr\u0000#com.su"
133: + "n.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0012L\u0000\f"
134: + "namespaceURIq\u0000~\u0000\u0012xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
135: + "\u0000xpt\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-instancesr\u00000co"
136: + "m.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000"
137: + "~\u0000\u0004sq\u0000~\u0000\"\u0001q\u0000~\u0000/sq\u0000~\u0000)t\u0000\u0015IsAvailableAsResourcet\u0000Ihttp://www.m"
138: + "etaboss.com/XMLSchemas/MetaBoss/SdlcTools/EnterpriseModel/1."
139: + "0sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTabl"
140: + "et\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com"
141: + ".sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005coun"
142: + "tB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/Expression"
143: + "Pool;xp\u0000\u0000\u0000\u0002\u0001pq\u0000~\u0000\u001fq\u0000~\u0000\tx"));
144: }
145: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
146: schemaFragment);
147: }
148:
149: public class Unmarshaller
150: extends
151: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
152:
153: public Unmarshaller(
154: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.UnmarshallingContext context) {
155: super (context, "----");
156: }
157:
158: protected Unmarshaller(
159: com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.runtime.UnmarshallingContext context,
160: int startState) {
161: this (context);
162: state = startState;
163: }
164:
165: public java.lang.Object owner() {
166: return com.metaboss.sdlctools.domains.enterprisemodel.storage.xmlfileimpl.dom.impl.IsAvailableAsResourceImpl.this ;
167: }
168:
169: public void enterElement(java.lang.String ___uri,
170: java.lang.String ___local, java.lang.String ___qname,
171: org.xml.sax.Attributes __atts)
172: throws org.xml.sax.SAXException {
173: int attIdx;
174: outer: while (true) {
175: switch (state) {
176: case 0:
177: if (("IsAvailableAsResource" == ___local)
178: && ("http://www.metaboss.com/XMLSchemas/MetaBoss/SdlcTools/EnterpriseModel/1.0" == ___uri)) {
179: context.pushAttributes(__atts, true);
180: state = 1;
181: return;
182: }
183: break;
184: case 3:
185: revertToParentFromEnterElement(___uri, ___local,
186: ___qname, __atts);
187: return;
188: }
189: super .enterElement(___uri, ___local, ___qname, __atts);
190: break;
191: }
192: }
193:
194: public void leaveElement(java.lang.String ___uri,
195: java.lang.String ___local, java.lang.String ___qname)
196: throws org.xml.sax.SAXException {
197: int attIdx;
198: outer: while (true) {
199: switch (state) {
200: case 2:
201: if (("IsAvailableAsResource" == ___local)
202: && ("http://www.metaboss.com/XMLSchemas/MetaBoss/SdlcTools/EnterpriseModel/1.0" == ___uri)) {
203: context.popAttributes();
204: state = 3;
205: return;
206: }
207: break;
208: case 3:
209: revertToParentFromLeaveElement(___uri, ___local,
210: ___qname);
211: return;
212: }
213: super .leaveElement(___uri, ___local, ___qname);
214: break;
215: }
216: }
217:
218: public void enterAttribute(java.lang.String ___uri,
219: java.lang.String ___local, java.lang.String ___qname)
220: throws org.xml.sax.SAXException {
221: int attIdx;
222: outer: while (true) {
223: switch (state) {
224: case 3:
225: revertToParentFromEnterAttribute(___uri, ___local,
226: ___qname);
227: return;
228: }
229: super .enterAttribute(___uri, ___local, ___qname);
230: break;
231: }
232: }
233:
234: public void leaveAttribute(java.lang.String ___uri,
235: java.lang.String ___local, java.lang.String ___qname)
236: throws org.xml.sax.SAXException {
237: int attIdx;
238: outer: while (true) {
239: switch (state) {
240: case 3:
241: revertToParentFromLeaveAttribute(___uri, ___local,
242: ___qname);
243: return;
244: }
245: super .leaveAttribute(___uri, ___local, ___qname);
246: break;
247: }
248: }
249:
250: public void handleText(final java.lang.String value)
251: throws org.xml.sax.SAXException {
252: int attIdx;
253: outer: while (true) {
254: try {
255: switch (state) {
256: case 1:
257: eatText1(value);
258: state = 2;
259: return;
260: case 3:
261: revertToParentFromText(value);
262: return;
263: }
264: } catch (java.lang.RuntimeException e) {
265: handleUnexpectedTextException(value, e);
266: }
267: break;
268: }
269: }
270:
271: private void eatText1(final java.lang.String value)
272: throws org.xml.sax.SAXException {
273: try {
274: _Value = javax.xml.bind.DatatypeConverter
275: .parseBoolean(com.sun.xml.bind.WhiteSpaceProcessor
276: .collapse(value));
277: has_Value = true;
278: } catch (java.lang.Exception e) {
279: handleParseConversionException(e);
280: }
281: }
282:
283: }
284:
285: }
|