org.gvsig.metadata.lib.ioexchanger.iso19139.parser.io.write
Class PrintXmlWriter

java.lang.Object
  extended by org.gvsig.metadata.lib.ioexchanger.iso19139.parser.io.write.PrintXmlWriter

public class PrintXmlWriter
extends Object


Field Summary
static String CDATA_END
          CDATA element end
static String CDATA_START
          CDATA element start
static String LISTCODE
           
static String LISTCODE_ATTRS
           
static String LISTCODE_START
           
static String ROOT_END
           
static Pattern VALID_TAG_PATTERN
          Pattern matches with valid xml item names (tag name)
static Pattern VALID_VALUE_PATTERN
          Pattern matches with valid xml item text values (text content between tag)
static String XML_HEADER
          XML Header fomat.
static String XML_HEADER_ATRRS
           
 
Constructor Summary
PrintXmlWriter(String tagName, String attr, int level)
           
 
Method Summary
 PrintXmlWriter addNode(String tagName)
           
 void clear()
           
 String getLevelIndent()
           
 boolean isEmpty()
           
 void printAttrs(String attributes)
           
 void printValue(Object value, int type)
           
protected  String toEndTag(String tagName)
           
protected  String toEndTag(String tagName, boolean withIndentation)
           
protected  String toStartTag(String tagName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_HEADER

public static final String XML_HEADER
XML Header fomat.
Parameters:
  1. encoding

See Also:
Constant Field Values

XML_HEADER_ATRRS

public static final String XML_HEADER_ATRRS
See Also:
Constant Field Values

ROOT_END

public static final String ROOT_END
See Also:
Constant Field Values

LISTCODE

public static final String LISTCODE
See Also:
Constant Field Values

LISTCODE_START

public static final String LISTCODE_START
See Also:
Constant Field Values

LISTCODE_ATTRS

public static final String LISTCODE_ATTRS
See Also:
Constant Field Values

VALID_TAG_PATTERN

public static final Pattern VALID_TAG_PATTERN
Pattern matches with valid xml item names (tag name)


VALID_VALUE_PATTERN

public static final Pattern VALID_VALUE_PATTERN
Pattern matches with valid xml item text values (text content between tag)


CDATA_START

public static final String CDATA_START
CDATA element start

See Also:
Constant Field Values

CDATA_END

public static final String CDATA_END
CDATA element end

See Also:
Constant Field Values
Constructor Detail

PrintXmlWriter

public PrintXmlWriter(String tagName,
                      String attr,
                      int level)
Method Detail

isEmpty

public boolean isEmpty()

printAttrs

public void printAttrs(String attributes)

addNode

public PrintXmlWriter addNode(String tagName)

printValue

public void printValue(Object value,
                       int type)

toString

public String toString()
Overrides:
toString in class Object

clear

public void clear()

toStartTag

protected String toStartTag(String tagName)

toEndTag

protected String toEndTag(String tagName)

toEndTag

protected String toEndTag(String tagName,
                          boolean withIndentation)

getLevelIndent

public String getLevelIndent()


Copyright © 2004-2013 gvSIG. All Rights Reserved.