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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAddrLine(String item) Add a newStringitem to the underlying collection.getCity()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetState()getType()booleanremoveAddrLine(String item) Remove the first matchingStringitem from the underlying collection.voidsetAddrLines(List<String> value) voidvoidsetCountry(String value) voidsetPostalCode(String value) voidvoidtoString()
-
Constructor Details
-
Address
public Address() -
Address
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getType
-
setType
-
getAddrLines
-
setAddrLines
-
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
-
setCity
-
getState
-
setState
-
getPostalCode
-
setPostalCode
-
getCountry
-
setCountry
-
toString
-