00001 package org.openmobileis.modules.profils.embedded.data; 00002 00003 import java.util.Enumeration; 00004 import java.util.Hashtable; 00005 00006 import org.openmobileis.common.util.collection.Array; 00007 00008 public class ProfilRubric { 00009 00010 private String name; 00011 private Hashtable properties; 00012 00013 public ProfilRubric() { 00014 this.properties = new Hashtable(); 00015 } 00016 00017 public void setName(String name) { 00018 this.name = name; 00019 } 00020 00021 public String getName() { 00022 return this.name; 00023 } 00024 00025 public void addProperty(String name, String value) { 00026 properties.put(name, value); 00027 } 00028 00029 public String getProperty(String name) { 00030 return (String)this.properties.get(name); 00031 } 00032 00033 public String[] getAllPropertiesNames() { 00034 Enumeration enumkeys = this.properties.keys(); 00035 Array keys = new Array(); 00036 while (enumkeys.hasMoreElements()) { 00037 keys.add((String)enumkeys.nextElement()); 00038 } 00039 String[] result = new String[keys.size()]; 00040 keys.toArray(result); 00041 return result; 00042 } 00043 00044 }