* @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();
}