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:44 PST
006: //
007:
008: package org.jaffa.security.securityrolesdomain.impl;
009:
010: public class RoleImpl implements
011: org.jaffa.security.securityrolesdomain.Role,
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 _Exclude = new com.sun.xml.bind.util.ListImpl(
017: new java.util.ArrayList());
018: protected java.lang.String _Description;
019: protected com.sun.xml.bind.util.ListImpl _GrantFunctionAccess = new com.sun.xml.bind.util.ListImpl(
020: new java.util.ArrayList());
021: protected java.lang.String _Name;
022: protected com.sun.xml.bind.util.ListImpl _Include = new com.sun.xml.bind.util.ListImpl(
023: new java.util.ArrayList());
024: private final static com.sun.msv.grammar.Grammar schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer
025: .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\u0005mK\u00b8ppsq\u0000~\u0000\u0000\u0004c\u00a5\u00a9ppsq\u0000~\u0000\u0000\u0003?R\u0081ppsq\u0000~\u0000\u0000\u0002\u001a\u00ffYppsr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001\u0000\u00f6\u00ac1ppsr\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\u0000\u00f6\u00ac&sr\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\u0000\u00f6\u00ac\u001bppsr\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\u0019L\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\u0019L\u0000\fnamespaceURIq\u0000~\u0000\u0019xpq\u0000~\u0000\u001dq\u0000~\u0000\u001csr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0019L\u0000\fnamespaceURIq\u0000~\u0000\u0019xr\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\u000f\u0001psq\u0000~\u0000\t\u0001$S#ppsr\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$S\u0018q\u0000~\u0000\u0010psq\u0000~\u0000\u000b\u0001$S\u0015q\u0000~\u0000\u0010p\u0000sq\u0000~\u0000\u000b\u0001$S\npp\u0000sq\u0000~\u0000\t\u0001$R\u00ffppsq\u0000~\u0000.\u0001$R\u00f4q\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\fxq\u0000~\u0000\u0003\u0001$R\u00f1q\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\u0000.org.jaffa.security.securityrolesdomain.Includet\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000%t\u0000\u0007includeq\u0000~\u0000)q\u0000~\u0000+sq\u0000~\u0000\t\u0001$S#ppsq\u0000~\u0000.\u0001$S\u0018q\u0000~\u0000\u0010psq\u0000~\u0000\u000b\u0001$S\u0015q\u0000~\u0000\u0010p\u0000sq\u0000~\u0000\u000b\u0001$S\npp\u0000sq\u0000~\u0000\t\u0001$R\u00ffppsq\u0000~\u0000.\u0001$R\u00f4q\u0000~\u0000\u0010psq\u0000~\u00005\u0001$R\u00f1q\u0000~\u0000\u0010pq\u0000~\u00008q\u0000~\u0000:q\u0000~\u0000+sq\u0000~\u0000%t\u0000.org.jaffa.security.securityrolesdomain.Excludeq\u0000~\u0000=sq\u0000~\u0000%t\u0000\u0007excludeq\u0000~\u0000)q\u0000~\u0000+sq\u0000~\u0000\t\u0001$S#ppsq\u0000~\u0000.\u0001$S\u0018q\u0000~\u0000\u0010psq\u0000~\u0000\u000b\u0001$S\u0015q\u0000~\u0000\u0010p\u0000sq\u0000~\u0000\u000b\u0001$S\npp\u0000sq\u0000~\u0000\t\u0001$R\u00ffppsq\u0000~\u0000.\u0001$R\u00f4q\u0000~\u0000\u0010psq\u0000~\u00005\u0001$R\u00f1q\u0000~\u0000\u0010pq\u0000~\u00008q\u0000~\u0000:q\u0000~\u0000+sq\u0000~\u0000%t\u0000:org.jaffa.security.securityrolesdomain.GrantFunctionAccessq\u0000~\u0000=sq\u0000~\u0000%t\u0000\u0015grant-function-accessq\u0000~\u0000)q\u0000~\u0000+sq\u0000~\u00005\u0001\t\u00a6\nppq\u0000~\u0000\u0014sq\u0000~\u0000%t\u0000\u0004nameq\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~\u0000Z[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\u0011\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppppq\u0000~\u0000\bppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u0006ppppppppppppppq\u0000~\u00004q\u0000~\u0000Eq\u0000~\u0000Pppppppppq\u0000~\u00003q\u0000~\u0000Dq\u0000~\u0000\nq\u0000~\u0000Opppppppppppppppppppppq\u0000~\u00000q\u0000~\u0000Aq\u0000~\u0000Lppppppppq\u0000~\u0000-q\u0000~\u0000@q\u0000~\u0000Kppppppppq\u0000~\u0000\u0007ppppppppppppppppppq\u0000~\u0000\u0005ppppppppppppppppppppppppppppppppppppppppppppppp");
026:
027: private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
028: return org.jaffa.security.securityrolesdomain.Role.class;
029: }
030:
031: public java.util.List getExclude() {
032: return _Exclude;
033: }
034:
035: public java.lang.String getDescription() {
036: return _Description;
037: }
038:
039: public void setDescription(java.lang.String value) {
040: _Description = value;
041: }
042:
043: public java.util.List getGrantFunctionAccess() {
044: return _GrantFunctionAccess;
045: }
046:
047: public java.lang.String getName() {
048: return _Name;
049: }
050:
051: public void setName(java.lang.String value) {
052: _Name = value;
053: }
054:
055: public java.util.List getInclude() {
056: return _Include;
057: }
058:
059: public com.sun.xml.bind.unmarshaller.ContentHandlerEx getUnmarshaller(
060: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
061: return new org.jaffa.security.securityrolesdomain.impl.RoleImpl.Unmarshaller(
062: context);
063: }
064:
065: public java.lang.Class getPrimaryInterfaceClass() {
066: return PRIMARY_INTERFACE_CLASS();
067: }
068:
069: public void serializeElements(
070: com.sun.xml.bind.serializer.XMLSerializer context)
071: throws org.xml.sax.SAXException {
072: int idx1 = 0;
073: final int len1 = _Exclude.size();
074: int idx3 = 0;
075: final int len3 = _GrantFunctionAccess.size();
076: int idx5 = 0;
077: final int len5 = _Include.size();
078: if (_Description != null) {
079: context.startElement("", "description");
080: context.endAttributes();
081: try {
082: context.text(((java.lang.String) _Description));
083: } catch (java.lang.Exception e) {
084: com.sun.xml.bind.marshaller.Util
085: .handlePrintConversionException(this , e,
086: context);
087: }
088: context.endElement();
089: }
090: while (idx5 != len5) {
091: if (_Include.get(idx5) instanceof javax.xml.bind.Element) {
092: context
093: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _Include
094: .get(idx5++)));
095: } else {
096: context.startElement("", "include");
097: int idx_1 = idx5;
098: context
099: .childAsAttributes(((com.sun.xml.bind.serializer.XMLSerializable) _Include
100: .get(idx_1++)));
101: context.endAttributes();
102: context
103: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _Include
104: .get(idx5++)));
105: context.endElement();
106: }
107: }
108: while (idx1 != len1) {
109: if (_Exclude.get(idx1) instanceof javax.xml.bind.Element) {
110: context
111: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _Exclude
112: .get(idx1++)));
113: } else {
114: context.startElement("", "exclude");
115: int idx_2 = idx1;
116: context
117: .childAsAttributes(((com.sun.xml.bind.serializer.XMLSerializable) _Exclude
118: .get(idx_2++)));
119: context.endAttributes();
120: context
121: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _Exclude
122: .get(idx1++)));
123: context.endElement();
124: }
125: }
126: while (idx3 != len3) {
127: if (_GrantFunctionAccess.get(idx3) instanceof javax.xml.bind.Element) {
128: context
129: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _GrantFunctionAccess
130: .get(idx3++)));
131: } else {
132: context.startElement("", "grant-function-access");
133: int idx_3 = idx3;
134: context
135: .childAsAttributes(((com.sun.xml.bind.serializer.XMLSerializable) _GrantFunctionAccess
136: .get(idx_3++)));
137: context.endAttributes();
138: context
139: .childAsElements(((com.sun.xml.bind.serializer.XMLSerializable) _GrantFunctionAccess
140: .get(idx3++)));
141: context.endElement();
142: }
143: }
144: }
145:
146: public void serializeAttributes(
147: com.sun.xml.bind.serializer.XMLSerializer context)
148: throws org.xml.sax.SAXException {
149: int idx1 = 0;
150: final int len1 = _Exclude.size();
151: int idx3 = 0;
152: final int len3 = _GrantFunctionAccess.size();
153: int idx5 = 0;
154: final int len5 = _Include.size();
155: context.startAttribute("", "name");
156: try {
157: context.text(((java.lang.String) _Name));
158: } catch (java.lang.Exception e) {
159: com.sun.xml.bind.marshaller.Util
160: .handlePrintConversionException(this , e, context);
161: }
162: context.endAttribute();
163: }
164:
165: public void serializeAttributeBodies(
166: com.sun.xml.bind.serializer.XMLSerializer context)
167: throws org.xml.sax.SAXException {
168: int idx1 = 0;
169: final int len1 = _Exclude.size();
170: int idx3 = 0;
171: final int len3 = _GrantFunctionAccess.size();
172: int idx5 = 0;
173: final int len5 = _Include.size();
174: }
175:
176: public java.lang.Class getPrimaryInterface() {
177: return (org.jaffa.security.securityrolesdomain.Role.class);
178: }
179:
180: public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
181: return new com.sun.msv.verifier.regexp.REDocumentDeclaration(
182: schemaFragment);
183: }
184:
185: public class Unmarshaller extends
186: com.sun.xml.bind.unmarshaller.ContentHandlerEx {
187:
188: public Unmarshaller(
189: com.sun.xml.bind.unmarshaller.UnmarshallingContext context) {
190: super (context, "-----------");
191: }
192:
193: protected com.sun.xml.bind.unmarshaller.UnmarshallableObject owner() {
194: return org.jaffa.security.securityrolesdomain.impl.RoleImpl.this ;
195: }
196:
197: public void enterElement(java.lang.String ___uri,
198: java.lang.String ___local, org.xml.sax.Attributes __atts)
199: throws com.sun.xml.bind.unmarshaller.UnreportedException {
200: switch (state) {
201: case 0:
202: if (("" == ___uri) && ("include" == ___local)) {
203: context.pushAttributes(__atts);
204: goto5();
205: return;
206: }
207: if (("" == ___uri) && ("description" == ___local)) {
208: context.pushAttributes(__atts);
209: state = 9;
210: return;
211: }
212: if (("" == ___uri)
213: && ("grant-function-access" == ___local)) {
214: context.pushAttributes(__atts);
215: goto7();
216: return;
217: }
218: if (("" == ___uri) && ("exclude" == ___local)) {
219: context.pushAttributes(__atts);
220: goto1();
221: return;
222: }
223: revertToParentFromEnterElement(___uri, ___local, __atts);
224: return;
225: }
226: super .enterElement(___uri, ___local, __atts);
227: }
228:
229: public void leaveElement(java.lang.String ___uri,
230: java.lang.String ___local)
231: throws com.sun.xml.bind.unmarshaller.UnreportedException {
232: switch (state) {
233: case 2:
234: if (("" == ___uri) && ("exclude" == ___local)) {
235: context.popAttributes();
236: goto0();
237: return;
238: }
239: break;
240: case 6:
241: if (("" == ___uri) && ("include" == ___local)) {
242: context.popAttributes();
243: goto0();
244: return;
245: }
246: break;
247: case 0:
248: revertToParentFromLeaveElement(___uri, ___local);
249: return;
250: case 10:
251: if (("" == ___uri) && ("description" == ___local)) {
252: context.popAttributes();
253: goto0();
254: return;
255: }
256: break;
257: case 8:
258: if (("" == ___uri)
259: && ("grant-function-access" == ___local)) {
260: context.popAttributes();
261: goto0();
262: return;
263: }
264: break;
265: }
266: super .leaveElement(___uri, ___local);
267: }
268:
269: public void enterAttribute(java.lang.String ___uri,
270: java.lang.String ___local)
271: throws com.sun.xml.bind.unmarshaller.UnreportedException {
272: switch (state) {
273: case 1:
274: if (("" == ___uri) && ("name" == ___local)) {
275: _Exclude
276: .add(((org.jaffa.security.securityrolesdomain.impl.ExcludeImpl) spawnChildFromEnterAttribute(
277: (org.jaffa.security.securityrolesdomain.impl.ExcludeImpl.class),
278: 2, ___uri, ___local)));
279: return;
280: }
281: break;
282: case 7:
283: if (("" == ___uri) && ("name" == ___local)) {
284: _GrantFunctionAccess
285: .add(((org.jaffa.security.securityrolesdomain.impl.GrantFunctionAccessImpl) spawnChildFromEnterAttribute(
286: (org.jaffa.security.securityrolesdomain.impl.GrantFunctionAccessImpl.class),
287: 8, ___uri, ___local)));
288: return;
289: }
290: break;
291: case 0:
292: if (("" == ___uri) && ("name" == ___local)) {
293: state = 3;
294: return;
295: }
296: revertToParentFromEnterAttribute(___uri, ___local);
297: return;
298: case 5:
299: if (("" == ___uri) && ("name" == ___local)) {
300: _Include
301: .add(((org.jaffa.security.securityrolesdomain.impl.IncludeImpl) spawnChildFromEnterAttribute(
302: (org.jaffa.security.securityrolesdomain.impl.IncludeImpl.class),
303: 6, ___uri, ___local)));
304: return;
305: }
306: break;
307: }
308: super .enterAttribute(___uri, ___local);
309: }
310:
311: public void leaveAttribute(java.lang.String ___uri,
312: java.lang.String ___local)
313: throws com.sun.xml.bind.unmarshaller.UnreportedException {
314: switch (state) {
315: case 0:
316: revertToParentFromLeaveAttribute(___uri, ___local);
317: return;
318: case 4:
319: if (("" == ___uri) && ("name" == ___local)) {
320: goto0();
321: return;
322: }
323: break;
324: }
325: super .leaveAttribute(___uri, ___local);
326: }
327:
328: public void text(java.lang.String value)
329: throws com.sun.xml.bind.unmarshaller.UnreportedException {
330: try {
331: switch (state) {
332: case 3:
333: try {
334: _Name = value;
335: } catch (java.lang.Exception e) {
336: handleParseConversionException(e);
337: }
338: state = 4;
339: return;
340: case 0:
341: revertToParentFromText(value);
342: return;
343: case 9:
344: try {
345: _Description = value;
346: } catch (java.lang.Exception e) {
347: handleParseConversionException(e);
348: }
349: state = 10;
350: return;
351: }
352: } catch (java.lang.RuntimeException e) {
353: handleUnexpectedTextException(value, e);
354: }
355: }
356:
357: public void leaveChild(int nextState)
358: throws com.sun.xml.bind.unmarshaller.UnreportedException {
359: switch (nextState) {
360: case 2:
361: state = 2;
362: return;
363: case 6:
364: state = 6;
365: return;
366: case 8:
367: state = 8;
368: return;
369: }
370: super .leaveChild(nextState);
371: }
372:
373: private void goto1()
374: throws com.sun.xml.bind.unmarshaller.UnreportedException {
375: int idx;
376: state = 1;
377: idx = context.getAttribute("", "name");
378: if (idx >= 0) {
379: context.consumeAttribute(idx);
380: return;
381: }
382: }
383:
384: private void goto7()
385: throws com.sun.xml.bind.unmarshaller.UnreportedException {
386: int idx;
387: state = 7;
388: idx = context.getAttribute("", "name");
389: if (idx >= 0) {
390: context.consumeAttribute(idx);
391: return;
392: }
393: }
394:
395: private void goto0()
396: throws com.sun.xml.bind.unmarshaller.UnreportedException {
397: int idx;
398: state = 0;
399: idx = context.getAttribute("", "name");
400: if (idx >= 0) {
401: context.consumeAttribute(idx);
402: return;
403: }
404: }
405:
406: private void goto5()
407: throws com.sun.xml.bind.unmarshaller.UnreportedException {
408: int idx;
409: state = 5;
410: idx = context.getAttribute("", "name");
411: if (idx >= 0) {
412: context.consumeAttribute(idx);
413: return;
414: }
415: }
416:
417: }
418:
419: }
|