org.dom4j

Interface ProcessingInstruction

public interface ProcessingInstruction extends Node

ProcessingInstruction defines an XML processing instruction. The Nodemethod will return the target of the PI and the Nodemethod will return the data from all of the instructions.

Version: $Revision: 1.10 $

Author: James Strachan

Method Summary
StringgetTarget()
This method is the equivalent to the ProcessingInstructionmethod.
StringgetText()
DOCUMENT ME!
StringgetValue(String name)

Returns the value of a specific name in the PI.

MapgetValues()
DOCUMENT ME!
booleanremoveValue(String name)
voidsetTarget(String target)
This method is the equivalent to the ProcessingInstructionmethod.
voidsetValue(String name, String value)
voidsetValues(Map data)

Method Detail

getTarget

public String getTarget()
This method is the equivalent to the ProcessingInstructionmethod. It is added for clarity.

Returns: the target of this PI

getText

public String getText()
DOCUMENT ME!

Returns: the text for all the data associated with the processing instruction

getValue

public String getValue(String name)

Returns the value of a specific name in the PI.

Parameters: name is the name of the attribute to lookup.

Returns: the value of the named attribute

getValues

public Map getValues()
DOCUMENT ME!

Returns: the values for this processing instruction as a Map

removeValue

public boolean removeValue(String name)

setTarget

public void setTarget(String target)
This method is the equivalent to the ProcessingInstructionmethod. It is added for clarity.

Parameters: target DOCUMENT ME!

setValue

public void setValue(String name, String value)

setValues

public void setValues(Map data)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge