Package dev.metaschema.oscal.lib.model
Class BackMatter.Resource.Citation
java.lang.Object
dev.metaschema.oscal.lib.model.BackMatter.Resource.Citation
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- BackMatter.Resource
@MetaschemaAssembly(formalName="Citation",
description="An optional citation consisting of end note text using structured markup.",
name="citation",
moduleClass=OscalMetadataModule.class)
public static class BackMatter.Resource.Citation
extends Object
implements dev.metaschema.core.model.IBoundObject
An optional citation consisting of end note text using structured markup.
-
Constructor Summary
ConstructorsConstructorDescriptionCitation()Constructs a newdev.metaschema.oscal.lib.model.BackMatter.Resource.Citationinstance with no metadata.Citation(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.BackMatter.Resource.Citationinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupLinegetText()Get the "Citation Text".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidSet the "Link".voidSet the "Property".voidsetText(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Citation Text".toString()
-
Constructor Details
-
Citation
public Citation()Constructs a newdev.metaschema.oscal.lib.model.BackMatter.Resource.Citationinstance with no metadata. -
Citation
Constructs a newdev.metaschema.oscal.lib.model.BackMatter.Resource.Citationinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getText
Get the "Citation Text".A line of citation text.
- Returns:
- the text value
-
setText
Set the "Citation Text".A line of citation text.
- Parameters:
value- the text value to set
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-