2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2.descriptors;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import jalview.schemabinding.version2.FeatureMatcherSet;
17 * Class FeatureMatcherSetDescriptor.
19 * @version $Revision$ $Date$
21 public class FeatureMatcherSetDescriptor
22 extends org.exolab.castor.xml.util.XMLClassDescriptorImpl
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
30 * Field _elementDefinition.
32 private boolean _elementDefinition;
37 private java.lang.String _nsPrefix;
42 private java.lang.String _nsURI;
47 private java.lang.String _xmlName;
53 public FeatureMatcherSetDescriptor()
56 _nsURI = "www.jalview.org/colours";
57 _xmlName = "FeatureMatcherSet";
58 _elementDefinition = false;
60 // -- set grouping compositor
61 setCompositorAsChoice();
62 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
63 org.exolab.castor.mapping.FieldHandler handler = null;
64 org.exolab.castor.xml.FieldValidator fieldValidator = null;
65 // -- initialize attribute descriptors
67 // -- initialize element descriptors
70 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
71 jalview.schemabinding.version2.MatchCondition.class,
72 "_matchCondition", "matchCondition",
73 org.exolab.castor.xml.NodeType.Element);
74 handler = new org.exolab.castor.xml.XMLFieldHandler()
76 public java.lang.Object getValue(java.lang.Object object)
77 throws IllegalStateException
79 FeatureMatcherSet target = (FeatureMatcherSet) object;
80 return target.getMatchCondition();
83 public void setValue(java.lang.Object object, java.lang.Object value)
84 throws IllegalStateException, IllegalArgumentException
88 FeatureMatcherSet target = (FeatureMatcherSet) object;
89 target.setMatchCondition(
90 (jalview.schemabinding.version2.MatchCondition) value);
91 } catch (java.lang.Exception ex)
93 throw new IllegalStateException(ex.toString());
97 public java.lang.Object newInstance(java.lang.Object parent)
99 return new jalview.schemabinding.version2.MatchCondition();
102 desc.setHandler(handler);
103 desc.setRequired(true);
104 desc.setMultivalued(false);
105 addFieldDescriptor(desc);
107 // -- validation code for: _matchCondition
108 fieldValidator = new org.exolab.castor.xml.FieldValidator();
109 fieldValidator.setMinOccurs(1);
112 desc.setValidator(fieldValidator);
113 // -- _compoundMatcher
114 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
115 jalview.schemabinding.version2.CompoundMatcher.class,
116 "_compoundMatcher", "compoundMatcher",
117 org.exolab.castor.xml.NodeType.Element);
118 handler = new org.exolab.castor.xml.XMLFieldHandler()
120 public java.lang.Object getValue(java.lang.Object object)
121 throws IllegalStateException
123 FeatureMatcherSet target = (FeatureMatcherSet) object;
124 return target.getCompoundMatcher();
127 public void setValue(java.lang.Object object, java.lang.Object value)
128 throws IllegalStateException, IllegalArgumentException
132 FeatureMatcherSet target = (FeatureMatcherSet) object;
133 target.setCompoundMatcher(
134 (jalview.schemabinding.version2.CompoundMatcher) value);
135 } catch (java.lang.Exception ex)
137 throw new IllegalStateException(ex.toString());
141 public java.lang.Object newInstance(java.lang.Object parent)
143 return new jalview.schemabinding.version2.CompoundMatcher();
146 desc.setHandler(handler);
147 desc.setRequired(true);
148 desc.setMultivalued(false);
149 addFieldDescriptor(desc);
151 // -- validation code for: _compoundMatcher
152 fieldValidator = new org.exolab.castor.xml.FieldValidator();
153 fieldValidator.setMinOccurs(1);
156 desc.setValidator(fieldValidator);
164 * Method getAccessMode.
166 * @return the access mode specified for this class.
168 public org.exolab.castor.mapping.AccessMode getAccessMode()
174 * Method getIdentity.
176 * @return the identity field, null if this class has no identity.
178 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
180 return super.getIdentity();
184 * Method getJavaClass.
186 * @return the Java class represented by this descriptor.
188 public java.lang.Class getJavaClass()
190 return jalview.schemabinding.version2.FeatureMatcherSet.class;
194 * Method getNameSpacePrefix.
196 * @return the namespace prefix to use when marshaling as XML.
198 public java.lang.String getNameSpacePrefix()
204 * Method getNameSpaceURI.
206 * @return the namespace URI used when marshaling and unmarshaling as XML.
208 public java.lang.String getNameSpaceURI()
214 * Method getValidator.
216 * @return a specific validator for the class described by this
219 public org.exolab.castor.xml.TypeValidator getValidator()
227 * @return the XML Name for the Class being described.
229 public java.lang.String getXMLName()
235 * Method isElementDefinition.
237 * @return true if XML schema definition of this Class is that of a global
238 * element or element with anonymous type definition.
240 public boolean isElementDefinition()
242 return _elementDefinition;