diff options
Diffstat (limited to 'source/com/c2kernel/property/Property.java')
| -rwxr-xr-x | source/com/c2kernel/property/Property.java | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/source/com/c2kernel/property/Property.java b/source/com/c2kernel/property/Property.java new file mode 100755 index 0000000..2374c1b --- /dev/null +++ b/source/com/c2kernel/property/Property.java @@ -0,0 +1,82 @@ +/**************************************************************************
+ *
+ * $Revision: 1.3 $
+ * $Date: 2003/10/03 12:31:28 $
+ *
+ * Copyright (C) 2001 CERN - European Organization for Nuclear Research
+ * All rights reserved.
+ **************************************************************************/
+
+package com.c2kernel.property;
+
+import com.c2kernel.entity.C2KLocalObject;
+import com.c2kernel.persistency.ClusterStorage;
+
+
+public class Property implements C2KLocalObject
+{
+ private String mName;
+ private String mValue;
+
+
+ /**************************************************************************
+ *
+ **************************************************************************/
+ public Property()
+ {
+ setName( "" );
+ setValue( "" );
+ }
+
+
+ /**************************************************************************
+ *
+ **************************************************************************/
+ public Property( String name, String value )
+ {
+ setName( name );
+ setValue( value );
+ }
+
+ /**************************************************************************
+ *
+ **************************************************************************/
+ public void setName(String name)
+ {
+ mName = name;
+ }
+
+
+ /**************************************************************************
+ *
+ **************************************************************************/
+ public String getName()
+ {
+ return mName;
+ }
+
+
+ /**************************************************************************
+ *
+ **************************************************************************/
+ public void setValue( String value )
+ {
+ mValue = value;
+ }
+
+
+ /**************************************************************************
+ *
+ **************************************************************************/
+ public String getValue()
+ {
+ return mValue;
+ }
+ /**
+ * @see com.c2kernel.entity.C2KLocalObject#getClusterType()
+ */
+ public String getClusterType() {
+ return ClusterStorage.PROPERTY;
+ }
+
+}
|
