Class JDFCustomerInfo

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

      • JDFCustomerInfo

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

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

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

      • toString

        public java.lang.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:
        KElement.toString()
      • 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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.String typ)
        add a contact with a given contacttype
        Parameters:
        typ -
        Returns:
      • 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