Package gov.nist.secauto.oscal.lib.model
Class Metadata.Revision
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Metadata.Revision
-
- 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", metaschema=OscalMetadataMetaschema.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(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 ObjectAn 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 Constructor Description Revision()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.ZonedDateTimegetLastModified()List<Link>getLinks()StringgetOscalVersion()List<Property>getProps()ZonedDateTimegetPublished()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLinegetTitle()StringgetVersion()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)voidsetLinks(List<Link> value)voidsetOscalVersion(String value)voidsetProps(List<Property> value)voidsetPublished(ZonedDateTime value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)voidsetVersion(String value)StringtoString()
-
-
-
Constructor Detail
-
Revision
public Revision()
-
-
Method Detail
-
getTitle
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine getTitle()
-
setTitle
public void setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
-
getPublished
public ZonedDateTime getPublished()
-
setPublished
public void setPublished(ZonedDateTime value)
-
getLastModified
public ZonedDateTime getLastModified()
-
setLastModified
public void setLastModified(ZonedDateTime value)
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String value)
-
getOscalVersion
public String getOscalVersion()
-
setOscalVersion
public void setOscalVersion(String value)
-
addProp
public boolean addProp(Property item)
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-