Author: agilliland
Date: Wed May  2 09:52:43 2007
New Revision: 534544

URL: http://svn.apache.org/viewvc?view=rev&rev=534544
Log:
a simple key/value object that can be used for building lists meant to be 
displayed on the UI.


Added:
    roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java

Added: 
roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java
URL: 
http://svn.apache.org/viewvc/roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java?view=auto&rev=534544
==============================================================================
--- roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java 
(added)
+++ roller/trunk/src/org/apache/roller/ui/core/util/struts2/KeyValueObject.java 
Wed May  2 09:52:43 2007
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  The ASF licenses this file to You
+ * under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.ui.core.util.struts2;
+
+
+/**
+ * A simple object to maintain a key/value pair.
+ */
+public class KeyValueObject {
+    
+    private String key = null;
+    private String value = null;
+    
+    
+    public KeyValueObject() {}
+    
+    public KeyValueObject(String key, String value) {
+        this.setKey(key);
+        this.setValue(value);
+    }
+
+    public String getKey() {
+        return key;
+    }
+
+    public void setKey(String key) {
+        this.key = key;
+    }
+
+    public String getValue() {
+        return value;
+    }
+
+    public void setValue(String value) {
+        this.value = value;
+    }
+    
+}


Reply via email to