org.millscript.commons.xml.token
Class StartTagTokenImpl

java.lang.Object
  extended by org.millscript.commons.xml.token.StartTagTokenImpl
All Implemented Interfaces:
org.millscript.commons.alert.AlertDecorator, StartTagToken, Token
Direct Known Subclasses:
EmptyElemTokenImpl

public class StartTagTokenImpl
extends java.lang.Object
implements org.millscript.commons.alert.AlertDecorator, StartTagToken

This class provides a default implementation of the start tag token.


Constructor Summary
StartTagTokenImpl(org.millscript.commons.util.IMap<java.lang.String,java.lang.String> previousNamespace, org.millscript.commons.util.IMap<java.lang.String,java.lang.String> namespace, Name name, Attributes attrs)
          Contructs a new start tag token with the specified Name and Attributes.
 
Method Summary
 org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
           
 Attributes getAttributes()
          Returns the attributes associated with this start tag.
 Name getName()
          Returns the Name of the start tag.
 org.millscript.commons.util.IMap<java.lang.String,java.lang.String> getNamespaceScope()
          Returns the mapping of namespace prefix to namespace IRI that are in scope for this start tag.
 org.millscript.commons.util.IMap<java.lang.String,java.lang.String> getPreviousNamespaceScope()
          Returns the mapping of namespace prefix to namespace IRI that were in scope just before this start tag.
 void visit(TokenVisitor tokenVisitor)
          Visits the specified token visitor with this token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartTagTokenImpl

public StartTagTokenImpl(org.millscript.commons.util.IMap<java.lang.String,java.lang.String> previousNamespace,
                         org.millscript.commons.util.IMap<java.lang.String,java.lang.String> namespace,
                         Name name,
                         Attributes attrs)
Contructs a new start tag token with the specified Name and Attributes.

Parameters:
previousNamespace - the mapping of namespace prefix to namespace IRI that were in scope just before this element
namespace - the mapping of namespace prefix to namespace IRI for the scope of this element
name - the element Name
attrs - the element Attributes
Method Detail

decorate

public org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
Specified by:
decorate in interface org.millscript.commons.alert.AlertDecorator
See Also:
AlertDecorator.decorate(org.millscript.commons.alert.Alert)

getAttributes

public Attributes getAttributes()
Description copied from interface: StartTagToken
Returns the attributes associated with this start tag.

Specified by:
getAttributes in interface StartTagToken
Returns:
an Attributes instance for this elements attributes
See Also:
StartTagToken.getAttributes()

getName

public Name getName()
Description copied from interface: StartTagToken
Returns the Name of the start tag.

Specified by:
getName in interface StartTagToken
Returns:
the Name of the start tag
See Also:
StartTagToken.getName()

getNamespaceScope

public org.millscript.commons.util.IMap<java.lang.String,java.lang.String> getNamespaceScope()
Description copied from interface: StartTagToken
Returns the mapping of namespace prefix to namespace IRI that are in scope for this start tag.

Specified by:
getNamespaceScope in interface StartTagToken
Returns:
an IMap containing the in scope namespace prefix to IRI mapping for this start tag
See Also:
StartTagToken.getNamespaceScope()

getPreviousNamespaceScope

public org.millscript.commons.util.IMap<java.lang.String,java.lang.String> getPreviousNamespaceScope()
Description copied from interface: StartTagToken
Returns the mapping of namespace prefix to namespace IRI that were in scope just before this start tag.

Specified by:
getPreviousNamespaceScope in interface StartTagToken
Returns:
an IMap containing the in scope namespace prefix to IRI mapping that were in scope just before this start tag
See Also:
StartTagToken.getPreviousNamespaceScope()

visit

public void visit(TokenVisitor tokenVisitor)
Description copied from interface: Token
Visits the specified token visitor with this token.

Specified by:
visit in interface Token
Parameters:
tokenVisitor - the TokenVisitor to visit with this token
See Also:
Token.visit(org.millscript.commons.xml.api.token.TokenVisitor)


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