com.simonstl.midp.xml
Class TAMNSName

java.lang.Object
  |
  +--com.simonstl.midp.xml.TAMName
        |
        +--com.simonstl.midp.xml.TAMAttribute
              |
              +--com.simonstl.midp.xml.TAMNSName

public class TAMNSName
extends TAMAttribute

Derived from com.simonstl.moe.NamespaceDecl. This class stores namespace declaration information.

Version:
0.01 12 August 2002
Author:
Simon St.Laurent

Field Summary
protected  boolean current
          current indicates that a namespace needs to be declared in the current context.
protected  int level
          level is used by TAMNSContext to determine where in a tree a given namespace applies.
 
Fields inherited from class com.simonstl.midp.xml.TAMAttribute
containsSkippedEntity, quotes, value
 
Fields inherited from class com.simonstl.midp.xml.TAMName
name, prefix, uri
 
Constructor Summary
TAMNSName()
           
 
Method Summary
 int getLevel()
          getLevel()is used by the TAMNSContext object to figure out which declarations appeared where.
 java.lang.String getLocalName()
           
 java.lang.String getPrefix()
          Prefix for namespaces is always xmlns.
 java.lang.String getQName()
          Returns the Qualified Name (QName) for the component.
 java.lang.String getUri()
           
 void setLevel(int _level)
          setLevel()is used by the TAMNSContext object to establish which declarations appeared where.
 void setLocalName(java.lang.String _localName)
          Use setLocalName to identify the namespace prefix being used.
 void setPrefix(java.lang.String prefix)
          Attempts to set prefixes on namespace names will be ignored.
 void setUri(java.lang.String nsURI)
           
 
Methods inherited from class com.simonstl.midp.xml.TAMAttribute
getContainsSkippedEntity, getQuotes, getValue, setContainsSkippedEntity, setQuotes, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

level

protected int level
level is used by TAMNSContext to determine where in a tree a given namespace applies.

current

protected boolean current
current indicates that a namespace needs to be declared in the current context. If events came through a SAX filter stripping xmlns attributes, this is useful.
Constructor Detail

TAMNSName

public TAMNSName()
Method Detail

getPrefix

public java.lang.String getPrefix()
Prefix for namespaces is always xmlns.
Overrides:
getPrefix in class TAMName

setPrefix

public void setPrefix(java.lang.String prefix)
Attempts to set prefixes on namespace names will be ignored.
Overrides:
setPrefix in class TAMName

getUri

public java.lang.String getUri()
Overrides:
getUri in class TAMName

setUri

public void setUri(java.lang.String nsURI)
Overrides:
setUri in class TAMName

getLocalName

public java.lang.String getLocalName()
Overrides:
getLocalName in class TAMName

setLocalName

public void setLocalName(java.lang.String _localName)
Use setLocalName to identify the namespace prefix being used.
Overrides:
setLocalName in class TAMName

getQName

public java.lang.String getQName()
Returns the Qualified Name (QName) for the component. Overrides the usual QName approach because of the different approach used by Namespaces in XML.
Overrides:
getQName in class TAMName

getLevel

public int getLevel()
getLevel()is used by the TAMNSContext object to figure out which declarations appeared where.

setLevel

public void setLevel(int _level)
setLevel()is used by the TAMNSContext object to establish which declarations appeared where.