Package org.codehaus.enunciate.json

Examples of org.codehaus.enunciate.json.JsonSchema.schemaId()


   */
  public static String schemaIdForPackage(final PackageDeclaration schemaPackage) {
    assert schemaPackage != null : "schemaPackage:null";

    final JsonSchema jsonSchema = schemaPackage.getAnnotation(JsonSchema.class);
    if (jsonSchema != null && jsonSchema.schemaId() != null) {
      return jsonSchema.schemaId();
    }
    return schemaPackage.getQualifiedName();
  }

View Full Code Here


  public static String schemaIdForPackage(final PackageDeclaration schemaPackage) {
    assert schemaPackage != null : "schemaPackage:null";

    final JsonSchema jsonSchema = schemaPackage.getAnnotation(JsonSchema.class);
    if (jsonSchema != null && jsonSchema.schemaId() != null) {
      return jsonSchema.schemaId();
    }
    return schemaPackage.getQualifiedName();
  }

  private final String schemaId;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.