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
FieldsModifier and TypeFieldDescriptionstatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactorystatic final XValueFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFactory(Class<?> klass, XValueFactory factory) abstract Objectdeserialize(Context context, String value) final ObjectgetAttributeValue(Context context, Node element, String name) final ObjectgetElementValue(Context context, Node element, boolean trim) static XValueFactorygetFactory(Class<?> type) static Objectabstract String
-
Field Details
-
STRING
-
INTEGER
-
LONG
-
DOUBLE
-
FLOAT
-
BOOLEAN
-
DATE
-
FILE
-
URL
-
CLASS
-
RESOURCE
-
DURATION
-
BYTE_SIZE
-
-
Constructor Details
-
XValueFactory
public XValueFactory()
-
-
Method Details
-
deserialize
-
serialize
-
getElementValue
-
getAttributeValue
-
addFactory
-
getFactory
-
getValue
-