Initial import for Diagrama.
[simdecs_seam.git] / Diagrama / src / java / org / ufcspa / simdecs / diagram / elements / NodeTextProperty.java
diff --git a/Diagrama/src/java/org/ufcspa/simdecs/diagram/elements/NodeTextProperty.java b/Diagrama/src/java/org/ufcspa/simdecs/diagram/elements/NodeTextProperty.java
new file mode 100644 (file)
index 0000000..429031d
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package org.ufcspa.simdecs.diagram.elements;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ *
+ * @author maroni
+ */
+@Target(ElementType.FIELD)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface NodeTextProperty {
+    String namei18n();
+    boolean required() default false;
+    int minLength() default 0;
+    int maxLength() default 32767;
+}