|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.xml.Tag
|
+--com.jdc.xml.SimpleTag
|
+--com.jdc.xml.tag.Declaration
Declaration represents the very first element in an XML document
and declares it as XML. The minimal declaration is
<?xml version="1.0"?>. The declaration is part of the document
prolog.
| Nested Class Summary | |
class |
Declaration.Encoding
The Encoding attribute specifies the XML declaration encoding
character set. |
class |
Declaration.Standalone
The Standalone attribute specifies whether or not the document
references an external entity or an external data type specification. |
class |
Declaration.Version
The Version attribute specifies the XML declaration version
number. |
| Field Summary |
| Fields inherited from class com.jdc.xml.Tag |
LEFT_BRACKET, RIGHT_BRACKET, SLASH, SPACE |
| Constructor Summary | |
Declaration()
Constructs a new Declaration object. |
|
| Method Summary | |
Declaration |
setEncoding(String characterSet)
Sets the declaration encoding character set. |
Declaration |
setStandalone(boolean standalone)
Identifies whether or not this document references an external entity or an external data type specification. |
Declaration |
setStandalone(String standalone)
Identifies whether or not this document references an external entity or an external data type specification. |
Declaration |
setVersion(String number)
Sets the declaration version number. |
| Methods inherited from class com.jdc.xml.SimpleTag |
create, create, getEndChar, getStartChar, setEndChar, setStartChar, toString |
| Methods inherited from class com.jdc.xml.Tag |
addAttribute, create, getAttribute, getAttributes, getIdentifier, setIdentifier, tag |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Declaration()
Declaration object.
| Method Detail |
public Declaration setEncoding(String characterSet)
public Declaration setStandalone(boolean standalone)
true should be specified.
public Declaration setStandalone(String standalone)
"yes" should be specified.
public Declaration setVersion(String number)
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||