Package gnu.kawa.xml

Class KText

  • All Implemented Interfaces:
    Consumable, java.util.Enumeration<java.lang.Object>, java.util.Iterator<java.lang.Object>, java.util.ListIterator<java.lang.Object>, org.w3c.dom.CharacterData, org.w3c.dom.Node, org.w3c.dom.Text
    Direct Known Subclasses:
    KCDATASection

    public class KText
    extends KCharacterData
    implements org.w3c.dom.Text
    • Constructor Detail

      • KText

        public KText​(NodeTree seq,
                     int ipos)
    • Method Detail

      • make

        public static KText make​(java.lang.String text)
      • getNodeType

        public short getNodeType()
        Specified by:
        getNodeType in interface org.w3c.dom.Node
        Specified by:
        getNodeType in class KNode
      • getNodeName

        public java.lang.String getNodeName()
        Specified by:
        getNodeName in interface org.w3c.dom.Node
        Overrides:
        getNodeName in class KNode
      • splitText

        public org.w3c.dom.Text splitText​(int offset)
                                   throws org.w3c.dom.DOMException
        Specified by:
        splitText in interface org.w3c.dom.Text
        Throws:
        org.w3c.dom.DOMException
      • getWholeText

        public java.lang.String getWholeText()
        Specified by:
        getWholeText in interface org.w3c.dom.Text
      • replaceWholeText

        public org.w3c.dom.Text replaceWholeText​(java.lang.String content)
                                          throws org.w3c.dom.DOMException
        Specified by:
        replaceWholeText in interface org.w3c.dom.Text
        Throws:
        org.w3c.dom.DOMException
      • hasAttributes

        public boolean hasAttributes()
        Specified by:
        hasAttributes in interface org.w3c.dom.Node
        Overrides:
        hasAttributes in class KNode
      • isElementContentWhitespace

        public boolean isElementContentWhitespace()
        Specified by:
        isElementContentWhitespace in interface org.w3c.dom.Text