Package ru.ilb.jfunction.marshallers
Class MarshallerImpl
- java.lang.Object
-
- ru.ilb.jfunction.marshallers.MarshallerImpl
-
- All Implemented Interfaces:
Marshaller
@Named public class MarshallerImpl extends Object implements Marshaller
- Author:
- slavb
-
-
Field Summary
-
Fields inherited from interface ru.ilb.jfunction.marshallers.Marshaller
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description MarshallerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectmarshall(Object value)Marshalls value to required type Boolean, String and Number values marshalled "as is" to skip quotingObjectmarshall(Object value, Class type)Marshalls value to required type Boolean, String and Number values marshalled "as is" to skip quotingObjectmarshall(Object value, String type)Marshalls value to required type Boolean, String and Number values marshalled "as is" to skip quotingprotected booleanmarshallTypeAsIs(Class type)type is marshalled "as is" to skip quoting
-
-
-
Method Detail
-
marshall
public Object marshall(Object value, String type)
Marshalls value to required type Boolean, String and Number values marshalled "as is" to skip quoting- Specified by:
marshallin interfaceMarshaller- Parameters:
value-type-- Returns:
-
marshallTypeAsIs
protected boolean marshallTypeAsIs(Class type)
type is marshalled "as is" to skip quoting- Parameters:
type-- Returns:
-
marshall
public Object marshall(Object value, Class type)
Description copied from interface:MarshallerMarshalls value to required type Boolean, String and Number values marshalled "as is" to skip quoting- Specified by:
marshallin interfaceMarshaller- Returns:
-
marshall
public Object marshall(Object value)
Description copied from interface:MarshallerMarshalls value to required type Boolean, String and Number values marshalled "as is" to skip quoting- Specified by:
marshallin interfaceMarshaller- Returns:
-
-