2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
17 * Class PdbentryItem.
\r
19 * @version $Revision$ $Date$
\r
21 public class PdbentryItem
\r
22 implements java.io.Serializable
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
30 * Field _propertyList
\r
32 private java.util.Vector _propertyList;
\r
38 public PdbentryItem()
\r
41 _propertyList = new Vector();
\r
42 } //-- jalview.schemabinding.version2.PdbentryItem()
\r
49 * Method addProperty
\r
55 public void addProperty(jalview.schemabinding.version2.Property vProperty)
\r
56 throws java.lang.IndexOutOfBoundsException
\r
58 _propertyList.addElement(vProperty);
\r
59 } //-- void addProperty(jalview.schemabinding.version2.Property)
\r
62 * Method addProperty
\r
69 public void addProperty(int index,
\r
70 jalview.schemabinding.version2.Property vProperty)
\r
71 throws java.lang.IndexOutOfBoundsException
\r
73 _propertyList.insertElementAt(vProperty, index);
\r
74 } //-- void addProperty(int, jalview.schemabinding.version2.Property)
\r
77 * Method enumerateProperty
\r
81 * @return Enumeration
\r
83 public java.util.Enumeration enumerateProperty()
\r
85 return _propertyList.elements();
\r
86 } //-- java.util.Enumeration enumerateProperty()
\r
89 * Method getProperty
\r
96 public jalview.schemabinding.version2.Property getProperty(int index)
\r
97 throws java.lang.IndexOutOfBoundsException
\r
99 //-- check bounds for index
\r
100 if ( (index < 0) || (index > _propertyList.size()))
\r
102 throw new IndexOutOfBoundsException();
\r
105 return (jalview.schemabinding.version2.Property) _propertyList.elementAt(
\r
107 } //-- jalview.schemabinding.version2.Property getProperty(int)
\r
110 * Method getProperty
\r
116 public jalview.schemabinding.version2.Property[] getProperty()
\r
118 int size = _propertyList.size();
\r
119 jalview.schemabinding.version2.Property[] mArray = new jalview.
\r
120 schemabinding.version2.Property[size];
\r
121 for (int index = 0; index < size; index++)
\r
123 mArray[index] = (jalview.schemabinding.version2.Property) _propertyList.
\r
127 } //-- jalview.schemabinding.version2.Property[] getProperty()
\r
130 * Method getPropertyCount
\r
136 public int getPropertyCount()
\r
138 return _propertyList.size();
\r
139 } //-- int getPropertyCount()
\r
142 * Method removeAllProperty
\r
145 public void removeAllProperty()
\r
147 _propertyList.removeAllElements();
\r
148 } //-- void removeAllProperty()
\r
151 * Method removeProperty
\r
158 public jalview.schemabinding.version2.Property removeProperty(int index)
\r
160 java.lang.Object obj = _propertyList.elementAt(index);
\r
161 _propertyList.removeElementAt(index);
\r
162 return (jalview.schemabinding.version2.Property) obj;
\r
163 } //-- jalview.schemabinding.version2.Property removeProperty(int)
\r
166 * Method setProperty
\r
173 public void setProperty(int index,
\r
174 jalview.schemabinding.version2.Property vProperty)
\r
175 throws java.lang.IndexOutOfBoundsException
\r
177 //-- check bounds for index
\r
178 if ( (index < 0) || (index > _propertyList.size()))
\r
180 throw new IndexOutOfBoundsException();
\r
182 _propertyList.setElementAt(vProperty, index);
\r
183 } //-- void setProperty(int, jalview.schemabinding.version2.Property)
\r
186 * Method setProperty
\r
190 * @param propertyArray
\r
192 public void setProperty(jalview.schemabinding.version2.Property[]
\r
196 _propertyList.removeAllElements();
\r
197 for (int i = 0; i < propertyArray.length; i++)
\r
199 _propertyList.addElement(propertyArray[i]);
\r
201 } //-- void setProperty(jalview.schemabinding.version2.Property)
\r