summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs100
1 files changed, 0 insertions, 100 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs
deleted file mode 100644
index f4b171489a..0000000000
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs
+++ /dev/null
@@ -1,100 +0,0 @@
-<%
- const paintProperties = locals.paintProperties;
- const layoutProperties = locals.layoutProperties;
--%>
-// This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make android-style-code`.
-
-package com.mapbox.mapboxsdk.style.layers;
-
-import android.support.annotation.ColorInt;
-
-import com.mapbox.mapboxsdk.style.expressions.Expression;
-import com.mapbox.mapboxsdk.style.types.Formatted;
-import static com.mapbox.mapboxsdk.utils.ColorUtils.colorToRgbaString;
-
-/**
- * Constructs paint/layout properties for Layers
- *
- * @see <a href="https://www.mapbox.com/mapbox-gl-style-spec/#layers">Layer style documentation</a>
- */
-public class PropertyFactory {
-
- /**
- * Set the property visibility.
- *
- * @param value the visibility value
- * @return property wrapper around visibility
- */
- public static PropertyValue<String> visibility(@Property.VISIBILITY String value) {
- return new LayoutPropertyValue<>("visibility", value);
- }
-
-<% for (const property of paintProperties) { -%>
-<% if (property.type == 'color') { -%>
- /**
- * <%- propertyFactoryMethodDoc(property) %>
- *
- * @param value a int color value
- * @return property wrapper around String color
- */
- public static PropertyValue<String> <%- camelizeWithLeadingLowercase(property.name) %>(@ColorInt int value) {
- return new PaintPropertyValue<>("<%- property.name %>", colorToRgbaString(value));
- }
-
-<% } -%>
- /**
- * <%- propertyFactoryMethodDoc(property) %>
- *
- * @param value a <%- propertyType(property) %> value
- * @return property wrapper around <%- propertyType(property) %>
- */
- public static PropertyValue<<%- propertyType(property) %>> <%- camelizeWithLeadingLowercase(property.name) %>(<%- propertyTypeAnnotation(property) %><%- iff(() => propertyTypeAnnotation(property), " ") %><%- propertyType(property) %> value) {
- return new PaintPropertyValue<>("<%- property.name %>", value);
- }
-
- /**
- * <%- propertyFactoryMethodDoc(property) %>
- *
- * @param expression an expression statement
- * @return property wrapper around an expression statement
- */
- public static PropertyValue<Expression> <%- camelizeWithLeadingLowercase(property.name) %>(Expression expression) {
- return new PaintPropertyValue<>("<%- property.name %>", expression);
- }
-
-<% } -%>
-<% for (const property of layoutProperties) { -%>
-<% if (property.type === 'formatted') { -%>
- /**
- * <%- propertyFactoryMethodDoc(property) %>
- *
- * @param value a String value
- * @return property wrapper around String
- */
- public static PropertyValue<String> <%- camelizeWithLeadingLowercase(property.name) %>(String value) {
- return new LayoutPropertyValue<>("<%- property.name %>", value);
- }
-
-<% } -%>
- /**
- * <%- propertyFactoryMethodDoc(property) %>
- *
- * @param value a <%- propertyType(property) %> value
- * @return property wrapper around <%- propertyType(property) %>
- */
- public static PropertyValue<<%- propertyType(property) %>> <%- camelizeWithLeadingLowercase(property.name) %>(<%- propertyTypeAnnotation(property) %><%- iff(() => propertyTypeAnnotation(property), " ") %><%- propertyType(property) %> value) {
- return new LayoutPropertyValue<>("<%- property.name %>", value);
- }
-
- /**
- * <%- propertyFactoryMethodDoc(property) %>
- *
- * @param value a <%- propertyType(property) %> value
- * @return property wrapper around <%- propertyType(property) %>
- */
- public static PropertyValue<Expression> <%- camelizeWithLeadingLowercase(property.name) %>(Expression value) {
- return new LayoutPropertyValue<>("<%- property.name %>", value);
- }
-
-<% } -%>
-}