Package gov.nist.secauto.oscal.lib.model
Class Action
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Action
-
@MetaschemaAssembly(formalName="Action", description="An action applied by a role within a given party to the content.", name="action", metaschema=OscalMetadataMetaschema.class) @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 ObjectAn action applied by a role within a given party to the content.
-
-
Constructor Summary
Constructors Constructor Description Action()
-
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.booleanaddResponsibleParty(ResponsibleParty item)Add a newResponsiblePartyitem to the underlying collection.ZonedDateTimegetDate()List<Link>getLinks()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()List<ResponsibleParty>getResponsibleParties()URIgetSystem()StringgetType()UUIDgetUuid()booleanremoveLink(Link item)Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item)Remove the first matchingPropertyitem from the underlying collection.booleanremoveResponsibleParty(ResponsibleParty item)Remove the first matchingResponsiblePartyitem from the underlying collection.voidsetDate(ZonedDateTime value)voidsetLinks(List<Link> value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetResponsibleParties(List<ResponsibleParty> value)voidsetSystem(URI value)voidsetType(String value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
Action
public Action()
-
-
Method Detail
-
getDate
public ZonedDateTime getDate()
-
setDate
public void setDate(ZonedDateTime 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
-
getResponsibleParties
public List<ResponsibleParty> getResponsibleParties()
-
setResponsibleParties
public void setResponsibleParties(List<ResponsibleParty> value)
-
addResponsibleParty
public boolean addResponsibleParty(ResponsibleParty item)
Add a newResponsiblePartyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponsibleParty
public boolean removeResponsibleParty(ResponsibleParty item)
Remove the first matchingResponsiblePartyitem 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)
-
-