|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.datacollection.IpList
public class IpList
list of IP address or IP address mask values to which this system definition applies.
| Constructor Summary | |
|---|---|
IpList()
|
|
| Method Summary | |
|---|---|
void |
addIpAddr(int index,
String vIpAddr)
|
void |
addIpAddr(String vIpAddr)
|
void |
addIpAddrMask(int index,
String vIpAddrMask)
|
void |
addIpAddrMask(String vIpAddrMask)
|
Enumeration<String> |
enumerateIpAddr()
Method enumerateIpAddr. |
Enumeration<String> |
enumerateIpAddrMask()
Method enumerateIpAddrMask. |
String[] |
getIpAddr()
Method getIpAddr.Returns the contents of the collection in an Array. |
String |
getIpAddr(int index)
Method getIpAddr. |
List<String> |
getIpAddrCollection()
Method getIpAddrCollection.Returns a reference to '_ipAddrList'. |
int |
getIpAddrCount()
Method getIpAddrCount. |
String[] |
getIpAddrMask()
Method getIpAddrMask.Returns the contents of the collection in an Array. |
String |
getIpAddrMask(int index)
Method getIpAddrMask. |
List<String> |
getIpAddrMaskCollection()
Method getIpAddrMaskCollection.Returns a reference to '_ipAddrMaskList'. |
int |
getIpAddrMaskCount()
Method getIpAddrMaskCount. |
boolean |
isValid()
Method isValid. |
Iterator<String> |
iterateIpAddr()
Method iterateIpAddr. |
Iterator<String> |
iterateIpAddrMask()
Method iterateIpAddrMask. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllIpAddr()
|
void |
removeAllIpAddrMask()
|
boolean |
removeIpAddr(String vIpAddr)
Method removeIpAddr. |
String |
removeIpAddrAt(int index)
Method removeIpAddrAt. |
boolean |
removeIpAddrMask(String vIpAddrMask)
Method removeIpAddrMask. |
String |
removeIpAddrMaskAt(int index)
Method removeIpAddrMaskAt. |
void |
setIpAddr(int index,
String vIpAddr)
|
void |
setIpAddr(List<String> vIpAddrList)
Sets the value of '_ipAddrList' by copying the given Vector. |
void |
setIpAddr(String[] vIpAddrArray)
|
void |
setIpAddrCollection(List<String> ipAddrList)
Deprecated. |
void |
setIpAddrMask(int index,
String vIpAddrMask)
|
void |
setIpAddrMask(List<String> vIpAddrMaskList)
Sets the value of '_ipAddrMaskList' by copying the given Vector. |
void |
setIpAddrMask(String[] vIpAddrMaskArray)
|
void |
setIpAddrMaskCollection(List<String> ipAddrMaskList)
Deprecated. |
static IpList |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IpList()
| Method Detail |
|---|
public void addIpAddr(String vIpAddr)
throws IndexOutOfBoundsException
vIpAddr -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addIpAddr(int index,
String vIpAddr)
throws IndexOutOfBoundsException
index - vIpAddr -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addIpAddrMask(String vIpAddrMask)
throws IndexOutOfBoundsException
vIpAddrMask -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addIpAddrMask(int index,
String vIpAddrMask)
throws IndexOutOfBoundsException
index - vIpAddrMask -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<String> enumerateIpAddr()
public Enumeration<String> enumerateIpAddrMask()
public String getIpAddr(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getIpAddr()
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<String> getIpAddrCollection()
public int getIpAddrCount()
public String getIpAddrMask(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getIpAddrMask()
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<String> getIpAddrMaskCollection()
public int getIpAddrMaskCount()
public boolean isValid()
public Iterator<String> iterateIpAddr()
public Iterator<String> iterateIpAddrMask()
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 removeAllIpAddr()
public void removeAllIpAddrMask()
public boolean removeIpAddr(String vIpAddr)
vIpAddr -
public String removeIpAddrAt(int index)
index -
public boolean removeIpAddrMask(String vIpAddrMask)
vIpAddrMask -
public String removeIpAddrMaskAt(int index)
index -
public void setIpAddr(int index,
String vIpAddr)
throws IndexOutOfBoundsException
index - vIpAddr -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setIpAddr(String[] vIpAddrArray)
vIpAddrArray - public void setIpAddr(List<String> vIpAddrList)
vIpAddrList - the Vector to copy.public void setIpAddrCollection(List<String> ipAddrList)
ipAddrList - the Vector to set.
public void setIpAddrMask(int index,
String vIpAddrMask)
throws IndexOutOfBoundsException
index - vIpAddrMask -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setIpAddrMask(String[] vIpAddrMaskArray)
vIpAddrMaskArray - public void setIpAddrMask(List<String> vIpAddrMaskList)
vIpAddrMaskList - the Vector to copy.public void setIpAddrMaskCollection(List<String> ipAddrMaskList)
ipAddrMaskList - the Vector to set.
public static IpList 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 | ||||||||