org.millscript.commons.xml.tokenizer
Class NoNamespacesName

java.lang.Object
  extended by org.millscript.commons.xml.tokenizer.AbstractName
      extended by org.millscript.commons.xml.tokenizer.NoNamespacesName
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, org.millscript.commons.alert.AlertDecorator, Name

public class NoNamespacesName
extends AbstractName

This class provides a Name implementation for use when documents are processed wihtout namespace support.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.millscript.commons.xml.api.Name
XML, XMLNS
 
Constructor Summary
NoNamespacesName(java.lang.String n)
          Constructs a new no namespace name, with the specified element name.
 
Method Summary
 org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
           
 java.lang.String getLocalName()
          Returns the local part of this name.
 java.lang.String getNamespace()
          Returns the namespace this name belongs to.
 java.lang.String getPrefix()
          Returns the prefix part of this name.
 java.lang.String getQName()
          Returns the qualified name.
 AbstractName setNamespace(org.millscript.commons.util.IMap<java.lang.String,java.lang.String> scope)
           
 java.lang.String toString()
           
 
Methods inherited from class org.millscript.commons.xml.tokenizer.AbstractName
compareTo, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoNamespacesName

public NoNamespacesName(java.lang.String n)
Constructs a new no namespace name, with the specified element name.

Parameters:
n - the name
Method Detail

decorate

public org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
See Also:
AlertDecorator.decorate(org.millscript.commons.alert.Alert)

getLocalName

public java.lang.String getLocalName()
Description copied from interface: Name
Returns the local part of this name.

Returns:
a String for the local part of this name
See Also:
Name.getLocalName()

getNamespace

public java.lang.String getNamespace()
Description copied from interface: Name
Returns the namespace this name belongs to.

Returns:
a String for the namespace this name belongs to
See Also:
Name.getNamespace()

getPrefix

public java.lang.String getPrefix()
Description copied from interface: Name
Returns the prefix part of this name.

Returns:
a String for the prefix part of this name
See Also:
Name.getPrefix()

getQName

public java.lang.String getQName()
Description copied from interface: Name
Returns the qualified name.

Returns:
a String for the qualified name
See Also:
Name.getQName()

setNamespace

public AbstractName setNamespace(org.millscript.commons.util.IMap<java.lang.String,java.lang.String> scope)
Specified by:
setNamespace in class AbstractName
See Also:
org.millscript.commons.xml.tokenizer.ProtoName#setNamespace(IMap)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.