com.fasterxml.jackson.module.jsonSchema.JsonSchema.getType()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中com.fasterxml.jackson.module.jsonSchema.JsonSchema.getType()方法的一些代码示例,展示了JsonSchema.getType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonSchema.getType()方法的具体详情如下:
包路径:com.fasterxml.jackson.module.jsonSchema.JsonSchema
类名称:JsonSchema
方法名:getType

JsonSchema.getType介绍

暂无

代码示例

代码示例来源:origin: com.fasterxml.jackson.module/jackson-module-jsonSchema

@Override
public String idFromValue(Object value) {
  if (value instanceof JsonSchema) {
    return ((JsonSchema)value).getType().value();
  }
  return null;
}

代码示例来源:origin: FasterXML/jackson-module-jsonSchema

@Override
public String idFromValue(Object value) {
  if (value instanceof JsonSchema) {
    return ((JsonSchema)value).getType().value();
  }
  return null;
}

代码示例来源:origin: dremio/dremio-oss

private String primitiveTypeExample(JsonSchema schema) {
 switch (schema.getType()) {
 case ANY:
  return "any";
  return "? " + schema.getType();

代码示例来源:origin: com.fasterxml.jackson.module/jackson-module-jsonSchema

/**
   * Adds writes the type as the title of the schema.
   * 
   * @param schema The schema who's title to set.
   * @param type The type of the object represented by the schema.
   */
  private void addTitle(JsonSchema schema, JavaType type)
  {
    if (!schema.isSimpleTypeSchema()) {
      throw new RuntimeException("given non simple type schema: " + schema.getType());
    }
    schema.asSimpleTypeSchema().setTitle(type.getGenericSignature());
  }
}

代码示例来源:origin: FasterXML/jackson-module-jsonSchema

/**
   * Adds writes the type as the title of the schema.
   * 
   * @param schema The schema who's title to set.
   * @param type The type of the object represented by the schema.
   */
  private void addTitle(JsonSchema schema, JavaType type)
  {
    if (!schema.isSimpleTypeSchema()) {
      throw new RuntimeException("given non simple type schema: " + schema.getType());
    }
    schema.asSimpleTypeSchema().setTitle(type.getGenericSignature());
  }
}

代码示例来源:origin: FasterXML/jackson-module-jsonSchema

throw new RuntimeException("given non simple type schema: " + schema.getType());

代码示例来源:origin: com.fasterxml.jackson.module/jackson-module-jsonSchema

throw new RuntimeException("given non simple type schema: " + schema.getType());

代码示例来源:origin: com.intel.icecp/icecp-core

String ref;
switch (ft = pSchema.getType()) {
  case OBJECT:
    pObject = createNewInstance(objectClass);

相关文章