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 TypeMethodDescriptionvoid
addAddress
(AddressBaseType value) Adds an address.void
Adds an identificator.void
addName
(NameBaseType value) Adds a name.void
addTelecom
(TelecomBaseType value) Adds a telecom Element.static OrganizationBaseType.Builder
builder()
Creates builder to buildOrganizationBaseType
.void
Clears the address list.void
Clears the identificator list.void
Clears the name list.void
Clears the telecom list.boolean
contains
(AddressBaseType value) Checks whether the list member contains the given value.boolean
contains
(IdentificatorBaseType value) Checks whether the list member contains the given value.boolean
contains
(NameBaseType value) Checks whether the list member contains the given value.boolean
contains
(TelecomBaseType value) Checks whether the list member contains the given value.boolean
Checks 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.int
hashCode()
Hash code.boolean
Checks if the current instance is null flavored.void
setAddressList
(List<AddressBaseType> addressList) Sets the address list.void
setIdentificatorList
(List<IdentificatorBaseType> identificatorList) Sets the identificator list.void
setNameList
(List<NameBaseType> nameList) Sets the name list.void
setNullFlavor
(NullFlavor nullFlavor) Sets the null flavor.void
setPrimaryAddress
(AddressBaseType primaryAddress) Sets the primary address.void
setPrimaryIdentificator
(IdentificatorBaseType primaryIdentificator) Sets the primary identificator.void
setPrimaryName
(NameBaseType primaryName) Sets the primary name.void
setPrimaryTelecom
(TelecomBaseType primaryTelecom) Sets the primary telecom.void
setTelecomList
(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).
-