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 theMoodConcretisation
public abstract class SimpleMoodConcretisationProvider<C extends MoodConcretisation>
extends MoodConcretisationProvider<C>
Simple
MoodConcretisationProvider
implementation, suitable for really simple MoodConcretisation
s,
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
AbstractProvider.NumberFormatParseException, AbstractProvider.TextParseException, AbstractProvider.WrappableParser<E>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) protected abstract C
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass, toUrl, wrapExceptions
-
Constructor Details
-
SimpleMoodConcretisationProvider
public SimpleMoodConcretisationProvider()
-
-
Method Details
-
parse
public C parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws IOException, XmlPullParserException - Specified by:
parse
in classMoodConcretisationProvider<C extends MoodConcretisation>
- Throws:
IOException
XmlPullParserException
-
simpleExtension
-