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.
-
NAMESPACE_NAME_STRING
-
-
NAMESPACE_PREFIX_STRING
-
-
NAMESPACE_SOURCE_STRING
-
-
NAMESPACE_STRING
-
-
NamespaceAttList
- List of attributes defining this namespace
-
NamespaceNameAttribute
- Specification of the namespace name, in the form "ns = '(Literal)'".
-
PrefixAttribute
- Specification of the namespace prefix, in the form "prefix = '(Name)'".
-
SourceAttribute
- Specification of the namespace source, in the form "src = '(Literal)'".
-
WhitespacePrecedingEnd
- The whitespace preceding the '?>' at the end.
-
xg_NamespaceDecl()
- Default constructor.
-
addAttribute(xg_Attribute)
- Add the given attribute.
-
getAttList()
- Get the list of attributes.
-
getAttribute(String)
- Get the named attribute.
-
getNamespaceName()
- Get the name of this namespace.
-
getNamespaceNameAtt()
- Get the attribute containing the name of this namespace.
-
getNodeType()
- Get the type of this node, using only type values defined for the DOM.
-
getPrefix()
- Get the prefix name of this namespace.
-
getPrefixAtt()
- Get the attribute containing the prefix of this namespace.
-
getSource()
- Get the name of the source of this namespace.
-
getSourceAtt()
- Get the attribute containing the source of this namespace.
-
getType()
- Get the type of this node.
-
save(Writer)
- Save this namespace declaration in XML source form in InputWriter.
-
setWhitespacePrecedingEnd(String)
- Set the whitespace preceding the end tag of this namespace declaration.
-
toString()
- Return a string representation of the namespace declaration (intended for
use as debug output).
NamespaceAttList
protected xg_AttList NamespaceAttList
- List of attributes defining this namespace
NamespaceNameAttribute
protected xg_Attribute NamespaceNameAttribute
- Specification of the namespace name, in the form "ns = '(Literal)'".
This is mandatory
SourceAttribute
protected xg_Attribute SourceAttribute
- Specification of the namespace source, in the form "src = '(Literal)'".
This is optional
PrefixAttribute
protected xg_Attribute PrefixAttribute
- Specification of the namespace prefix, in the form "prefix = '(Name)'".
This is mandatory
WhitespacePrecedingEnd
protected String WhitespacePrecedingEnd
- The whitespace preceding the '?>' at the end.
NAMESPACE_STRING
public static final String NAMESPACE_STRING
NAMESPACE_NAME_STRING
public static final String NAMESPACE_NAME_STRING
NAMESPACE_PREFIX_STRING
public static final String NAMESPACE_PREFIX_STRING
NAMESPACE_SOURCE_STRING
public static final String NAMESPACE_SOURCE_STRING
xg_NamespaceDecl
public xg_NamespaceDecl()
- Default constructor.
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
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
setWhitespacePrecedingEnd
public void setWhitespacePrecedingEnd(String InputWhitespacePrecedingEnd)
- Set the whitespace preceding the end tag of this namespace 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
getAttList
public xg_AttList getAttList()
- Get the list of attributes.
- Returns:
- The list of attributes
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)
getNamespaceName
public String getNamespaceName()
- Get the name of this namespace.
- Returns:
- The name of this namespace (the value of the 'ns' attribute)
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
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)
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
getPrefix
public String getPrefix()
- Get the prefix name of this namespace.
- Returns:
- The name of this prefix (the value of the 'prefix' attribute)
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
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