Package gov.nist.secauto.oscal.lib.model
Class Task.AssociatedActivity
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Task.AssociatedActivity
-
- Enclosing class:
- Task
@MetaschemaAssembly(formalName="Associated Activity", description="Identifies an individual activity to be performed as part of a task.", name="associated-activity", metaschema=OscalAssessmentCommonMetaschema.class) @AssemblyConstraints(isUnique=@IsUnique(id="unique-associated-activity-responsible-role",level=ERROR,target="responsible-role",keyFields=@KeyField(target="@role-id"),remarks="Since `responsible-role` associates multiple `party-uuid` entries with a single `role-id`, each role-id must be referenced only once.")) public static class Task.AssociatedActivity extends ObjectIdentifies an individual activity to be performed as part of a task.
-
-
Constructor Summary
Constructors Constructor Description AssociatedActivity()
-
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.booleanaddResponsibleRole(ResponsibleRole item)Add a newResponsibleRoleitem to the underlying collection.booleanaddSubject(AssessmentSubject item)Add a newAssessmentSubjectitem to the underlying collection.UUIDgetActivityUuid()List<Link>getLinks()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()List<ResponsibleRole>getResponsibleRoles()List<AssessmentSubject>getSubjects()booleanremoveLink(Link item)Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item)Remove the first matchingPropertyitem from the underlying collection.booleanremoveResponsibleRole(ResponsibleRole item)Remove the first matchingResponsibleRoleitem from the underlying collection.booleanremoveSubject(AssessmentSubject item)Remove the first matchingAssessmentSubjectitem from the underlying collection.voidsetActivityUuid(UUID value)voidsetLinks(List<Link> value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetResponsibleRoles(List<ResponsibleRole> value)voidsetSubjects(List<AssessmentSubject> value)StringtoString()
-
-
-
Constructor Detail
-
AssociatedActivity
public AssociatedActivity()
-
-
Method Detail
-
getActivityUuid
public UUID getActivityUuid()
-
setActivityUuid
public void setActivityUuid(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
-
getResponsibleRoles
public List<ResponsibleRole> getResponsibleRoles()
-
setResponsibleRoles
public void setResponsibleRoles(List<ResponsibleRole> value)
-
addResponsibleRole
public boolean addResponsibleRole(ResponsibleRole item)
Add a newResponsibleRoleitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponsibleRole
public boolean removeResponsibleRole(ResponsibleRole item)
Remove the first matchingResponsibleRoleitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getSubjects
public List<AssessmentSubject> getSubjects()
-
setSubjects
public void setSubjects(List<AssessmentSubject> value)
-
addSubject
public boolean addSubject(AssessmentSubject item)
Add a newAssessmentSubjectitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSubject
public boolean removeSubject(AssessmentSubject item)
Remove the first matchingAssessmentSubjectitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-