Package gov.nist.secauto.oscal.lib.model
Class OriginActor
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.OriginActor
-
@MetaschemaAssembly(formalName="Originating Actor", description="The actor that produces an observation, a finding, or a risk. One or more actor type can be used to specify a person that is using a tool.", name="origin-actor", metaschema=OscalAssessmentCommonMetaschema.class) public class OriginActor extends ObjectThe actor that produces an observation, a finding, or a risk. One or more actor type can be used to specify a person that is using a tool.
-
-
Constructor Summary
Constructors Constructor Description OriginActor()
-
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.UUIDgetActorUuid()List<Link>getLinks()List<Property>getProps()StringgetRoleId()StringgetType()booleanremoveLink(Link item)Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item)Remove the first matchingPropertyitem from the underlying collection.voidsetActorUuid(UUID value)voidsetLinks(List<Link> value)voidsetProps(List<Property> value)voidsetRoleId(String value)voidsetType(String value)StringtoString()
-
-
-
Constructor Detail
-
OriginActor
public OriginActor()
-
-
Method Detail
-
getActorUuid
public UUID getActorUuid()
-
setActorUuid
public void setActorUuid(UUID 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
-
-