diff options
Diffstat (limited to 'source/com/c2kernel/property/PropertyDescriptionList.java')
| -rw-r--r-- | source/com/c2kernel/property/PropertyDescriptionList.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/com/c2kernel/property/PropertyDescriptionList.java b/source/com/c2kernel/property/PropertyDescriptionList.java index 4728569..a6c68e2 100644 --- a/source/com/c2kernel/property/PropertyDescriptionList.java +++ b/source/com/c2kernel/property/PropertyDescriptionList.java @@ -48,5 +48,16 @@ public class PropertyDescriptionList extends CastorArrayList<PropertyDescription }
return false;
}
+
+ public PropertyArrayList instanciate() {
+ PropertyArrayList props = new PropertyArrayList();
+ for (int i = 0; i < list.size(); i++) {
+ PropertyDescription pd = list.get(i);
+ String propName = pd.getName();
+ String propVal = pd.getDefaultValue();
+ props.list.add( new Property(propName, propVal));
+ }
+ return props;
+ }
}
|
