Class JDFContact

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IMatches, IStreamWriter, org.w3c.dom.Element, org.w3c.dom.ElementTraversal, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo

    public class JDFContact
    extends JDFAutoContact
    implements IMatches
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFContact

        public JDFContact​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                          java.lang.String qualifiedName)
                   throws org.w3c.dom.DOMException
        Constructor for JDFContact
        Parameters:
        myOwnerDocument -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFContact

        public JDFContact​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                          java.lang.String myNamespaceURI,
                          java.lang.String qualifiedName)
                   throws org.w3c.dom.DOMException
        Constructor for JDFContact
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFContact

        public JDFContact​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                          java.lang.String myNamespaceURI,
                          java.lang.String qualifiedName,
                          java.lang.String myLocalName)
                   throws org.w3c.dom.DOMException
        Constructor for JDFContact
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        myLocalName -
        Throws:
        org.w3c.dom.DOMException
    • Method Detail

      • toString

        public java.lang.String toString()
        toString
        Overrides:
        toString in class KElement
        Returns:
        String
        See Also:
        Object.toString()
      • setExtendedContactTypes

        @Deprecated
        public void setExtendedContactTypes​(VString value)
        Deprecated.
        use getContactTypes
        Set attribute ContactTypes
        Parameters:
        value - the value to set the attribute to
      • getExtendedContactTypes

        @Deprecated
        public VString getExtendedContactTypes()
        Deprecated.
        use setContactTypes
        Get string attribute ContactTypes
        Returns:
        vKString the vaue of the attribute
      • setContactTypes

        public void setContactTypes​(JDFContact.EnumContactType typ)
        Parameters:
        typ - the single contacttype to set this contact to
      • setContactTypes

        public void setContactTypes​(java.lang.String typ)
        Parameters:
        typ - the single contacttype to set this contact to
      • addContactTypes

        public void addContactTypes​(JDFContact.EnumContactType typ)
        Parameters:
        typ - the single contacttype to set this contact to
      • setPerson

        public JDFPerson setPerson​(java.lang.String firstName,
                                   java.lang.String familyName)
        Parameters:
        firstName -
        familyName -
        Returns:
      • merge

        public void merge​(JDFContact other)
        merge two contacts while avoiding duplicates
        Parameters:
        other -
      • matches

        public boolean matches​(java.lang.Object subset)
        checks a match if subset is a String, then we check userID (ignoring case) if subset is a JDFContact, we do heuristic matching of the person, company and address
        Specified by:
        matches in interface IMatches
        Parameters:
        subset - the object to filter against
        Returns:
        true if it matches
        See Also:
        IMatches.matches(java.lang.Object)