org.millscript.commons.xml.token
Class NotationDeclTokenImpl

java.lang.Object
  extended by org.millscript.commons.xml.token.NotationDeclTokenImpl
All Implemented Interfaces:
org.millscript.commons.alert.AlertDecorator, NotationDeclToken, Token

public class NotationDeclTokenImpl
extends java.lang.Object
implements org.millscript.commons.alert.AlertDecorator, NotationDeclToken

This class provides a default implementation of the notation declaration token.


Constructor Summary
NotationDeclTokenImpl(java.lang.String n, java.lang.String p, java.lang.String s)
          Constructs a new notation declaration token with the specified notation name, public and system identifiers.
 
Method Summary
 org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
           
 java.lang.String getName()
          Returns the name of this notation.
 java.lang.String getPubidLiteral()
          Returns the public identifier for this notation.
 java.lang.String getSystemLiteral()
          Returns the system identifier for this notation.
 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

NotationDeclTokenImpl

public NotationDeclTokenImpl(java.lang.String n,
                             java.lang.String p,
                             java.lang.String s)
Constructs a new notation declaration token with the specified notation name, public and system identifiers.

Parameters:
n - the notation name
p - the public identifier
s - the system identifier
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)

getName

public java.lang.String getName()
Description copied from interface: NotationDeclToken
Returns the name of this notation.

Specified by:
getName in interface NotationDeclToken
Returns:
a String holding the notation name
See Also:
NotationDeclToken.getName()

getPubidLiteral

public java.lang.String getPubidLiteral()
Description copied from interface: NotationDeclToken
Returns the public identifier for this notation.

Specified by:
getPubidLiteral in interface NotationDeclToken
Returns:
a String holding the public identifier for this notation
See Also:
NotationDeclToken.getPubidLiteral()

getSystemLiteral

public java.lang.String getSystemLiteral()
Description copied from interface: NotationDeclToken
Returns the system identifier for this notation.

Specified by:
getSystemLiteral in interface NotationDeclToken
Returns:
a String holding the system identifier for this notation
See Also:
NotationDeclToken.getSystemLiteral()

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.