Package gov.nist.secauto.oscal.lib.model
Class Origin
java.lang.Object
gov.nist.secauto.oscal.lib.model.Origin
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Origin",
description="Identifies the source of the finding, such as a tool, interviewed person, or activity.",
name="origin",
moduleClass=OscalAssessmentCommonModule.class)
public class Origin
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Identifies the source of the finding, such as a tool, interviewed person, or activity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddActor(OriginActor item) Add a newOriginActoritem to the underlying collection.booleanaddRelatedTask(RelatedTask item) Add a newRelatedTaskitem to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaDatabooleanremoveActor(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) toString()
-
Constructor Details
-
Origin
public Origin() -
Origin
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getActors
-
setActors
-
addActor
Add a newOriginActoritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeActor
Remove the first matchingOriginActoritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedTasks
-
setRelatedTasks
-
addRelatedTask
Add a newRelatedTaskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedTask
Remove the first matchingRelatedTaskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-