Class Metadata.Revision
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.Get the "Last Modified Timestamp".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDataGet the "OSCAL Version".getProps()Get the "Property".Get the "Publication Timestamp".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Document Title".Get the "Document Version".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidsetLastModified(ZonedDateTime value) Set the "Last Modified Timestamp".voidSet the "Link".voidsetOscalVersion(String value) Set the "OSCAL Version".voidSet the "Property".voidsetPublished(ZonedDateTime value) Set the "Publication Timestamp".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Document Title".voidsetVersion(String value) Set the "Document Version".toString()
-
Constructor Details
-
Revision
public Revision()Constructs a newdev.metaschema.oscal.lib.model.Metadata.Revisioninstance with no metadata. -
Revision
Constructs a newdev.metaschema.oscal.lib.model.Metadata.Revisioninstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getTitle
Get the "Document Title".A name given to the document revision, which may be used by a tool for display and navigation.
- Returns:
- the title value, or
nullif not set
-
setTitle
Set the "Document Title".A name given to the document revision, which may be used by a tool for display and navigation.
- Parameters:
value- the title value to set, ornullto clear
-
getPublished
Get the "Publication Timestamp".The date and time the document was last made available.
- Returns:
- the published value, or
nullif not set
-
setPublished
Set the "Publication Timestamp".The date and time the document was last made available.
- Parameters:
value- the published value to set, ornullto clear
-
getLastModified
Get the "Last Modified Timestamp".The date and time the document was last stored for later retrieval.
- Returns:
- the last-modified value, or
nullif not set
-
setLastModified
Set the "Last Modified Timestamp".The date and time the document was last stored for later retrieval.
- Parameters:
value- the last-modified value to set, ornullto clear
-
getVersion
Get the "Document Version".Used to distinguish a specific revision of an OSCAL document from other previous and future versions.
- Returns:
- the version value
-
setVersion
Set the "Document Version".Used to distinguish a specific revision of an OSCAL document from other previous and future versions.
- Parameters:
value- the version value to set
-
getOscalVersion
Get the "OSCAL Version".The OSCAL model version the document was authored against and will conform to as valid.
- Returns:
- the oscal-version value, or
nullif not set
-
setOscalVersion
Set the "OSCAL Version".The OSCAL model version the document was authored against and will conform to as valid.
- Parameters:
value- the oscal-version value to set, ornullto clear
-
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
-
getRemarks
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-