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.PdbentryItem;
17 * Class PdbentryItemDescriptor.
19 * @version $Revision$ $Date$
21 public class PdbentryItemDescriptor extends
22 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 PdbentryItemDescriptor()
56 _nsURI = "www.jalview.org";
57 _xmlName = "pdbentry";
58 _elementDefinition = false;
60 // -- set grouping compositor
61 setCompositorAsSequence();
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.Property.class, "_propertyList",
72 "property", org.exolab.castor.xml.NodeType.Element);
73 handler = new org.exolab.castor.xml.XMLFieldHandler()
75 public java.lang.Object getValue(java.lang.Object object)
76 throws IllegalStateException
78 PdbentryItem target = (PdbentryItem) object;
79 return target.getProperty();
82 public void setValue(java.lang.Object object, java.lang.Object value)
83 throws IllegalStateException, IllegalArgumentException
87 PdbentryItem target = (PdbentryItem) object;
88 target.addProperty((jalview.schemabinding.version2.Property) value);
89 } catch (java.lang.Exception ex)
91 throw new IllegalStateException(ex.toString());
95 public void resetValue(Object object) throws IllegalStateException,
96 IllegalArgumentException
100 PdbentryItem target = (PdbentryItem) object;
101 target.removeAllProperty();
102 } catch (java.lang.Exception ex)
104 throw new IllegalStateException(ex.toString());
108 public java.lang.Object newInstance(java.lang.Object parent)
110 return new jalview.schemabinding.version2.Property();
113 desc.setHandler(handler);
114 desc.setNameSpaceURI("www.jalview.org");
115 desc.setMultivalued(true);
116 addFieldDescriptor(desc);
118 // -- validation code for: _propertyList
119 fieldValidator = new org.exolab.castor.xml.FieldValidator();
120 fieldValidator.setMinOccurs(0);
123 desc.setValidator(fieldValidator);
131 * Method getAccessMode.
133 * @return the access mode specified for this class.
135 public org.exolab.castor.mapping.AccessMode getAccessMode()
141 * Method getIdentity.
143 * @return the identity field, null if this class has no identity.
145 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
147 return super.getIdentity();
151 * Method getJavaClass.
153 * @return the Java class represented by this descriptor.
155 public java.lang.Class getJavaClass()
157 return jalview.schemabinding.version2.PdbentryItem.class;
161 * Method getNameSpacePrefix.
163 * @return the namespace prefix to use when marshaling as XML.
165 public java.lang.String getNameSpacePrefix()
171 * Method getNameSpaceURI.
173 * @return the namespace URI used when marshaling and unmarshaling as XML.
175 public java.lang.String getNameSpaceURI()
181 * Method getValidator.
183 * @return a specific validator for the class described by this
186 public org.exolab.castor.xml.TypeValidator getValidator()
194 * @return the XML Name for the Class being described.
196 public java.lang.String getXMLName()
202 * Method isElementDefinition.
204 * @return true if XML schema definition of this Class is that of a global
205 * element or element with anonymous type definition.
207 public boolean isElementDefinition()
209 return _elementDefinition;