Class OrganizationBaseType
java.lang.Object
org.projecthusky.common.basetypes.OrganizationBaseType
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Organization
A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form
of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare
practice groups, payer/insurer, etc.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddress(AddressBaseType value) Adds an address.voidAdds an identificator.voidaddName(NameBaseType value) Adds a name.voidaddTelecom(TelecomBaseType value) Adds a telecom Element.static OrganizationBaseType.Builderbuilder()Creates builder to buildOrganizationBaseType.voidClears the address list.voidClears the identificator list.voidClears the name list.voidClears the telecom list.booleancontains(AddressBaseType value) Checks whether the list member contains the given value.booleancontains(IdentificatorBaseType value) Checks whether the list member contains the given value.booleancontains(NameBaseType value) Checks whether the list member contains the given value.booleancontains(TelecomBaseType value) Checks whether the list member contains the given value.booleanChecks whether the two objects are equal (based on their content).Gets the address list.Gets the identificator list.Gets the name list.Gets the null flavor.Gets the primary address.Gets the primary identificator.Gets the primary name.Gets the primary telecom.Gets the telecom list.inthashCode()Hash code.booleanChecks if the current instance is null flavored.voidsetAddressList(List<AddressBaseType> addressList) Sets the address list.voidsetIdentificatorList(List<IdentificatorBaseType> identificatorList) Sets the identificator list.voidsetNameList(List<NameBaseType> nameList) Sets the name list.voidsetNullFlavor(NullFlavor nullFlavor) Sets the null flavor.voidsetPrimaryAddress(AddressBaseType primaryAddress) Sets the primary address.voidsetPrimaryIdentificator(IdentificatorBaseType primaryIdentificator) Sets the primary identificator.voidsetPrimaryName(NameBaseType primaryName) Sets the primary name.voidsetPrimaryTelecom(TelecomBaseType primaryTelecom) Sets the primary telecom.voidsetTelecomList(List<TelecomBaseType> telecomList) Sets the telecom list.toString()Builds a string of the organization (primaryName and primaryAddress, only).
-
Constructor Details
-
OrganizationBaseType
public OrganizationBaseType()Instantiates a new OrganizationBaseType. Default constructor.
-
-
Method Details
-
builder
Creates builder to buildOrganizationBaseType.- Returns:
- created builder
-
addAddress
Adds an address. The first one becomes the primary address by default.- Parameters:
value- the value
-
addIdentificator
Adds an identificator. The first one becomes the primary identificator by default.- Parameters:
value- the value
-
addName
Adds a name. The first one becomes the primary name by default.- Parameters:
value- the value
-
addTelecom
Adds a telecom Element. The first one becomes the primary telecom by default.- Parameters:
value- the value
-
clearAddressList
public void clearAddressList()Clears the address list. -
clearIdentificatorList
public void clearIdentificatorList()Clears the identificator list. -
clearNameList
public void clearNameList()Clears the name list. -
clearTelecomList
public void clearTelecomList()Clears the telecom list. -
contains
Checks whether the list member contains the given value.- Parameters:
value- the value- Returns:
- true, if successful
-
contains
Checks whether the list member contains the given value.- Parameters:
value- the value- Returns:
- true, if successful
-
contains
Checks whether the list member contains the given value.- Parameters:
value- the value- Returns:
- true, if successful
-
contains
Checks whether the list member contains the given value.- Parameters:
value- the value- Returns:
- true, if successful
-
equals
Checks whether the two objects are equal (based on their content). -
getAddressList
Gets the address list.- Returns:
- the address list
-
setAddressList
Sets the address list.- Parameters:
addressList- the new address list
-
getIdentificatorList
Gets the identificator list.- Returns:
- the identificator list
-
setIdentificatorList
Sets the identificator list.- Parameters:
identificatorList- the new identificator list
-
getNameList
Gets the name list.- Returns:
- the name list
-
setNameList
Sets the name list.- Parameters:
nameList- the new name list
-
getNullFlavor
Gets the null flavor.- Returns:
- the null flavor
-
getPrimaryAddress
Gets the primary address.- Returns:
- the primary address
-
setPrimaryAddress
Sets the primary address. See gettergetPrimaryAddress()for more details.- Parameters:
primaryAddress- the new primary address
-
getPrimaryIdentificator
Gets the primary identificator.- Returns:
- the primary identificator
-
setPrimaryIdentificator
Sets the primary identificator. See gettergetPrimaryIdentificator()for more details.- Parameters:
primaryIdentificator- the new primary identificator
-
getPrimaryName
Gets the primary name.- Returns:
- the primary name
-
setPrimaryName
Sets the primary name. It will not automatically be added to the list of names. See gettergetPrimaryName()for more details.- Parameters:
primaryName- the new primary name
-
getPrimaryTelecom
Gets the primary telecom.- Returns:
- the primary telecom
-
setPrimaryTelecom
Sets the primary telecom. It will not automatically be added to the list of telecoms. See gettergetPrimaryTelecom()for more details.- Parameters:
primaryTelecom- the new primary telecom
-
getTelecomList
Gets the telecom list.- Returns:
- the telecom list
-
setTelecomList
Sets the telecom list.- Parameters:
telecomList- the new telecom list
-
hashCode
public int hashCode()Hash code. -
isNullFlavor
public boolean isNullFlavor()Checks if the current instance is null flavored.- Returns:
- true, if is null flavor
-
setNullFlavor
Sets the null flavor.- Parameters:
nullFlavor- the new null flavor
-
toString
Builds a string of the organization (primaryName and primaryAddress, only).
-