Class JDFComment

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

public class JDFComment extends JDFAutoComment
this is the class for all text elements, obviously including but also others, e.g ExtendedAddress
See Also:
  • Constructor Details

    • JDFComment

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

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

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

    • getIDPrefix

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

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

      public boolean init()
      init this comment by adding agentname, agentversion and id
      Overrides:
      init in class JDFElement
      Returns:
      boolean
      See Also:
    • 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(String typ)
      XJDF only setType is similar to setName
      Parameters:
      string -