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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addActor
(OriginActor item) Add a newOriginActor
item to the underlying collection.boolean
addRelatedTask
(RelatedTask item) Add a newRelatedTask
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
boolean
removeActor
(OriginActor item) Remove the first matchingOriginActor
item from the underlying collection.boolean
removeRelatedTask
(RelatedTask item) Remove the first matchingRelatedTask
item from the underlying collection.void
setActors
(List<OriginActor> value) void
setRelatedTasks
(List<RelatedTask> value) toString()
-
Constructor Details
-
Origin
public Origin() -
Origin
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getActors
-
setActors
-
addActor
Add a newOriginActor
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeActor
Remove the first matchingOriginActor
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRelatedTasks
-
setRelatedTasks
-
addRelatedTask
Add a newRelatedTask
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRelatedTask
Remove the first matchingRelatedTask
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-