Class UserPrefsHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.ametys.core.userpref.UserPrefsHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class UserPrefsHandler extends DefaultHandler
This class is intended to be use as a simple helper to construct Maps from SAX events.
The incoming SAX document must follow this structure :
<UserPreferences>
  <Name1>value1</Name1>
  <Name2>value2</Name2>
  ...
</UserPreferences>

or
<UserPreferences>
  <preference id="Name1">value1</preference>
  <preference id="Name1">value2</preference>
  ...
</UserPreferences>

Each pair Name/Value will be put (as Strings) in the constructed Map