Class JDFAddress

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 JDFAddress extends JDFAutoAddress implements IMatches
See Also:
  • Constructor Details

    • JDFAddress

      public JDFAddress(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName) throws DOMException
      Constructor for JDFAddress
      Parameters:
      ownerDocument -
      qualifiedName -
      Throws:
      DOMException
    • JDFAddress

      public JDFAddress(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) throws DOMException
      Constructor for JDFAddress
      Parameters:
      ownerDocument -
      namespaceURI -
      qualifiedName -
      Throws:
      DOMException
    • JDFAddress

      public JDFAddress(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) throws DOMException
      Constructor for JDFAddress
      Parameters:
      ownerDocument -
      namespaceURI -
      qualifiedName -
      localName -
      Throws:
      DOMException
  • Method Details

    • toString

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

      public String getExtendedAddressText()
      Returns:
      the extended address text
    • setExtendedAddressText

      public void setExtendedAddressText(String extendedAddress)
    • appendAddressLine

      public JDFElement appendAddressLine(String line)
    • getAddressLineText

      public String getAddressLineText(int line)
    • getAddressLines

      public StringArray getAddressLines()
    • getAllAddressLine

      public Collection<JDFElement> getAllAddressLine()
      Get all AddressLine from the current element
      Overrides:
      getAllAddressLine in class JDFAutoAddress
      Returns:
      Collection, null if none are available
    • matches

      public boolean matches(Object subset)
      match another address by calculating various levenshtein distances id either address is missang an entry, that entry will be assumed to match
      Specified by:
      matches in interface IMatches
      Parameters:
      subset - the object to filter against
      Returns:
      true if it matches
      See Also: