All Packages Class Hierarchy This Package Previous Next Index
Class xg.xg_XmlDecl
java.lang.Object
|
+----com.sun.java.swing.tree.DefaultMutableTreeNode
|
+----xg.xg_Node
|
+----xg.xg_XmlDecl
- public class xg_XmlDecl
- extends xg_Node
An XML declaration.
-
EncodingAttribute
- The encoding scheme in which the current document is encoded, in the
form "encoding = 'UTF-8'".
-
StandaloneAttribute
- Specification of whether the current document is standalone, in the form
"standalone = 'yes'".
-
VersionAttribute
- The version of XML to which the current document conforms, in the form
"version = '1.0'".
-
WhitespacePrecedingEnd
- The whitespace preceding the '?>' at the end.
-
xg_XmlDecl()
- Default constructor.
-
getEncoding()
- Get the encoding of this XML declaration.
-
getNodeType()
- Get the type of this node, using only type values defined for the DOM.
-
getStandalone()
- Get the standalone attribute of this XML declaration.
-
getType()
- Get the type of this node.
-
getVersion()
- Get the version of this XML declaration.
-
save(Writer)
- Save this XML declaration in XML source form in InputWriter.
-
setEncoding(xg_Attribute)
- Set the encoding of this XML declaration.
-
setStandalone(xg_Attribute)
- Set the standalone attribute of this XML declaration.
-
setVersion(xg_Attribute)
- Set the version of this XML declaration.
-
setWhitespacePrecedingEnd(String)
- Set the whitespace preceding the end tag of this XML declaration.
-
toString()
- Return a string representation of the element declaration (intended for
use as debug output).
VersionAttribute
protected xg_Attribute VersionAttribute
- The version of XML to which the current document conforms, in the form
"version = '1.0'". Note that this information, and the remaining values
are stored in xg_Attributes because it can conveniently record all the
chunks of whitespace between the components.
EncodingAttribute
protected xg_Attribute EncodingAttribute
- The encoding scheme in which the current document is encoded, in the
form "encoding = 'UTF-8'".
StandaloneAttribute
protected xg_Attribute StandaloneAttribute
- Specification of whether the current document is standalone, in the form
"standalone = 'yes'".
WhitespacePrecedingEnd
protected String WhitespacePrecedingEnd
- The whitespace preceding the '?>' at the end.
xg_XmlDecl
public xg_XmlDecl()
- Default constructor.
save
public void save(Writer InputWriter) throws IOException
- Save this XML declaration in XML source form in InputWriter.
- Parameters:
- InputWriter - The writer to which the XML declaration will be written
- Overrides:
- save in class xg_Node
setVersion
public void setVersion(xg_Attribute InputVersionAttribute)
- Set the version of this XML declaration.
- Parameters:
- InputVersionAttribute - Attribute containing full details of the
'version' of this XML declaration
setEncoding
public void setEncoding(xg_Attribute InputEncodingAttribute)
- Set the encoding of this XML declaration.
- Parameters:
- InputEncodingAttribute - Attribute containing full details of the
'encoding' of the current document
setStandalone
public void setStandalone(xg_Attribute InputStandaloneAttribute)
- Set the standalone attribute of this XML declaration.
- Parameters:
- InputStandaloneAttribute - Attribute containing full details of the
'standalone' of this XML declaration
setWhitespacePrecedingEnd
public void setWhitespacePrecedingEnd(String InputWhitespacePrecedingEnd)
- Set the whitespace preceding the end tag of this XML declaration.
- Parameters:
- InputWhitespacePrecedingEnd - Whitespace before the end
getType
public int getType()
- Get the type of this node.
- Returns:
- The type of this node
- Overrides:
- getType in class xg_Node
getNodeType
public int getNodeType()
- Get the type of this node, using only type values defined for the DOM.
(Implements org.w3c.dom.Node.getNodeType.)
- Returns:
- The DOM type of this node
- Overrides:
- getNodeType in class xg_Node
getVersion
public xg_Attribute getVersion()
- Get the version of this XML declaration.
- Returns:
- Attribute containing full details of the 'version' of this XML
declaration
getEncoding
public xg_Attribute getEncoding()
- Get the encoding of this XML declaration.
- Returns:
- Attribute containing full details of the 'encoding' of the current
document
getStandalone
public xg_Attribute getStandalone()
- Get the standalone attribute of this XML declaration.
- Returns:
- Attribute containing full details of the 'standalone' of this XML
declaration
toString
public String toString()
- Return a string representation of the element declaration (intended for
use as debug output).
- Returns:
- String representation of an XML declaration
- Overrides:
- toString in class xg_Node
All Packages Class Hierarchy This Package Previous Next Index