public class SnmpCollection extends Object implements Serializable
Constructor and Description |
---|
SnmpCollection() |
Modifier and Type | Method and Description |
---|---|
void |
addIncludeCollection(IncludeCollection includeCollection) |
void |
addIncludeCollection(int index,
IncludeCollection includeCollection) |
void |
addResourceType(int index,
ResourceType resourceType) |
void |
addResourceType(ResourceType resourceType) |
void |
deleteMaxVarsPerPdu() |
Enumeration<IncludeCollection> |
enumerateIncludeCollection()
Method enumerateIncludeCollection.
|
Enumeration<ResourceType> |
enumerateResourceType()
Method enumerateResourceType.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
Groups |
getGroups()
Returns the value of field 'groups'.
|
IncludeCollection[] |
getIncludeCollection()
Method getIncludeCollection.Returns the contents of the
collection in an Array.
|
IncludeCollection |
getIncludeCollection(int index)
Method getIncludeCollection.
|
List<IncludeCollection> |
getIncludeCollectionCollection()
Method getIncludeCollectionCollection.Returns a reference to
'_includeCollectionList'.
|
int |
getIncludeCollectionCount()
Method getIncludeCollectionCount.
|
Integer |
getMaxVarsPerPdu()
Returns the value of field 'maxVarsPerPdu'.
|
String |
getName()
Returns the value of field 'name'.
|
ResourceType[] |
getResourceType()
Method getResourceType.Returns the contents of the
collection in an Array.
|
ResourceType |
getResourceType(int index)
Method getResourceType.
|
List<ResourceType> |
getResourceTypeCollection()
Method getResourceTypeCollection.Returns a reference to
'_resourceTypeList'.
|
int |
getResourceTypeCount()
Method getResourceTypeCount.
|
Rrd |
getRrd()
Returns the value of field 'rrd'.
|
String |
getSnmpStorageFlag()
Returns the value of field 'snmpStorageFlag'.
|
Systems |
getSystems()
Returns the value of field 'systems'.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
boolean |
hasMaxVarsPerPdu()
Method hasMaxVarsPerPdu.
|
boolean |
isValid()
Deprecated.
|
Iterator<IncludeCollection> |
iterateIncludeCollection()
Method iterateIncludeCollection.
|
Iterator<ResourceType> |
iterateResourceType()
Method iterateResourceType.
|
void |
marshal(ContentHandler handler)
Deprecated.
|
void |
marshal(Writer out)
Deprecated.
|
void |
removeAllIncludeCollection() |
void |
removeAllResourceType() |
boolean |
removeIncludeCollection(IncludeCollection includeCollection)
Method removeIncludeCollection.
|
IncludeCollection |
removeIncludeCollectionAt(int index)
Method removeIncludeCollectionAt.
|
boolean |
removeResourceType(ResourceType resourceType)
Method removeResourceType.
|
ResourceType |
removeResourceTypeAt(int index)
Method removeResourceTypeAt.
|
void |
setGroups(Groups groups)
Sets the value of field 'groups'.
|
void |
setIncludeCollection(IncludeCollection[] includeCollections) |
void |
setIncludeCollection(int index,
IncludeCollection includeCollection) |
void |
setIncludeCollection(List<IncludeCollection> includeCollections)
Sets the value of '_includeCollectionList' by copying the
given Vector.
|
void |
setIncludeCollectionCollection(List<IncludeCollection> includeCollections)
Deprecated.
|
void |
setMaxVarsPerPdu(Integer maxVarsPerPdu)
Sets the value of field 'maxVarsPerPdu'.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setResourceType(int index,
ResourceType resourceType) |
void |
setResourceType(List<ResourceType> resourceTypes)
Sets the value of '_resourceTypeList' by copying the given
Vector.
|
void |
setResourceType(ResourceType[] resourceTypes) |
void |
setResourceTypeCollection(List<ResourceType> resourceTypes)
Deprecated.
|
void |
setRrd(Rrd rrd)
Sets the value of field 'rrd'.
|
void |
setSnmpStorageFlag(String snmpStorageFlag)
Sets the value of field 'snmpStorageFlag'.
|
void |
setSystems(Systems systems)
Sets the value of field 'systems'.
|
static SnmpCollection |
unmarshal(Reader reader)
Deprecated.
|
void |
validate()
Deprecated.
|
public String getName()
public Integer getMaxVarsPerPdu()
public String getSnmpStorageFlag()
public Rrd getRrd()
public IncludeCollection[] getIncludeCollection()
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 ResourceType[] getResourceType()
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 Groups getGroups()
public Systems getSystems()
public void addIncludeCollection(IncludeCollection includeCollection) throws IndexOutOfBoundsException
includeCollection
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addIncludeCollection(int index, IncludeCollection includeCollection) throws IndexOutOfBoundsException
index
- includeCollection
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addResourceType(ResourceType resourceType) throws IndexOutOfBoundsException
resourceType
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addResourceType(int index, ResourceType resourceType) throws IndexOutOfBoundsException
index
- resourceType
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteMaxVarsPerPdu()
public Enumeration<IncludeCollection> enumerateIncludeCollection()
public Enumeration<ResourceType> enumerateResourceType()
public boolean equals(Object obj)
public IncludeCollection getIncludeCollection(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic List<IncludeCollection> getIncludeCollectionCollection()
public int getIncludeCollectionCount()
public ResourceType getResourceType(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic List<ResourceType> getResourceTypeCollection()
public int getResourceTypeCount()
public boolean hasMaxVarsPerPdu()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
@Deprecated public boolean isValid()
public Iterator<IncludeCollection> iterateIncludeCollection()
public Iterator<ResourceType> iterateResourceType()
@Deprecated 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllIncludeCollection()
public void removeAllResourceType()
public boolean removeIncludeCollection(IncludeCollection includeCollection)
includeCollection
- public IncludeCollection removeIncludeCollectionAt(int index)
index
- public boolean removeResourceType(ResourceType resourceType)
resourceType
- public ResourceType removeResourceTypeAt(int index)
index
- public void setGroups(Groups groups)
groups
- the value of field 'groups'.public void setIncludeCollection(int index, IncludeCollection includeCollection) throws IndexOutOfBoundsException
index
- includeCollection
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setIncludeCollection(IncludeCollection[] includeCollections)
includeCollections
- public void setIncludeCollection(List<IncludeCollection> includeCollections)
includeCollections
- the Vector to copy.public void setIncludeCollectionCollection(List<IncludeCollection> includeCollections)
includeCollections
- the Vector to set.public void setMaxVarsPerPdu(Integer maxVarsPerPdu)
maxVarsPerPdu
- the value of field 'maxVarsPerPdu'.public void setName(String name)
name
- the value of field 'name'.public void setResourceType(int index, ResourceType resourceType) throws IndexOutOfBoundsException
index
- resourceType
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setResourceType(ResourceType[] resourceTypes)
resourceTypes
- public void setResourceType(List<ResourceType> resourceTypes)
resourceTypes
- the Vector to copy.public void setResourceTypeCollection(List<ResourceType> resourceTypes)
resourceTypes
- the Vector to set.public void setRrd(Rrd rrd)
rrd
- the value of field 'rrd'.public void setSnmpStorageFlag(String snmpStorageFlag)
snmpStorageFlag
- the value of field 'snmpStorageFlag'.public void setSystems(Systems systems)
systems
- the value of field 'systems'.@Deprecated public static SnmpCollection 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.