Package gov.nist.secauto.oscal.lib.model
Class Metadata.Location
java.lang.Object
gov.nist.secauto.oscal.lib.model.Metadata.Location
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
- Enclosing class:
- Metadata
@MetaschemaAssembly(formalName="Location",
description="A physical point of presence, which may be associated with people, organizations, or other concepts within the current or linked OSCAL document.",
name="location",
moduleClass=OscalMetadataModule.class,
remarks="An address might be sensitive in nature. In such cases a title, mailing address, email-address, and/or phone number may be used instead.",
valueConstraints=@AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values=@AllowedValue(value="type",description="Characterizes the kind of location.")) @AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=\'type\']/@value",values=@AllowedValue(value="data-center",description="A location that contains computing assets. A `class` can be used to indicate the sub-type of data-center as *primary* or *alternate*.")) @AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=\'type\' and @value=\'data-center\']/@class",values={@AllowedValue(value="primary",description="The location is a data-center used for normal operations."),@AllowedValue(value="alternate",description="The location is a data-center used for fail-over or backup operations.")}),
modelConstraints=@HasCardinality(description="In most cases, it is useful to define a location. In some cases, defining an explicit location may represent a security risk.",level=WARNING,target="address",minOccurs=1) @HasCardinality(description="A location must have at least a title, address, email-address, or telephone number.",level=ERROR,target="title|address|email-address|telephone-number",minOccurs=1))
public static class Metadata.Location
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
A physical point of presence, which may be associated with people, organizations, or other concepts within the current or linked OSCAL document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEmailAddress(String item) Add a newStringitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newTelephoneNumberitem to the underlying collection.booleanAdd a newURIitem to the underlying collection.getLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegov.nist.secauto.metaschema.core.datatype.markup.MarkupLinegetTitle()getUrls()getUuid()booleanremoveEmailAddress(String item) Remove the first matchingStringitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingTelephoneNumberitem from the underlying collection.booleanRemove the first matchingURIitem from the underlying collection.voidsetAddress(Address value) voidsetEmailAddresses(List<String> value) voidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetTelephoneNumbers(List<TelephoneNumber> value) voidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) voidvoidtoString()
-
Constructor Details
-
Location
public Location() -
Location
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getTitle
-
setTitle
-
getAddress
-
setAddress
-
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
-
getUrls
-
setUrls
-
addUrl
Add a newURIitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeUrl
Remove the first matchingURIitem 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
-
getRemarks
-
setRemarks
-
toString
-