Package rocks.xmpp.util
Class LanguageUnmarshallerListener
- java.lang.Object
-
- javax.xml.bind.Unmarshaller.Listener
-
- rocks.xmpp.util.LanguageUnmarshallerListener
-
public final class LanguageUnmarshallerListener extends javax.xml.bind.Unmarshaller.ListenerListens to unmarshal events in order to assign a parent object'sxml:langattribute to its child elements. This is important because the language of a parent is implicitly inherited to its children. If a child element were detached from it's parent the language information would be lost.This even may lead to misbehavior, e.g. when calculating the Entity Capabilities hash, which takes the language into account.
-
-
Constructor Summary
Constructors Constructor Description LanguageUnmarshallerListener(Locale rootLocale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterUnmarshal(Object target, Object parent)voidbeforeUnmarshal(Object target, Object parent)
-