Package gov.nist.secauto.oscal.lib.model
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newHash
item to the underlying collection.getHref()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
boolean
removeHash
(Hash item) Remove the first matchingHash
item from the underlying collection.void
void
void
setMediaType
(String value) toString()
-
Constructor Details
-
Rlink
public Rlink() -
Rlink
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getHref
-
setHref
-
getMediaType
-
setMediaType
-
getHashes
-
setHashes
-
addHash
Add a newHash
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeHash
Remove the first matchingHash
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-