diff options
Diffstat (limited to 'source/com/c2kernel/property/PropertyDescription.java')
| -rwxr-xr-x | source/com/c2kernel/property/PropertyDescription.java | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/source/com/c2kernel/property/PropertyDescription.java b/source/com/c2kernel/property/PropertyDescription.java new file mode 100755 index 0000000..dbbd6b9 --- /dev/null +++ b/source/com/c2kernel/property/PropertyDescription.java @@ -0,0 +1,77 @@ +/**************************************************************************
+ *
+ * $Revision: 1.5 $
+ * $Date: 2003/05/16 11:36:47 $
+ *
+ * Copyright (C) 2001 CERN - European Organization for Nuclear Research
+ * All rights reserved.
+ **************************************************************************/
+
+package com.c2kernel.property;
+
+public class PropertyDescription
+{
+ private String mName=null;
+ private String mDefaultValue=null;
+ private boolean mIsClassIdentifier=false;
+ private boolean mIsMutable=false;
+
+
+ public PropertyDescription()
+ {
+ }
+
+ public PropertyDescription(String name, String defaultValue, boolean isClassIdentifier, boolean isMutable )
+ {
+ setName(name);
+ setDefaultValue(defaultValue);
+ setIsClassIdentifier(isClassIdentifier);
+ setIsMutable(isMutable);
+ }
+
+ public void setName(String name)
+ {
+ mName = name;
+ }
+
+ public void setIsClassIdentifier(boolean classId)
+ {
+ mIsClassIdentifier = classId;
+ }
+
+ public void setDefaultValue(String defaultValue)
+ {
+ mDefaultValue = defaultValue;
+ }
+
+ public void setIsMutable(boolean mutable)
+ {
+ mIsMutable = mutable;
+ }
+
+ public String getName()
+ {
+ return mName;
+ }
+
+ public boolean getIsClassIdentifier()
+ {
+ return mIsClassIdentifier;
+ }
+
+ public String getDefaultValue()
+ {
+ return mDefaultValue;
+ }
+
+ public boolean getIsMutable()
+ {
+ return mIsMutable;
+ }
+
+ public Property getProperty()
+ {
+ return new Property(mName,mDefaultValue);
+ }
+
+}
|
