Package gov.nist.secauto.oscal.lib.model
Class BackMatter.Resource.Rlink
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.BackMatter.Resource.Rlink
-
- 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", metaschema=OscalMetadataMetaschema.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 ObjectA URL-based pointer to an external resource with an optional hash for verification and change detection.
-
-
Constructor Summary
Constructors Constructor Description Rlink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddHash(Hash item)Add a newHashitem to the underlying collection.List<Hash>getHashes()URIgetHref()StringgetMediaType()booleanremoveHash(Hash item)Remove the first matchingHashitem from the underlying collection.voidsetHashes(List<Hash> value)voidsetHref(URI value)voidsetMediaType(String value)StringtoString()
-
-
-
Constructor Detail
-
Rlink
public Rlink()
-
-
Method Detail
-
getMediaType
public String getMediaType()
-
setMediaType
public void setMediaType(String value)
-
addHash
public boolean addHash(Hash item)
Add a newHashitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeHash
public boolean removeHash(Hash item)
Remove the first matchingHashitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-