Package gov.nist.secauto.oscal.lib.model
Class Task.AssociatedActivity
java.lang.Object
gov.nist.secauto.oscal.lib.model.Task.AssociatedActivity
- All Implemented Interfaces:
- gov.nist.secauto.metaschema.core.model.IBoundObject
- Enclosing class:
- Task
@MetaschemaAssembly(formalName="Associated Activity",
                    description="Identifies an individual activity to be performed as part of a task.",
                    name="associated-activity",
                    moduleClass=OscalAssessmentCommonModule.class,
                    modelConstraints=@AssemblyConstraints(unique=@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 Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Identifies an individual activity to be performed as part of a task.
- 
Constructor SummaryConstructorsConstructorDescriptionAssociatedActivity(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newResponsibleRoleitem to the underlying collection.booleanaddSubject(AssessmentSubject item) Add a newAssessmentSubjectitem to the underlying collection.getLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinebooleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingResponsibleRoleitem from the underlying collection.booleanRemove the first matchingAssessmentSubjectitem from the underlying collection.voidsetActivityUuid(UUID value) voidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetResponsibleRoles(List<ResponsibleRole> value) voidsetSubjects(List<AssessmentSubject> value) toString()
- 
Constructor Details- 
AssociatedActivitypublic AssociatedActivity()
- 
AssociatedActivity
 
- 
- 
Method Details- 
getMetaschemaData- Specified by:
- getMetaschemaDatain interface- gov.nist.secauto.metaschema.core.model.IBoundObject
 
- 
getActivityUuid
- 
setActivityUuid
- 
getProps
- 
setProps
- 
addPropAdd a newPropertyitem to the underlying collection.- Parameters:
- item- the item to add
- Returns:
- true
 
- 
removePropRemove the first matchingPropertyitem from the underlying collection.- Parameters:
- item- the item to remove
- Returns:
- trueif the item was removed or- falseotherwise
 
- 
getLinks
- 
setLinks
- 
addLinkAdd a newLinkitem to the underlying collection.- Parameters:
- item- the item to add
- Returns:
- true
 
- 
removeLinkRemove the first matchingLinkitem from the underlying collection.- Parameters:
- item- the item to remove
- Returns:
- trueif the item was removed or- falseotherwise
 
- 
getResponsibleRoles
- 
setResponsibleRoles
- 
addResponsibleRoleAdd a newResponsibleRoleitem to the underlying collection.- Parameters:
- item- the item to add
- Returns:
- true
 
- 
removeResponsibleRoleRemove the first matchingResponsibleRoleitem from the underlying collection.- Parameters:
- item- the item to remove
- Returns:
- trueif the item was removed or- falseotherwise
 
- 
getSubjects
- 
setSubjects
- 
addSubjectAdd a newAssessmentSubjectitem to the underlying collection.- Parameters:
- item- the item to add
- Returns:
- true
 
- 
removeSubjectRemove the first matchingAssessmentSubjectitem from the underlying collection.- Parameters:
- item- the item to remove
- Returns:
- trueif the item was removed or- falseotherwise
 
- 
getRemarks
- 
setRemarks
- 
toString
 
-