public class Snmp extends Object implements Serializable
Constructor and Description |
---|
Snmp() |
Modifier and Type | Method and Description |
---|---|
void |
deleteGeneric() |
void |
deleteSpecific() |
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
String |
getCommunity()
Returns the value of field 'community'.
|
Integer |
getGeneric()
Returns the value of field 'generic'.
|
String |
getId()
Returns the value of field 'id'.
|
String |
getIdtext()
Returns the value of field 'idtext'.
|
Integer |
getSpecific()
Returns the value of field 'specific'.
|
String |
getVersion()
Returns the value of field 'version'.
|
boolean |
hasGeneric()
Method hasGeneric.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
boolean |
hasSpecific()
Method hasSpecific.
|
boolean |
isValid()
Method isValid.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
setCommunity(String community)
Sets the value of field 'community'.
|
void |
setGeneric(int generic)
Sets the value of field 'generic'.
|
void |
setId(String id)
Sets the value of field 'id'.
|
void |
setIdtext(String idtext)
Sets the value of field 'idtext'.
|
void |
setSpecific(int specific)
Sets the value of field 'specific'.
|
void |
setVersion(String version)
Sets the value of field 'version'.
|
static Snmp |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void deleteGeneric()
public void deleteSpecific()
public boolean equals(Object obj)
public String getCommunity()
public Integer getGeneric()
public String getId()
public String getIdtext()
public Integer getSpecific()
public String getVersion()
public boolean hasGeneric()
public boolean hasSpecific()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
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 schemapublic 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 setCommunity(String community)
community
- the value of field 'community'.public void setGeneric(int generic)
generic
- the value of field 'generic'.public void setId(String id)
id
- the value of field 'id'.public void setIdtext(String idtext)
idtext
- the value of field 'idtext'.public void setSpecific(int specific)
specific
- the value of field 'specific'.public void setVersion(String version)
version
- the value of field 'version'.public static Snmp 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 schemapublic 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.