Package gov.nist.secauto.oscal.lib.model
Class ResponsibleRole
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.ResponsibleRole
-
@MetaschemaAssembly(formalName="Responsible Role", description="A reference to a role with responsibility for performing a function relative to the containing object, optionally associated with a set of persons and/or organizations that perform that role.", name="responsible-role", metaschema=OscalMetadataMetaschema.class, remarks="A `responsible-role` allows zero or more `party-uuid` references, each of which creates a relationship arc between the referenced `role-id` and the referenced party. This differs in semantics from `responsible-party`, which requires that at least one `party-uuid` is referenced.\n\nThe scope of use of this object determines if the responsibility has been performed or will be performed in the future. The containing object will describe the intent.") public class ResponsibleRole extends ObjectA reference to a role with responsibility for performing a function relative to the containing object, optionally associated with a set of persons and/or organizations that perform that role.
-
-
Constructor Summary
Constructors Constructor Description ResponsibleRole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddPartyUuid(UUID item)Add a newUUIDitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.List<Link>getLinks()List<UUID>getPartyUuids()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()StringgetRoleId()booleanremoveLink(Link item)Remove the first matchingLinkitem from the underlying collection.booleanremovePartyUuid(UUID item)Remove the first matchingUUIDitem from the underlying collection.booleanremoveProp(Property item)Remove the first matchingPropertyitem from the underlying collection.voidsetLinks(List<Link> value)voidsetPartyUuids(List<UUID> value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetRoleId(String value)StringtoString()
-
-
-
Constructor Detail
-
ResponsibleRole
public ResponsibleRole()
-
-
Method Detail
-
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
-
getPartyUuids
public List<UUID> getPartyUuids()
-
setPartyUuids
public void setPartyUuids(List<UUID> value)
-
addPartyUuid
public boolean addPartyUuid(UUID item)
Add a newUUIDitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePartyUuid
public boolean removePartyUuid(UUID item)
Remove the first matchingUUIDitem 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)
-
-