Package dev.metaschema.oscal.lib.model
Class PoamItem.Origin
java.lang.Object
dev.metaschema.oscal.lib.model.PoamItem.Origin
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- PoamItem
@MetaschemaAssembly(formalName="Origin",
description="Identifies the source of the finding, such as a tool or person.",
name="origin",
moduleClass=OscalPoamModule.class,
remarks="Used to identify the individual and/or tool generated this poam-item.")
public static class PoamItem.Origin
extends Object
implements dev.metaschema.core.model.IBoundObject
Identifies the source of the finding, such as a tool or person.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddActor(OriginActor item) Add a newOriginActoritem to the underlying collection.Get the "Originating Actor".dev.metaschema.core.model.IMetaschemaDatabooleanremoveActor(OriginActor item) Remove the first matchingOriginActoritem from the underlying collection.voidsetActors(List<OriginActor> value) Set the "Originating Actor".toString()
-
Constructor Details
-
Origin
public Origin()Constructs a newdev.metaschema.oscal.lib.model.PoamItem.Origininstance with no metadata. -
Origin
Constructs a newdev.metaschema.oscal.lib.model.PoamItem.Origininstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getActors
Get the "Originating Actor".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.
- Returns:
- the actor value
-
setActors
Set the "Originating Actor".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.
- Parameters:
value- the actor value to set
-
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
-
toString
-