org.dom4j.tree

Class AbstractProcessingInstruction

public abstract class AbstractProcessingInstruction extends AbstractNode implements ProcessingInstruction

AbstractProcessingInstruction is an abstract base class for tree implementors to use for implementation inheritence.

Version: $Revision: 1.17 $

Author: James Strachan

Constructor Summary
AbstractProcessingInstruction()
Method Summary
voidaccept(Visitor visitor)
StringasXML()
StringgetName()
shortgetNodeType()
StringgetPath(Element context)
StringgetUniquePath(Element context)
protected MapparseValues(String text)

Parses the raw data of PI as a Map.

booleanremoveValue(String name)
voidsetName(String name)
voidsetValue(String name, String value)
voidsetValues(Map data)
StringtoString()
protected StringtoString(Map values)

This will convert the Map to a string representation.

voidwrite(Writer writer)

Constructor Detail

AbstractProcessingInstruction

public AbstractProcessingInstruction()

Method Detail

accept

public void accept(Visitor visitor)

asXML

public String asXML()

getName

public String getName()

getNodeType

public short getNodeType()

getPath

public String getPath(Element context)

getUniquePath

public String getUniquePath(Element context)

parseValues

protected Map parseValues(String text)

Parses the raw data of PI as a Map.

Parameters: text String PI data to parse

Returns: DOCUMENT ME!

removeValue

public boolean removeValue(String name)

setName

public void setName(String name)

setValue

public void setValue(String name, String value)

setValues

public void setValues(Map data)

toString

public String toString()

toString

protected String toString(Map values)

This will convert the Map to a string representation.

Parameters: values is a Map of PI data to convert

Returns: DOCUMENT ME!

write

public void write(Writer writer)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge