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.


Variable Index

 o EncodingAttribute
The encoding scheme in which the current document is encoded, in the form "encoding = 'UTF-8'".
 o StandaloneAttribute
Specification of whether the current document is standalone, in the form "standalone = 'yes'".
 o VersionAttribute
The version of XML to which the current document conforms, in the form "version = '1.0'".
 o WhitespacePrecedingEnd
The whitespace preceding the '?>' at the end.

Constructor Index

 o xg_XmlDecl()
Default constructor.

Method Index

 o getEncoding()
Get the encoding of this XML declaration.
 o getNodeType()
Get the type of this node, using only type values defined for the DOM.
 o getStandalone()
Get the standalone attribute of this XML declaration.
 o getType()
Get the type of this node.
 o getVersion()
Get the version of this XML declaration.
 o save(Writer)
Save this XML declaration in XML source form in InputWriter.
 o setEncoding(xg_Attribute)
Set the encoding of this XML declaration.
 o setStandalone(xg_Attribute)
Set the standalone attribute of this XML declaration.
 o setVersion(xg_Attribute)
Set the version of this XML declaration.
 o setWhitespacePrecedingEnd(String)
Set the whitespace preceding the end tag of this XML declaration.
 o toString()
Return a string representation of the element declaration (intended for use as debug output).

Variables

 o 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.

 o EncodingAttribute
 protected xg_Attribute EncodingAttribute
The encoding scheme in which the current document is encoded, in the form "encoding = 'UTF-8'".

 o StandaloneAttribute
 protected xg_Attribute StandaloneAttribute
Specification of whether the current document is standalone, in the form "standalone = 'yes'".

 o WhitespacePrecedingEnd
 protected String WhitespacePrecedingEnd
The whitespace preceding the '?>' at the end.

Constructors

 o xg_XmlDecl
 public xg_XmlDecl()
Default constructor.

Methods

 o 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
 o 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
 o 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
 o 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
 o setWhitespacePrecedingEnd
 public void setWhitespacePrecedingEnd(String InputWhitespacePrecedingEnd)
Set the whitespace preceding the end tag of this XML declaration.

Parameters:
InputWhitespacePrecedingEnd - Whitespace before the end
 o getType
 public int getType()
Get the type of this node.

Returns:
The type of this node
Overrides:
getType in class xg_Node
 o 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
 o getVersion
 public xg_Attribute getVersion()
Get the version of this XML declaration.

Returns:
Attribute containing full details of the 'version' of this XML declaration
 o getEncoding
 public xg_Attribute getEncoding()
Get the encoding of this XML declaration.

Returns:
Attribute containing full details of the 'encoding' of the current document
 o 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
 o 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