public class AD extends CompositeDataType
This data type specifies the address of a person, place or organization.
Represents an HL7 AD data type. This data type has the following attributes:
1. street address (ST)Optional
2. other designation (ST)Optional
3. city (ST)Optional
4. state or province (ST)Optional
5. zip or postal code (ST)Optional
6. country (ID)Optional
7. address type (ID)Optional
8. other geographic designation (ST)Optional
This class provides accessors & mutators for the elements mentioned above. This class override the equal method, to check whether some other object is "equal to" this one.
User can also create Data Type through DataElementFactory
| Constructor and Description |
|---|
AD()
Default constructor for AD.
|
AD(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for AD class which takes three arguments and
sets the value in the respective member variable.
|
AD(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for AD class which takes five arguments and
sets the value in the respective member variable.
|
AD(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for AD class which takes six arguments and
sets the value in the respective member variable.
|
AD(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for AD class which takes four arguments and
sets the value in the respective member variable.
|
AD(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for AD class which takes five arguments and
sets the value in the respective member variable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object objObject)
This method checks the equality of Object.
|
ID |
getAddressType()
Returns Address Type
|
ST |
getCity()
Returns City
|
ID |
getCountry()
Returns Country
|
ST |
getOtherDesignation()
Returns Other Designation
|
ST |
getOtherGeographicDesignation()
Returns Other Geographic Designation
|
ST |
getStateOrProvince()
Returns State or Province
|
ST |
getStreetAddress()
Returns Street Address.
|
ST |
getZipOrPostalCode()
Returns Zip or Postal Code
|
void |
setAddressType(ID objID)
Sets the Address Type.
|
void |
setAddressType(java.lang.String strAddressType)
Sets the Address Type.
|
void |
setCity(ST objST)
Sets the City.
|
void |
setCity(java.lang.String strCity)
Sets the City.
|
void |
setCountry(ID objID)
Sets the Country.
|
void |
setCountry(java.lang.String strCountry)
Sets the Country.
|
void |
setOtherDesignation(ST objST)
Sets the Other Designation.
|
void |
setOtherDesignation(java.lang.String strOtherDesignation)
Sets the Other Designation.
|
void |
setOtherGeographicDesignation(ST objST)
Sets the Other Geographic Designation.
|
void |
setOtherGeographicDesignation(java.lang.String strOtherGeographicDesignation)
Sets the Other Geographic Designation.
|
void |
setStateOrProvince(ST objST)
Sets the State Or Province.
|
void |
setStateOrProvince(java.lang.String strStateOrProvince)
Sets the State Or Province.
|
void |
setStreetAddress(ST objST)
Sets the Street Address.
|
void |
setStreetAddress(java.lang.String strStreetAddress)
Sets the Street Address.
|
void |
setZipOrPostalCode(ST objST)
Sets the Zip Or Postal Code.
|
void |
setZipOrPostalCode(java.lang.String strZipOrPostalCode)
Sets the Zip Or Postal Code.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, validate, write, writeToXMLpublic AD()
public AD(int iMinLength, int iMaxLength, java.lang.String strCLength, int iComponentType) throws InvalidComponentTypeException
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public AD(int iMinLength, int iMaxLength, java.lang.String strCLength, int iTableNo, int iComponentType)
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.InvalidComponentTypeException - - if Component Type is not specified or valid.public AD(int iComponentType, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public AD(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.InvalidComponentTypeException - - if Component Type is not specified or valid.public AD(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, int ITableNo, IDataTypeMap objIDataTypeMap)
iComponentType - The Type of the component i.e Component or a subcomponent.iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iTableNo - The Table number to which the value for the component is specified.objIDataTypeMap - object of Data Type Map.InvalidComponentTypeException - - if Component Type is not specified or valid.public void setStreetAddress(java.lang.String strStreetAddress)
strStreetAddress - Specifies the street or mailing address of a person or institution.public void setStreetAddress(ST objST)
objST - object of Street Address.public void setOtherDesignation(java.lang.String strOtherDesignation)
strOtherDesignation - Specifies the second line of address.public void setOtherDesignation(ST objST)
objST - object of Other Designation.public void setCity(java.lang.String strCity)
strCity - Specifies the city, district or place where the addressee is located depending upon the national
convention for formatting addresses for postal usage.public void setCity(ST objST)
objST - object of city, Specifies the city, district or place where the addressee is located depending upon the national
convention for formatting addresses for postal usage.public void setStateOrProvince(java.lang.String strStateOrProvince)
strStateOrProvince - Specifies the state or province where the addressee is located.public void setStateOrProvince(ST objST)
objST - object Specifies the state or province where the addressee is located.public void setZipOrPostalCode(java.lang.String strZipOrPostalCode)
strZipOrPostalCode - Specifies the zip or postal code where the addressee is located.public void setZipOrPostalCode(ST objST)
objST - object Sets the Zip Or Postal Code.public void setCountry(java.lang.String strCountry)
strCountry - Specifies the country where the addressee is located. Refer to HL7 Table 0399.public void setCountry(ID objID)
objID - object of Country.public void setAddressType(java.lang.String strAddressType)
strAddressType - Specifies the kind or type of address. Refer to HL7 Table 0190 - Address Type.public void setAddressType(ID objID)
strAddressType - Specifies the kind or type of address. Refer to HL7 Table 0190 - Address Type.public void setOtherGeographicDesignation(java.lang.String strOtherGeographicDesignation)
strOtherGeographicDesignation - Specifies any other geographic designation that may be necessary.public void setOtherGeographicDesignation(ST objST)
objST - object Specifies any other geographic designation that may be necessary.public ST getStreetAddress()
public ST getOtherDesignation()
public ST getCity()
public ST getStateOrProvince()
public ST getZipOrPostalCode()
public ID getCountry()
public ID getAddressType()
public ST getOtherGeographicDesignation()
public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.