Infection.RESOLUTION, Infection.TYPE| Constructor and Description |
|---|
ICAPInfection() |
| Modifier and Type | Method and Description |
|---|---|
Infection.RESOLUTION |
getResolution() |
java.lang.String |
getThreat() |
Infection.TYPE |
getType() |
void |
setResolution(int resolution)
This function takes care of the mapping from an integer to an actual enumeration
for the "resolution" type...
|
void |
setThreat(java.lang.String threat)
This function stores the name of the threat, typically a virus name...
|
void |
setType(int type)
This function takes care of mapping from an integer to an actual enumeration for
the infection type...
|
java.lang.String |
toString() |
public Infection.TYPE getType()
public void setType(int type)
throws ParsingException
type - An integer representing the type of "infection"ParsingException - This is thrown when the integer does not map to a typepublic Infection.RESOLUTION getResolution()
getResolution in interface Infectionpublic void setResolution(int resolution)
throws ParsingException
resolution - An integer representing the type of "resolution"ParsingException - This is thrown when the integer does not map to a resolution typepublic java.lang.String getThreat()
public void setThreat(java.lang.String threat)
throws ParsingException
threat - A string representing the name of the threatParsingException - Thrown for invalid input stringspublic java.lang.String toString()
toString in class java.lang.Object