de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive


Class ArchiveHandlerXML

de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerAbstract
    inheritde.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerExternalFormatAbstract
        inheritde.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerXML

public class ArchiveHandlerXML
Namespace: wikiarchive


Archive handler for an XML-represented set of entries.
Authors:
Jens Gulden


Attribute Summary
protected static String  ATTRIBUTE_ID
 
public static String  CONTENT_SUFFIX
 
public static String  CONTENT_TYPE
 
protected static String  TAGNAME_ENTRY
 

Method Summary
public Object   createData()
Creates an empty data source to be filled for export.  
protected void  createEntry(Object data, ArchiveEntry entry)
Creates a new archive entry in the data source handled by this ArchiveIOHandler.  
public String   dataToString(Object data)
Converts data source to string for export.  
private static void  entry(Document doc, Element e, String key, String val)
 
protected static Element  entry2xml(Document doc, ArchiveEntry entry)
 
protected static Element  findEntryElement(Document doc, String tagname)
 
public String   getContentSuffix()
Content type for export via HTTP.  
public String   getContentType()
Content type for export via HTTP.  
protected static void  moveChildren(Element from, Element to)
 
protected Map   parseAll(Object data)
Retrieves all archive entries from the data source.  
protected static void  removeChildren(Element e)
 
protected void  replaceEntry(Object data, ArchiveEntry newEntry, ArchiveEntry oldEntry)
Replaces an archive entry in the data source handled by this ArchiveIOHandler.  
public void  stringToData(String s, Object data)
Converts a string to a handled data source for import.  
protected static ArchiveEntry   xml2entry(Element e)
 

Tagged Values
static false
documentation#author Jens Gulden

Attribute Detail

ATTRIBUTE_ID

protected static final String ATTRIBUTE_ID

Multiplicity: 1..1
Ordering: unspecified



CONTENT_SUFFIX

public static final String CONTENT_SUFFIX

Multiplicity: 1..1
Ordering: unspecified



CONTENT_TYPE

public static final String CONTENT_TYPE

Multiplicity: 1..1
Ordering: unspecified



TAGNAME_ENTRY

protected static final String TAGNAME_ENTRY

Multiplicity: 1..1
Ordering: unspecified

Method Detail

createData

public Object createData()


Creates an empty data source to be filled for export.
Returns:


createEntry

protected void createEntry(Object data, ArchiveEntry entry)


Creates a new archive entry in the data source handled by this ArchiveIOHandler.
Parameters:
data - The data source handled by this ArchiveHandler, which is of type Document here.
entry - The entry.


dataToString

public String dataToString(Object data)


Converts data source to string for export.
Parameters:
data -
Returns:


entry

private static void entry(Document doc, Element e, String key, String val)

Parameters:
doc -
e -
key -
val -


entry2xml

protected static Element entry2xml(Document doc, ArchiveEntry entry)

Parameters:
doc -
entry -
Returns:


findEntryElement

protected static Element findEntryElement(Document doc, String tagname)

Parameters:
doc -
tagname -
Returns:


getContentSuffix

public String getContentSuffix()


Content type for export via HTTP.
Returns:


getContentType

public String getContentType()


Content type for export via HTTP.
Returns:


moveChildren

protected static void moveChildren(Element from, Element to)

Parameters:
from -
to -


parseAll

protected Map parseAll(Object data)


Retrieves all archive entries from the data source.
Method Tagged Values
documentation#throws IOException if an i/o error occurs

Parameters:
data - The data source handled by this ArchiveHandler, which is of type StringBuffer here.
Returns:
Exceptions:
IOException if an i/o error occurs


removeChildren

protected static void removeChildren(Element e)

Parameters:
e -


replaceEntry

protected void replaceEntry(Object data, ArchiveEntry newEntry, ArchiveEntry oldEntry)


Replaces an archive entry in the data source handled by this ArchiveIOHandler.
Parameters:
data - The data source handled by this ArchiveHandler, which is of type Document here.
newEntry - The new entry.
oldEntry - The old entry.


stringToData

public void stringToData(String s, Object data)


Converts a string to a handled data source for import.
Parameters:
s -
data -


xml2entry

protected static ArchiveEntry xml2entry(Element e)

Parameters:
e -
Returns:

previous   TOC   next

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in the USA and other countries. Copyright 2003-2006 Gentleware AG, Ludwigstr. 12, 20357 Hamburg, Germany. All Rights Reserved.
UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.