Smack

org.jivesoftware.smackx.workgroup.ext.macros
Class Macros.InternalProvider

java.lang.Object
  extended by org.jivesoftware.smackx.workgroup.ext.macros.Macros.InternalProvider
All Implemented Interfaces:
IQProvider
Enclosing class:
Macros

public static class Macros.InternalProvider
extends java.lang.Object
implements IQProvider

An IQProvider for Macro packets.

Author:
Derek DeMoro

Constructor Summary
Macros.InternalProvider()
           
 
Method Summary
 IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
          Parse the IQ sub-document and create an IQ instance.
 Macro parseMacro(org.xmlpull.v1.XmlPullParser parser)
           
 MacroGroup parseMacroGroup(org.xmlpull.v1.XmlPullParser parser)
           
 MacroGroup parseMacroGroups(java.lang.String macros)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Macros.InternalProvider

public Macros.InternalProvider()
Method Detail

parseIQ

public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
           throws java.lang.Exception
Description copied from interface: IQProvider
Parse the IQ sub-document and create an IQ instance. Each IQ must have a single child element. At the beginning of the method call, the xml parser will be positioned at the opening tag of the IQ child element. At the end of the method call, the parser must be positioned on the closing tag of the child element.

Specified by:
parseIQ in interface IQProvider
Parameters:
parser - an XML parser.
Returns:
a new IQ instance.
Throws:
java.lang.Exception - if an error occurs parsing the XML.

parseMacro

public Macro parseMacro(org.xmlpull.v1.XmlPullParser parser)
                 throws java.lang.Exception
Throws:
java.lang.Exception

parseMacroGroup

public MacroGroup parseMacroGroup(org.xmlpull.v1.XmlPullParser parser)
                           throws java.lang.Exception
Throws:
java.lang.Exception

parseMacroGroups

public MacroGroup parseMacroGroups(java.lang.String macros)
                            throws java.lang.Exception
Throws:
java.lang.Exception

Smack

Copyright © 2003-2007 Jive Software.