org.attoparser.markup.dom
Class ProcessingInstruction

Object
  extended by org.attoparser.markup.dom.Node
      extended by org.attoparser.markup.dom.ProcessingInstruction
All Implemented Interfaces:
Serializable

public final class ProcessingInstruction
extends Node

A Processing Instruction node in a attoDOM tree.

Since:
1.0
Author:
Daniel Fernández
See Also:
Serialized Form

Constructor Summary
ProcessingInstruction(String target, String content)
           
ProcessingInstruction(String target, String content, int line, int col)
           
 
Method Summary
 String getContent()
           Returns the content of the Processing Instruction.
 String getTarget()
           Returns the target of the Processing Instruction.
 void setContent(String content)
           
 void setTarget(String target)
           
 void visit(AttoDOMVisitor visitor)
           
 
Methods inherited from class org.attoparser.markup.dom.Node
getCol, getLine, getParent, hasParent
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingInstruction

public ProcessingInstruction(String target,
                             String content,
                             int line,
                             int col)

ProcessingInstruction

public ProcessingInstruction(String target,
                             String content)
Method Detail

getTarget

public String getTarget()

Returns the target of the Processing Instruction.

Returns:
the target of the PI.

setTarget

public void setTarget(String target)

getContent

public String getContent()

Returns the content of the Processing Instruction.

Returns:
the content of the PI.

setContent

public void setContent(String content)

visit

public final void visit(AttoDOMVisitor visitor)
                 throws AttoDOMVisitorException
Specified by:
visit in class Node
Throws:
AttoDOMVisitorException


Copyright © 2012 The ATTOPARSER team. All Rights Reserved.