public class Columns extends Object implements Serializable
Constructor and Description |
---|
Columns() |
Modifier and Type | Method and Description |
---|---|
void |
addColumnDef(ColumnDef vColumnDef) |
void |
addColumnDef(int index,
ColumnDef vColumnDef) |
Enumeration<ColumnDef> |
enumerateColumnDef()
Method enumerateColumnDef.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
ColumnDef[] |
getColumnDef()
Method getColumnDef.Returns the contents of the collection
in an Array.
|
ColumnDef |
getColumnDef(int index)
Method getColumnDef.
|
List<ColumnDef> |
getColumnDefCollection()
Method getColumnDefCollection.Returns a reference to
'_columnDefList'.
|
int |
getColumnDefCount()
Method getColumnDefCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<ColumnDef> |
iterateColumnDef()
Method iterateColumnDef.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllColumnDef() |
boolean |
removeColumnDef(ColumnDef vColumnDef)
Method removeColumnDef.
|
ColumnDef |
removeColumnDefAt(int index)
Method removeColumnDefAt.
|
void |
setColumnDef(ColumnDef[] vColumnDefArray) |
void |
setColumnDef(int index,
ColumnDef vColumnDef) |
void |
setColumnDef(List<ColumnDef> vColumnDefList)
Sets the value of '_columnDefList' by copying the given
Vector.
|
void |
setColumnDefCollection(List<ColumnDef> columnDefList)
Deprecated.
|
static Columns |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addColumnDef(ColumnDef vColumnDef) throws IndexOutOfBoundsException
vColumnDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addColumnDef(int index, ColumnDef vColumnDef) throws IndexOutOfBoundsException
index
- vColumnDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<ColumnDef> enumerateColumnDef()
public boolean equals(Object obj)
public ColumnDef getColumnDef(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic ColumnDef[] getColumnDef()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<ColumnDef> getColumnDefCollection()
public int getColumnDefCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<ColumnDef> iterateColumnDef()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllColumnDef()
public boolean removeColumnDef(ColumnDef vColumnDef)
vColumnDef
- public ColumnDef removeColumnDefAt(int index)
index
- public void setColumnDef(int index, ColumnDef vColumnDef) throws IndexOutOfBoundsException
index
- vColumnDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setColumnDef(ColumnDef[] vColumnDefArray)
vColumnDefArray
- public void setColumnDef(List<ColumnDef> vColumnDefList)
vColumnDefList
- the Vector to copy.public void setColumnDefCollection(List<ColumnDef> columnDefList)
columnDefList
- the Vector to set.public static Columns unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2017. All rights reserved.