|
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.capsd.ProtocolPlugin
Field Summary | |
private java.lang.String |
_className
|
private java.util.ArrayList |
_propertyList
|
private java.lang.String |
_protocol
|
private java.util.ArrayList |
_protocolConfigurationList
|
private java.lang.String |
_scan
|
private java.lang.String |
_userDefined
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
ProtocolPlugin()
|
Method Summary | |
void |
addProperty(int index,
Property vProperty)
|
void |
addProperty(Property vProperty)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
addProtocolConfiguration(int index,
ProtocolConfiguration vProtocolConfiguration)
|
void |
addProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
|
void |
clearProperty()
|
void |
clearProtocolConfiguration()
|
java.util.Enumeration |
enumerateProperty()
|
java.util.Enumeration |
enumerateProtocolConfiguration()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
java.lang.String |
getClassName()
Returns the value of field 'className'. |
Property[] |
getProperty()
|
Property |
getProperty(int index)
|
java.util.Collection |
getPropertyCollection()
|
int |
getPropertyCount()
|
java.lang.String |
getProtocol()
Returns the value of field 'protocol'. |
ProtocolConfiguration[] |
getProtocolConfiguration()
|
ProtocolConfiguration |
getProtocolConfiguration(int index)
|
java.util.Collection |
getProtocolConfigurationCollection()
|
int |
getProtocolConfigurationCount()
|
java.lang.String |
getScan()
Returns the value of field 'scan'. |
java.lang.String |
getUserDefined()
Returns the value of field 'userDefined'. |
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 |
removeProperty(Property vProperty)
|
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
boolean |
removeProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
|
void |
setClassName(java.lang.String className)
Sets the value of field 'className'. |
void |
setProperty(int index,
Property vProperty)
|
void |
setProperty(Property[] propertyArray)
|
void |
setPropertyCollection(java.util.Collection vProperty)
|
void |
setProtocol(java.lang.String protocol)
Sets the value of field 'protocol'. |
void |
setProtocolConfiguration(int index,
ProtocolConfiguration vProtocolConfiguration)
|
void |
setProtocolConfiguration(ProtocolConfiguration[] protocolConfigurationArray)
|
void |
setProtocolConfigurationCollection(java.util.Collection vProtocolConfiguration)
|
void |
setScan(java.lang.String scan)
Sets the value of field 'scan'. |
void |
setUserDefined(java.lang.String userDefined)
Sets the value of field 'userDefined'. |
static ProtocolPlugin |
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 _protocol
private java.lang.String _className
private java.lang.String _scan
private java.lang.String _userDefined
private java.util.ArrayList _protocolConfigurationList
private java.util.ArrayList _propertyList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public ProtocolPlugin()
Method Detail |
public void addProperty(Property vProperty) throws java.lang.IndexOutOfBoundsException
vProperty
-
java.lang.IndexOutOfBoundsException
public void addProperty(int index, Property vProperty) throws java.lang.IndexOutOfBoundsException
index
- vProperty
-
java.lang.IndexOutOfBoundsException
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void addProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration) throws java.lang.IndexOutOfBoundsException
vProtocolConfiguration
-
java.lang.IndexOutOfBoundsException
public void addProtocolConfiguration(int index, ProtocolConfiguration vProtocolConfiguration) throws java.lang.IndexOutOfBoundsException
index
- vProtocolConfiguration
-
java.lang.IndexOutOfBoundsException
public void clearProperty()
public void clearProtocolConfiguration()
public java.util.Enumeration enumerateProperty()
public java.util.Enumeration enumerateProtocolConfiguration()
public boolean equals(java.lang.Object obj)
obj
- public java.lang.String getClassName()
public Property getProperty(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Property[] getProperty()
public java.util.Collection getPropertyCollection()
public int getPropertyCount()
public java.lang.String getProtocol()
public ProtocolConfiguration getProtocolConfiguration(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public ProtocolConfiguration[] getProtocolConfiguration()
public java.util.Collection getProtocolConfigurationCollection()
public int getProtocolConfigurationCount()
public java.lang.String getScan()
public java.lang.String getUserDefined()
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 removeProperty(Property vProperty)
vProperty
- public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public boolean removeProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
vProtocolConfiguration
- public void setClassName(java.lang.String className)
className
- the value of field 'className'.public void setProperty(int index, Property vProperty) throws java.lang.IndexOutOfBoundsException
index
- vProperty
-
java.lang.IndexOutOfBoundsException
public void setProperty(Property[] propertyArray)
propertyArray
- public void setPropertyCollection(java.util.Collection vProperty)
vProperty
- public void setProtocol(java.lang.String protocol)
protocol
- the value of field 'protocol'.public void setProtocolConfiguration(int index, ProtocolConfiguration vProtocolConfiguration) throws java.lang.IndexOutOfBoundsException
index
- vProtocolConfiguration
-
java.lang.IndexOutOfBoundsException
public void setProtocolConfiguration(ProtocolConfiguration[] protocolConfigurationArray)
protocolConfigurationArray
- public void setProtocolConfigurationCollection(java.util.Collection vProtocolConfiguration)
vProtocolConfiguration
- public void setScan(java.lang.String scan)
scan
- the value of field 'scan'.public void setUserDefined(java.lang.String userDefined)
userDefined
- the value of field 'userDefined'.public static ProtocolPlugin 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 |