org.opennms.netmgt.xml.eventconf
Class Mask

java.lang.Object
  extended by org.opennms.netmgt.xml.eventconf.Mask
All Implemented Interfaces:
java.io.Serializable

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

The Mask for event configuration: The mask contains one or more 'maskelements' which uniquely identify an event. XXX need to add information about varbind

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

Constructor Summary
Mask()
           
 
Method Summary
 void addMaskelement(int index, Maskelement vMaskelement)
          Method addMaskelement
 void addMaskelement(Maskelement vMaskelement)
          Method addMaskelement
 void addVarbind(int index, Varbind vVarbind)
          Method addVarbind
 void addVarbind(Varbind vVarbind)
          Method addVarbind
 void clearMaskelement()
          Method clearMaskelement
 void clearVarbind()
          Method clearVarbind
 java.util.Enumeration enumerateMaskelement()
          Method enumerateMaskelement
 java.util.Enumeration enumerateVarbind()
          Method enumerateVarbind
 Maskelement[] getMaskelement()
          Method getMaskelement
 Maskelement getMaskelement(int index)
          Method getMaskelement
 java.util.ArrayList getMaskelementCollection()
          Method getMaskelementCollection Returns a reference to 'maskelement'.
 int getMaskelementCount()
          Method getMaskelementCount
 Varbind[] getVarbind()
          Method getVarbind
 Varbind getVarbind(int index)
          Method getVarbind
 java.util.ArrayList getVarbindCollection()
          Method getVarbindCollection Returns a reference to 'varbind'.
 int getVarbindCount()
          Method getVarbindCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeMaskelement(Maskelement vMaskelement)
          Method removeMaskelement
 boolean removeVarbind(Varbind vVarbind)
          Method removeVarbind
 void setMaskelement(java.util.ArrayList maskelementCollection)
          Method setMaskelement Sets the value of 'maskelement' by copying the given ArrayList.
 void setMaskelement(int index, Maskelement vMaskelement)
          Method setMaskelement
 void setMaskelement(Maskelement[] maskelementArray)
          Method setMaskelement
 void setMaskelementCollection(java.util.ArrayList maskelementCollection)
          Method setMaskelementCollection Sets the value of 'maskelement' by setting it to the given ArrayList.
 void setVarbind(java.util.ArrayList varbindCollection)
          Method setVarbind Sets the value of 'varbind' by copying the given ArrayList.
 void setVarbind(int index, Varbind vVarbind)
          Method setVarbind
 void setVarbind(Varbind[] varbindArray)
          Method setVarbind
 void setVarbindCollection(java.util.ArrayList varbindCollection)
          Method setVarbindCollection Sets the value of 'varbind' 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

Mask

public Mask()
Method Detail

addMaskelement

public void addMaskelement(Maskelement vMaskelement)
                    throws java.lang.IndexOutOfBoundsException
Method addMaskelement

Parameters:
vMaskelement -
Throws:
java.lang.IndexOutOfBoundsException

addMaskelement

public void addMaskelement(int index,
                           Maskelement vMaskelement)
                    throws java.lang.IndexOutOfBoundsException
Method addMaskelement

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

addVarbind

public void addVarbind(Varbind vVarbind)
                throws java.lang.IndexOutOfBoundsException
Method addVarbind

Parameters:
vVarbind -
Throws:
java.lang.IndexOutOfBoundsException

addVarbind

public void addVarbind(int index,
                       Varbind vVarbind)
                throws java.lang.IndexOutOfBoundsException
Method addVarbind

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

clearMaskelement

public void clearMaskelement()
Method clearMaskelement


clearVarbind

public void clearVarbind()
Method clearVarbind


enumerateMaskelement

public java.util.Enumeration enumerateMaskelement()
Method enumerateMaskelement

Returns:
Enumeration

enumerateVarbind

public java.util.Enumeration enumerateVarbind()
Method enumerateVarbind

Returns:
Enumeration

getMaskelement

public Maskelement getMaskelement(int index)
                           throws java.lang.IndexOutOfBoundsException
Method getMaskelement

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

getMaskelement

public Maskelement[] getMaskelement()
Method getMaskelement

Returns:
Maskelement

getMaskelementCollection

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

Returns:
ArrayList

getMaskelementCount

public int getMaskelementCount()
Method getMaskelementCount

Returns:
int

getVarbind

public Varbind getVarbind(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getVarbind

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

getVarbind

public Varbind[] getVarbind()
Method getVarbind

Returns:
Varbind

getVarbindCollection

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

Returns:
ArrayList

getVarbindCount

public int getVarbindCount()
Method getVarbindCount

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

removeMaskelement

public boolean removeMaskelement(Maskelement vMaskelement)
Method removeMaskelement

Parameters:
vMaskelement -
Returns:
boolean

removeVarbind

public boolean removeVarbind(Varbind vVarbind)
Method removeVarbind

Parameters:
vVarbind -
Returns:
boolean

setMaskelement

public void setMaskelement(int index,
                           Maskelement vMaskelement)
                    throws java.lang.IndexOutOfBoundsException
Method setMaskelement

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

setMaskelement

public void setMaskelement(Maskelement[] maskelementArray)
Method setMaskelement

Parameters:
maskelementArray -

setMaskelement

public void setMaskelement(java.util.ArrayList maskelementCollection)
Method setMaskelement Sets the value of 'maskelement' by copying the given ArrayList.

Parameters:
maskelementCollection - the Vector to copy.

setMaskelementCollection

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

Parameters:
maskelementCollection - the ArrayList to copy.

setVarbind

public void setVarbind(int index,
                       Varbind vVarbind)
                throws java.lang.IndexOutOfBoundsException
Method setVarbind

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

setVarbind

public void setVarbind(Varbind[] varbindArray)
Method setVarbind

Parameters:
varbindArray -

setVarbind

public void setVarbind(java.util.ArrayList varbindCollection)
Method setVarbind Sets the value of 'varbind' by copying the given ArrayList.

Parameters:
varbindCollection - the Vector to copy.

setVarbindCollection

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

Parameters:
varbindCollection - 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.