001: /*
002: * (C) Copyright 2000 - 2005 Nabh Information Systems, Inc.
003: *
004: * This program is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU General Public License
006: * as published by the Free Software Foundation; either version 2
007: * of the License, or (at your option) any later version.
008: *
009: * This program is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: * GNU General Public License for more details.
013: *
014: * You should have received a copy of the GNU General Public License
015: * along with this program; if not, write to the Free Software
016: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
017: *
018: */
019:
020: //
021: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.4-b18-fcs
022: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
023: // Any modifications to this file will be lost upon recompilation of the source schema.
024: // Generated on: 2005.03.04 at 10:20:40 PST
025: //
026:
027: package com.nabhinc.portal.config.impl;
028:
029: public class RoleLinkTypeImpl implements
030: com.nabhinc.portal.config.RoleLinkType,
031: com.sun.xml.bind.JAXBObject,
032: com.nabhinc.portal.config.impl.runtime.UnmarshallableObject,
033: com.nabhinc.portal.config.impl.runtime.XMLSerializable,
034: com.nabhinc.portal.config.impl.runtime.ValidatableObject {
035:
036: protected java.lang.String _Value;
037: public final static java.lang.Class version = (com.nabhinc.portal.config.impl.JAXBVersion.class);
038: private static com.sun.msv.grammar.Grammar schemaFragment;
039:
040: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
041: return (com.nabhinc.portal.config.RoleLinkType.class);
042: }
043:
044: public java.lang.String getValue() {
045: return _Value;
046: }
047:
048: public void setValue(java.lang.String value) {
049: _Value = value;
050: }
051:
052: public com.nabhinc.portal.config.impl.runtime.UnmarshallingEventHandler createUnmarshaller(
053: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
054: return new com.nabhinc.portal.config.impl.RoleLinkTypeImpl.Unmarshaller(
055: context);
056: }
057:
058: public void serializeBody(
059: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
060: throws org.xml.sax.SAXException {
061: try {
062: context.text(((java.lang.String) _Value), "Value");
063: } catch (java.lang.Exception e) {
064: com.nabhinc.portal.config.impl.runtime.Util
065: .handlePrintConversionException(this , e, context);
066: }
067: }
068:
069: public void serializeAttributes(
070: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
071: throws org.xml.sax.SAXException {
072: }
073:
074: public void serializeURIs(
075: com.nabhinc.portal.config.impl.runtime.XMLSerializer context)
076: throws org.xml.sax.SAXException {
077: }
078:
079: public java.lang.Class getPrimaryInterface() {
080: return (com.nabhinc.portal.config.RoleLinkType.class);
081: }
082:
083: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
084: if (schemaFragment == null) {
085: schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
086: .deserialize(("\u00ac\u00ed\u0000\u0005sr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/r"
087: + "elaxng/datatype/Datatype;L\u0000\u0006exceptt\u0000 Lcom/sun/msv/grammar/Ex"
088: + "pression;L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xr\u0000\u001ecom.sun."
089: + "msv.grammar.Expression\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Lj"
090: + "ava/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0002xpppsr\u0000#com.sun.msv.data"
091: + "type.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.ms"
092: + "v.datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.d"
093: + "atatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype."
094: + "xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/St"
095: + "ring;L\u0000\btypeNameq\u0000~\u0000\u000bL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/x"
096: + "sd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchema"
097: + "t\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Pr"
098: + "eserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProc"
099: + "essor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.grammar.Expression$NullSe"
100: + "tExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0004ppsr\u0000\u001bcom.sun.msv.util.StringPai"
101: + "r\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u000bL\u0000\fnamespaceURIq\u0000~\u0000\u000bxpq\u0000~\u0000\u000fq\u0000~\u0000"
102: + "\u000esr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTabl"
103: + "et\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com"
104: + ".sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005coun"
105: + "tB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/Expression"
106: + "Pool;xp\u0000\u0000\u0000\u0000\u0001px"));
107: }
108: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
109: schemaFragment);
110: }
111:
112: public class Unmarshaller
113: extends
114: com.nabhinc.portal.config.impl.runtime.AbstractUnmarshallingEventHandlerImpl {
115:
116: public Unmarshaller(
117: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context) {
118: super (context, "--");
119: }
120:
121: protected Unmarshaller(
122: com.nabhinc.portal.config.impl.runtime.UnmarshallingContext context,
123: int startState) {
124: this (context);
125: state = startState;
126: }
127:
128: public java.lang.Object owner() {
129: return com.nabhinc.portal.config.impl.RoleLinkTypeImpl.this ;
130: }
131:
132: public void enterElement(java.lang.String ___uri,
133: java.lang.String ___local, java.lang.String ___qname,
134: org.xml.sax.Attributes __atts)
135: throws org.xml.sax.SAXException {
136: int attIdx;
137: outer: while (true) {
138: switch (state) {
139: case 1:
140: revertToParentFromEnterElement(___uri, ___local,
141: ___qname, __atts);
142: return;
143: }
144: super .enterElement(___uri, ___local, ___qname, __atts);
145: break;
146: }
147: }
148:
149: public void leaveElement(java.lang.String ___uri,
150: java.lang.String ___local, java.lang.String ___qname)
151: throws org.xml.sax.SAXException {
152: int attIdx;
153: outer: while (true) {
154: switch (state) {
155: case 1:
156: revertToParentFromLeaveElement(___uri, ___local,
157: ___qname);
158: return;
159: }
160: super .leaveElement(___uri, ___local, ___qname);
161: break;
162: }
163: }
164:
165: public void enterAttribute(java.lang.String ___uri,
166: java.lang.String ___local, java.lang.String ___qname)
167: throws org.xml.sax.SAXException {
168: int attIdx;
169: outer: while (true) {
170: switch (state) {
171: case 1:
172: revertToParentFromEnterAttribute(___uri, ___local,
173: ___qname);
174: return;
175: }
176: super .enterAttribute(___uri, ___local, ___qname);
177: break;
178: }
179: }
180:
181: public void leaveAttribute(java.lang.String ___uri,
182: java.lang.String ___local, java.lang.String ___qname)
183: throws org.xml.sax.SAXException {
184: int attIdx;
185: outer: while (true) {
186: switch (state) {
187: case 1:
188: revertToParentFromLeaveAttribute(___uri, ___local,
189: ___qname);
190: return;
191: }
192: super .leaveAttribute(___uri, ___local, ___qname);
193: break;
194: }
195: }
196:
197: public void handleText(final java.lang.String value)
198: throws org.xml.sax.SAXException {
199: int attIdx;
200: outer: while (true) {
201: try {
202: switch (state) {
203: case 0:
204: eatText1(value);
205: state = 1;
206: return;
207: case 1:
208: revertToParentFromText(value);
209: return;
210: }
211: } catch (java.lang.RuntimeException e) {
212: handleUnexpectedTextException(value, e);
213: }
214: break;
215: }
216: }
217:
218: private void eatText1(final java.lang.String value)
219: throws org.xml.sax.SAXException {
220: try {
221: _Value = value;
222: } catch (java.lang.Exception e) {
223: handleParseConversionException(e);
224: }
225: }
226:
227: }
228:
229: }
|