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.Pdbids;
17 * Class PdbidsDescriptor.
19 * @version $Revision$ $Date$
21 public class PdbidsDescriptor extends
22 jalview.schemabinding.version2.descriptors.PdbentryDescriptor
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 PdbidsDescriptor()
56 setExtendsWithoutFlatten(new jalview.schemabinding.version2.descriptors.PdbentryDescriptor());
57 _nsURI = "www.jalview.org";
59 _elementDefinition = true;
61 // -- set grouping compositor
62 setCompositorAsSequence();
63 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
64 org.exolab.castor.mapping.FieldHandler handler = null;
65 org.exolab.castor.xml.FieldValidator fieldValidator = null;
66 // -- initialize attribute descriptors
68 // -- initialize element descriptors
70 // -- _structureStateList
71 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
72 jalview.schemabinding.version2.StructureState.class,
73 "_structureStateList", "structureState",
74 org.exolab.castor.xml.NodeType.Element);
75 handler = new org.exolab.castor.xml.XMLFieldHandler()
77 public java.lang.Object getValue(java.lang.Object object)
78 throws IllegalStateException
80 Pdbids target = (Pdbids) object;
81 return target.getStructureState();
84 public void setValue(java.lang.Object object, java.lang.Object value)
85 throws IllegalStateException, IllegalArgumentException
89 Pdbids target = (Pdbids) object;
90 target.addStructureState((jalview.schemabinding.version2.StructureState) value);
91 } catch (java.lang.Exception ex)
93 throw new IllegalStateException(ex.toString());
97 public void resetValue(Object object) throws IllegalStateException,
98 IllegalArgumentException
102 Pdbids target = (Pdbids) object;
103 target.removeAllStructureState();
104 } catch (java.lang.Exception ex)
106 throw new IllegalStateException(ex.toString());
110 public java.lang.Object newInstance(java.lang.Object parent)
112 return new jalview.schemabinding.version2.StructureState();
115 desc.setHandler(handler);
116 desc.setNameSpaceURI("www.jalview.org");
117 desc.setMultivalued(true);
118 addFieldDescriptor(desc);
120 // -- validation code for: _structureStateList
121 fieldValidator = new org.exolab.castor.xml.FieldValidator();
122 fieldValidator.setMinOccurs(0);
125 desc.setValidator(fieldValidator);
133 * Method getAccessMode.
135 * @return the access mode specified for this class.
137 public org.exolab.castor.mapping.AccessMode getAccessMode()
143 * Method getIdentity.
145 * @return the identity field, null if this class has no identity.
147 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
149 return super.getIdentity();
153 * Method getJavaClass.
155 * @return the Java class represented by this descriptor.
157 public java.lang.Class getJavaClass()
159 return jalview.schemabinding.version2.Pdbids.class;
163 * Method getNameSpacePrefix.
165 * @return the namespace prefix to use when marshaling as XML.
167 public java.lang.String getNameSpacePrefix()
173 * Method getNameSpaceURI.
175 * @return the namespace URI used when marshaling and unmarshaling as XML.
177 public java.lang.String getNameSpaceURI()
183 * Method getValidator.
185 * @return a specific validator for the class described by this
188 public org.exolab.castor.xml.TypeValidator getValidator()
196 * @return the XML Name for the Class being described.
198 public java.lang.String getXMLName()
204 * Method isElementDefinition.
206 * @return true if XML schema definition of this Class is that of a global
207 * element or element with anonymous type definition.
209 public boolean isElementDefinition()
211 return _elementDefinition;