类 BaseDefinition

java.lang.Object
org.ssssssss.magicapi.core.model.BaseDefinition
直接已知子类:
Header, Option, Parameter, Path

public class BaseDefinition extends Object
参数、header、path的基础信息
作者:
mxd
  • 字段详细资料

    • name

      private String name
    • value

      private Object value
    • description

      private String description
      描述
    • required

      private boolean required
      是否必填
    • dataType

      private DataType dataType
      数据类型
    • type

      private String type
      类型,函数专用
    • defaultValue

      private String defaultValue
      默认值
    • validateType

      private String validateType
      验证类型
    • error

      private String error
      验证说明
    • expression

      private String expression
      验证表达式
    • children

      private ArrayList<BaseDefinition> children
  • 构造器详细资料

    • BaseDefinition

      public BaseDefinition()
    • BaseDefinition

      public BaseDefinition(String name, String value)
  • 方法详细资料

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object value)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • isRequired

      public boolean isRequired()
    • setRequired

      public void setRequired(boolean required)
    • getDataType

      public DataType getDataType()
    • setDataType

      public void setDataType(DataType dataType)
    • getDefaultValue

      public String getDefaultValue()
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
    • getValidateType

      public String getValidateType()
    • setValidateType

      public void setValidateType(String validateType)
    • getError

      public String getError()
    • setError

      public void setError(String error)
    • getExpression

      public String getExpression()
    • setExpression

      public void setExpression(String expression)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getChildren

      public ArrayList<BaseDefinition> getChildren()
    • setChildren

      public void setChildren(ArrayList<BaseDefinition> children)
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object