Class JDFComment

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, 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 JDFComment
    extends JDFAutoComment
    this is the class for all text elements, obviously including but also others, e.g ExtendedAddress
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFComment

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

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

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

      • getIDPrefix

        public java.lang.String getIDPrefix()
        getIDPrefix
        Overrides:
        getIDPrefix in class KElement
        Returns:
        the ID prefix of JDFNode
      • toString

        public java.lang.String toString()
        toString - StringRepresentation of JDFNode
        Overrides:
        toString in class KElement
        Returns:
        String
        See Also:
        Object.toString()
      • init

        public boolean init()
        init this comment by adding agentname, agentversion and id
        Overrides:
        init in class JDFElement
        Returns:
        boolean
        See Also:
        KElement.init()
      • eraseEmptyNodes

        public int eraseEmptyNodes​(boolean bTrimWhite)
        Description copied from class: KElement
        Erases all empty text nodes in 'this' and its subelements If there any empty text nodes removes them. If bTrimWhite is true, then trims white spaces from both ends of a text node and only then, if it is empty, removes it
        Overrides:
        eraseEmptyNodes in class KElement
        Parameters:
        bTrimWhite - trims whitespace of text, ignored in commente
        Returns:
        int the number of removed nodes
      • setType

        public void setType​(java.lang.String typ)
        XJDF only setType is similar to setName
        Parameters:
        string -