Class RefValues
java.lang.Object
tenapull.data.deserialize.NestedJsonArray<PluginRefInformation,PluginRefValue>
tenapull.data.entity.objectLookup.RefValues
public class RefValues extends NestedJsonArray<PluginRefInformation,PluginRefValue>
A JSON wrapper for the array of PluginRefValues held by PluginRefInformation. This does
not represent an entity in the DB/ORM, but is needed for the purposes of serialization /
deserialization, to accurately reflect the structure of the Nessus API
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARRAY_KEYThe key for the array of PluginRefValues -
Constructor Summary
Constructors Constructor Description RefValues() -
Method Summary
Modifier and Type Method Description java.lang.StringgetArrayKey()Method that must be implemented by concrete subclasses, providing the JSON key for the array this object wraps.protected java.util.List<PluginRefValue>getParentList(PluginRefInformation parent)Method that must be implemented by concrete subclasses, which grabs the list of child entities from the parent objectjava.util.List<PluginRefValue>getValue()Gets the list of valuesprotected voidsetParentList(PluginRefInformation parent, java.util.List<PluginRefValue> list)Method that must be implemented by concrete subclasses, which sets the list of child entities in the parent objectvoidsetValue(java.util.List<PluginRefValue> value)Sets list of valuesMethods inherited from class tenapull.data.deserialize.NestedJsonArray
checkExtraJsonPut, clearParent, getExtraJson, getList, getParent, jsonAnyGetterForParent, putExtraJson, putFieldsIntoParent, setList, takeFieldsFromParent
-
Field Details
-
ARRAY_KEY
public static final java.lang.String ARRAY_KEYThe key for the array of PluginRefValues- See Also:
- Constant Field Values
-
-
Constructor Details
-
RefValues
public RefValues()
-
-
Method Details
-
getArrayKey
public java.lang.String getArrayKey()Description copied from class:NestedJsonArrayMethod that must be implemented by concrete subclasses, providing the JSON key for the array this object wraps.- Specified by:
getArrayKeyin classNestedJsonArray<PluginRefInformation,PluginRefValue>- Returns:
-
getParentList
Description copied from class:NestedJsonArrayMethod that must be implemented by concrete subclasses, which grabs the list of child entities from the parent object- Specified by:
getParentListin classNestedJsonArray<PluginRefInformation,PluginRefValue>- Parameters:
parent- the new parent object which owns the list of children- Returns:
- the list of children fetched from the parent
-
setParentList
Description copied from class:NestedJsonArrayMethod that must be implemented by concrete subclasses, which sets the list of child entities in the parent object- Specified by:
setParentListin classNestedJsonArray<PluginRefInformation,PluginRefValue>- Parameters:
parent- the parent object which owns the list of childrenlist- the new list to set in the parent object
-
getValue
Gets the list of values- Returns:
- the value
-
setValue
Sets list of values- Parameters:
value- the value
-