Package org.projecthusky.common.model
Class Address
java.lang.Object
org.projecthusky.common.basetypes.AddressBaseType
org.projecthusky.common.model.Address
- All Implemented Interfaces:
Serializable
The class Address contains all necessary fields for a postal address. This class also provides mapping methods to
other data types.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.projecthusky.common.basetypes.AddressBaseType
AddressBaseType.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionAddress
(AddressBaseType baseType) Instantiates a new instance from the given base type.Instantiates a new instance from the given HL7 CDA R2 data type. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddressBaseType
createAddressBaseType
(AD hl7CdaR2Value) Creates the base type from the given HL7 CDA R2 value.static AD
createHl7CdaR2Ad
(AddressBaseType baseType) Creates the HL7 CDA R2 data type from the given base type.Gets the HL7 CDA R2 data type from the current instance.void
set
(AddressBaseType baseType) Sets the fields of the current instance by the given base type.void
Sets the fields of the current instance by the given HL7 CDA R2 data type.Methods inherited from class org.projecthusky.common.basetypes.AddressBaseType
builder, equals, getAdditionalLocator, getBuildingNumber, getCity, getCountry, getNullFlavor, getPostalCode, getPostBox, getState, getStreetAddressLine1, getStreetAddressLine2, getStreetName, getUsage, hashCode, isNullFlavor, setAdditionalLocator, setBuildingNumber, setCity, setCountry, setNullFlavor, setPostalCode, setPostBox, setState, setStreetAddressLine1, setStreetAddressLine2, setStreetName, setUsage, toString
-
Constructor Details
-
Address
Instantiates a new instance from the given base type.- Parameters:
baseType
- the base type
-
Address
Instantiates a new instance from the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data type
-
-
Method Details
-
createAddressBaseType
Creates the base type from the given HL7 CDA R2 value.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 value- Returns:
- the base type
-
createHl7CdaR2Ad
Creates the HL7 CDA R2 data type from the given base type.- Parameters:
baseType
- the base type- Returns:
- the HL7 CDA R2 data typed value
-
getHl7CdaR2Ad
Gets the HL7 CDA R2 data type from the current instance.- Returns:
- the HL7 CDA R2 data type
-
set
Sets the fields of the current instance by the given base type.- Parameters:
baseType
- the base type
-
set
Sets the fields of the current instance by the given HL7 CDA R2 data type.- Parameters:
hl7CdaR2Value
- the HL7 CDA R2 data typed value
-