Package gov.nist.secauto.oscal.lib.model
Class Address
java.lang.Object
gov.nist.secauto.oscal.lib.model.Address
- All Implemented Interfaces:
gov.nist.secauto.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 gov.nist.secauto.metaschema.core.model.IBoundObject
A postal address for the location.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAddrLine
(String item) Add a newString
item to the underlying collection.getCity()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getState()
getType()
boolean
removeAddrLine
(String item) Remove the first matchingString
item from the underlying collection.void
setAddrLines
(List<String> value) void
void
setCountry
(String value) void
setPostalCode
(String value) void
void
toString()
-
Constructor Details
-
Address
public Address() -
Address
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getType
-
setType
-
getAddrLines
-
setAddrLines
-
addAddrLine
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAddrLine
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getCity
-
setCity
-
getState
-
setState
-
getPostalCode
-
setPostalCode
-
getCountry
-
setCountry
-
toString
-