org.dom4j.tree

Class DefaultProcessingInstruction

public class DefaultProcessingInstruction extends FlyweightProcessingInstruction

DefaultProcessingInstruction is the default Processing Instruction implementation. It is a doubly linked node which supports the parent relationship and can be modified in place.

Version: $Revision: 1.13 $

Author: James Strachan

Constructor Summary
DefaultProcessingInstruction(String target, Map values)

This will create a new PI with the given target and values

DefaultProcessingInstruction(String target, String values)

This will create a new PI with the given target and values

DefaultProcessingInstruction(Element parent, String target, String values)

This will create a new PI with the given target and values

Method Summary
ElementgetParent()
booleanisReadOnly()
voidsetParent(Element parent)
voidsetTarget(String target)
voidsetText(String text)
voidsetValue(String name, String value)
voidsetValues(Map values)
booleansupportsParent()

Constructor Detail

DefaultProcessingInstruction

public DefaultProcessingInstruction(String target, Map values)

This will create a new PI with the given target and values

Parameters: target is the name of the PI values is the Map values for the PI

DefaultProcessingInstruction

public DefaultProcessingInstruction(String target, String values)

This will create a new PI with the given target and values

Parameters: target is the name of the PI values is the values for the PI

DefaultProcessingInstruction

public DefaultProcessingInstruction(Element parent, String target, String values)

This will create a new PI with the given target and values

Parameters: parent is the parent element target is the name of the PI values is the values for the PI

Method Detail

getParent

public Element getParent()

isReadOnly

public boolean isReadOnly()

setParent

public void setParent(Element parent)

setTarget

public void setTarget(String target)

setText

public void setText(String text)

setValue

public void setValue(String name, String value)

setValues

public void setValues(Map values)

supportsParent

public boolean supportsParent()
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge