Author: lfryc(a)redhat.com
Date: 2010-07-10 15:36:21 -0400 (Sat, 10 Jul 2010)
New Revision: 17855
Added:
root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attribute.java
Log:
forgotten commit of class Attribute (re-engineered from visible API)
Added: root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attribute.java
===================================================================
--- root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attribute.java
(rev 0)
+++ root/tests/metamer/trunk/src/main/java/org/richfaces/testapp/Attribute.java 2010-07-10
19:36:21 UTC (rev 17855)
@@ -0,0 +1,93 @@
+package org.richfaces.testapp;
+
+import java.util.List;
+
+import javax.faces.model.SelectItem;
+
+public class Attribute {
+ private String name;
+ private Object value;
+ private Class<?> type;
+ private List<SelectItem> selectOptions;
+ private String help;
+
+ public Attribute(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the value
+ */
+ public Object getValue() {
+ return value;
+ }
+
+ /**
+ * @param value the value to set
+ */
+ public void setValue(Object value) {
+ this.value = value;
+ }
+
+ /**
+ * @return the type
+ */
+ public Class<?> getType() {
+ return type;
+ }
+
+ /**
+ * @param type the type to set
+ */
+ public void setType(Class<?> type) {
+ this.type = type;
+ }
+
+ /**
+ * @return the selectOptions
+ */
+ public List<SelectItem> getSelectOptions() {
+ return selectOptions;
+ }
+
+ /**
+ * @param selectOptions the selectOptions to set
+ */
+ public void setSelectOptions(List<SelectItem> selectOptions) {
+ this.selectOptions = selectOptions;
+ }
+
+ /**
+ * @return the help
+ */
+ public String getHelp() {
+ return help;
+ }
+
+ /**
+ * @param help the help to set
+ */
+ public void setHelp(String help) {
+ this.help = help;
+ }
+
+ public boolean isBoolean() {
+ return type == Boolean.class || type == boolean.class;
+ }
+
+
+}