org.opennms.netmgt.config.datacollection
Class IpList

java.lang.Object
  extended by org.opennms.netmgt.config.datacollection.IpList
All Implemented Interfaces:
java.io.Serializable

public class IpList
extends java.lang.Object
implements java.io.Serializable

list of IP address or IP address mask values to which this system definition applies.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
IpList()
           
 
Method Summary
 void addIpAddr(int index, java.lang.String vIpAddr)
          Method addIpAddr
 void addIpAddr(java.lang.String vIpAddr)
          Method addIpAddr
 void addIpAddrMask(int index, java.lang.String vIpAddrMask)
          Method addIpAddrMask
 void addIpAddrMask(java.lang.String vIpAddrMask)
          Method addIpAddrMask
 void clearIpAddr()
          Method clearIpAddr
 void clearIpAddrMask()
          Method clearIpAddrMask
 java.util.Enumeration enumerateIpAddr()
          Method enumerateIpAddr
 java.util.Enumeration enumerateIpAddrMask()
          Method enumerateIpAddrMask
 java.lang.String[] getIpAddr()
          Method getIpAddr
 java.lang.String getIpAddr(int index)
          Method getIpAddr
 java.util.ArrayList getIpAddrCollection()
          Method getIpAddrCollection Returns a reference to 'ipAddr'.
 int getIpAddrCount()
          Method getIpAddrCount
 java.lang.String[] getIpAddrMask()
          Method getIpAddrMask
 java.lang.String getIpAddrMask(int index)
          Method getIpAddrMask
 java.util.ArrayList getIpAddrMaskCollection()
          Method getIpAddrMaskCollection Returns a reference to 'ipAddrMask'.
 int getIpAddrMaskCount()
          Method getIpAddrMaskCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeIpAddr(java.lang.String vIpAddr)
          Method removeIpAddr
 boolean removeIpAddrMask(java.lang.String vIpAddrMask)
          Method removeIpAddrMask
 void setIpAddr(java.util.ArrayList ipAddrCollection)
          Method setIpAddr Sets the value of 'ipAddr' by copying the given ArrayList.
 void setIpAddr(int index, java.lang.String vIpAddr)
          Method setIpAddr
 void setIpAddr(java.lang.String[] ipAddrArray)
          Method setIpAddr
 void setIpAddrCollection(java.util.ArrayList ipAddrCollection)
          Method setIpAddrCollection Sets the value of 'ipAddr' by setting it to the given ArrayList.
 void setIpAddrMask(java.util.ArrayList ipAddrMaskCollection)
          Method setIpAddrMask Sets the value of 'ipAddrMask' by copying the given ArrayList.
 void setIpAddrMask(int index, java.lang.String vIpAddrMask)
          Method setIpAddrMask
 void setIpAddrMask(java.lang.String[] ipAddrMaskArray)
          Method setIpAddrMask
 void setIpAddrMaskCollection(java.util.ArrayList ipAddrMaskCollection)
          Method setIpAddrMaskCollection Sets the value of 'ipAddrMask' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpList

public IpList()
Method Detail

addIpAddr

public void addIpAddr(java.lang.String vIpAddr)
               throws java.lang.IndexOutOfBoundsException
Method addIpAddr

Parameters:
vIpAddr -
Throws:
java.lang.IndexOutOfBoundsException

addIpAddr

public void addIpAddr(int index,
                      java.lang.String vIpAddr)
               throws java.lang.IndexOutOfBoundsException
Method addIpAddr

Parameters:
index -
vIpAddr -
Throws:
java.lang.IndexOutOfBoundsException

addIpAddrMask

public void addIpAddrMask(java.lang.String vIpAddrMask)
                   throws java.lang.IndexOutOfBoundsException
Method addIpAddrMask

Parameters:
vIpAddrMask -
Throws:
java.lang.IndexOutOfBoundsException

addIpAddrMask

public void addIpAddrMask(int index,
                          java.lang.String vIpAddrMask)
                   throws java.lang.IndexOutOfBoundsException
Method addIpAddrMask

Parameters:
index -
vIpAddrMask -
Throws:
java.lang.IndexOutOfBoundsException

clearIpAddr

public void clearIpAddr()
Method clearIpAddr


clearIpAddrMask

public void clearIpAddrMask()
Method clearIpAddrMask


enumerateIpAddr

public java.util.Enumeration enumerateIpAddr()
Method enumerateIpAddr

Returns:
Enumeration

enumerateIpAddrMask

public java.util.Enumeration enumerateIpAddrMask()
Method enumerateIpAddrMask

Returns:
Enumeration

getIpAddr

public java.lang.String getIpAddr(int index)
                           throws java.lang.IndexOutOfBoundsException
Method getIpAddr

Parameters:
index -
Returns:
String
Throws:
java.lang.IndexOutOfBoundsException

getIpAddr

public java.lang.String[] getIpAddr()
Method getIpAddr

Returns:
String

getIpAddrCollection

public java.util.ArrayList getIpAddrCollection()
Method getIpAddrCollection Returns a reference to 'ipAddr'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getIpAddrCount

public int getIpAddrCount()
Method getIpAddrCount

Returns:
int

getIpAddrMask

public java.lang.String getIpAddrMask(int index)
                               throws java.lang.IndexOutOfBoundsException
Method getIpAddrMask

Parameters:
index -
Returns:
String
Throws:
java.lang.IndexOutOfBoundsException

getIpAddrMask

public java.lang.String[] getIpAddrMask()
Method getIpAddrMask

Returns:
String

getIpAddrMaskCollection

public java.util.ArrayList getIpAddrMaskCollection()
Method getIpAddrMaskCollection Returns a reference to 'ipAddrMask'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getIpAddrMaskCount

public int getIpAddrMaskCount()
Method getIpAddrMaskCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeIpAddr

public boolean removeIpAddr(java.lang.String vIpAddr)
Method removeIpAddr

Parameters:
vIpAddr -
Returns:
boolean

removeIpAddrMask

public boolean removeIpAddrMask(java.lang.String vIpAddrMask)
Method removeIpAddrMask

Parameters:
vIpAddrMask -
Returns:
boolean

setIpAddr

public void setIpAddr(int index,
                      java.lang.String vIpAddr)
               throws java.lang.IndexOutOfBoundsException
Method setIpAddr

Parameters:
index -
vIpAddr -
Throws:
java.lang.IndexOutOfBoundsException

setIpAddr

public void setIpAddr(java.lang.String[] ipAddrArray)
Method setIpAddr

Parameters:
ipAddrArray -

setIpAddr

public void setIpAddr(java.util.ArrayList ipAddrCollection)
Method setIpAddr Sets the value of 'ipAddr' by copying the given ArrayList.

Parameters:
ipAddrCollection - the Vector to copy.

setIpAddrCollection

public void setIpAddrCollection(java.util.ArrayList ipAddrCollection)
Method setIpAddrCollection Sets the value of 'ipAddr' by setting it to the given ArrayList. No type checking is performed.

Parameters:
ipAddrCollection - the ArrayList to copy.

setIpAddrMask

public void setIpAddrMask(int index,
                          java.lang.String vIpAddrMask)
                   throws java.lang.IndexOutOfBoundsException
Method setIpAddrMask

Parameters:
index -
vIpAddrMask -
Throws:
java.lang.IndexOutOfBoundsException

setIpAddrMask

public void setIpAddrMask(java.lang.String[] ipAddrMaskArray)
Method setIpAddrMask

Parameters:
ipAddrMaskArray -

setIpAddrMask

public void setIpAddrMask(java.util.ArrayList ipAddrMaskCollection)
Method setIpAddrMask Sets the value of 'ipAddrMask' by copying the given ArrayList.

Parameters:
ipAddrMaskCollection - the Vector to copy.

setIpAddrMaskCollection

public void setIpAddrMaskCollection(java.util.ArrayList ipAddrMaskCollection)
Method setIpAddrMaskCollection Sets the value of 'ipAddrMask' by setting it to the given ArrayList. No type checking is performed.

Parameters:
ipAddrMaskCollection - the ArrayList to copy.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.