Package gov.nist.secauto.oscal.lib.model
Class Action
java.lang.Object
gov.nist.secauto.oscal.lib.model.Action
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Action",
description="An action applied by a role within a given party to the content.",
name="action",
moduleClass=OscalMetadataModule.class,
valueConstraints=@ValueConstraints(allowedValues={@AllowedValues(level=ERROR,target="./system/@value",allowOthers=true,values=@AllowedValue(value="http://csrc.nist.gov/ns/oscal",description="This value identifies action types defined in the NIST OSCAL namespace.")),@AllowedValues(level=ERROR,target="./type[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@value",values={@AllowedValue(value="approval",description="An approval of a document instance\'s content."),@AllowedValue(value="request-changes",description="A request from the responisble party or parties to change the content.")})},indexHasKey={@IndexHasKey(level=ERROR,target="responsible-party",indexName="index-metadata-role-id",keyFields=@KeyField(target="@role-id")),@IndexHasKey(level=ERROR,target="responsible-party",indexName="index-metadata-party-uuid",keyFields=@KeyField(target="party-uuid"))}))
public class Action
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
An action applied by a role within a given party to the content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newResponsiblePartyitem to the underlying collection.getDate()getLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetType()getUuid()booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingResponsiblePartyitem from the underlying collection.voidsetDate(ZonedDateTime value) voidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidvoidvoidtoString()
-
Constructor Details
-
Action
public Action() -
Action
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getDate
-
setDate
-
getType
-
setType
-
getSystem
-
setSystem
-
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
-
getResponsibleParties
-
setResponsibleParties
-
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
-
getRemarks
-
setRemarks
-
toString
-