com.h3c.sdn.adm.common.converter

## Class JsonJacksonUtils

- java.lang.Object
- - com.h3c.sdn.adm.common.converter.JsonJacksonUtils

-     public final class JsonJacksonUtils
      extends Object

  JSON utilities using Jackson.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `validateMandatoryFields(com.fasterxml.jackson.databind.JsonNode jsonNode, String... mandatoryFields)` Verifies that mandatory fields are present in the given JSON node.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### validateMandatoryFields

          public static void validateMandatoryFields(com.fasterxml.jackson.databind.JsonNode jsonNode,
                                     String... mandatoryFields)
                                              throws IllegalArgumentException

      Verifies that mandatory fields are present in the given JSON node. Such verification is not recursive and just one level children will be verified.
      Parameters:
        `jsonNode` - JSON node to verify.
        `mandatoryFields` - mandatory fields.
      Throws:
        `IllegalArgumentException` - if any of the mandatory fields is missing.

Copyright © 2014. All Rights Reserved.