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 Object
A 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 boolean
addHash(Hash item)
Add a newHash
item to the underlying collection.List<Hash>
getHashes()
URI
getHref()
String
getMediaType()
boolean
removeHash(Hash item)
Remove the first matchingHash
item from the underlying collection.void
setHashes(List<Hash> value)
void
setHref(URI value)
void
setMediaType(String value)
String
toString()
-
-
-
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 newHash
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeHash
public boolean removeHash(Hash item)
Remove the first matchingHash
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-