Class EditorSchema

java.lang.Object
dev.getelements.elements.sdk.model.schema.EditorSchema

public class EditorSchema extends Object
Defines an editor schema which contains a JSON Schema, layout, and initial data for the editor.
  • Constructor Details

    • EditorSchema

      public EditorSchema()
      Creates a new instance.
  • Method Details

    • getSchema

      public JsonSchema getSchema()
      Returns the JSON Schema for the data.
      Returns:
      the schema
    • setSchema

      public void setSchema(JsonSchema schema)
      Sets the JSON Schema for the data.
      Parameters:
      schema - the schema
    • getLayout

      public List<EditorLayout> getLayout()
      Returns the editor layout.
      Returns:
      the layout
    • setLayout

      public void setLayout(List<EditorLayout> layout)
      Sets the editor layout.
      Parameters:
      layout - the layout
    • getData

      public Object getData()
      Returns the data.
      Returns:
      the data
    • setData

      public void setData(Object data)
      Sets the data.
      Parameters:
      data - the data
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object