Package tenapull.data.entity.scan
Class SeverityCount
java.lang.Object
tenapull.data.deserialize.NestedJsonArray<ScanHost,SeverityLevelCount>
tenapull.data.entity.scan.SeverityCount
public class SeverityCount extends NestedJsonArray<ScanHost,SeverityLevelCount>
JSON container for the array of SeverityLevelCounts in a ScanHost
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ARRAY_KEY
The key for the array of SeverityLevelCounts, as needed by the NestedJsonArray abstract super class -
Constructor Summary
Constructors Constructor Description SeverityCount()
-
Method Summary
Modifier and Type Method Description java.lang.String
getArrayKey()
Method that must be implemented by concrete subclasses, providing the JSON key for the array this object wraps.java.util.List<SeverityLevelCount>
getItem()
Gets item.protected java.util.List<SeverityLevelCount>
getParentList(ScanHost parent)
Method that must be implemented by concrete subclasses, which grabs the list of child entities from the parent objectvoid
setItem(java.util.List<SeverityLevelCount> item)
Sets item.protected void
setParentList(ScanHost parent, java.util.List<SeverityLevelCount> list)
Method that must be implemented by concrete subclasses, which sets the list of child entities in the parent objectMethods 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 SeverityLevelCounts, as needed by the NestedJsonArray abstract super class- See Also:
- Constant Field Values
-
-
Constructor Details
-
SeverityCount
public SeverityCount()
-
-
Method Details
-
getArrayKey
public java.lang.String getArrayKey()Description copied from class:NestedJsonArray
Method that must be implemented by concrete subclasses, providing the JSON key for the array this object wraps.- Specified by:
getArrayKey
in classNestedJsonArray<ScanHost,SeverityLevelCount>
- Returns:
-
getItem
Gets item.- Returns:
- the item
-
setItem
Sets item.- Parameters:
item
- the item
-
getParentList
Description copied from class:NestedJsonArray
Method that must be implemented by concrete subclasses, which grabs the list of child entities from the parent object- Specified by:
getParentList
in classNestedJsonArray<ScanHost,SeverityLevelCount>
- 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:NestedJsonArray
Method that must be implemented by concrete subclasses, which sets the list of child entities in the parent object- Specified by:
setParentList
in classNestedJsonArray<ScanHost,SeverityLevelCount>
- Parameters:
parent
- the parent object which owns the list of childrenlist
- the new list to set in the parent object
-