public class IpList extends Object implements Serializable
Constructor and Description |
---|
IpList() |
Modifier and Type | Method and Description |
---|---|
void |
addIpAddr(int index,
String ipAddr) |
void |
addIpAddr(String ipAddr) |
void |
addIpAddrMask(int index,
String ipAddrMask) |
void |
addIpAddrMask(String ipAddrMask) |
Enumeration<String> |
enumerateIpAddr()
Method enumerateIpAddr.
|
Enumeration<String> |
enumerateIpAddrMask()
Method enumerateIpAddrMask.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
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.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Deprecated.
|
Iterator<String> |
iterateIpAddr()
Method iterateIpAddr.
|
Iterator<String> |
iterateIpAddrMask()
Method iterateIpAddrMask.
|
void |
marshal(ContentHandler handler)
Deprecated.
|
void |
marshal(Writer out)
Deprecated.
|
void |
removeAllIpAddr() |
void |
removeAllIpAddrMask() |
boolean |
removeIpAddr(String ipAddr)
Method removeIpAddr.
|
String |
removeIpAddrAt(int index)
Method removeIpAddrAt.
|
boolean |
removeIpAddrMask(String ipAddrMask)
Method removeIpAddrMask.
|
String |
removeIpAddrMaskAt(int index)
Method removeIpAddrMaskAt.
|
void |
setIpAddr(int index,
String ipAddr) |
void |
setIpAddr(List<String> ipAddrs)
Sets the value of '_ipAddrList' by copying the given Vector.
|
void |
setIpAddr(String[] ipAddrs) |
void |
setIpAddrCollection(List<String> ipAddrs)
Deprecated.
|
void |
setIpAddrMask(int index,
String ipAddrMask) |
void |
setIpAddrMask(List<String> ipAddrMasks)
Sets the value of '_ipAddrMaskList' by copying the given
Vector.
|
void |
setIpAddrMask(String[] ipAddrMasks) |
void |
setIpAddrMaskCollection(List<String> ipAddrMasks)
Deprecated.
|
static IpList |
unmarshal(Reader reader)
Deprecated.
|
void |
validate()
Deprecated.
|
public void addIpAddr(String ipAddr) throws IndexOutOfBoundsException
ipAddr
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addIpAddr(int index, String ipAddr) throws IndexOutOfBoundsException
index
- ipAddr
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addIpAddrMask(String ipAddrMask) throws IndexOutOfBoundsException
ipAddrMask
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addIpAddrMask(int index, String ipAddrMask) throws IndexOutOfBoundsException
index
- ipAddrMask
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<String> enumerateIpAddr()
public Enumeration<String> enumerateIpAddrMask()
public boolean equals(Object obj)
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 int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
@Deprecated public boolean isValid()
public Iterator<String> iterateIpAddr()
public Iterator<String> iterateIpAddrMask()
@Deprecated 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 schema@Deprecated public 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 removeAllIpAddr()
public void removeAllIpAddrMask()
public boolean removeIpAddr(String ipAddr)
ipAddr
- public String removeIpAddrAt(int index)
index
- public boolean removeIpAddrMask(String ipAddrMask)
ipAddrMask
- public String removeIpAddrMaskAt(int index)
index
- public void setIpAddr(int index, String ipAddr) throws IndexOutOfBoundsException
index
- ipAddr
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setIpAddr(String[] ipAddrs)
ipAddrs
- public void setIpAddr(List<String> ipAddrs)
ipAddrs
- the Vector to copy.public void setIpAddrCollection(List<String> ipAddrs)
ipAddrs
- the Vector to set.public void setIpAddrMask(int index, String ipAddrMask) throws IndexOutOfBoundsException
index
- ipAddrMask
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setIpAddrMask(String[] ipAddrMasks)
ipAddrMasks
- public void setIpAddrMask(List<String> ipAddrMasks)
ipAddrMasks
- the Vector to copy.public void setIpAddrMaskCollection(List<String> ipAddrMasks)
ipAddrMasks
- the Vector to set.@Deprecated 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public 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.