org.nuxeo.common.xmap
Class XValueFactory
java.lang.Object
org.nuxeo.common.xmap.XValueFactory
public abstract class XValueFactory
- extends java.lang.Object
Value factories are used to decode values from XML strings.
To register a new factory for a given XMap instance use the method
XMap.setValueFactory(Class, XValueFactory)
.
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STRING
public static final XValueFactory STRING
INTEGER
public static final XValueFactory INTEGER
LONG
public static final XValueFactory LONG
DOUBLE
public static final XValueFactory DOUBLE
FLOAT
public static final XValueFactory FLOAT
BOOLEAN
public static final XValueFactory BOOLEAN
DATE
public static final XValueFactory DATE
FILE
public static final XValueFactory FILE
URL
public static final XValueFactory URL
CLASS
public static final XValueFactory CLASS
RESOURCE
public static final XValueFactory RESOURCE
XValueFactory
public XValueFactory()
deserialize
public abstract java.lang.Object deserialize(Context context,
java.lang.String value)
serialize
public abstract java.lang.String serialize(Context context,
java.lang.Object value)
getElementValue
public final java.lang.Object getElementValue(Context context,
org.w3c.dom.Node element,
boolean trim)
getAttributeValue
public final java.lang.Object getAttributeValue(Context context,
org.w3c.dom.Node element,
java.lang.String name)
addFactory
public static void addFactory(java.lang.Class klass,
XValueFactory factory)
getFactory
public static XValueFactory getFactory(java.lang.Class type)
getValue
public static java.lang.Object getValue(Context context,
java.lang.Class klass,
java.lang.String value)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.