mam.xml
Class XmlPreferencesAutomator


public class XmlPreferencesAutomator


Field Summary
 final static StringCOLLECTION_TYPE_NAME
           
 final static StringDEFAULT_VALUE_ATTRIBUTE
           
 (package private) Mapm_typeHandlers
           
 final static StringMAM_ID_TYPE_NAME
           
 final static StringPREFERENCE_IDENTIFIER_ATTRIBUTE
           
 final static StringPREFERENCE_TYPE_ATTRIBUTE
           
 final static StringROUTING_TAG_TYPE_NAME
           
 final static StringURL_TYPE_NAME
           

Constructor Summary
XmlPreferencesAutomator()
           

Method Summary
 static ElementCreateCollectionElement(String tagName, Collection collection)
           
 ObjectcreateObjectFromXml(Element xmlPreferences)
           
 voidfillObjectFromXml(Object target, Element xmlPreferences)
           
 static ElementFillPrimitiveElement(String tagName, double d)
           
 static ElementFillPrimitiveElement(String tagName, float f)
           
 static ElementFillPrimitiveElement(String tagName, int i)
           
 static ElementFillPrimitiveElement(String tagName, long l)
           
 static ElementFillPrimitiveElement(String tagName, MamId id)
           
 static ElementFillPrimitiveElement(String tagName, RoutingTag routingTag)
           
 static ElementFillPrimitiveElement(String tagName, URL url)
           
 static ElementFillPrimitiveElement(String tagName, String s)
           
 ObjectsetPreferences(Object target, Element source)
           
 voidsetTypeHandler(String type, XmlPreferencesTypeHandler handler)
           

Field Detail

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
Constructor Detail

XmlPreferencesAutomator

public XmlPreferencesAutomator()
Method Detail

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)