<% const properties = locals.properties; -%> // This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make style-code-android`. package com.mapbox.mapboxsdk.style.layers; import android.support.annotation.StringDef; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Paint/Layout properties for Layer */ public abstract class Property { <% for (const property of properties) { -%> //<%- property.name %> <% for (const value of property.values) { -%> public static final String <%- snakeCaseUpper(property.name) %>_<%- snakeCaseUpper(value) %> = "<%- value %>"; <% } -%> @StringDef({ <% for (const value of property.values) { -%> <%- snakeCaseUpper(property.name) %>_<%- snakeCaseUpper(value) %>, <% } -%> }) @Retention(RetentionPolicy.SOURCE) public @interface <%- snakeCaseUpper(property.name) %> {} <% } -%> //Class definition public final String name; public final T value; /* package */ Property(String name, T value) { this.name = name; this.value = value; } }