Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.whiteboard.sxe.util.SXEUtils Class Reference

List of all members.

Static Public Member Functions

static DOMImplementation getDOMImplementation ()
static Document getEmptyDocument (String ns, String name)
static String toXmlString (ElementRecord record)
static Document toDocument (ElementRecord rootRecord)
static List< RecordDataObjecttoDataObjects (List< IRecord > records)

Static Protected Member Functions

static void addAttributes (List< AttributeRecord > attributes, Element parent)
static void addElements (List< ElementRecord > elements, Element parent)
static void addChildNodes (ElementRecord record, Element element)

Member Function Documentation

static void de.fu_berlin.inf.dpp.whiteboard.sxe.util.SXEUtils.addAttributes ( List< AttributeRecord attributes,
Element  parent 
) [static, protected]

Helper method to add all AttributeRecords as DOM attribute

Parameters:
attributes
elementto add the attributes to
static void de.fu_berlin.inf.dpp.whiteboard.sxe.util.SXEUtils.addChildNodes ( ElementRecord  record,
Element  element 
) [static, protected]

Helper method to add all child nodes as DOM nodes to element

Parameters:
record
elementto add the nodes to
static void de.fu_berlin.inf.dpp.whiteboard.sxe.util.SXEUtils.addElements ( List< ElementRecord elements,
Element  parent 
) [static, protected]

Helper method to add all child element records as DOM child elements

Parameters:
elements
elementto add the elements to
static DOMImplementation de.fu_berlin.inf.dpp.whiteboard.sxe.util.SXEUtils.getDOMImplementation ( ) [static]
static Document de.fu_berlin.inf.dpp.whiteboard.sxe.util.SXEUtils.getEmptyDocument ( String  ns,
String  name 
) [static]
static List<RecordDataObject> de.fu_berlin.inf.dpp.whiteboard.sxe.util.SXEUtils.toDataObjects ( List< IRecord records) [static]
Parameters:
listof IRecords
Returns:
the IRecords as RecordDataObjects
static Document de.fu_berlin.inf.dpp.whiteboard.sxe.util.SXEUtils.toDocument ( ElementRecord  rootRecord) [static]
Parameters:
rootRecord
Returns:
the SXE tree as W3C DOM document
static String de.fu_berlin.inf.dpp.whiteboard.sxe.util.SXEUtils.toXmlString ( ElementRecord  record) [static]
Parameters:
recordroot record of subtree
Returns:
the SXE tree as XML String
 All Classes Namespaces Files Functions Variables Enumerations