Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.xcap.model.xcapcaps
Class XCapCapsParser

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

public final class XCapCapsParser
extends Object

Utility class that helps to converts xcap-caps xml to the object model and object model to the xcap-caps xml.

Author:
Grigorii Balutsel

Constructor Summary
XCapCapsParser()
           
 
Method Summary
static XCapCapsType fromXml(String xml)
          Creates xcap-caps object from the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XCapCapsParser

public XCapCapsParser()
Method Detail

fromXml

public static XCapCapsType fromXml(String xml)
                            throws ParsingException
Creates xcap-caps object from the element.

Parameters:
xml - the XML to analyze.
Returns:
the xcap-caps object.
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.