org.millscript.commons.xml.token
Class PITokenImpl

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

public class PITokenImpl
extends java.lang.Object
implements org.millscript.commons.alert.AlertDecorator, PIToken

This class provides a default implementation of the processing instruction token.


Constructor Summary
PITokenImpl(java.lang.String t, java.lang.String d)
          Contructs a new processing instruction token with the specified target and character data.
 
Method Summary
 org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
           
 java.lang.String getData()
          Returns the character data for this processing instruction.
 java.lang.String getTarget()
          Returns the target of this processing instruction.
 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

PITokenImpl

public PITokenImpl(java.lang.String t,
                   java.lang.String d)
Contructs a new processing instruction token with the specified target and character data.

Parameters:
t - the processing instruction target
d - the processing instruction character data
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)

getData

public java.lang.String getData()
Description copied from interface: PIToken
Returns the character data for this processing instruction.

Specified by:
getData in interface PIToken
Returns:
a String with the character data for this processing instruction
See Also:
PIToken.getData()

getTarget

public java.lang.String getTarget()
Description copied from interface: PIToken
Returns the target of this processing instruction.

Specified by:
getTarget in interface PIToken
Returns:
a String holding the target of this processing instruction
See Also:
PIToken.getTarget()

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.