Package dev.metaschema.oscal.lib.model
Class Address
java.lang.Object
dev.metaschema.oscal.lib.model.Address
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Address",
description="A postal address for the location.",
name="address",
moduleClass=OscalMetadataModule.class)
public class Address
extends Object
implements dev.metaschema.core.model.IBoundObject
A postal address for the location.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAddrLine(String item) Add a newStringitem to the underlying collection.Get the "Address line".getCity()Get the "City".Get the "Country Code".dev.metaschema.core.model.IMetaschemaDataGet the "Postal Code".getState()Get the "State".getType()Get the "Address Type".booleanremoveAddrLine(String item) Remove the first matchingStringitem from the underlying collection.voidsetAddrLines(List<String> value) Set the "Address line".voidSet the "City".voidsetCountry(String value) Set the "Country Code".voidsetPostalCode(String value) Set the "Postal Code".voidSet the "State".voidSet the "Address Type".toString()
-
Constructor Details
-
Address
public Address()Constructs a newdev.metaschema.oscal.lib.model.Addressinstance with no metadata. -
Address
Constructs a newdev.metaschema.oscal.lib.model.Addressinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getType
Get the "Address Type".Indicates the type of address.
- Returns:
- the type value, or
nullif not set
-
setType
Set the "Address Type".Indicates the type of address.
- Parameters:
value- the type value to set, ornullto clear
-
getAddrLines
Get the "Address line".A single line of an address.
- Returns:
- the addr-line value
-
setAddrLines
Set the "Address line".A single line of an address.
- Parameters:
value- the addr-line value to set
-
addAddrLine
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAddrLine
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getCity
Get the "City".City, town or geographical region for the mailing address.
- Returns:
- the city value, or
nullif not set
-
setCity
Set the "City".City, town or geographical region for the mailing address.
- Parameters:
value- the city value to set, ornullto clear
-
getState
Get the "State".State, province or analogous geographical region for a mailing address.
- Returns:
- the state value, or
nullif not set
-
setState
Set the "State".State, province or analogous geographical region for a mailing address.
- Parameters:
value- the state value to set, ornullto clear
-
getPostalCode
Get the "Postal Code".Postal or ZIP code for mailing address.
- Returns:
- the postal-code value, or
nullif not set
-
setPostalCode
Set the "Postal Code".Postal or ZIP code for mailing address.
- Parameters:
value- the postal-code value to set, ornullto clear
-
getCountry
Get the "Country Code".The ISO 3166-1 alpha-2 country code for the mailing address.
- Returns:
- the country value, or
nullif not set
-
setCountry
Set the "Country Code".The ISO 3166-1 alpha-2 country code for the mailing address.
- Parameters:
value- the country value to set, ornullto clear
-
toString
-