com.e1.mxdublin
Class GroupProperties

java.lang.Object
  extended by com.e1.mxdublin.GroupProperties
All Implemented Interfaces:
Comparable<GroupProperties>

public class GroupProperties
extends Object
implements Comparable<GroupProperties>

Group properties are a used to declare global properties to a project and the content is saved with the session.


Field Summary
 String id
           
 
Method Summary
static void clear()
          Will erase all the group-properties that have been declared for this project.
 int compareTo(GroupProperties o)
           
static GroupProperties factory(String properties)
          Returns the instance of a GroupProperties from his id
 String get(String key)
          Gets property value.
static Iterator<String> groupPropertiesNames()
           
 boolean hasProperty(String key)
           
 Iterator<String> keyNames()
          Returns the key values of the GroupProperties.
 void remove(String key)
          Removes the key of the GroupProperties.
 void rename(String name)
          Rename current GroupProperties.
 void set(String key, String value)
          Sets property value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public String id
Method Detail

set

public void set(String key,
                String value)
Sets property value.

Parameters:
key - the property name to set
value - the property value

get

public String get(String key)
Gets property value.

Parameters:
key - the property name to get
Returns:
the property value

keyNames

public Iterator<String> keyNames()
Returns the key values of the GroupProperties.

Returns:
the key value iterator

hasProperty

public boolean hasProperty(String key)

remove

public void remove(String key)
Removes the key of the GroupProperties.

Parameters:
key - the key to remove

rename

public void rename(String name)
Rename current GroupProperties.

Parameters:
name - new name

factory

public static GroupProperties factory(String properties)
Returns the instance of a GroupProperties from his id

Parameters:
properties - the id of the GroupProperties
Returns:
the instance of this GroupProperties

groupPropertiesNames

public static Iterator<String> groupPropertiesNames()

clear

public static void clear()
Will erase all the group-properties that have been declared for this project.


toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(GroupProperties o)
Specified by:
compareTo in interface Comparable<GroupProperties>