Package gov.nist.secauto.oscal.lib.model
Class BackMatter
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.metadata.AbstractBackMatter
-
- gov.nist.secauto.oscal.lib.model.BackMatter
-
- All Implemented Interfaces:
IBackMatter
@MetaschemaAssembly(formalName="Back matter", description="A collection of resources that may be referenced from within the OSCAL document instance.", name="back-matter", metaschema=OscalMetadataMetaschema.class, remarks="Provides a collection of identified `resource` objects that can be referenced by a `link` with a `rel` value of \"reference\" and an `href` value that is a fragment \"#\" followed by a reference to a reference\'s `uuid`. Other specialized link \"rel\" values also use this pattern when indicated in that context of use.") @AssemblyConstraints(index=@Index(level=ERROR,target="resource",name="index-back-matter-resource",keyFields=@KeyField(target="@uuid"))) public class BackMatter extends AbstractBackMatter
A collection of resources that may be referenced from within the OSCAL document instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BackMatter.Resource
A resource associated with content in the containing document instance.
-
Constructor Summary
Constructors Constructor Description BackMatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addResource(BackMatter.Resource item)
Add a newBackMatter.Resource
item to the underlying collection.List<BackMatter.Resource>
getResources()
boolean
removeResource(BackMatter.Resource item)
Remove the first matchingBackMatter.Resource
item from the underlying collection.void
setResources(List<BackMatter.Resource> value)
String
toString()
-
Methods inherited from class gov.nist.secauto.oscal.lib.model.metadata.AbstractBackMatter
getResourceByUuid
-
-
-
-
Constructor Detail
-
BackMatter
public BackMatter()
-
-
Method Detail
-
getResources
public List<BackMatter.Resource> getResources()
-
setResources
public void setResources(List<BackMatter.Resource> value)
-
addResource
public boolean addResource(BackMatter.Resource item)
Add a newBackMatter.Resource
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeResource
public boolean removeResource(BackMatter.Resource item)
Remove the first matchingBackMatter.Resource
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-