Class Definitions


  • public final class Definitions
    extends Object
    Class that represents API descriptor Schema definitions.
    • Method Detail

      • getDefinitions

        protected Map<String,​Schema> getDefinitions()
        Gets a Map of schema-names to Schemas. This method is currently only used for JSON serialization.
        Returns:
        Map of schema-names to Schemas.
      • get

        public Schema get​(String name)
        Gets the Schema for a given Schema-name.
        Parameters:
        name - Schema name
        Returns:
        Schema or null if does-not-exist.
      • definitions

        public static Definitions.Builder definitions()
        Create a new Builder for Definitions.
        Returns:
        Builder
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object