Package com.attivio.util.serialization
Class FacetRequestConverter
- java.lang.Object
-
- com.attivio.util.serialization.AbstractConverter
-
- com.attivio.util.serialization.FacetRequestConverter
-
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter
,com.thoughtworks.xstream.converters.ConverterMatcher
public class FacetRequestConverter extends AbstractConverter
XStream serializer for subclasses ofFacetRequest
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DATE_FACET
XStream Element forDateFacetRequest
static java.lang.String
FACET_REQUEST
XStream Element forFacetRequest
static java.lang.String
FILTER_BASED_FACET
XStream Element forFilterBasedFacetRequest
static java.lang.String
RANGE_FACET_REQUEST
XStream Element forRangeFacetRequest
static java.lang.String
SCHEMA_FACET
XStream Element forSchemaFacetRequest
static java.lang.String
SCOPE_FACET
XStream Element forScopeFacetRequest
-
Fields inherited from class com.attivio.util.serialization.AbstractConverter
mapper, NULL
-
-
Constructor Summary
Constructors Constructor Description FacetRequestConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvert(java.lang.Class type)
static void
marshal(FacetRequest facet, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context, com.thoughtworks.xstream.mapper.Mapper mapper)
Marshal a FacetRequest (without the containing element).void
marshal(java.lang.Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
FacetRequest
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
static FacetRequest
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, com.thoughtworks.xstream.mapper.Mapper mapper)
Unmarshal a FacetRequest.-
Methods inherited from class com.attivio.util.serialization.AbstractConverter
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, getAlias, getAlias, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getClass, getClass, getClassName, marshalArray, marshalArray, marshalArray2D, marshalIntArray, marshalIntArray, marshalList, marshalNode, marshalNode, marshalProperties, marshalProperties, readList, readSubObject, readThrowable, setMapper, unmarshalArray, unmarshalArray2D, unmarshalIntArray, unmarshalList, unmarshalNode, unmarshalNode, unmarshalNode, unmarshalNode, unmarshalProperties, unmarshalProperty, unmarshalPropertyName, unmarshalPropertyValue, writeSubObject, writeSubObject, writeThrowable
-
-
-
-
Field Detail
-
FACET_REQUEST
public static final java.lang.String FACET_REQUEST
XStream Element forFacetRequest
- See Also:
- Constant Field Values
-
RANGE_FACET_REQUEST
public static final java.lang.String RANGE_FACET_REQUEST
XStream Element forRangeFacetRequest
- See Also:
- Constant Field Values
-
FILTER_BASED_FACET
public static final java.lang.String FILTER_BASED_FACET
XStream Element forFilterBasedFacetRequest
- See Also:
- Constant Field Values
-
SCHEMA_FACET
public static final java.lang.String SCHEMA_FACET
XStream Element forSchemaFacetRequest
- See Also:
- Constant Field Values
-
SCOPE_FACET
public static final java.lang.String SCOPE_FACET
XStream Element forScopeFacetRequest
- See Also:
- Constant Field Values
-
DATE_FACET
public static final java.lang.String DATE_FACET
XStream Element forDateFacetRequest
- See Also:
- Constant Field Values
-
-
Method Detail
-
canConvert
public boolean canConvert(java.lang.Class type)
-
marshal
public void marshal(java.lang.Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
-
unmarshal
public FacetRequest unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
marshal
public static void marshal(FacetRequest facet, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context, com.thoughtworks.xstream.mapper.Mapper mapper)
Marshal a FacetRequest (without the containing element).
-
unmarshal
public static FacetRequest unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, com.thoughtworks.xstream.mapper.Mapper mapper)
Unmarshal a FacetRequest.
-
-