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
Nested ClassesModifier and TypeClassDescriptionstatic classAn identifier for a person or organization using a designated scheme. e.g. an Open Researcher and Contributor ID (ORCID). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAddress(Address item) Add a newAddressitem to the underlying collection.booleanaddEmailAddress(String item) Add a newStringitem to the underlying collection.booleanAdd a newMetadata.Party.ExternalIditem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanaddLocationUuid(UUID item) Add a newUUIDitem to the underlying collection.booleanaddMemberOfOrganization(UUID item) Add a newUUIDitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newTelephoneNumberitem to the underlying collection.getLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetName()getProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetType()getUuid()booleanremoveAddress(Address item) Remove the first matchingAddressitem from the underlying collection.booleanremoveEmailAddress(String item) Remove the first matchingStringitem from the underlying collection.booleanRemove the first matchingMetadata.Party.ExternalIditem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveLocationUuid(UUID item) Remove the first matchingUUIDitem from the underlying collection.booleanRemove the first matchingUUIDitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingTelephoneNumberitem from the underlying collection.voidsetAddresses(List<Address> value) voidsetEmailAddresses(List<String> value) voidvoidvoidsetLocationUuids(List<UUID> value) voidsetMemberOfOrganizations(List<UUID> value) voidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetShortName(String value) voidsetTelephoneNumbers(List<TelephoneNumber> value) voidvoidtoString()
-
Constructor Details
-
Party
public Party() -
Party
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getType
-
setType
-
getName
-
setName
-
getShortName
-
setShortName
-
getExternalIds
-
setExternalIds
-
addExternalId
Add a newMetadata.Party.ExternalIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeExternalId
Remove the first matchingMetadata.Party.ExternalIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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
-
getEmailAddresses
-
setEmailAddresses
-
addEmailAddress
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeEmailAddress
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTelephoneNumbers
-
setTelephoneNumbers
-
addTelephoneNumber
Add a newTelephoneNumberitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTelephoneNumber
Remove the first matchingTelephoneNumberitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAddresses
-
setAddresses
-
addAddress
Add a newAddressitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAddress
Remove the first matchingAddressitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLocationUuids
-
setLocationUuids
-
addLocationUuid
Add a newUUIDitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLocationUuid
Remove the first matchingUUIDitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getMemberOfOrganizations
-
setMemberOfOrganizations
-
addMemberOfOrganization
Add a newUUIDitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMemberOfOrganization
Remove the first matchingUUIDitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-