Class RefInformation
java.lang.Object
tenapull.data.deserialize.NestedJsonArray<PluginAttributes,PluginRefInformation>
tenapull.data.entity.objectLookup.RefInformation
public class RefInformation extends NestedJsonArray<PluginAttributes,PluginRefInformation>
A JSON wrapper for the array of PluginRefInformation held by PluginAttributes. 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 PluginRefInformations -
Constructor Summary
Constructors Constructor Description RefInformation() -
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<PluginRefInformation>getParentList(PluginAttributes parent)Method that must be implemented by concrete subclasses, which grabs the list of child entities from the parent objectjava.util.List<PluginRefInformation>getRef()Gets list of pluginRefInformationsprotected voidsetParentList(PluginAttributes parent, java.util.List<PluginRefInformation> list)Method that must be implemented by concrete subclasses, which sets the list of child entities in the parent objectvoidsetRef(java.util.List<PluginRefInformation> ref)Sets list of pluginRefInformationsMethods 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 PluginRefInformations- See Also:
- Constant Field Values
-
-
Constructor Details
-
RefInformation
public RefInformation()
-
-
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<PluginAttributes,PluginRefInformation>- Returns:
-
getRef
Gets list of pluginRefInformations- Returns:
- the ref
-
setRef
Sets list of pluginRefInformations- Parameters:
ref- the ref
-
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<PluginAttributes,PluginRefInformation>- 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<PluginAttributes,PluginRefInformation>- Parameters:
parent- the parent object which owns the list of childrenlist- the new list to set in the parent object
-