diff --git a/annotations/pom.xml b/annotations/pom.xml new file mode 100644 index 0000000..2e2ccad --- /dev/null +++ b/annotations/pom.xml @@ -0,0 +1,15 @@ + + + + sdlang + com.singingbush + 2.1.1-SNAPSHOT + + 4.0.0 + + sdl-annotations + + + diff --git a/annotations/src/main/java/com/singingbush/sdl/annotations/Attribute.java b/annotations/src/main/java/com/singingbush/sdl/annotations/Attribute.java new file mode 100644 index 0000000..51a8d87 --- /dev/null +++ b/annotations/src/main/java/com/singingbush/sdl/annotations/Attribute.java @@ -0,0 +1,19 @@ +package com.singingbush.sdl.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER }) +@Retention(RetentionPolicy.RUNTIME) +public @interface Attribute { + + String value() default ""; + + String namespace() default ""; + + boolean required() default false; + + String defaultValue() default ""; +} diff --git a/annotations/src/main/java/com/singingbush/sdl/annotations/Tag.java b/annotations/src/main/java/com/singingbush/sdl/annotations/Tag.java new file mode 100644 index 0000000..c9e86ef --- /dev/null +++ b/annotations/src/main/java/com/singingbush/sdl/annotations/Tag.java @@ -0,0 +1,15 @@ +package com.singingbush.sdl.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface Tag { + + String value() default ""; + + String namespace() default ""; +} diff --git a/annotations/src/main/java/com/singingbush/sdl/annotations/Value.java b/annotations/src/main/java/com/singingbush/sdl/annotations/Value.java new file mode 100644 index 0000000..027286f --- /dev/null +++ b/annotations/src/main/java/com/singingbush/sdl/annotations/Value.java @@ -0,0 +1,11 @@ +package com.singingbush.sdl.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER }) +@Retention(RetentionPolicy.RUNTIME) +public @interface Value { +} diff --git a/pom.xml b/pom.xml index 1d69e7f..27327cc 100644 --- a/pom.xml +++ b/pom.xml @@ -6,12 +6,17 @@ com.singingbush sdlang - 2.2.0 + 2.1.1-SNAPSHOT + pom SDLang Support for SDLang (Simple Declarative Language) https://github.com/sdlang-dev/SDL 2011 + + annotations + + GNU Lesser General Public License, Version 2.1 @@ -92,6 +97,14 @@ ${junit.version} test + + + com.singingbush + sdl-annotations + ${project.version} + true + +