tecgraf.javautils.xml
Class XMLRootElement

java.lang.Object
  extended by tecgraf.javautils.xml.XMLElement
      extended by tecgraf.javautils.xml.XMLBasicElement
          extended by tecgraf.javautils.xml.XMLRootElement
All Implemented Interfaces:
XMLElementInterface

public class XMLRootElement
extends XMLBasicElement

Implementação básica de um elemento XML para ser associado à tag-raiz do documento. Este elemento apenas armazena a lista com os seus filhos para futura referência.

Author:
Andre Oliveira da Costa

Constructor Summary
XMLRootElement()
          Construtor.
 
Method Summary
 void endTag(List<XMLElementInterface> childrenList)
          Callback de fechamento do elemento.
 void write(Writer stream, String ident)
          Escreve o elemento, com seus filhos.
 
Methods inherited from class tecgraf.javautils.xml.XMLBasicElement
getFirstChildWithTag, getNextIdentation, writeEndTag, writeStartTag, writeStartTag, writeStartTagln, writeStartTagln
 
Methods inherited from class tecgraf.javautils.xml.XMLElement
appendValue, convertTextToXML, convertValueFromXML, getAppContextObject, getAppObject, getAttributeBooleanValue, getAttributeDoubleValue, getAttributeIntValue, getAttributes, getAttributeStrValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getStrValue, getStrValue, getTag, hasAttribute, hasValue, isEmpty, newAttribute, newAttribute, newAttribute, newAttribute, newAttribute, newAttribute, newAttributeList, newCharsEvent, resetAttributeList, resetValue, setAppContextObject, setAppObject, setTag, setValue, setValue, startTag, writeAttributes, writeAttributes, writeEndTag, writeEndTag, writeStartTag, writeStartTagln, writeValue, xmlEncode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLRootElement

public XMLRootElement()
Construtor.

Method Detail

endTag

public void endTag(List<XMLElementInterface> childrenList)
Callback de fechamento do elemento. Apenas armazena a lista de filhos para futura referência.

Parameters:
childrenList - lista com os filhos do elemento

write

public void write(Writer stream,
                  String ident)
           throws IOException
Escreve o elemento, com seus filhos.

Parameters:
stream - stream de saída
ident - identação
Throws:
IOException - se houve algum erro de I/O na escrita


Copyright © 2014 Tecgraf/PUC-Rio. All rights reserved.