Package gov.nist.secauto.oscal.lib.model
Class ResponsibleParty
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.ResponsibleParty
-
@MetaschemaAssembly(formalName="Responsible Party", description="A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.", name="responsible-party", metaschema=OscalMetadataMetaschema.class, remarks="A `responsible-party` requires one or more `party-uuid` references creating a strong relationship arc between the referenced `role-id` and the reference parties. This differs in semantics from `responsible-role` which doesn\'t require that a `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.") @ValueConstraints(indexHasKey=@IndexHasKey(level=ERROR,indexName="index-metadata-role-id",keyFields=@KeyField(target="@role-id"))) public class ResponsibleParty extends Object
A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.
-
-
Constructor Summary
Constructors Constructor Description ResponsibleParty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addPartyUuid(UUID item)
Add a newUUID
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.List<Link>
getLinks()
List<UUID>
getPartyUuids()
List<Property>
getProps()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
String
getRoleId()
boolean
removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.boolean
removePartyUuid(UUID item)
Remove the first matchingUUID
item from the underlying collection.boolean
removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.void
setLinks(List<Link> value)
void
setPartyUuids(List<UUID> value)
void
setProps(List<Property> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setRoleId(String value)
String
toString()
-
-
-
Constructor Detail
-
ResponsibleParty
public ResponsibleParty()
-
-
Method Detail
-
getPartyUuids
public List<UUID> getPartyUuids()
-
setPartyUuids
public void setPartyUuids(List<UUID> value)
-
addPartyUuid
public boolean addPartyUuid(UUID item)
Add a newUUID
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removePartyUuid
public boolean removePartyUuid(UUID item)
Remove the first matchingUUID
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addProp
public boolean addProp(Property item)
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addLink
public boolean addLink(Link item)
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
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)
-
-