Class Metadata
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,IMetadata
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA physical point of presence, which may be associated with people, organizations, or other concepts within the current or linked OSCAL document.static classAn organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.static classAn entry in a sequential list of revisions to the containing document, expected to be in reverse chronological order (i.e. latest first).static classDefines a function, which might be assigned to a party in a specific situation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newActionitem to the underlying collection.booleanaddDocumentId(DocumentId item) Add a newDocumentIditem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanaddLocation(Metadata.Location item) Add a newMetadata.Locationitem to the underlying collection.booleanaddParty(Metadata.Party item) Add a newMetadata.Partyitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newResponsiblePartyitem to the underlying collection.booleanaddRevision(Metadata.Revision item) Add a newMetadata.Revisionitem to the underlying collection.booleanaddRole(Metadata.Role item) Add a newMetadata.Roleitem to the underlying collection.Get the "Action".Get the "Document Identifier".Get the "Last Modified Timestamp".getLinks()Get the "Link".Get the "Location".dev.metaschema.core.model.IMetaschemaDataGet the "OSCAL Version".Get the "Party".getProps()Get the "Property".Get the "Publication Timestamp".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Responsible Party".Get the "Revision History Entry".getRoles()Get the "Role".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Document Title".Get the "Document Version".booleanremoveAction(Action item) Remove the first matchingActionitem from the underlying collection.booleanremoveDocumentId(DocumentId item) Remove the first matchingDocumentIditem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanRemove the first matchingMetadata.Locationitem from the underlying collection.booleanremoveParty(Metadata.Party item) Remove the first matchingMetadata.Partyitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingResponsiblePartyitem from the underlying collection.booleanRemove the first matchingMetadata.Revisionitem from the underlying collection.booleanremoveRole(Metadata.Role item) Remove the first matchingMetadata.Roleitem from the underlying collection.voidsetActions(List<Action> value) Set the "Action".voidsetDocumentIds(List<DocumentId> value) Set the "Document Identifier".voidsetLastModified(ZonedDateTime value) Set the "Last Modified Timestamp".voidSet the "Link".voidsetLocations(List<Metadata.Location> value) Set the "Location".voidsetOscalVersion(String value) Set the "OSCAL Version".voidsetParties(List<Metadata.Party> value) Set the "Party".voidSet the "Property".voidsetPublished(ZonedDateTime value) Set the "Publication Timestamp".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidSet the "Responsible Party".voidsetRevisions(List<Metadata.Revision> value) Set the "Revision History Entry".voidsetRoles(List<Metadata.Role> value) Set the "Role".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Document Title".voidsetVersion(String value) Set the "Document Version".toString()Methods inherited from class dev.metaschema.oscal.lib.model.metadata.AbstractMetadata
getPartyByUuid
-
Constructor Details
-
Metadata
public Metadata()Constructs a newdev.metaschema.oscal.lib.model.Metadatainstance with no metadata. -
Metadata
Constructs a newdev.metaschema.oscal.lib.model.Metadatainstance 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, which may be used by a tool for display and navigation.
- Returns:
- the title value
-
setTitle
Set the "Document Title".A name given to the document, which may be used by a tool for display and navigation.
- Parameters:
value- the title value to set
-
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
-
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
-
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
-
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
-
getRevisions
Get the "Revision History Entry".An entry in a sequential list of revisions to the containing document, expected to be in reverse chronological order (i.e. latest first).
- Returns:
- the revision value
-
setRevisions
Set the "Revision History Entry".An entry in a sequential list of revisions to the containing document, expected to be in reverse chronological order (i.e. latest first).
- Parameters:
value- the revision value to set
-
addRevision
Add a newMetadata.Revisionitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRevision
Remove the first matchingMetadata.Revisionitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getDocumentIds
Get the "Document Identifier".A document identifier qualified by an identifier
scheme.- Returns:
- the document-id value
-
setDocumentIds
Set the "Document Identifier".A document identifier qualified by an identifier
scheme.- Parameters:
value- the document-id value to set
-
addDocumentId
Add a newDocumentIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeDocumentId
Remove the first matchingDocumentIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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
-
getRoles
Get the "Role".Defines a function, which might be assigned to a party in a specific situation.
-
setRoles
Set the "Role".Defines a function, which might be assigned to a party in a specific situation.
- Parameters:
value- the role value to set
-
addRole
Add a newMetadata.Roleitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRole
Remove the first matchingMetadata.Roleitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLocations
Get the "Location".A physical point of presence, which may be associated with people, organizations, or other concepts within the current or linked OSCAL document.
- Specified by:
getLocationsin interfaceIMetadata- Returns:
- the location value
-
setLocations
Set the "Location".A physical point of presence, which may be associated with people, organizations, or other concepts within the current or linked OSCAL document.
- Parameters:
value- the location value to set
-
addLocation
Add a newMetadata.Locationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLocation
Remove the first matchingMetadata.Locationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getParties
Get the "Party".An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.
- Specified by:
getPartiesin interfaceIMetadata- Returns:
- the party value
-
setParties
Set the "Party".An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.
- Parameters:
value- the party value to set
-
addParty
Add a newMetadata.Partyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeParty
Remove the first matchingMetadata.Partyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getResponsibleParties
Get the "Responsible Party".A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.
- Returns:
- the responsible-party value
-
setResponsibleParties
Set the "Responsible Party".A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.
- Parameters:
value- the responsible-party value to set
-
addResponsibleParty
Add a newResponsiblePartyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponsibleParty
Remove the first matchingResponsiblePartyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getActions
Get the "Action".An action applied by a role within a given party to the content.
- Returns:
- the action value
-
setActions
Set the "Action".An action applied by a role within a given party to the content.
- Parameters:
value- the action value to set
-
addAction
Add a newActionitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAction
Remove the first matchingActionitem 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
-