Most object will have some basic properties. Such as "Name", or "Value".
The GPO model support a Map type interface to set these properties :
public Object get(String propertyName); public Object set(String propertyName, Object value);
These are used in a straightforward manner:
GPOMap gpm = new GPOMap(om);
gpm.set("Name", "An Object");
System.out.println("The objects name is : " + gpm.get("Name"));
A number of overloaded methods also allow the setting and retrieval of base type values, for example:
public double getDouble(String property); public Object set(String property, double value); public boolean getBoolean(String property); public Object set(String property, boolean value);
The primitive type gets utilise a generic type conversion method
that allows specification of a default value:
public Object getType(String property, Class type, Object def);