Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.xcap.model.resourcelists
Class ResourceListsParser

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

public final class ResourceListsParser
extends Object

Utility class that helps to converts resource-lists xml to the object model and object model to the resource-lists xml.

Author:
Grigorii Balutsel

Method Summary
static ResourceListsType fromXml(String xml)
          Creates resource-lists object from the element.
static String toXml(ResourceListsType resourceLists)
          Creates XML from the resource-lists element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromXml

public static ResourceListsType fromXml(String xml)
                                 throws ParsingException
Creates resource-lists object from the element.

Parameters:
xml - the XML to analyze.
Returns:
the resource-lists object.
Throws:
ParsingException - if there is some error during parsing.

toXml

public static String toXml(ResourceListsType resourceLists)
                    throws ParsingException
Creates XML from the resource-lists element.

Parameters:
resourceLists - the resource-lists to analyze.
Returns:
the resource-lists xml.
Throws:
ParsingException - if there is some error during parsing.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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