public class Mapping extends Object implements Serializable
Constructor and Description |
---|
Mapping() |
Modifier and Type | Method and Description |
---|---|
void |
addAssignment(Assignment vAssignment) |
void |
addAssignment(int index,
Assignment vAssignment) |
void |
deletePreserveSnmpData() |
Enumeration<Assignment> |
enumerateAssignment()
Method enumerateAssignment.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Assignment[] |
getAssignment()
Method getAssignment.Returns the contents of the collection
in an Array.
|
Assignment |
getAssignment(int index)
Method getAssignment.
|
List<Assignment> |
getAssignmentCollection()
Method getAssignmentCollection.Returns a reference to
'_assignmentList'.
|
int |
getAssignmentCount()
Method getAssignmentCount.
|
boolean |
getPreserveSnmpData()
Returns the value of field 'preserveSnmpData'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
hasPreserveSnmpData()
Method hasPreserveSnmpData.
|
boolean |
isPreserveSnmpData()
Returns the value of field 'preserveSnmpData'.
|
boolean |
isValid()
Method isValid.
|
Iterator<Assignment> |
iterateAssignment()
Method iterateAssignment.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllAssignment() |
boolean |
removeAssignment(Assignment vAssignment)
Method removeAssignment.
|
Assignment |
removeAssignmentAt(int index)
Method removeAssignmentAt.
|
void |
setAssignment(Assignment[] vAssignmentArray) |
void |
setAssignment(int index,
Assignment vAssignment) |
void |
setAssignment(List<Assignment> vAssignmentList)
Sets the value of '_assignmentList' by copying the given
Vector.
|
void |
setAssignmentCollection(List<Assignment> assignmentList)
Deprecated.
|
void |
setPreserveSnmpData(boolean preserveSnmpData)
Sets the value of field 'preserveSnmpData'.
|
static Mapping |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addAssignment(Assignment vAssignment) throws IndexOutOfBoundsException
vAssignment
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addAssignment(int index, Assignment vAssignment) throws IndexOutOfBoundsException
index
- vAssignment
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deletePreserveSnmpData()
public Enumeration<Assignment> enumerateAssignment()
public boolean equals(Object obj)
public Assignment getAssignment(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Assignment[] getAssignment()
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<Assignment> getAssignmentCollection()
public int getAssignmentCount()
public boolean getPreserveSnmpData()
public boolean hasPreserveSnmpData()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isPreserveSnmpData()
public boolean isValid()
public Iterator<Assignment> iterateAssignment()
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 removeAllAssignment()
public boolean removeAssignment(Assignment vAssignment)
vAssignment
- public Assignment removeAssignmentAt(int index)
index
- public void setAssignment(int index, Assignment vAssignment) throws IndexOutOfBoundsException
index
- vAssignment
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setAssignment(Assignment[] vAssignmentArray)
vAssignmentArray
- public void setAssignment(List<Assignment> vAssignmentList)
vAssignmentList
- the Vector to copy.public void setAssignmentCollection(List<Assignment> assignmentList)
assignmentList
- the Vector to set.public void setPreserveSnmpData(boolean preserveSnmpData)
preserveSnmpData
- the value of field 'preserveSnmpData'public static Mapping 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.