Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.xcap.model
Class XmlUtils

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.sip.xcap.model.XmlUtils

public final class XmlUtils
extends Object

Utility class that helps to convert classes into xml and from xml to the classes.

Author:
Grigorii Balutsel

Constructor Summary
XmlUtils()
           
 
Method Summary
static void processAny(Element element, List<Element> any)
          Processes any element and add them into the element.
static void processAnyAttributes(Element element, Map<QName,String> anyAttributes)
          Processes any attributes and add them into the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlUtils

public XmlUtils()
Method Detail

processAnyAttributes

public static void processAnyAttributes(Element element,
                                        Map<QName,String> anyAttributes)
Processes any attributes and add them into the element.

Parameters:
element - the element where to add the attributes.
anyAttributes - the any attributes to process.

processAny

public static void processAny(Element element,
                              List<Element> any)
                       throws Exception
Processes any element and add them into the element.

Parameters:
element - the element where to add the elements.
any - the any elements to process.
Throws:
Exception - if there is some error during processing.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.