Class Definitions

java.lang.Object
org.forgerock.api.models.Definitions

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

    • 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.
    • getNames

      public Set<String> getNames()
      Returns all Schema names.
      Returns:
      All Schema names.
    • definitions

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object