Package dev.metaschema.oscal.lib.model
Class ThreatId
java.lang.Object
dev.metaschema.oscal.lib.model.ThreatId
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaField(formalName="Threat ID",
description="A pointer, by ID, to an externally-defined threat.",
name="threat-id",
moduleClass=OscalAssessmentCommonModule.class)
public class ThreatId
extends Object
implements dev.metaschema.core.model.IBoundObject
A pointer, by ID, to an externally-defined threat.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHref()Get the "Threat Information Resource Reference".getId()Get the field value.dev.metaschema.core.model.IMetaschemaDataGet the "Threat Type Identification System".voidSet the "Threat Information Resource Reference".voidSet the field value.voidSet the "Threat Type Identification System".toString()
-
Constructor Details
-
ThreatId
public ThreatId()Constructs a newdev.metaschema.oscal.lib.model.ThreatIdinstance with no metadata. -
ThreatId
Constructs a newdev.metaschema.oscal.lib.model.ThreatIdinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getSystem
Get the "Threat Type Identification System".Specifies the source of the threat information.
- Returns:
- the system value
-
setSystem
Set the "Threat Type Identification System".Specifies the source of the threat information.
- Parameters:
value- the system value to set
-
getHref
Get the "Threat Information Resource Reference".An optional location for the threat data, from which this ID originates.
- Returns:
- the href value, or
nullif not set
-
setHref
Set the "Threat Information Resource Reference".An optional location for the threat data, from which this ID originates.
- Parameters:
value- the href value to set, ornullto clear
-
getId
Get the field value.- Returns:
- the value
-
setId
Set the field value.- Parameters:
value- the value to set
-
toString
-