org.apache.xalan.templates
Class XMLNSDecl

java.lang.Object
  extended byorg.apache.xalan.templates.XMLNSDecl
All Implemented Interfaces:
Serializable

public class XMLNSDecl
extends Object
implements Serializable

Represents an xmlns declaration

See Also:
Serialized Form

Field Summary
private  boolean m_isExcluded
          true if this namespace declaration should normally be excluded.
private  String m_prefix
          non-null reference to prefix, using "" for default namespace.
private  String m_uri
          non-null reference to namespace URI.
 
Constructor Summary
XMLNSDecl(String prefix, String uri, boolean isExcluded)
          Constructor XMLNSDecl
 
Method Summary
 boolean getIsExcluded()
          Tell if this declaration should be excluded from the result namespace.
 String getPrefix()
          Return the prefix.
 String getURI()
          Return the URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_prefix

private String m_prefix
non-null reference to prefix, using "" for default namespace.


m_uri

private String m_uri
non-null reference to namespace URI.


m_isExcluded

private boolean m_isExcluded
true if this namespace declaration should normally be excluded.

Constructor Detail

XMLNSDecl

public XMLNSDecl(String prefix,
                 String uri,
                 boolean isExcluded)
Constructor XMLNSDecl

Parameters:
prefix - non-null reference to prefix, using "" for default namespace.
uri - non-null reference to namespace URI.
isExcluded - true if this namespace declaration should normally be excluded.
Method Detail

getPrefix

public String getPrefix()
Return the prefix.

Returns:
The prefix that is associated with this URI, or null if the XMLNSDecl is declaring the default namespace.

getURI

public String getURI()
Return the URI.

Returns:
The URI that is associated with this declaration.

getIsExcluded

public boolean getIsExcluded()
Tell if this declaration should be excluded from the result namespace.

Returns:
true if this namespace declaration should normally be excluded.