Class JDFCustomerInfo

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 JDFCustomerInfo extends JDFAutoCustomerInfo implements IMatches
Title: JDFCustomerInfo.java Description: Copyright: Copyright (c) 2002 Company: Heidelberger Druckmaschinen
See Also:
  • Constructor Details

    • JDFCustomerInfo

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

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

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

    • getTheAttributeInfo

      protected AttributeInfo getTheAttributeInfo()
      Overrides:
      getTheAttributeInfo in class JDFResource
      Returns:
    • getTheElementInfo

      protected ElementInfo getTheElementInfo()
      Overrides:
      getTheElementInfo in class JDFResource
      Returns:
      the elementinfo
    • init

      public boolean init()
      Description copied from class: JDFResource
      default initialization
      Overrides:
      init in class JDFAutoCustomerInfo
      Returns:
      true if ok
      See Also:
    • toString

      public String toString()
      Description copied from class: KElement
      this to string, used for debug purpose mostly
      Overrides:
      toString in class KElement
      Returns:
      string representativ of this
      See Also:
    • getLinkedResources

      public VElement getLinkedResources(JDFAttributeMap mResAtt, boolean bFollowRefs)
      Get the linked resources matching some conditions
      Parameters:
      mResAtt - map of Resource attributes to search for
      bFollowRefs - true if internal references shall be followed
      Returns:
      VResource - vector with all elements matching the conditions default: GetLinkedResources(new JDFAttributeMap(), false)
    • getContactWithContactType

      public JDFContact getContactWithContactType(String contactType, int iSkip)
      get a Contact with at least one contacttype set
      Parameters:
      contactType - the contatcttype string
      iSkip - number of occurrences to skip - if 0 take the first
      Returns:
      a matching JDFContact, null if none are found
    • getCreateContactWithContactType

      public JDFContact getCreateContactWithContactType(String contactType, int iSkip)
      get a Contact with at least one contactType set; create on if non existent
      Parameters:
      contactType - the contactType string
      iSkip - number of occurrences to skip - if 0 take the first
      Returns:
      a matching JDFContact, null if none are found
    • getContactVectorWithContactType

      public VElement getContactVectorWithContactType(String contactType)
      get a list of contacts with at least one matching contactType set
      Parameters:
      contactType - the contactType to look for - if null return all contacts
      Returns:
      VElement the vector of matching JDFContacts, null if none are found
    • appendContact

      public JDFContact appendContact(JDFContact.EnumContactType typ)
      add a contact with a given contacttype
      Parameters:
      typ -
      Returns:
    • appendContact

      public JDFContact appendContact(String typ)
      add a contact with a given contacttype
      Parameters:
      typ -
      Returns:
    • 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