Class SimpleMoodConcretisationProvider<C extends MoodConcretisation>

java.lang.Object
org.jivesoftware.smack.provider.AbstractProvider<E>
org.jivesoftware.smack.provider.Provider<E>
org.jivesoftware.smack.provider.ExtensionElementProvider<C>
org.jivesoftware.smackx.mood.provider.MoodConcretisationProvider<C>
org.jivesoftware.smackx.mood.provider.SimpleMoodConcretisationProvider<C>
Type Parameters:
C - type of the MoodConcretisation

public abstract class SimpleMoodConcretisationProvider<C extends MoodConcretisation> extends MoodConcretisationProvider<C>
Simple MoodConcretisationProvider implementation, suitable for really simple MoodConcretisations, that only consist of name and namespace. In such a case it is sufficient to just return an instance of the element addressed by the element name and namespace, since no other values must be parsed.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jivesoftware.smack.provider.AbstractProvider

    org.jivesoftware.smack.provider.AbstractProvider.NumberFormatParseException, org.jivesoftware.smack.provider.AbstractProvider.TextParseException, org.jivesoftware.smack.provider.AbstractProvider.WrappableParser<E extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    parse(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment, org.jxmpp.JxmppContext jxmppContext)
     
    protected abstract C
     

    Methods inherited from class org.jivesoftware.smack.provider.Provider

    parse, parse

    Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider

    getElementClass, toUrl, wrapExceptions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleMoodConcretisationProvider

      public SimpleMoodConcretisationProvider()
  • Method Details

    • parse

      public C parse(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment, org.jxmpp.JxmppContext jxmppContext) throws IOException, org.jivesoftware.smack.xml.XmlPullParserException
      Specified by:
      parse in class MoodConcretisationProvider<C extends MoodConcretisation>
      Throws:
      IOException
      org.jivesoftware.smack.xml.XmlPullParserException
    • simpleExtension

      protected abstract C simpleExtension()