Direct Known Subclasses:
APIOperationProperties, ComplexSchemaTypeProperties, ExternalSchemaTypeProperties, LiteralSchemaTypeProperties, MapSchemaTypeProperties, SchemaTypeChoiceProperties, SimpleSchemaTypeProperties

public class SchemaTypeProperties extends SchemaElementProperties
SchemaTypeProperties carries the common parameters for creating or updating schema types.
  • Constructor Details

    • SchemaTypeProperties

      public SchemaTypeProperties()
      Default constructor
    • SchemaTypeProperties

      public SchemaTypeProperties(SchemaTypeProperties template)
      Copy/clone Constructor.
      Parameters:
      template - template object to copy.
  • Method Details

    • getUsage

      public String getUsage()
      Return the usage guidance for this schema element. Null means no guidance available.
      Returns:
      String usage guidance
    • setUsage

      public void setUsage(String usage)
      Set up the usage guidance for this schema element. Null means no guidance available.
      Parameters:
      usage - String usage guidance
    • getEncodingStandard

      public String getEncodingStandard()
      Return the format (encoding standard) used for this schema. It may be XML, JSON, SQL DDL or something else. Null means the encoding standard is unknown or there are many choices.
      Returns:
      String encoding standard
    • setEncodingStandard

      public void setEncodingStandard(String encodingStandard)
      Set up the format (encoding standard) used for this schema. It may be XML, JSON, SQL DDL or something else. Null means the encoding standard is unknown or there are many choices.
      Parameters:
      encodingStandard - String encoding standard
    • getNamespacePath

      public String getNamespacePath()
      Return the name of the namespace that this type belongs to.
      Returns:
      string name
    • setNamespacePath

      public void setNamespacePath(String namespacePath)
      Set up the name of the namespace that this type belongs to.
      Parameters:
      namespacePath - string name
    • getFormula

      public String getFormula()
      Return the formula used to combine the values of the queries. Each query is numbers 0, 1, ... and the formula has placeholders in it to show how the query results are combined.
      Returns:
      String formula
    • setFormula

      public void setFormula(String formula)
      Set up the formula used to combine the values of the queries. Each query is numbers 0, 1, ... and the formula has placeholders in it to show how the query results are combined.
      Parameters:
      formula - String formula
    • getFormulaType

      public String getFormulaType()
      Return the specification language for the formula.
      Returns:
      string description
    • setFormulaType

      public void setFormulaType(String formulaType)
      Set up the specification language for the formula.
      Parameters:
      formulaType - string description
    • getQueries

      Return the list of queries that are used to create the derived schema element.
      Returns:
      list of queries
    • setQueries

      public void setQueries(List<DerivedSchemaTypeQueryTargetProperties> queries)
      Set up the list of queries that are used to create the derived schema element.
      Parameters:
      queries - list of queries
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class SchemaElementProperties
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class AuthoredReferenceableProperties
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class AuthoredReferenceableProperties
      Returns:
      int