Package org.nuxeo.common.xmap
Class XValueFactory
java.lang.Object
org.nuxeo.common.xmap.XValueFactory
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final XValueFactory
static final XValueFactory
static final XValueFactory
static final XValueFactory
static final XValueFactory
static final XValueFactory
static final XValueFactory
static final XValueFactory
static final XValueFactory
static final XValueFactory
static final XValueFactory
static final XValueFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addFactory
(Class<?> klass, XValueFactory factory) abstract Object
deserialize
(Context context, String value) final Object
getAttributeValue
(Context context, Node element, String name) final Object
getElementValue
(Context context, Node element, boolean trim) static XValueFactory
getFactory
(Class<?> type) static Object
abstract String
-
Field Details
-
STRING
-
INTEGER
-
LONG
-
DOUBLE
-
FLOAT
-
BOOLEAN
-
DATE
-
FILE
-
URL
-
CLASS
-
RESOURCE
-
DURATION
-
-
Constructor Details
-
XValueFactory
public XValueFactory()
-
-
Method Details
-
deserialize
-
serialize
-
getElementValue
-
getAttributeValue
-
addFactory
-
getFactory
-
getValue
-