Class XmlStringBuilder

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterable<org.eclipse.emf.ecore.xmi.impl.StringSegment.Element>, Collection<org.eclipse.emf.ecore.xmi.impl.StringSegment.Element>, List<org.eclipse.emf.ecore.xmi.impl.StringSegment.Element>, RandomAccess, org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.xmi.impl.StringSegment.Element>

    public class XmlStringBuilder
    extends org.eclipse.emf.ecore.xmi.impl.XMLString
    Класс для построения xml, расширяет класс XMLString
    See Also:
    XMLString, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.ecore.xmi.impl.StringSegment

        org.eclipse.emf.ecore.xmi.impl.StringSegment.Element, org.eclipse.emf.ecore.xmi.impl.StringSegment.SegmentIterator
      • Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList

        org.eclipse.emf.common.util.BasicEList.BasicIndexOutOfBoundsException, org.eclipse.emf.common.util.BasicEList.EIterator<E1 extends Object>, org.eclipse.emf.common.util.BasicEList.EListIterator<E1 extends Object>, org.eclipse.emf.common.util.BasicEList.FastCompare<E extends Object>, org.eclipse.emf.common.util.BasicEList.NonResolvingEIterator<E1 extends Object>, org.eclipse.emf.common.util.BasicEList.NonResolvingEListIterator<E1 extends Object>, org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E extends Object>
    • Field Summary

      • Fields inherited from class org.eclipse.emf.ecore.xmi.impl.XMLString

        currentLineWidth, depth, docTypeMark, docTypeName, elementNames, firstElementMark, indents, isMixed, isUnformatted, lastElementIsStart, lineWidth, markedLineWidth, mixed, publicId, saveDoctype, seenRoot, systemId
      • Fields inherited from class org.eclipse.emf.ecore.xmi.impl.StringSegment

        buffer, BUFFER_SIZE, bufferPosition, cursor, cursorIndex, ELEMENT_SIZE, firstString, lineSeparator, LIST_SIZE, outputbytes, outputchars, segmentCapacity, temporaryFile, temporaryFileName
      • Fields inherited from class org.eclipse.emf.common.util.BasicEList

        data, size
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closePrevElement()  
      void endContentElement()  
      void endContentElement​(String content)  
      void endFormattedElement()  
      void endNewEmptyElement()  
      void endNFElement()  
      void saveFormattedDataValueElement​(String name, String content)  
      void startNewElement​(String name)  
      void startNFElement​(String name)  
      • Methods inherited from class org.eclipse.emf.ecore.xmi.impl.XMLString

        add, addAttribute, addAttributeContent, addAttributeNS, addCDATA, addComment, addEntity, addLine, addProcessingInstruction, addText, closeStartElement, complete, endAttribute, endElement, endEmptyElement, getAttributeIndent, getElementIndent, getElementIndent, mark, removeLast, reset, resetToMark, saveDataValueElement, saveDoctype, saveNilElement, setLineWidth, setMixed, setUnformatted, startAttribute, startElement
      • Methods inherited from class org.eclipse.emf.ecore.xmi.impl.StringSegment

        getChars, getLength, getTemporaryFileName, iterator, listIterator, newData, reset, setLineSeparator, setTemporaryFileName, startFileBuffering, stringIterator, write, write, writeAscii
      • Methods inherited from class org.eclipse.emf.common.util.BasicEList

        addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clear, clone, contains, data, get, grow, indexOf, isEmpty, lastIndexOf, move, primitiveGet, remove, setData, setUnique, shrink, size, toArray, toArray
      • Methods inherited from class org.eclipse.emf.common.util.AbstractEList

        add, add, addAll, addAll, basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, listIterator, move, remove, removeAll, resolve, retainAll, set, toString, useEquals, validate
    • Constructor Detail

      • XmlStringBuilder

        public XmlStringBuilder​(String publicId,
                                String systemId)
        Parameters:
        effectiveLineWidth -
        publicId -
        systemId -
        temporaryFileName -
    • Method Detail

      • closePrevElement

        public void closePrevElement()
      • startNewElement

        public void startNewElement​(String name)
      • startNFElement

        public void startNFElement​(String name)
      • endContentElement

        public void endContentElement​(String content)
        Overrides:
        endContentElement in class org.eclipse.emf.ecore.xmi.impl.XMLString
      • endContentElement

        public void endContentElement()
      • endNewEmptyElement

        public void endNewEmptyElement()
      • endFormattedElement

        public void endFormattedElement()
      • endNFElement

        public void endNFElement()
      • saveFormattedDataValueElement

        public void saveFormattedDataValueElement​(String name,
                                                  String content)