Package gov.nist.secauto.oscal.lib.model
Class Metadata.Revision
java.lang.Object
gov.nist.secauto.oscal.lib.model.Metadata.Revision
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
- Enclosing class:
- Metadata
@MetaschemaAssembly(formalName="Revision History Entry",
description="An entry in a sequential list of revisions to the containing document, expected to be in reverse chronological order (i.e. latest first).",
name="revision",
moduleClass=OscalMetadataModule.class,
remarks="While `published`, `last-modified`, and `oscal-version` are not required, values for these entries should be provided if the information is known. A `link` with a `rel` of \"source\" should be provided if the information is known.",
valueConstraints=@ValueConstraints(allowedValues=@AllowedValues(level=ERROR,target="link/@rel",allowOthers=true,values={@AllowedValue(value="canonical",description="The link identifies the authoritative location for this resource. Defined by [RFC 6596](https://tools.ietf.org/html/rfc6596)."),@AllowedValue(value="alternate",description="The link identifies an alternative location or format for this resource. Defined by [the HTML Living Standard](https://html.spec.whatwg.org/multipage/links.html#linkTypes)"),@AllowedValue(value="predecessor-version",description="This link identifies a resource containing the predecessor version in the version history. Defined by [RFC 5829](https://tools.ietf.org/html/rfc5829)."),@AllowedValue(value="successor-version",description="This link identifies a resource containing the predecessor version in the version history. Defined by [RFC 5829](https://tools.ietf.org/html/rfc5829)."),@AllowedValue(value="version-history",description="This link identifies a resource containing the version history of this document. Defined by [RFC 5829](https://tools.ietf.org/html/rfc5829).")})))
public static class Metadata.Revision
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
An entry in a sequential list of revisions to the containing document, expected to be in reverse chronological order (i.e. latest first).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newLink
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine
getTitle()
boolean
removeLink
(Link item) Remove the first matchingLink
item from the underlying collection.boolean
removeProp
(Property item) Remove the first matchingProperty
item from the underlying collection.void
setLastModified
(ZonedDateTime value) void
void
setOscalVersion
(String value) void
void
setPublished
(ZonedDateTime value) void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
setTitle
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) void
setVersion
(String value) toString()
-
Constructor Details
-
Revision
public Revision() -
Revision
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getTitle
-
setTitle
-
getPublished
-
setPublished
-
getLastModified
-
setLastModified
-
getVersion
-
setVersion
-
getOscalVersion
-
setOscalVersion
-
getProps
-
setProps
-
addProp
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLinks
-
setLinks
-
addLink
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRemarks
-
setRemarks
-
toString
-