From 254ee6f47eebfc00462c10756a92066e82cc1a96 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 21 Jun 2011 15:46:02 +0200 Subject: Initial commit --- source/com/c2kernel/property/Property.java | 82 ++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100755 source/com/c2kernel/property/Property.java (limited to 'source/com/c2kernel/property/Property.java') 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; + } + +} -- cgit v1.2.3