Package gov.nist.secauto.oscal.lib.model
Class Address
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Address
-
@MetaschemaAssembly(formalName="Address", description="A postal address for the location.", name="address", metaschema=OscalMetadataMetaschema.class) public class Address extends ObjectA postal address for the location.
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAddrLine(String item)Add a newStringitem to the underlying collection.List<String>getAddrLines()StringgetCity()StringgetCountry()StringgetPostalCode()StringgetState()StringgetType()booleanremoveAddrLine(String item)Remove the first matchingStringitem from the underlying collection.voidsetAddrLines(List<String> value)voidsetCity(String value)voidsetCountry(String value)voidsetPostalCode(String value)voidsetState(String value)voidsetType(String value)StringtoString()
-
-
-
Constructor Detail
-
Address
public Address()
-
-
Method Detail
-
getAddrLines
public List<String> getAddrLines()
-
setAddrLines
public void setAddrLines(List<String> value)
-
addAddrLine
public boolean addAddrLine(String item)
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAddrLine
public boolean removeAddrLine(String item)
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getPostalCode
public String getPostalCode()
-
setPostalCode
public void setPostalCode(String value)
-
getCountry
public String getCountry()
-
setCountry
public void setCountry(String value)
-
-