Class TelecomBaseType

java.lang.Object
org.projecthusky.common.basetypes.TelecomBaseType
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Telecom

public class TelecomBaseType extends Object implements Serializable
Details for all kinds of technology-mediated contact points for a person or organization, including telephone, email, etc.
See Also:
  • Constructor Details

    • TelecomBaseType

      public TelecomBaseType()
      Instantiates a new TelecomBaseType. Default constructor.
  • Method Details

    • builder

      @Generated("SparkTools") public static TelecomBaseType.Builder builder()
      Creates builder to build TelecomBaseType.
      Returns:
      created builder
    • equals

      public boolean equals(Object obj)
      Checks whether the two objects are equal (based on their content).
      Overrides:
      equals in class Object
      Parameters:
      obj - the TelecomBaseType to compare
      Returns:
      true, if equal; false otherwise.
    • getNullFlavor

      public NullFlavor getNullFlavor()
      Gets the null flavor.
      Returns:
      the null flavor
    • getUsage

      public TelecomAddressUse getUsage()
      Gets the type of usage (business, private, emergency, vacation, ...).
      Returns:
      the usage
    • setUsage

      public void setUsage(TelecomAddressUse usage)
      Sets the type of usage (business, private, emergency, vacation, ...).
      Parameters:
      usage - the new usage
    • getValue

      public String getValue()
      Gets the value. This is the real phone number, eMail Address, URL, ...
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Sets the value. This is the real phone number, eMail Address, URL, ...
      Parameters:
      value - the new value
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
      Returns:
      the int
    • isNullFlavor

      public boolean isNullFlavor()
      Checks if the current instance is null flavored.
      Returns:
      true, if is null flavor
    • setNullFlavor

      public void setNullFlavor(NullFlavor nullFlavor)
      Sets the null flavor.
      Parameters:
      nullFlavor - the new null flavor
    • setFax

      public void setFax(String value)
      Sets the value as phone number.
      Parameters:
      value - the new phone
    • setMail

      public void setMail(String value)
      Sets the value as eMail Address.
      Parameters:
      value - the new phone
    • setPhone

      public void setPhone(String value)
      Sets the value as phone number.
      Parameters:
      value - the new phone
    • toString

      public String toString()
      Builds a string of the telecom.
      Overrides:
      toString in class Object
      Returns:
      the string