|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.capsd.ProtocolPlugin
public class ProtocolPlugin
protocol plugin definition
| Constructor Summary | |
|---|---|
ProtocolPlugin()
|
|
| Method Summary | |
|---|---|
void |
addProperty(int index,
Property vProperty)
|
void |
addProperty(Property vProperty)
|
void |
addProtocolConfiguration(int index,
ProtocolConfiguration vProtocolConfiguration)
|
void |
addProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
|
Enumeration<Property> |
enumerateProperty()
Method enumerateProperty. |
Enumeration<ProtocolConfiguration> |
enumerateProtocolConfiguration()
Method enumerateProtocolConfiguration. |
String |
getClassName()
Returns the value of field 'className'. |
Property[] |
getProperty()
Method getProperty.Returns the contents of the collection in an Array. |
Property |
getProperty(int index)
Method getProperty. |
List<Property> |
getPropertyCollection()
Method getPropertyCollection.Returns a reference to '_propertyList'. |
int |
getPropertyCount()
Method getPropertyCount. |
String |
getProtocol()
Returns the value of field 'protocol'. |
ProtocolConfiguration[] |
getProtocolConfiguration()
Method getProtocolConfiguration.Returns the contents of the collection in an Array. |
ProtocolConfiguration |
getProtocolConfiguration(int index)
Method getProtocolConfiguration. |
List<ProtocolConfiguration> |
getProtocolConfigurationCollection()
Method getProtocolConfigurationCollection.Returns a reference to '_protocolConfigurationList'. |
int |
getProtocolConfigurationCount()
Method getProtocolConfigurationCount. |
String |
getScan()
Returns the value of field 'scan'. |
String |
getUserDefined()
Returns the value of field 'userDefined'. |
boolean |
isValid()
Method isValid. |
Iterator<Property> |
iterateProperty()
Method iterateProperty. |
Iterator<ProtocolConfiguration> |
iterateProtocolConfiguration()
Method iterateProtocolConfiguration. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllProperty()
|
void |
removeAllProtocolConfiguration()
|
boolean |
removeProperty(Property vProperty)
Method removeProperty. |
Property |
removePropertyAt(int index)
Method removePropertyAt. |
boolean |
removeProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
Method removeProtocolConfiguration. |
ProtocolConfiguration |
removeProtocolConfigurationAt(int index)
Method removeProtocolConfigurationAt. |
void |
setClassName(String className)
Sets the value of field 'className'. |
void |
setProperty(int index,
Property vProperty)
|
void |
setProperty(List<Property> vPropertyList)
Sets the value of '_propertyList' by copying the given Vector. |
void |
setProperty(Property[] vPropertyArray)
|
void |
setPropertyCollection(List<Property> propertyList)
Deprecated. |
void |
setProtocol(String protocol)
Sets the value of field 'protocol'. |
void |
setProtocolConfiguration(int index,
ProtocolConfiguration vProtocolConfiguration)
|
void |
setProtocolConfiguration(List<ProtocolConfiguration> vProtocolConfigurationList)
Sets the value of '_protocolConfigurationList' by copying the given Vector. |
void |
setProtocolConfiguration(ProtocolConfiguration[] vProtocolConfigurationArray)
|
void |
setProtocolConfigurationCollection(List<ProtocolConfiguration> protocolConfigurationList)
Deprecated. |
void |
setScan(String scan)
Sets the value of field 'scan'. |
void |
setUserDefined(String userDefined)
Sets the value of field 'userDefined'. |
static ProtocolPlugin |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProtocolPlugin()
| Method Detail |
|---|
public void addProperty(Property vProperty)
throws IndexOutOfBoundsException
vProperty -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addProperty(int index,
Property vProperty)
throws IndexOutOfBoundsException
index - vProperty -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
throws IndexOutOfBoundsException
vProtocolConfiguration -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addProtocolConfiguration(int index,
ProtocolConfiguration vProtocolConfiguration)
throws IndexOutOfBoundsException
index - vProtocolConfiguration -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Property> enumerateProperty()
public Enumeration<ProtocolConfiguration> enumerateProtocolConfiguration()
public String getClassName()
public Property getProperty(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Property[] getProperty()
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<Property> getPropertyCollection()
public int getPropertyCount()
public String getProtocol()
public ProtocolConfiguration getProtocolConfiguration(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic ProtocolConfiguration[] getProtocolConfiguration()
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<ProtocolConfiguration> getProtocolConfigurationCollection()
public int getProtocolConfigurationCount()
public String getScan()
public String getUserDefined()
public boolean isValid()
public Iterator<Property> iterateProperty()
public Iterator<ProtocolConfiguration> iterateProtocolConfiguration()
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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllProperty()
public void removeAllProtocolConfiguration()
public boolean removeProperty(Property vProperty)
vProperty -
public Property removePropertyAt(int index)
index -
public boolean removeProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
vProtocolConfiguration -
public ProtocolConfiguration removeProtocolConfigurationAt(int index)
index -
public void setClassName(String className)
className - the value of field 'className'.
public void setProperty(int index,
Property vProperty)
throws IndexOutOfBoundsException
index - vProperty -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setProperty(Property[] vPropertyArray)
vPropertyArray - public void setProperty(List<Property> vPropertyList)
vPropertyList - the Vector to copy.public void setPropertyCollection(List<Property> propertyList)
propertyList - the Vector to set.public void setProtocol(String protocol)
protocol - the value of field 'protocol'.
public void setProtocolConfiguration(int index,
ProtocolConfiguration vProtocolConfiguration)
throws IndexOutOfBoundsException
index - vProtocolConfiguration -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setProtocolConfiguration(ProtocolConfiguration[] vProtocolConfigurationArray)
vProtocolConfigurationArray - public void setProtocolConfiguration(List<ProtocolConfiguration> vProtocolConfigurationList)
vProtocolConfigurationList - the Vector to copy.public void setProtocolConfigurationCollection(List<ProtocolConfiguration> protocolConfigurationList)
protocolConfigurationList - the Vector to set.public void setScan(String scan)
scan - the value of field 'scan'.public void setUserDefined(String userDefined)
userDefined - the value of field 'userDefined'.
public static ProtocolPlugin 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||