mam.xml
Class XmlPreferencesAutomator
- public class XmlPreferencesAutomator
Method Summary |
static Element | CreateCollectionElement(String tagName, Collection collection) |
Object | createObjectFromXml(Element xmlPreferences) |
void | fillObjectFromXml(Object target, Element xmlPreferences) |
static Element | FillPrimitiveElement(String tagName, double d) |
static Element | FillPrimitiveElement(String tagName, float f) |
static Element | FillPrimitiveElement(String tagName, int i) |
static Element | FillPrimitiveElement(String tagName, long l) |
static Element | FillPrimitiveElement(String tagName, MamId id) |
static Element | FillPrimitiveElement(String tagName, RoutingTag routingTag) |
static Element | FillPrimitiveElement(String tagName, URL url) |
static Element | FillPrimitiveElement(String tagName, String s) |
Object | setPreferences(Object target, Element source) |
void | setTypeHandler(String type, XmlPreferencesTypeHandler handler) |
COLLECTION_TYPE_NAME
public final static String COLLECTION_TYPE_NAME
DEFAULT_VALUE_ATTRIBUTE
public final static String DEFAULT_VALUE_ATTRIBUTE
m_typeHandlers
Map m_typeHandlers
MAM_ID_TYPE_NAME
public final static String MAM_ID_TYPE_NAME
PREFERENCE_IDENTIFIER_ATTRIBUTE
public final static String PREFERENCE_IDENTIFIER_ATTRIBUTE
PREFERENCE_TYPE_ATTRIBUTE
public final static String PREFERENCE_TYPE_ATTRIBUTE
ROUTING_TAG_TYPE_NAME
public final static String ROUTING_TAG_TYPE_NAME
URL_TYPE_NAME
public final static String URL_TYPE_NAME
XmlPreferencesAutomator
public XmlPreferencesAutomator()
CreateCollectionElement
public static Element CreateCollectionElement(String tagName, Collection collection)
createObjectFromXml
public Object createObjectFromXml(Element xmlPreferences)
fillObjectFromXml
public void fillObjectFromXml(Object target, Element xmlPreferences)
FillPrimitiveElement
public static Element FillPrimitiveElement(String tagName, double d)
FillPrimitiveElement
public static Element FillPrimitiveElement(String tagName, float f)
FillPrimitiveElement
public static Element FillPrimitiveElement(String tagName, int i)
FillPrimitiveElement
public static Element FillPrimitiveElement(String tagName, long l)
FillPrimitiveElement
public static Element FillPrimitiveElement(String tagName, MamId id)
FillPrimitiveElement
public static Element FillPrimitiveElement(String tagName, RoutingTag routingTag)
FillPrimitiveElement
public static Element FillPrimitiveElement(String tagName, URL url)
FillPrimitiveElement
public static Element FillPrimitiveElement(String tagName, String s)
setPreferences
public Object setPreferences(Object target, Element source)
setTypeHandler
public void setTypeHandler(String type, XmlPreferencesTypeHandler handler)