java.lang.Object
java.lang.Enum<Constants.SCANNER>
org.apache.synapse.commons.staxon.core.json.stream.impl.Constants.SCANNER
All Implemented Interfaces:
Serializable, Comparable<Constants.SCANNER>, java.lang.constant.Constable
Enclosing class:
Constants

public static enum Constants.SCANNER extends Enum<Constants.SCANNER>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Instructs the XML Reader to use the generated scanner to tokenize the JSON stream.
    Instructs the XML Reader to use the JSON scanner that can process anonymous nested arrays.
    If this scanner is used, the input stream has to be read once within the message builder to identify the type
    of JSON message (ie.
    Instructs the XML Reader to use the JSON scanner that can both process anonymous (nested/top level) arrays
    and adds additional tokens to the input stream to identify the type of JSON steam.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • DEFAULT

      public static final Constants.SCANNER DEFAULT
      Instructs the XML Reader to use the generated scanner to tokenize the JSON stream.
    • SCANNER_1

      public static final Constants.SCANNER SCANNER_1
      Instructs the XML Reader to use the JSON scanner that can process anonymous nested arrays.
      If this scanner is used, the input stream has to be read once within the message builder to identify the type
      of JSON message (ie. if the payload is a JSON Object or a JSON array object.)
    • SCANNER_2

      public static final Constants.SCANNER SCANNER_2
      Instructs the XML Reader to use the JSON scanner that can both process anonymous (nested/top level) arrays
      and adds additional tokens to the input stream to identify the type of JSON steam. If this scanner is used, theres no need to pre-read the input stream within the message builder to identify the type
      of JSON message (ie. if the payload is a JSON Object or a JSON array object.)
  • Method Details

    • values

      public static Constants.SCANNER[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Constants.SCANNER valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Constants.SCANNER>