Class VCardImportObject

java.lang.Object
ch.tocco.nice2.optional.address.impl.action.util.VCardImportObject

public class VCardImportObject extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    VCardImportObject(net.fortuna.ical4j.vcard.VCard card)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    @Nullable String[]
     
    @Nullable String
    getAddressAddition(@Nullable net.fortuna.ical4j.vcard.parameter.Type type)
     
    @Nullable net.fortuna.ical4j.vcard.Property
    getAddressPropertyByType(net.fortuna.ical4j.vcard.parameter.Type type, boolean getAny)
     
    @Nullable org.joda.time.LocalDate
     
    @Nullable String
     
    @Nullable String
    getCanton(@Nullable net.fortuna.ical4j.vcard.parameter.Type type)
     
    @Nullable String
    getCity(@Nullable net.fortuna.ical4j.vcard.parameter.Type type)
     
    @Nullable String
    The 'ORG' Property definition:
    Purpose: To specify the organizational name and units associated with the vCard.
    Value type: A single structured text value consisting of components separated by the semicolon character.
    Special notes: The property value is a structured type consisting of the organization name, followed by zero or more levels of organizational unit names.
    Example: ORG:ABC\, Inc.;North American Division;Marketing
    @Nullable String
    getCountry(@Nullable net.fortuna.ical4j.vcard.parameter.Type type)
     
    @Nullable String
    The 'ORG' Property definition:
    Purpose: To specify the organizational name and units associated with the vCard.
    Value type: A single structured text value consisting of components separated by the semicolon character.
    Special notes: The property value is a structured type consisting of the organization name, followed by zero or more levels of organizational unit names.
    Example: ORG:ABC\, Inc.;North American Division;Marketing

    We take only the last value as department information.
    @Nullable String
     
    @Nullable String
    getEmailByType(net.fortuna.ical4j.vcard.parameter.Type type, boolean getAny)
     
    @Nullable String
     
    @Nullable String
     
    @Nullable String
     
    @Nullable String
     
    @Nullable String
    getPostbox(@Nullable net.fortuna.ical4j.vcard.parameter.Type type)
     
    @Nullable net.fortuna.ical4j.vcard.Property
     
    @Nullable String
     
    @Nullable String
    getStreet(@Nullable net.fortuna.ical4j.vcard.parameter.Type type)
     
    @Nullable String
    getTelephoneByType(net.fortuna.ical4j.vcard.parameter.Type type, boolean getAny)
     
    @Nullable net.fortuna.ical4j.vcard.Property
     
    @Nullable String
    getZip(@Nullable net.fortuna.ical4j.vcard.parameter.Type type)
     
    boolean
    Check if vcard contains at least one address property
    int
     
    boolean
     
    boolean
     
    void
    setPrivateAddress(@Nullable net.fortuna.ical4j.vcard.Property privateAddress)
     
    void
    setWorkAddress(@Nullable net.fortuna.ical4j.vcard.Property workAddress)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VCardImportObject

      public VCardImportObject(net.fortuna.ical4j.vcard.VCard card)
  • Method Details

    • setPrivateAddress

      public void setPrivateAddress(@Nullable @Nullable net.fortuna.ical4j.vcard.Property privateAddress)
    • setWorkAddress

      public void setWorkAddress(@Nullable @Nullable net.fortuna.ical4j.vcard.Property workAddress)
    • getPrivateAddress

      @Nullable public @Nullable net.fortuna.ical4j.vcard.Property getPrivateAddress()
    • getWorkAddress

      @Nullable public @Nullable net.fortuna.ical4j.vcard.Property getWorkAddress()
    • hasPrivateAddress

      public boolean hasPrivateAddress()
    • hasWorkAddress

      public boolean hasWorkAddress()
    • getLastname

      @Nullable public @Nullable String getLastname()
    • getFirstname

      @Nullable public @Nullable String getFirstname()
    • getAcademicTitles

      @Nullable public @Nullable String[] getAcademicTitles()
    • getOtherTitles

      @Nullable public @Nullable String getOtherTitles()
    • getCallname

      @Nullable public @Nullable String getCallname()
    • getGender

      @Nullable public @Nullable String getGender()
    • getRole

      @Nullable public @Nullable String getRole()
    • getBirthdate

      @Nullable public @Nullable org.joda.time.LocalDate getBirthdate()
    • getEmail

      @Nullable public @Nullable String getEmail()
    • getEmailByType

      @Nullable public @Nullable String getEmailByType(net.fortuna.ical4j.vcard.parameter.Type type, boolean getAny)
    • getTelephoneByType

      @Nullable public @Nullable String getTelephoneByType(net.fortuna.ical4j.vcard.parameter.Type type, boolean getAny)
    • getPostbox

      @Nullable public @Nullable String getPostbox(@Nullable @Nullable net.fortuna.ical4j.vcard.parameter.Type type)
    • getAddressAddition

      @Nullable public @Nullable String getAddressAddition(@Nullable @Nullable net.fortuna.ical4j.vcard.parameter.Type type)
    • getStreet

      @Nullable public @Nullable String getStreet(@Nullable @Nullable net.fortuna.ical4j.vcard.parameter.Type type)
    • getZip

      @Nullable public @Nullable String getZip(@Nullable @Nullable net.fortuna.ical4j.vcard.parameter.Type type)
    • getCity

      @Nullable public @Nullable String getCity(@Nullable @Nullable net.fortuna.ical4j.vcard.parameter.Type type)
    • getCanton

      @Nullable public @Nullable String getCanton(@Nullable @Nullable net.fortuna.ical4j.vcard.parameter.Type type)
    • getCountry

      @Nullable public @Nullable String getCountry(@Nullable @Nullable net.fortuna.ical4j.vcard.parameter.Type type)
    • getCompany

      @Nullable public @Nullable String getCompany()
      The 'ORG' Property definition:
      Purpose: To specify the organizational name and units associated with the vCard.
      Value type: A single structured text value consisting of components separated by the semicolon character.
      Special notes: The property value is a structured type consisting of the organization name, followed by zero or more levels of organizational unit names.
      Example: ORG:ABC\, Inc.;North American Division;Marketing
    • getDepartment

      @Nullable public @Nullable String getDepartment()
      The 'ORG' Property definition:
      Purpose: To specify the organizational name and units associated with the vCard.
      Value type: A single structured text value consisting of components separated by the semicolon character.
      Special notes: The property value is a structured type consisting of the organization name, followed by zero or more levels of organizational unit names.
      Example: ORG:ABC\, Inc.;North American Division;Marketing

      We take only the last value as department information.
    • hasAddress

      public boolean hasAddress()
      Check if vcard contains at least one address property
      Returns:
      true if vcard contains one address property, false otherwise
    • getAddressPropertyByType

      @Nullable public @Nullable net.fortuna.ical4j.vcard.Property getAddressPropertyByType(net.fortuna.ical4j.vcard.parameter.Type type, boolean getAny)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object