Package gov.nist.secauto.oscal.lib.model
Class Metadata.Party
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Metadata.Party
-
- 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", metaschema=OscalMetadataMetaschema.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(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 ObjectAn organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetadata.Party.ExternalIdAn identifier for a person or organization using a designated scheme.
-
Constructor Summary
Constructors Constructor Description Party()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAddress(Address item)Add a newAddressitem to the underlying collection.booleanaddEmailAddress(String item)Add a newStringitem to the underlying collection.booleanaddExternalId(Metadata.Party.ExternalId item)Add a newMetadata.Party.ExternalIditem to the underlying collection.booleanaddLink(Link item)Add 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.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddTelephoneNumber(TelephoneNumber item)Add a newTelephoneNumberitem to the underlying collection.List<Address>getAddresses()List<String>getEmailAddresses()List<Metadata.Party.ExternalId>getExternalIds()List<Link>getLinks()List<UUID>getLocationUuids()List<UUID>getMemberOfOrganizations()StringgetName()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()StringgetShortName()List<TelephoneNumber>getTelephoneNumbers()StringgetType()UUIDgetUuid()booleanremoveAddress(Address item)Remove the first matchingAddressitem from the underlying collection.booleanremoveEmailAddress(String item)Remove the first matchingStringitem from the underlying collection.booleanremoveExternalId(Metadata.Party.ExternalId item)Remove 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.booleanremoveMemberOfOrganization(UUID item)Remove the first matchingUUIDitem from the underlying collection.booleanremoveProp(Property item)Remove the first matchingPropertyitem from the underlying collection.booleanremoveTelephoneNumber(TelephoneNumber item)Remove the first matchingTelephoneNumberitem from the underlying collection.voidsetAddresses(List<Address> value)voidsetEmailAddresses(List<String> value)voidsetExternalIds(List<Metadata.Party.ExternalId> value)voidsetLinks(List<Link> value)voidsetLocationUuids(List<UUID> value)voidsetMemberOfOrganizations(List<UUID> value)voidsetName(String value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetShortName(String value)voidsetTelephoneNumbers(List<TelephoneNumber> value)voidsetType(String value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
Party
public Party()
-
-
Method Detail
-
getShortName
public String getShortName()
-
setShortName
public void setShortName(String value)
-
getExternalIds
public List<Metadata.Party.ExternalId> getExternalIds()
-
setExternalIds
public void setExternalIds(List<Metadata.Party.ExternalId> value)
-
addExternalId
public boolean addExternalId(Metadata.Party.ExternalId item)
Add a newMetadata.Party.ExternalIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeExternalId
public boolean removeExternalId(Metadata.Party.ExternalId item)
Remove the first matchingMetadata.Party.ExternalIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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
-
getEmailAddresses
public List<String> getEmailAddresses()
-
setEmailAddresses
public void setEmailAddresses(List<String> value)
-
addEmailAddress
public boolean addEmailAddress(String item)
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeEmailAddress
public boolean removeEmailAddress(String item)
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTelephoneNumbers
public List<TelephoneNumber> getTelephoneNumbers()
-
setTelephoneNumbers
public void setTelephoneNumbers(List<TelephoneNumber> value)
-
addTelephoneNumber
public boolean addTelephoneNumber(TelephoneNumber item)
Add a newTelephoneNumberitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTelephoneNumber
public boolean removeTelephoneNumber(TelephoneNumber item)
Remove the first matchingTelephoneNumberitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAddresses
public List<Address> getAddresses()
-
setAddresses
public void setAddresses(List<Address> value)
-
addAddress
public boolean addAddress(Address item)
Add a newAddressitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAddress
public boolean removeAddress(Address item)
Remove the first matchingAddressitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLocationUuids
public List<UUID> getLocationUuids()
-
setLocationUuids
public void setLocationUuids(List<UUID> value)
-
addLocationUuid
public boolean addLocationUuid(UUID item)
Add a newUUIDitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLocationUuid
public boolean removeLocationUuid(UUID item)
Remove the first matchingUUIDitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getMemberOfOrganizations
public List<UUID> getMemberOfOrganizations()
-
setMemberOfOrganizations
public void setMemberOfOrganizations(List<UUID> value)
-
addMemberOfOrganization
public boolean addMemberOfOrganization(UUID item)
Add a newUUIDitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMemberOfOrganization
public boolean removeMemberOfOrganization(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)
-
-