Package dev.metaschema.oscal.lib.model
Class BackMatter
java.lang.Object
dev.metaschema.oscal.lib.model.metadata.AbstractBackMatter
dev.metaschema.oscal.lib.model.BackMatter
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,IBackMatter
@MetaschemaAssembly(formalName="Back matter",
description="A collection of resources that may be referenced from within the OSCAL document instance.",
name="back-matter",
moduleClass=OscalMetadataModule.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.",
modelConstraints=@AssemblyConstraints(index=@Index(id="oscal-back-matter-resource-uuid-index",level=ERROR,target="resource",name="index-back-matter-resource",keyFields=@KeyField(target="@uuid"))))
public class BackMatter
extends AbstractBackMatter
implements dev.metaschema.core.model.IBoundObject
A collection of resources that may be referenced from within the OSCAL document instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA resource associated with content in the containing document instance. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.BackMatterinstance with no metadata.BackMatter(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.BackMatterinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newBackMatter.Resourceitem to the underlying collection.dev.metaschema.core.model.IMetaschemaDataGet the "Resource".booleanRemove the first matchingBackMatter.Resourceitem from the underlying collection.voidsetResources(List<BackMatter.Resource> value) Set the "Resource".toString()Methods inherited from class dev.metaschema.oscal.lib.model.metadata.AbstractBackMatter
getResourceByUuid
-
Constructor Details
-
BackMatter
public BackMatter()Constructs a newdev.metaschema.oscal.lib.model.BackMatterinstance with no metadata. -
BackMatter
Constructs a newdev.metaschema.oscal.lib.model.BackMatterinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getResources
Get the "Resource".A resource associated with content in the containing document instance. A resource may be directly included in the document using base64 encoding or may point to one or more equivalent internet resources.
- Specified by:
getResourcesin interfaceIBackMatter- Returns:
- the resource value
-
setResources
Set the "Resource".A resource associated with content in the containing document instance. A resource may be directly included in the document using base64 encoding or may point to one or more equivalent internet resources.
- Parameters:
value- the resource value to set
-
addResource
Add a newBackMatter.Resourceitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResource
Remove the first matchingBackMatter.Resourceitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-