| java.lang.Object org.compass.core.converter.basic.AbstractBasicConverter
All known Subclasses: org.compass.core.test.compositeid.CompositeIdConverter, org.compass.core.test.managedidconverter.SimpleConverter, org.compass.core.converter.basic.AbstractFormatConverter, org.compass.core.converter.basic.URLConverter, org.compass.core.converter.basic.StringBufferConverter, org.compass.core.converter.basic.StringConverter, org.compass.core.converter.basic.StringBuilderConverter, org.compass.core.converter.extended.FileConverter, org.compass.core.test.converter.SampleConverter, org.compass.core.converter.basic.ByteConverter, org.compass.core.test.reference.withprop.BConverter, org.compass.core.converter.basic.EnumConverter, org.compass.core.converter.basic.URIConverter, org.compass.core.test.component.override.BConverter, org.compass.core.converter.dynamic.AbstractDynamicConverter, org.compass.core.converter.basic.CharConverter, org.compass.core.converter.extended.LocaleConverter, org.compass.core.converter.basic.BooleanConverter, org.compass.annotations.test.ConvertedConverter,
Method Summary | |
public boolean | canNormalize() Return false . | protected Property | createProperty(String value, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context) Creates a new property to be added to the resource during the marshalling process. | abstract protected Object | doFromString(String str, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context) Override the from String in order to un-marshall the String back into its object representation. | protected void | doSetBoost(Property property, Object root, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context) A simple extension point that allows to set the boost value for the created
Property . | protected String | doToString(Object o, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context) Allows to override to toString operation. | public Object | fromString(String str, ResourcePropertyMapping resourcePropertyMapping) Calls
AbstractBasicConverter.fromString(String,org.compass.core.mapping.ResourcePropertyMapping,org.compass.core.marshall.MarshallingContext) with a null value for the context. | protected Object | fromString(String str, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context) Performs null checks (by calling
AbstractBasicConverter.isNullValue(String,org.compass.core.mapping.ResourcePropertyMapping,org.compass.core.marshall.MarshallingContext) )
and then calls
AbstractBasicConverter.doFromString(String,org.compass.core.mapping.ResourcePropertyMapping,org.compass.core.marshall.MarshallingContext) if the value is not null . | protected String | getNullValue(ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context) If the converter handle nulls, the value that will be stored in the
search engine for null values (during the marshall process). | protected boolean | handleNulls(ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context) Should the converter handle nulls? Handling nulls means should the
converter process nulls or not. | protected boolean | isNullValue(String value, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context) Does this value represents a null value. | public boolean | marshall(Resource resource, Object root, Mapping mapping, MarshallingContext context) | public String | toString(Object o, ResourcePropertyMapping resourcePropertyMapping) Implementation calls
AbstractBasicConverter.toString(Object,org.compass.core.mapping.ResourcePropertyMapping,org.compass.core.marshall.MarshallingContext) with null value for the context parameter. | protected String | toString(Object o, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context) Implementation handle nulls and if the object is not null, delegates to
AbstractBasicConverter.doToString(Object,org.compass.core.mapping.ResourcePropertyMapping,org.compass.core.marshall.MarshallingContext) . | public Object | unmarshall(Resource resource, Mapping mapping, MarshallingContext context) |
canNormalize | public boolean canNormalize()(Code) | | Return false . Specific parsers that can convert on query string should override this method
and return true .
|
createProperty | protected Property createProperty(String value, ResourcePropertyMapping resourcePropertyMapping, MarshallingContext context)(Code) | | Creates a new property to be added to the resource during the marshalling process. Allows
sub classes to override ti in order to modify the created property.
Parameters: value - The value of the property Parameters: resourcePropertyMapping - The resource mapping definition of the property Parameters: context - The context (allows to get the search engine from it) The property to be added to the Resource |
|
|