Package gov.nist.secauto.oscal.lib.model
Class Metadata.Party
java.lang.Object
gov.nist.secauto.oscal.lib.model.Metadata.Party
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
- Enclosing class:
- Metadata
@MetaschemaAssembly(formalName="Party",
description="An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.",
name="party",
moduleClass=OscalMetadataModule.class,
remarks="A party can be optionally associated with either an address or a location. While providing a meaningful location for a party is desired, there are some cases where it might not be possible to provide an exact location or even any location.",
valueConstraints=@ValueConstraints(allowedValues=@AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values={@AllowedValue(value="mail-stop",description="A mail stop associated with the party."),@AllowedValue(value="office",description="The name or number of the party\'s office."),@AllowedValue(value="job-title",description="The formal job title of a person.")})))
public static class Metadata.Party
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An identifier for a person or organization using a designated scheme. e.g. an Open Researcher and Contributor ID (ORCID). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAddress
(Address item) Add a newAddress
item to the underlying collection.boolean
addEmailAddress
(String item) Add a newString
item to the underlying collection.boolean
Add a newMetadata.Party.ExternalId
item to the underlying collection.boolean
Add a newLink
item to the underlying collection.boolean
addLocationUuid
(UUID item) Add a newUUID
item to the underlying collection.boolean
addMemberOfOrganization
(UUID item) Add a newUUID
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.boolean
Add a newTelephoneNumber
item to the underlying collection.getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getName()
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getType()
getUuid()
boolean
removeAddress
(Address item) Remove the first matchingAddress
item from the underlying collection.boolean
removeEmailAddress
(String item) Remove the first matchingString
item from the underlying collection.boolean
Remove the first matchingMetadata.Party.ExternalId
item from the underlying collection.boolean
removeLink
(Link item) Remove the first matchingLink
item from the underlying collection.boolean
removeLocationUuid
(UUID item) Remove the first matchingUUID
item from the underlying collection.boolean
Remove the first matchingUUID
item from the underlying collection.boolean
removeProp
(Property item) Remove the first matchingProperty
item from the underlying collection.boolean
Remove the first matchingTelephoneNumber
item from the underlying collection.void
setAddresses
(List<Address> value) void
setEmailAddresses
(List<String> value) void
void
void
setLocationUuids
(List<UUID> value) void
setMemberOfOrganizations
(List<UUID> value) void
void
void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
setShortName
(String value) void
setTelephoneNumbers
(List<TelephoneNumber> value) void
void
toString()
-
Constructor Details
-
Party
public Party() -
Party
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getType
-
setType
-
getName
-
setName
-
getShortName
-
setShortName
-
getExternalIds
-
setExternalIds
-
addExternalId
Add a newMetadata.Party.ExternalId
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeExternalId
Remove the first matchingMetadata.Party.ExternalId
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getProps
-
setProps
-
addProp
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLinks
-
setLinks
-
addLink
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getEmailAddresses
-
setEmailAddresses
-
addEmailAddress
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeEmailAddress
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getTelephoneNumbers
-
setTelephoneNumbers
-
addTelephoneNumber
Add a newTelephoneNumber
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeTelephoneNumber
Remove the first matchingTelephoneNumber
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getAddresses
-
setAddresses
-
addAddress
Add a newAddress
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAddress
Remove the first matchingAddress
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLocationUuids
-
setLocationUuids
-
addLocationUuid
Add a newUUID
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLocationUuid
Remove the first matchingUUID
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getMemberOfOrganizations
-
setMemberOfOrganizations
-
addMemberOfOrganization
Add a newUUID
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeMemberOfOrganization
Remove the first matchingUUID
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRemarks
-
setRemarks
-
toString
-