Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.xmap
Class XMLBuilder

java.lang.Object
  extended by org.nuxeo.common.xmap.XMLBuilder

public class XMLBuilder
extends Object


Method Summary
static Element addElement(Element root, Path path)
           
static Element addElement(Element parent, String segment)
           
static void fillField(Element element, String value, String attribute)
           
static Element getOrCreateElement(Element root, Path path)
           
static String saveToXML(Object object, Element root, XAnnotatedObject xao)
           
static void toXML(Object o, Element parent, XAnnotatedObject xao)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

saveToXML

public static String saveToXML(Object object,
                               Element root,
                               XAnnotatedObject xao)

toXML

public static void toXML(Object o,
                         Element parent,
                         XAnnotatedObject xao)
                  throws Exception
Throws:
Exception

getOrCreateElement

public static Element getOrCreateElement(Element root,
                                         Path path)

addElement

public static Element addElement(Element root,
                                 Path path)

addElement

public static Element addElement(Element parent,
                                 String segment)

fillField

public static void fillField(Element element,
                             String value,
                             String attribute)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.