|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.capsd.ProtocolConfiguration
public class ProtocolConfiguration
IP address/range-specific protocol configuration.
| Constructor Summary | |
|---|---|
ProtocolConfiguration()
|
|
| Method Summary | |
|---|---|
void |
addProperty(int index,
Property vProperty)
|
void |
addProperty(Property vProperty)
|
void |
addRange(int index,
Range vRange)
|
void |
addRange(Range vRange)
|
void |
addSpecific(int index,
String vSpecific)
|
void |
addSpecific(String vSpecific)
|
Enumeration<Property> |
enumerateProperty()
Method enumerateProperty. |
Enumeration<Range> |
enumerateRange()
Method enumerateRange. |
Enumeration<String> |
enumerateSpecific()
Method enumerateSpecific. |
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. |
Range[] |
getRange()
Method getRange.Returns the contents of the collection in an Array. |
Range |
getRange(int index)
Method getRange. |
List<Range> |
getRangeCollection()
Method getRangeCollection.Returns a reference to '_rangeList'. |
int |
getRangeCount()
Method getRangeCount. |
String |
getScan()
Returns the value of field 'scan'. |
String[] |
getSpecific()
Method getSpecific.Returns the contents of the collection in an Array. |
String |
getSpecific(int index)
Method getSpecific. |
List<String> |
getSpecificCollection()
Method getSpecificCollection.Returns a reference to '_specificList'. |
int |
getSpecificCount()
Method getSpecificCount. |
String |
getUserDefined()
Returns the value of field 'userDefined'. |
boolean |
isValid()
Method isValid. |
Iterator<Property> |
iterateProperty()
Method iterateProperty. |
Iterator<Range> |
iterateRange()
Method iterateRange. |
Iterator<String> |
iterateSpecific()
Method iterateSpecific. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllProperty()
|
void |
removeAllRange()
|
void |
removeAllSpecific()
|
boolean |
removeProperty(Property vProperty)
Method removeProperty. |
Property |
removePropertyAt(int index)
Method removePropertyAt. |
boolean |
removeRange(Range vRange)
Method removeRange. |
Range |
removeRangeAt(int index)
Method removeRangeAt. |
boolean |
removeSpecific(String vSpecific)
Method removeSpecific. |
String |
removeSpecificAt(int index)
Method removeSpecificAt. |
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 |
setRange(int index,
Range vRange)
|
void |
setRange(List<Range> vRangeList)
Sets the value of '_rangeList' by copying the given Vector. |
void |
setRange(Range[] vRangeArray)
|
void |
setRangeCollection(List<Range> rangeList)
Deprecated. |
void |
setScan(String scan)
Sets the value of field 'scan'. |
void |
setSpecific(int index,
String vSpecific)
|
void |
setSpecific(List<String> vSpecificList)
Sets the value of '_specificList' by copying the given Vector. |
void |
setSpecific(String[] vSpecificArray)
|
void |
setSpecificCollection(List<String> specificList)
Deprecated. |
void |
setUserDefined(String userDefined)
Sets the value of field 'userDefined'. |
static ProtocolConfiguration |
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 ProtocolConfiguration()
| 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 addRange(Range vRange)
throws IndexOutOfBoundsException
vRange -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addRange(int index,
Range vRange)
throws IndexOutOfBoundsException
index - vRange -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addSpecific(String vSpecific)
throws IndexOutOfBoundsException
vSpecific -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addSpecific(int index,
String vSpecific)
throws IndexOutOfBoundsException
index - vSpecific -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Property> enumerateProperty()
public Enumeration<Range> enumerateRange()
public Enumeration<String> enumerateSpecific()
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 Range getRange(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Range[] getRange()
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<Range> getRangeCollection()
public int getRangeCount()
public String getScan()
public String getSpecific(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getSpecific()
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<String> getSpecificCollection()
public int getSpecificCount()
public String getUserDefined()
public boolean isValid()
public Iterator<Property> iterateProperty()
public Iterator<Range> iterateRange()
public Iterator<String> iterateSpecific()
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 removeAllRange()
public void removeAllSpecific()
public boolean removeProperty(Property vProperty)
vProperty -
public Property removePropertyAt(int index)
index -
public boolean removeRange(Range vRange)
vRange -
public Range removeRangeAt(int index)
index -
public boolean removeSpecific(String vSpecific)
vSpecific -
public String removeSpecificAt(int index)
index -
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 setRange(int index,
Range vRange)
throws IndexOutOfBoundsException
index - vRange -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setRange(Range[] vRangeArray)
vRangeArray - public void setRange(List<Range> vRangeList)
vRangeList - the Vector to copy.public void setRangeCollection(List<Range> rangeList)
rangeList - the Vector to set.public void setScan(String scan)
scan - the value of field 'scan'.
public void setSpecific(int index,
String vSpecific)
throws IndexOutOfBoundsException
index - vSpecific -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setSpecific(String[] vSpecificArray)
vSpecificArray - public void setSpecific(List<String> vSpecificList)
vSpecificList - the Vector to copy.public void setSpecificCollection(List<String> specificList)
specificList - the Vector to set.public void setUserDefined(String userDefined)
userDefined - the value of field 'userDefined'.
public static ProtocolConfiguration 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 | ||||||||