org.millscript.commons.xml.tokenizer
Class NamespaceIgnoreNameTokenizer

java.lang.Object
  extended by org.millscript.commons.xml.tokenizer.NameTokenizer
      extended by org.millscript.commons.xml.tokenizer.NamespaceIgnoreNameTokenizer

public class NamespaceIgnoreNameTokenizer
extends NameTokenizer

This class provides an unprefixed name tokenizer, for tokenizing XML Names in a namespace unaware environment.


Constructor Summary
NamespaceIgnoreNameTokenizer(AbstractXmlTokenizerImpl xt)
          Constructs a new namespace unaware name tokenizer to tokenize a name from the specified tokenizer.
 
Method Summary
 AbstractName readAttributeName()
          Returns a name for an attribute, read from the underlying tokenizer.
 AbstractName readTagName()
          Returns a name for a tag, read from the underlying tokenizer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceIgnoreNameTokenizer

public NamespaceIgnoreNameTokenizer(AbstractXmlTokenizerImpl xt)
Constructs a new namespace unaware name tokenizer to tokenize a name from the specified tokenizer.

Parameters:
xt - the tokenizer to tokenize a name from
Method Detail

readAttributeName

public AbstractName readAttributeName()
Description copied from class: NameTokenizer
Returns a name for an attribute, read from the underlying tokenizer. This method is provided for reading an attribute name and nothing else, as it only allows qualified names to have a namespace.

Specified by:
readAttributeName in class NameTokenizer
Returns:
a ProtoName for the attribute, read from the underlying tokenizer
See Also:
NameTokenizer.readAttributeName()

readTagName

public AbstractName readTagName()
Description copied from class: NameTokenizer
Returns a name for a tag, read from the underlying tokenizer. This method is provided for reading a tag name and nothing else, as it allows tag names to use the default namespace declaration.

Specified by:
readTagName in class NameTokenizer
Returns:
a ProtoName for the tag, read from the underlying tokenizer
See Also:
NameTokenizer.readTagName()


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