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 Object
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 Constructor Description Revision()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.ZonedDateTime
getLastModified()
List<Link>
getLinks()
String
getOscalVersion()
List<Property>
getProps()
ZonedDateTime
getPublished()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine
getTitle()
String
getVersion()
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
setLinks(List<Link> value)
void
setOscalVersion(String value)
void
setProps(List<Property> value)
void
setPublished(ZonedDateTime value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
void
setVersion(String value)
String
toString()
-
-
-
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 newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addLink
public boolean addLink(Link item)
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
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
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)
-
-