Class JDFComChannel

  • 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 JDFComChannel
    extends JDFAutoComChannel
    implements IMatches
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFComChannel

        public JDFComChannel​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                             java.lang.String qualifiedName)
        Constructor for JDFComChannel
        Parameters:
        myOwnerDocument -
        qualifiedName -
      • JDFComChannel

        public JDFComChannel​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                             java.lang.String myNamespaceURI,
                             java.lang.String qualifiedName)
        Constructor for JDFComChannel
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
      • JDFComChannel

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

      • toString

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

        public void setEMailLocator​(java.lang.String eMail)
        sets locator to the string specified in eMail, checking valid email syntax "mailto:" is prepended, if it is not yet there
        Parameters:
        eMail - the email address
        Throws:
        java.lang.IllegalArgumentException - if eMail is not a valid emai as defined by JDFConstants.REGEXP_EMAIL
      • getEMailAddress

        public java.lang.String getEMailAddress()
        get the email address of this, if this is an email address, else null any "mailto" is stripped
        Returns:
      • getPhoneNumber

        public java.lang.String getPhoneNumber​(boolean stripNonNumerical)
        get the phone number of this, if this is a valid phone address, else null any "tel:" or "fax:" is stripped
        Parameters:
        stripNonNumerical - if true, remove any valid brackets, . / etc. so that a purely numerical code (except for an optional "+" for international) is returned
        Returns:
        the phone number
      • setPhoneNumber

        public void setPhoneNumber​(java.lang.String phone)
        set the phone number of this, if this is a valid phone url, "tel:" or "fax:" is prepended, if it is not yet there
        Parameters:
        phone - the phone number string
        Throws:
        java.lang.IllegalArgumentException - if phone is not a valid phone number
      • setPhoneNumber

        public void setPhoneNumber​(java.lang.String phone,
                                   java.lang.String replaceForBlank,
                                   JDFAutoComChannel.EnumChannelType channelType)
        set the phone number of this, if this is a valid phone url, "tel:" or "fax:" is prepended, if it is not yet there
        Parameters:
        phone - the phone number string
        replaceForBlank - the replacement char for non-leading blanks , typically "." or null are a good idea
        channelType - the channelType - must be either Fax, Phone or Mobile
        Throws:
        java.lang.IllegalArgumentException - if phone is not a valid phone number
      • matches

        public boolean matches​(java.lang.Object subset)
        Description copied from interface: IMatches
        returns true if subset somehow matches this the semantics are defined by the filtering algorithm, thus it could be a filter or a subset i.e. subset contains either equivalent elements or null and no non-matching elements matches(null) always returns true
        Specified by:
        matches in interface IMatches
        Parameters:
        subset - the object to filter against
        Returns:
        true if it matches