Class TelecomBaseType
java.lang.Object
org.projecthusky.common.basetypes.TelecomBaseType
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Telecom
Details for all kinds of technology-mediated contact points for a person or
organization, including telephone, email, etc.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TelecomBaseType.Builder
builder()
Creates builder to buildTelecomBaseType
.boolean
Checks whether the two objects are equal (based on their content).Gets the null flavor.getUsage()
Gets the type of usage (business, private, emergency, vacation, ...).getValue()
Gets the value.int
hashCode()
Hash code.boolean
Checks if the current instance is null flavored.void
Sets the value as phone number.void
Sets the value as eMail Address.void
setNullFlavor
(NullFlavor nullFlavor) Sets the null flavor.void
Sets the value as phone number.void
setUsage
(TelecomAddressUse usage) Sets the type of usage (business, private, emergency, vacation, ...).void
Sets the value.toString()
Builds a string of the telecom.
-
Constructor Details
-
TelecomBaseType
public TelecomBaseType()Instantiates a new TelecomBaseType. Default constructor.
-
-
Method Details
-
builder
Creates builder to buildTelecomBaseType
.- Returns:
- created builder
-
equals
Checks whether the two objects are equal (based on their content). -
getNullFlavor
Gets the null flavor.- Returns:
- the null flavor
-
getUsage
Gets the type of usage (business, private, emergency, vacation, ...).- Returns:
- the usage
-
setUsage
Sets the type of usage (business, private, emergency, vacation, ...).- Parameters:
usage
- the new usage
-
getValue
Gets the value. This is the real phone number, eMail Address, URL, ...- Returns:
- the value
-
setValue
Sets the value. This is the real phone number, eMail Address, URL, ...- Parameters:
value
- the new value
-
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
-
setFax
Sets the value as phone number.- Parameters:
value
- the new phone
-
setMail
Sets the value as eMail Address.- Parameters:
value
- the new phone
-
setPhone
Sets the value as phone number.- Parameters:
value
- the new phone
-
toString
Builds a string of the telecom.
-