public abstract class XValueFactory extends Object
To register a new factory for a given XMap instance use the method XMap.setValueFactory(Class, XValueFactory)
.
Modifier and Type | Field and Description |
---|---|
static XValueFactory |
BOOLEAN |
static XValueFactory |
CLASS |
static XValueFactory |
DATE |
static XValueFactory |
DOUBLE |
static XValueFactory |
FILE |
static XValueFactory |
FLOAT |
static XValueFactory |
INTEGER |
static XValueFactory |
LONG |
static XValueFactory |
RESOURCE |
static XValueFactory |
STRING |
static XValueFactory |
URL |
Constructor and Description |
---|
XValueFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
addFactory(Class klass,
XValueFactory factory) |
abstract Object |
deserialize(Context context,
String value) |
Object |
getAttributeValue(Context context,
Node element,
String name) |
Object |
getElementValue(Context context,
Node element,
boolean trim) |
static XValueFactory |
getFactory(Class type) |
static Object |
getValue(Context context,
Class klass,
String value) |
abstract String |
serialize(Context context,
Object value) |
public static final XValueFactory STRING
public static final XValueFactory INTEGER
public static final XValueFactory LONG
public static final XValueFactory DOUBLE
public static final XValueFactory FLOAT
public static final XValueFactory BOOLEAN
public static final XValueFactory DATE
public static final XValueFactory FILE
public static final XValueFactory URL
public static final XValueFactory CLASS
public static final XValueFactory RESOURCE
public XValueFactory()
public abstract Object deserialize(Context context, String value)
public final Object getElementValue(Context context, Node element, boolean trim)
public final Object getAttributeValue(Context context, Node element, String name)
public static void addFactory(Class klass, XValueFactory factory)
public static XValueFactory getFactory(Class type)
Copyright © 2017 Nuxeo. All rights reserved.