|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.config.poller.Outage
Field Summary | |
private java.util.ArrayList |
_interfaceList
|
private java.lang.String |
_name
|
private java.util.ArrayList |
_nodeList
|
private java.util.ArrayList |
_timeList
|
private java.lang.String |
_type
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
Outage()
|
Method Summary | |
void |
addInterface(Interface vInterface)
|
void |
addInterface(int index,
Interface vInterface)
|
void |
addNode(int index,
Node vNode)
|
void |
addNode(Node vNode)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
addTime(int index,
Time vTime)
|
void |
addTime(Time vTime)
|
void |
clearInterface()
|
void |
clearNode()
|
void |
clearTime()
|
java.util.Enumeration |
enumerateInterface()
|
java.util.Enumeration |
enumerateNode()
|
java.util.Enumeration |
enumerateTime()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
Interface[] |
getInterface()
|
Interface |
getInterface(int index)
|
java.util.Collection |
getInterfaceCollection()
|
int |
getInterfaceCount()
|
java.lang.String |
getName()
Returns the value of field 'name'. |
Node[] |
getNode()
|
Node |
getNode(int index)
|
java.util.Collection |
getNodeCollection()
|
int |
getNodeCount()
|
Time[] |
getTime()
|
Time |
getTime(int index)
|
java.util.Collection |
getTimeCollection()
|
int |
getTimeCount()
|
java.lang.String |
getType()
Returns the value of field 'type'. |
boolean |
isValid()
|
void |
marshal(org.xml.sax.DocumentHandler handler)
|
void |
marshal(java.io.Writer out)
|
protected void |
notifyPropertyChangeListeners(java.lang.String fieldName,
java.lang.Object oldValue,
java.lang.Object newValue)
Notifies all registered PropertyChangeListeners when a bound property's value changes. |
boolean |
removeInterface(Interface vInterface)
|
boolean |
removeNode(Node vNode)
|
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
boolean |
removeTime(Time vTime)
|
void |
setInterface(Interface[] _interfaceArray)
|
void |
setInterface(int index,
Interface vInterface)
|
void |
setInterfaceCollection(java.util.Collection vInterface)
|
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
void |
setNode(int index,
Node vNode)
|
void |
setNode(Node[] nodeArray)
|
void |
setNodeCollection(java.util.Collection vNode)
|
void |
setTime(int index,
Time vTime)
|
void |
setTime(Time[] timeArray)
|
void |
setTimeCollection(java.util.Collection vTime)
|
void |
setType(java.lang.String type)
Sets the value of field 'type'. |
static Outage |
unmarshal(java.io.Reader reader)
|
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String _name
private java.lang.String _type
private java.util.ArrayList _timeList
private java.util.ArrayList _interfaceList
private java.util.ArrayList _nodeList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public Outage()
Method Detail |
public void addInterface(Interface vInterface) throws java.lang.IndexOutOfBoundsException
vInterface
-
java.lang.IndexOutOfBoundsException
public void addInterface(int index, Interface vInterface) throws java.lang.IndexOutOfBoundsException
index
- vInterface
-
java.lang.IndexOutOfBoundsException
public void addNode(Node vNode) throws java.lang.IndexOutOfBoundsException
vNode
-
java.lang.IndexOutOfBoundsException
public void addNode(int index, Node vNode) throws java.lang.IndexOutOfBoundsException
index
- vNode
-
java.lang.IndexOutOfBoundsException
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void addTime(Time vTime) throws java.lang.IndexOutOfBoundsException
vTime
-
java.lang.IndexOutOfBoundsException
public void addTime(int index, Time vTime) throws java.lang.IndexOutOfBoundsException
index
- vTime
-
java.lang.IndexOutOfBoundsException
public void clearInterface()
public void clearNode()
public void clearTime()
public java.util.Enumeration enumerateInterface()
public java.util.Enumeration enumerateNode()
public java.util.Enumeration enumerateTime()
public boolean equals(java.lang.Object obj)
obj
- public Interface getInterface(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Interface[] getInterface()
public java.util.Collection getInterfaceCollection()
public int getInterfaceCount()
public java.lang.String getName()
public Node getNode(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Node[] getNode()
public java.util.Collection getNodeCollection()
public int getNodeCount()
public Time getTime(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Time[] getTime()
public java.util.Collection getTimeCollection()
public int getTimeCount()
public java.lang.String getType()
public boolean isValid()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.DocumentHandler handler) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void notifyPropertyChangeListeners(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)
fieldName
- the name of the property that has changed.newValue
- the new value of the property.oldValue
- the old value of the property.public boolean removeInterface(Interface vInterface)
vInterface
- public boolean removeNode(Node vNode)
vNode
- public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public boolean removeTime(Time vTime)
vTime
- public void setInterface(int index, Interface vInterface) throws java.lang.IndexOutOfBoundsException
index
- vInterface
-
java.lang.IndexOutOfBoundsException
public void setInterface(Interface[] _interfaceArray)
_interfaceArray
- public void setInterfaceCollection(java.util.Collection vInterface)
vInterface
- public void setName(java.lang.String name)
name
- the value of field 'name'.public void setNode(int index, Node vNode) throws java.lang.IndexOutOfBoundsException
index
- vNode
-
java.lang.IndexOutOfBoundsException
public void setNode(Node[] nodeArray)
nodeArray
- public void setNodeCollection(java.util.Collection vNode)
vNode
- public void setTime(int index, Time vTime) throws java.lang.IndexOutOfBoundsException
index
- vTime
-
java.lang.IndexOutOfBoundsException
public void setTime(Time[] timeArray)
timeArray
- public void setTimeCollection(java.util.Collection vTime)
vTime
- public void setType(java.lang.String type)
type
- the value of field 'type'.public static Outage unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |