Package gov.nist.secauto.oscal.lib.model
Class ResponsibleRole
java.lang.Object
gov.nist.secauto.oscal.lib.model.ResponsibleRole
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@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",
moduleClass=OscalMetadataModule.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 Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
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.
-
Constructor Summary
ConstructorsConstructorDescriptionResponsibleRole(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanaddPartyUuid(UUID item) Add a newUUIDitem to the underlying collection.booleanAdd a newPropertyitem 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.booleanremovePartyUuid(UUID item) Remove the first matchingUUIDitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidvoidsetPartyUuids(List<UUID> value) voidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidtoString()
-
Constructor Details
-
ResponsibleRole
public ResponsibleRole() -
ResponsibleRole
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getRoleId
-
setRoleId
-
getProps
-
setProps
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
-
setLinks
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getPartyUuids
-
setPartyUuids
-
addPartyUuid
Add a newUUIDitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePartyUuid
Remove the first matchingUUIDitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-