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
    Constructor
    Description
    Constructs a new dev.metaschema.oscal.lib.model.ThreatId instance with no metadata.
    ThreatId(dev.metaschema.core.model.IMetaschemaData data)
    Constructs a new dev.metaschema.oscal.lib.model.ThreatId instance with the specified metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the "Threat Information Resource Reference".
    Get the field value.
    dev.metaschema.core.model.IMetaschemaData
     
    Get the "Threat Type Identification System".
    void
    setHref(URI value)
    Set the "Threat Information Resource Reference".
    void
    setId(URI value)
    Set the field value.
    void
    setSystem(URI value)
    Set the "Threat Type Identification System".
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ThreatId

      public ThreatId()
      Constructs a new dev.metaschema.oscal.lib.model.ThreatId instance with no metadata.
    • ThreatId

      public ThreatId(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.ThreatId instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public dev.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface dev.metaschema.core.model.IBoundObject
    • getSystem

      @NonNull public URI getSystem()
      Get the "Threat Type Identification System".

      Specifies the source of the threat information.

      Returns:
      the system value
    • setSystem

      public void setSystem(@NonNull URI value)
      Set the "Threat Type Identification System".

      Specifies the source of the threat information.

      Parameters:
      value - the system value to set
    • getHref

      @Nullable public URI getHref()
      Get the "Threat Information Resource Reference".

      An optional location for the threat data, from which this ID originates.

      Returns:
      the href value, or null if not set
    • setHref

      public void setHref(@Nullable URI value)
      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, or null to clear
    • getId

      @Nullable public URI getId()
      Get the field value.
      Returns:
      the value
    • setId

      public void setId(@Nullable URI value)
      Set the field value.
      Parameters:
      value - the value to set
    • toString

      public String toString()
      Overrides:
      toString in class Object