Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror
Class XCapErrorParser

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

public final class XCapErrorParser
extends Object

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

Author:
Grigorii Balutsel

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

Constructor Detail

XCapErrorParser

public XCapErrorParser()
Method Detail

fromXml

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

Parameters:
xml - the XML to analyze.
Returns:
the resource-lists 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.