public class Mask extends Object implements Serializable
Constructor and Description |
---|
Mask() |
Modifier and Type | Method and Description |
---|---|
void |
addMaskelement(int index,
Maskelement vMaskelement) |
void |
addMaskelement(Maskelement vMaskelement) |
void |
addVarbind(int index,
Varbind vVarbind) |
void |
addVarbind(Varbind vVarbind) |
Enumeration<Maskelement> |
enumerateMaskelement()
Method enumerateMaskelement.
|
Enumeration<Varbind> |
enumerateVarbind()
Method enumerateVarbind.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Maskelement[] |
getMaskelement()
Method getMaskelement.Returns the contents of the collection
in an Array.
|
Maskelement |
getMaskelement(int index)
Method getMaskelement.
|
List<Maskelement> |
getMaskelementCollection()
Method getMaskelementCollection.Returns a reference to
'_maskelementList'.
|
int |
getMaskelementCount()
Method getMaskelementCount.
|
Varbind[] |
getVarbind()
Method getVarbind.Returns the contents of the collection in
an Array.
|
Varbind |
getVarbind(int index)
Method getVarbind.
|
List<Varbind> |
getVarbindCollection()
Method getVarbindCollection.Returns a reference to
'_varbindList'.
|
int |
getVarbindCount()
Method getVarbindCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Maskelement> |
iterateMaskelement()
Method iterateMaskelement.
|
Iterator<Varbind> |
iterateVarbind()
Method iterateVarbind.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllMaskelement() |
void |
removeAllVarbind() |
boolean |
removeMaskelement(Maskelement vMaskelement)
Method removeMaskelement.
|
Maskelement |
removeMaskelementAt(int index)
Method removeMaskelementAt.
|
boolean |
removeVarbind(Varbind vVarbind)
Method removeVarbind.
|
Varbind |
removeVarbindAt(int index)
Method removeVarbindAt.
|
void |
setMaskelement(int index,
Maskelement vMaskelement) |
void |
setMaskelement(List<Maskelement> vMaskelementList)
Sets the value of '_maskelementList' by copying the given
Vector.
|
void |
setMaskelement(Maskelement[] vMaskelementArray) |
void |
setMaskelementCollection(List<Maskelement> maskelementList)
Deprecated.
|
void |
setVarbind(int index,
Varbind vVarbind) |
void |
setVarbind(List<Varbind> vVarbindList)
Sets the value of '_varbindList' by copying the given
Vector.
|
void |
setVarbind(Varbind[] vVarbindArray) |
void |
setVarbindCollection(List<Varbind> varbindList)
Deprecated.
|
static Mask |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addMaskelement(Maskelement vMaskelement) throws IndexOutOfBoundsException
vMaskelement
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addMaskelement(int index, Maskelement vMaskelement) throws IndexOutOfBoundsException
index
- vMaskelement
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addVarbind(Varbind vVarbind) throws IndexOutOfBoundsException
vVarbind
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addVarbind(int index, Varbind vVarbind) throws IndexOutOfBoundsException
index
- vVarbind
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Maskelement> enumerateMaskelement()
public Enumeration<Varbind> enumerateVarbind()
public boolean equals(Object obj)
public Maskelement getMaskelement(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Maskelement[] getMaskelement()
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<Maskelement> getMaskelementCollection()
public int getMaskelementCount()
public Varbind getVarbind(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Varbind[] getVarbind()
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<Varbind> getVarbindCollection()
public int getVarbindCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Maskelement> iterateMaskelement()
public Iterator<Varbind> iterateVarbind()
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 removeAllMaskelement()
public void removeAllVarbind()
public boolean removeMaskelement(Maskelement vMaskelement)
vMaskelement
- public Maskelement removeMaskelementAt(int index)
index
- public boolean removeVarbind(Varbind vVarbind)
vVarbind
- public Varbind removeVarbindAt(int index)
index
- public void setMaskelement(int index, Maskelement vMaskelement) throws IndexOutOfBoundsException
index
- vMaskelement
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setMaskelement(Maskelement[] vMaskelementArray)
vMaskelementArray
- public void setMaskelement(List<Maskelement> vMaskelementList)
vMaskelementList
- the Vector to copy.public void setMaskelementCollection(List<Maskelement> maskelementList)
maskelementList
- the Vector to set.public void setVarbind(int index, Varbind vVarbind) throws IndexOutOfBoundsException
index
- vVarbind
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setVarbind(Varbind[] vVarbindArray)
vVarbindArray
- public void setVarbind(List<Varbind> vVarbindList)
vVarbindList
- the Vector to copy.public void setVarbindCollection(List<Varbind> varbindList)
varbindList
- the Vector to set.public static Mask 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 © 2015. All Rights Reserved.