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 Object
A postal address for the location.
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAddrLine(String item)
Add a newString
item to the underlying collection.List<String>
getAddrLines()
String
getCity()
String
getCountry()
String
getPostalCode()
String
getState()
String
getType()
boolean
removeAddrLine(String item)
Remove the first matchingString
item from the underlying collection.void
setAddrLines(List<String> value)
void
setCity(String value)
void
setCountry(String value)
void
setPostalCode(String value)
void
setState(String value)
void
setType(String value)
String
toString()
-
-
-
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 newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAddrLine
public boolean removeAddrLine(String item)
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getPostalCode
public String getPostalCode()
-
setPostalCode
public void setPostalCode(String value)
-
getCountry
public String getCountry()
-
setCountry
public void setCountry(String value)
-
-