public class FN extends CompositeDataType
THis data type allows full specification of the surname of a person.
Represents an HL7 FN data type. This data type has the following attributes:
1. Surname (ST)Required
2. Own Surname Prefix (ST)Optional
3. Own Surname (ST)Optional
4. Surname Prefix From Partner/Spouse (ST)Optional
5. Surname From Partner/Spouse (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 |
|---|
FN()
Default Constructor for FN
|
FN(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for FN class which takes two arguments and
sets the value in the respective member variable.
|
FN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for FN class which takes four arguments and
sets the value in the respective member variable.
|
FN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for FN class which takes six arguments and
sets the value in the respective member variable.
|
FN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for FN class which takes four arguments and
sets the value in the respective member variable.
|
FN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for FN 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.
|
ST |
getOwnSurname()
Returns Own Surname
|
ST |
getOwnSurnamePrefix()
Returns Own Surname Prefix
|
ST |
getSurname()
Returns Surname
|
ST |
getSurnameFromPartnerSpouse()
Returns Surname From Partner/Spouse
|
ST |
getSurnamePrefixFromPartnerSpouse()
Returns Surname Prefix From Partner/Spouse
|
void |
setOwnSurname(ST objST)
Sets the OwnSurname.
|
void |
setOwnSurname(java.lang.String strOwnSurname)
Sets the OwnSurname.
|
void |
setOwnSurnamePrefix(ST objST)
Sets the OwnSurnamePrefix.
|
void |
setOwnSurnamePrefix(java.lang.String strOwnSurnamePrefix)
Sets the OwnSurnamePrefix.
|
void |
setSurname(ST objST)
Sets the Surname.
|
void |
setSurname(java.lang.String strSurname)
Sets the Surname.
|
void |
setSurnameFromPartnerSpouse(ST objST)
Sets the SurnameFromPartnerSpouse.
|
void |
setSurnameFromPartnerSpouse(java.lang.String strSurnameFromPartnerSpouse)
Sets the SurnameFromPartnerSpouse.
|
void |
setSurnamePrefixFromPartnerSpouse(ST objST)
Sets the SurnamePrefixFromPartnerSpouse.
|
void |
setSurnamePrefixFromPartnerSpouse(java.lang.String strSurnamePrefixFromPartnerSpouse)
Sets the SurnamePrefixFromPartnerSpouse.
|
boolean |
validate()
The Method validates the Input value,and if validated properly then returns true.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, write, writeToXMLpublic FN()
public FN(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 FN(int iMinLength, int iMaxLength, java.lang.String strCLength, int iTableNo, 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.iTableNo - The Table number to which the value for the component is specified.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public FN(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 FN(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 FN(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, int ITableNo, 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.iTableNo - The Table number to which the value for the component is specified.InvalidComponentTypeException - - if Component Type is not specified or valid.public void setSurname(java.lang.String strSurname)
strSurname - Specifies the person's family name.public void setSurname(ST objST)
objST - Specifies the person's family name.public void setOwnSurnamePrefix(java.lang.String strOwnSurnamePrefix)
strOwnSurnamePrefix - Specifies internationalization usage for Germanic languages.public void setOwnSurnamePrefix(ST objST)
objST - Specifies internationalization usage for Germanic languages.public void setOwnSurname(java.lang.String strOwnSurname)
strOwnSurname - Specifies The portion of the surname (in most Western usage, the last name)
that is derived from the person's own surname.public void setOwnSurname(ST objST)
objST - Specifies The portion of the surname (in most Western usage, the last name)
that is derived from the person's own surname.public void setSurnamePrefixFromPartnerSpouse(java.lang.String strSurnamePrefixFromPartnerSpouse)
strSurnamePrefixFromPartnerSpouse - Specifies internationalization usage for Germanic languages. An
example of a surname prefix is the "van" in "Ludwig van Beethoven".public void setSurnamePrefixFromPartnerSpouse(ST objST)
objST - Specifies internationalization usage for Germanic languages. An
example of a surname prefix is the "van" in "Ludwig van Beethoven".public void setSurnameFromPartnerSpouse(java.lang.String strSurnameFromPartnerSpouse)
strSurnameFromPartnerSpouse - Specifies the portion of the person's surname (in most Western usage,
the last name) that is derived from the surname of the person's partner or spouse.public void setSurnameFromPartnerSpouse(ST objST)
objST - Specifies the portion of the person's surname (in most Western usage,
the last name) that is derived from the surname of the person's partner or spouse.public ST getSurname()
public ST getOwnSurnamePrefix()
public ST getOwnSurname()
public ST getSurnamePrefixFromPartnerSpouse()
public ST getSurnameFromPartnerSpouse()
public boolean validate()
throws InvalidDataTypeException
validate in interface IDataTypevalidate in class CompositeDataTypeInvalidDataTypeException - - if Invalid values is entered or Mandatory field is missing.public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.