All Implemented Interfaces:
DeserializationHandler
Direct Known Subclasses:
BitSetHandler, ByteArrayHandler, ClassHandler, ColorHandler, ColorStateHandler, CursorHandler, DateHandler, DimensionHandler, Ellipse2DDoubleHandler, Ellipse2DFloatHandler, FontHandler, GeneralPathHandler, InsetsHandler, LayoutConstraintsHandler, MethodHandler, NumberHandler, Point2DDoubleHandler, Point2DFloatHandler, PointHandler, PrimitiveArrayHandler, QualityCodeHandler, Rectangle2DDoubleHandler, Rectangle2DFloatHandler, RectangleHandler, RoundRectangle2DDoubleHandler, RoundRectangle2DFloatHandler, StringHandler, UUIDHandler

public abstract class AbstractBodyDecoderHandler extends AbstractReentrantDeserializationHandler
  • Field Details

    • elementName

      protected final String elementName
  • Constructor Details

    • AbstractBodyDecoderHandler

      protected AbstractBodyDecoderHandler(String elementName)
  • Method Details

    • startElement

      public void startElement(String name, AttributesMap attributes, DeserializationContext context) throws Exception
      Description copied from interface: DeserializationHandler
      Notifies the handler that their element has started.
      Throws:
      Exception
    • endElement

      public void endElement(DeserializationContext context) throws Exception
      Description copied from interface: DeserializationHandler
      Notifies the handler that their element has ended.
      Throws:
      Exception
    • onBody

      public void onBody(Object bodyObject)
      Description copied from interface: DeserializationHandler
      Called when body data is encountered in this tag or a sub-tag. This data is first interpreted by the handler-provided decoder (see DeserializationHandler.getBodyDecoder()), and then this function will be called.
    • createNoBodyObject

      protected Object createNoBodyObject()
    • getElementName

      public String getElementName()
      Description copied from interface: DeserializationHandler
      Returns the name of the element type that this handler ... handles.
    • supportsNestedElements

      public boolean supportsNestedElements()
      Description copied from interface: DeserializationHandler

      Return true if the element type that you're parsing can have nested elements, or false if you're a singleton element. If you return true, you need to implement clone().

      Note As of Ignition 7.6.5 with support for multi-deserialization, you should also return true from this and implement clone() if your return object is mutable, otherwise instances may be shared amongst multi-deserialized objects.

    • clone

      public DeserializationHandler clone()
      Description copied from interface: DeserializationHandler
      Clones this handler. Only handlers that support nested elements will be cloned, all others can throw an unsupported operation exception instead.
      Specified by:
      clone in interface DeserializationHandler
      Specified by:
      clone in class AbstractDeserializationHandler