Package org.codehaus.enunciate.json

Examples of org.codehaus.enunciate.json.JsonSchema


   * @throws java.lang.AssertionError if the parameter conditions are not met and assertions are enabled.
   */
  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

TOP

Related Classes of org.codehaus.enunciate.json.JsonSchema

Copyright © 2018 www.massapicom. 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.