Package gov.nist.secauto.oscal.lib.model
Class Origin
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Origin
-
@MetaschemaAssembly(formalName="Origin", description="Identifies the source of the finding, such as a tool, interviewed person, or activity.", name="origin", metaschema=OscalAssessmentCommonMetaschema.class) public class Origin extends ObjectIdentifies the source of the finding, such as a tool, interviewed person, or activity.
-
-
Constructor Summary
Constructors Constructor Description Origin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddActor(OriginActor item)Add a newOriginActoritem to the underlying collection.booleanaddRelatedTask(RelatedTask item)Add a newRelatedTaskitem to the underlying collection.List<OriginActor>getActors()List<RelatedTask>getRelatedTasks()booleanremoveActor(OriginActor item)Remove the first matchingOriginActoritem from the underlying collection.booleanremoveRelatedTask(RelatedTask item)Remove the first matchingRelatedTaskitem from the underlying collection.voidsetActors(List<OriginActor> value)voidsetRelatedTasks(List<RelatedTask> value)StringtoString()
-
-
-
Constructor Detail
-
Origin
public Origin()
-
-
Method Detail
-
getActors
public List<OriginActor> getActors()
-
setActors
public void setActors(List<OriginActor> value)
-
addActor
public boolean addActor(OriginActor item)
Add a newOriginActoritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeActor
public boolean removeActor(OriginActor item)
Remove the first matchingOriginActoritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedTasks
public List<RelatedTask> getRelatedTasks()
-
setRelatedTasks
public void setRelatedTasks(List<RelatedTask> value)
-
addRelatedTask
public boolean addRelatedTask(RelatedTask item)
Add a newRelatedTaskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedTask
public boolean removeRelatedTask(RelatedTask item)
Remove the first matchingRelatedTaskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-