|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.metadata.lib.ioexchanger.iso19139.parser.io.write.PrintXmlWriter
public class PrintXmlWriter
| 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 |
|---|
public static final String XML_HEADER
public static final String XML_HEADER_ATRRS
public static final String ROOT_END
public static final String LISTCODE
public static final String LISTCODE_START
public static final String LISTCODE_ATTRS
public static final Pattern VALID_TAG_PATTERN
public static final Pattern VALID_VALUE_PATTERN
public static final String CDATA_START
public static final String CDATA_END
| Constructor Detail |
|---|
public PrintXmlWriter(String tagName,
String attr,
int level)
| Method Detail |
|---|
public boolean isEmpty()
public void printAttrs(String attributes)
public PrintXmlWriter addNode(String tagName)
public void printValue(Object value,
int type)
public String toString()
toString in class Objectpublic void clear()
protected String toStartTag(String tagName)
protected String toEndTag(String tagName)
protected String toEndTag(String tagName,
boolean withIndentation)
public String getLevelIndent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||