All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xg.xg_NamespaceDecl

java.lang.Object
   |
   +----com.sun.java.swing.tree.DefaultMutableTreeNode
           |
           +----xg.xg_Node
                   |
                   +----xg.xg_NamespaceDecl

public class xg_NamespaceDecl
extends xg_Node
An XML namespace declaration.


Variable Index

 o NAMESPACE_NAME_STRING
 o NAMESPACE_PREFIX_STRING
 o NAMESPACE_SOURCE_STRING
 o NAMESPACE_STRING
 o NamespaceAttList
List of attributes defining this namespace
 o NamespaceNameAttribute
Specification of the namespace name, in the form "ns = '(Literal)'".
 o PrefixAttribute
Specification of the namespace prefix, in the form "prefix = '(Name)'".
 o SourceAttribute
Specification of the namespace source, in the form "src = '(Literal)'".
 o WhitespacePrecedingEnd
The whitespace preceding the '?>' at the end.

Constructor Index

 o xg_NamespaceDecl()
Default constructor.

Method Index

 o addAttribute(xg_Attribute)
Add the given attribute.
 o getAttList()
Get the list of attributes.
 o getAttribute(String)
Get the named attribute.
 o getNamespaceName()
Get the name of this namespace.
 o getNamespaceNameAtt()
Get the attribute containing the name of this namespace.
 o getNodeType()
Get the type of this node, using only type values defined for the DOM.
 o getPrefix()
Get the prefix name of this namespace.
 o getPrefixAtt()
Get the attribute containing the prefix of this namespace.
 o getSource()
Get the name of the source of this namespace.
 o getSourceAtt()
Get the attribute containing the source of this namespace.
 o getType()
Get the type of this node.
 o save(Writer)
Save this namespace declaration in XML source form in InputWriter.
 o setWhitespacePrecedingEnd(String)
Set the whitespace preceding the end tag of this namespace declaration.
 o toString()
Return a string representation of the namespace declaration (intended for use as debug output).

Variables

 o NamespaceAttList
 protected xg_AttList NamespaceAttList
List of attributes defining this namespace

 o NamespaceNameAttribute
 protected xg_Attribute NamespaceNameAttribute
Specification of the namespace name, in the form "ns = '(Literal)'". This is mandatory

 o SourceAttribute
 protected xg_Attribute SourceAttribute
Specification of the namespace source, in the form "src = '(Literal)'". This is optional

 o PrefixAttribute
 protected xg_Attribute PrefixAttribute
Specification of the namespace prefix, in the form "prefix = '(Name)'". This is mandatory

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

 o NAMESPACE_STRING
 public static final String NAMESPACE_STRING
 o NAMESPACE_NAME_STRING
 public static final String NAMESPACE_NAME_STRING
 o NAMESPACE_PREFIX_STRING
 public static final String NAMESPACE_PREFIX_STRING
 o NAMESPACE_SOURCE_STRING
 public static final String NAMESPACE_SOURCE_STRING

Constructors

 o xg_NamespaceDecl
 public xg_NamespaceDecl()
Default constructor.

Methods

 o save
 public void save(Writer InputWriter) throws IOException
Save this namespace 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 addAttribute
 public boolean addAttribute(xg_Attribute InputAttribute)
Add the given attribute.

Parameters:
InputAttribute - Attribute to be added
Returns:
true if the attribute was added; false if an attribute with this name already exists
 o setWhitespacePrecedingEnd
 public void setWhitespacePrecedingEnd(String InputWhitespacePrecedingEnd)
Set the whitespace preceding the end tag of this namespace 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 getAttList
 public xg_AttList getAttList()
Get the list of attributes.

Returns:
The list of attributes
 o getAttribute
 public xg_Attribute getAttribute(String InputAttName)
Get the named attribute.

Parameters:
InputAttName - The name of the attribute to retrieve
Returns:
The named attribute (or null if it doesn't exist)
 o getNamespaceName
 public String getNamespaceName()
Get the name of this namespace.

Returns:
The name of this namespace (the value of the 'ns' attribute)
 o getNamespaceNameAtt
 public xg_Attribute getNamespaceNameAtt()
Get the attribute containing the name of this namespace.

Returns:
Attribute containing full details of the 'ns' of this namespace
 o getSource
 public String getSource()
Get the name of the source of this namespace.

Returns:
The name of this source (the value of the 'src' attribute)
 o getSourceAtt
 public xg_Attribute getSourceAtt()
Get the attribute containing the source of this namespace.

Returns:
Attribute containing full details of the 'src' of the namespace
 o getPrefix
 public String getPrefix()
Get the prefix name of this namespace.

Returns:
The name of this prefix (the value of the 'prefix' attribute)
 o getPrefixAtt
 public xg_Attribute getPrefixAtt()
Get the attribute containing the prefix of this namespace.

Returns:
Attribute containing full details of the 'prefix' of this namespace
 o toString
 public String toString()
Return a string representation of the namespace declaration (intended for use as debug output).

Returns:
String representation of this namespace declaration.
Overrides:
toString in class xg_Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index