Package ai.reveng.model
Class IOC
java.lang.Object
ai.reveng.model.IOC
IOC
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumType of the IOC -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanstatic IOCCreate an instance of IOC given an JSON stringfunctionId(Integer functionId) functionName(String functionName) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Description of the IOCUnique identifier of the function containing the IOCName of the function containing the IOCThe source address where the IOC can be found in the binary if possible.getType()Type of the IOCgetValue()Value of the IOCinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDescription(String description) voidsetFunctionId(Integer functionId) voidsetFunctionName(String functionName) voidvoidsetType(IOC.TypeEnum type) voidtoJson()Convert an instance of IOC to an JSON stringtoString()type(IOC.TypeEnum type) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_FUNCTION_ID
- See Also:
-
SERIALIZED_NAME_FUNCTION_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
IOC
public IOC()
-
-
Method Details
-
type
-
getType
Type of the IOC- Returns:
- type
-
setType
-
value
-
getValue
Value of the IOC- Returns:
- value
-
setValue
-
description
-
getDescription
Description of the IOC- Returns:
- description
-
setDescription
-
source
-
getSource
The source address where the IOC can be found in the binary if possible.- Returns:
- source
-
setSource
-
functionId
-
getFunctionId
Unique identifier of the function containing the IOC- Returns:
- functionId
-
setFunctionId
-
functionName
-
getFunctionName
Name of the function containing the IOC- Returns:
- functionName
-
setFunctionName
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the IOC instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to IOC
-
fromJson
Create an instance of IOC given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IOC
- Throws:
IOException- if the JSON string is invalid with respect to IOC
-
toJson
Convert an instance of IOC to an JSON string- Returns:
- JSON string
-