|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elexis.util.GenderService
public class GenderService
This rudimentary Plugin for the GenderService simply calls the method isFemale() to test if a name is probably male or female. This is the old method used in Elexis.
| Field Summary |
|---|
| Fields inherited from interface ch.elexis.util.IGenderService |
|---|
dbFemaleString, dbMaleString, FEMALE, FEMALE_STR, FIRSTNAME_SEXES_STR, GENDERUNDEFINED, GENDERUNDEFINED_STR, MALE, MALE_STR, UNISEX, UNISEX_STR |
| Constructor Summary | |
|---|---|
GenderService()
|
|
| Method Summary | |
|---|---|
java.lang.Boolean |
addFirstname(java.lang.String firstname,
java.lang.String sex)
Adds a first name to the table. |
java.lang.Boolean |
addFirstname(java.lang.String firstname,
java.lang.String sex,
boolean userRecord)
Adds a first name to the table. |
int |
getGender(java.lang.String firstName)
Return the gender of the first name for param firstname. |
int |
getGender(java.lang.String firstName,
boolean userRecord)
Return the gender of the first name for param firstname. if userRecord is true then we look for the firstname in the user records only. |
java.lang.String |
getGenderString(java.lang.String firstName)
Return the gender of the first name for param firstname. |
java.lang.String |
getGenderString(java.lang.String firstname,
boolean userRecord)
Return the gender of the first name for param firstname. if userRecord is true then we look for the firstname in the user records only. |
void |
setInitializationData(IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenderService()
| Method Detail |
|---|
public void setInitializationData(IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
throws CoreException
CoreExceptionpublic int getGender(java.lang.String firstName)
IGenderService
getGender in interface IGenderService
public int getGender(java.lang.String firstName,
boolean userRecord)
IGenderService
getGender in interface IGenderServicefirstName - first nameuserRecord - boolean, true if we should look for a user record, else we
look for an imported record
public java.lang.String getGenderString(java.lang.String firstName)
IGenderService
getGenderString in interface IGenderService
public java.lang.String getGenderString(java.lang.String firstname,
boolean userRecord)
IGenderService
getGenderString in interface IGenderServicefirstname - = first nameuserRecord - boolean, true if we should look for a user record, else we
look for an imported record
public java.lang.Boolean addFirstname(java.lang.String firstname,
java.lang.String sex)
IGenderService
addFirstname in interface IGenderServicefirstname - = first namesex - = gender, String, "m", "w", "b" (both male AND female), all
others are not added to the db
public java.lang.Boolean addFirstname(java.lang.String firstname,
java.lang.String sex,
boolean userRecord)
IGenderService
addFirstname in interface IGenderServicefirstname - first namesex - gender, String, "m", "w", "b" (both male AND female), all
others are not added to the dbuserRecord - true if add to user records (alphanumeric id's), false if add
to imported records (numeric id's)
|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||