com.supermap.services.rest.decoders

Class JobInfoJsonDecoderResolver

  • java.lang.Object
    • com.supermap.services.rest.decoders.JobInfoJsonDecoderResolver


  • public class JobInfoJsonDecoderResolver
    extends java.lang.Object
    

    Distributed Cut Diagram Module Object Deserializer Solver.

    Since:
    7.0.0
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean canDecoder(java.lang.Class clz)
      Determines whether the target type can be processed by the current JSON deserializer.
      java.lang.Object toObject(java.lang.String jsonStr, java.lang.Class cl)
      Truncates the JSON string into a specified type of object.
      java.lang.Object toObject(java.lang.String jsonStr, java.lang.Class cl, DecoderSetting decoderSetting)
      Truncates the JSON string into a specified type of object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JobInfoJsonDecoderResolver

        public JobInfoJsonDecoderResolver()
        
    • Method Detail

      • canDecoder

        public boolean canDecoder(java.lang.Class clz)
        

        Determines whether the target type can be processed by the current JSON deserializer.

        Parameters:
        clz - target class.
        Returns:
        true is OK, false is not possible.
      • toObject

        public java.lang.Object toObject(java.lang.String jsonStr,
                                java.lang.Class cl)
                                  throws JSONException
        

        Truncates the JSON string into a specified type of object.

        Parameters:
        jsonStr - The JSON string to parse.
        cl - Specifies the type of target to be serialized.
        Returns:
        Serialized Java objects.
        Throws:
        JSONException
      • toObject

        public java.lang.Object toObject(java.lang.String jsonStr,
                                java.lang.Class cl,
                                DecoderSetting decoderSetting)
                                  throws JSONException
        

        Truncates the JSON string into a specified type of object.

        Parameters:
        jsonStr - The JSON string to parse.
        cl - Specifies the type of target to be serialized.
        decoderSetting - The deserializer parses the configuration item of the object.
        Returns:
        Serialized Java objects.
        Throws:
        JSONException