|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.map.adapter.Cmaps
public class Cmaps
Configuration of maps functionality
| Constructor Summary | |
|---|---|
Cmaps()
|
|
| Method Summary | |
|---|---|
void |
addCmap(Cmap vCmap)
|
void |
addCmap(int index,
Cmap vCmap)
|
Enumeration<Cmap> |
enumerateCmap()
Method enumerateCmap. |
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
Cmap[] |
getCmap()
Method getCmap.Returns the contents of the collection in an Array. |
Cmap |
getCmap(int index)
Method getCmap. |
List<Cmap> |
getCmapCollection()
Method getCmapCollection.Returns a reference to '_cmapList'. |
int |
getCmapCount()
Method getCmapCount. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
Iterator<Cmap> |
iterateCmap()
Method iterateCmap. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllCmap()
|
boolean |
removeCmap(Cmap vCmap)
Method removeCmap. |
Cmap |
removeCmapAt(int index)
Method removeCmapAt. |
void |
setCmap(Cmap[] vCmapArray)
|
void |
setCmap(int index,
Cmap vCmap)
|
void |
setCmap(List<Cmap> vCmapList)
Sets the value of '_cmapList' by copying the given Vector. |
void |
setCmapCollection(List<Cmap> cmapList)
Deprecated. |
static Cmaps |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cmaps()
| Method Detail |
|---|
public void addCmap(Cmap vCmap)
throws IndexOutOfBoundsException
vCmap -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addCmap(int index,
Cmap vCmap)
throws IndexOutOfBoundsException
index - vCmap -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Cmap> enumerateCmap()
public boolean equals(Object obj)
equals in class Objectobj -
public Cmap getCmap(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Cmap[] getCmap()
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<Cmap> getCmapCollection()
public int getCmapCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode in class Objectpublic boolean isValid()
public Iterator<Cmap> iterateCmap()
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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllCmap()
public boolean removeCmap(Cmap vCmap)
vCmap -
public Cmap removeCmapAt(int index)
index -
public void setCmap(int index,
Cmap vCmap)
throws IndexOutOfBoundsException
index - vCmap -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setCmap(Cmap[] vCmapArray)
vCmapArray - public void setCmap(List<Cmap> vCmapList)
vCmapList - the Vector to copy.public void setCmapCollection(List<Cmap> cmapList)
cmapList - the Vector to set.
public static Cmaps 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||