public class Attributes extends Object implements Serializable
Constructor and Description |
---|
Attributes() |
Modifier and Type | Method and Description |
---|---|
void |
addAttrib(Attrib vAttrib) |
void |
addAttrib(int index,
Attrib vAttrib) |
Enumeration<Attrib> |
enumerateAttrib()
Method enumerateAttrib.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Attrib[] |
getAttrib()
Method getAttrib.Returns the contents of the collection in
an Array.
|
Attrib |
getAttrib(int index)
Method getAttrib.
|
List<Attrib> |
getAttribCollection()
Method getAttribCollection.Returns a reference to
'_attribList'.
|
int |
getAttribCount()
Method getAttribCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Attrib> |
iterateAttrib()
Method iterateAttrib.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllAttrib() |
boolean |
removeAttrib(Attrib vAttrib)
Method removeAttrib.
|
Attrib |
removeAttribAt(int index)
Method removeAttribAt.
|
void |
setAttrib(Attrib[] vAttribArray) |
void |
setAttrib(int index,
Attrib vAttrib) |
void |
setAttrib(List<Attrib> vAttribList)
Sets the value of '_attribList' by copying the given Vector.
|
void |
setAttribCollection(List<Attrib> attribList)
Deprecated.
|
static Attributes |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addAttrib(Attrib vAttrib) throws IndexOutOfBoundsException
vAttrib
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addAttrib(int index, Attrib vAttrib) throws IndexOutOfBoundsException
index
- vAttrib
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Attrib> enumerateAttrib()
public boolean equals(Object obj)
public Attrib getAttrib(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Attrib[] getAttrib()
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<Attrib> getAttribCollection()
public int getAttribCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Attrib> iterateAttrib()
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 removeAllAttrib()
public boolean removeAttrib(Attrib vAttrib)
vAttrib
- public Attrib removeAttribAt(int index)
index
- public void setAttrib(int index, Attrib vAttrib) throws IndexOutOfBoundsException
index
- vAttrib
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setAttrib(Attrib[] vAttribArray)
vAttribArray
- public void setAttrib(List<Attrib> vAttribList)
vAttribList
- the Vector to copy.public void setAttribCollection(List<Attrib> attribList)
attribList
- the Vector to set.public static Attributes 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.