Class AbstractHelper
java.lang.Object
com.sdicons.json.serializer.helper.impl.AbstractHelper
- All Implemented Interfaces:
Helper
,MarshallHelper
- Direct Known Subclasses:
BigDecimalHelper
,BigIntegerHelper
,BooleanHelper
,ByteHelper
,CharacterHelper
,ColorHelper
,DoubleHelper
,EnumHelper
,FloatHelper
,FontHelper
,IntegerHelper
,LongHelper
,ShortHelper
,StringHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
renderValue
(Object aObj, JSONObject aParent, JSONMarshall aMarshall, HashMap aPool) Convert an element to JSON.Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sdicons.json.helper.Helper
getHelpedClass
Methods inherited from interface com.sdicons.json.serializer.helper.MarshallHelper
parseValue
-
Constructor Details
-
AbstractHelper
public AbstractHelper()
-
-
Method Details
-
equals
-
renderValue
public void renderValue(Object aObj, JSONObject aParent, JSONMarshall aMarshall, HashMap aPool) throws MarshallException Description copied from interface:MarshallHelper
Convert an element to JSON.- Specified by:
renderValue
in interfaceMarshallHelper
- Parameters:
aObj
- Instance that should be rendered to JSON.aParent
- The parent element where we have to put the rendered information. A helper is allowed to add child elements.aMarshall
- The marshall we can use to recursively render parts of our own object.aPool
- A pool of objects already encountered. Is used to resolve references.- Throws:
MarshallException
-