Class JDFComChannel

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
All Implemented Interfaces:
Serializable, Cloneable, IMatches, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class JDFComChannel extends JDFAutoComChannel implements IMatches
See Also:
  • Field Details

  • Constructor Details

    • JDFComChannel

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

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

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

    • toString

      public String toString()
      toString
      Overrides:
      toString in class KElement
      Returns:
      String
      See Also:
    • setEMailLocator

      public void setEMailLocator(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:
      IllegalArgumentException - if eMail is not a valid emai as defined by JDFConstants.REGEXP_EMAIL
    • getEMailAddress

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

      public 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(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:
      IllegalArgumentException - if phone is not a valid phone number
    • setPhoneNumber

      public void setPhoneNumber(String phone, 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:
      IllegalArgumentException - if phone is not a valid phone number
    • getChannelType

      public JDFAutoComChannel.EnumChannelType getChannelType()
      update to mobile
      Overrides:
      getChannelType in class JDFAutoComChannel
      Returns:
      the value of the attribute
      See Also:
    • matches

      public boolean matches(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