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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.getLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegov.nist.secauto.metaschema.core.datatype.markup.MarkupLinegetTitle()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) voidvoidsetOscalVersion(String value) voidvoidsetPublished(ZonedDateTime value) voidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) voidsetVersion(String value) toString()
-
Constructor Details
-
Revision
public Revision() -
Revision
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getTitle
-
setTitle
-
getPublished
-
setPublished
-
getLastModified
-
setLastModified
-
getVersion
-
setVersion
-
getOscalVersion
-
setOscalVersion
-
getProps
-
setProps
-
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
-
setLinks
-
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
-
setRemarks
-
toString
-