Class BackMatter.Resource.Rlink

java.lang.Object
gov.nist.secauto.oscal.lib.model.BackMatter.Resource.Rlink
All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
Enclosing class:
BackMatter.Resource

@MetaschemaAssembly(formalName="Resource link", description="A URL-based pointer to an external resource with an optional hash for verification and change detection.", name="rlink", moduleClass=OscalMetadataModule.class, remarks="Multiple `rlink` objects can be included for a resource. In such a case, all provided `rlink` items are intended to be equivalent in content, but may differ in structure or format.\n\nA `media-type` is used to identify the format of a given rlink, and can be used to differentiate items in a collection of rlinks. The `media-type` provides a hint to the OSCAL document consumer about the structure of the resource referenced by the `rlink`.") public static class BackMatter.Resource.Rlink extends Object implements gov.nist.secauto.metaschema.core.model.IBoundObject
A URL-based pointer to an external resource with an optional hash for verification and change detection.
  • Constructor Details

    • Rlink

      public Rlink()
    • Rlink

      public Rlink(gov.nist.secauto.metaschema.core.model.IMetaschemaData data)
  • Method Details

    • getMetaschemaData

      public gov.nist.secauto.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface gov.nist.secauto.metaschema.core.model.IBoundObject
    • getHref

      public URI getHref()
    • setHref

      public void setHref(URI value)
    • getMediaType

      public String getMediaType()
    • setMediaType

      public void setMediaType(String value)
    • getHashes

      public List<Hash> getHashes()
    • setHashes

      public void setHashes(List<Hash> value)
    • addHash

      public boolean addHash(Hash item)
      Add a new Hash item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeHash

      public boolean removeHash(Hash item)
      Remove the first matching Hash item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object