|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.yawlfoundation.yawl.resourcing.AbstractSelector
public abstract class AbstractSelector
The base class inherited by all of the 'selector' classes :- filters, constraints and allocators. As well as giving an inherited class a meaningful class name, extending classes need to provide values for: _name --> the class name _displayName --> a 'pretty' name to show to designers/users when required _description --> a user-oriented description of what the extending class does _params --> a set of parameters needed when applying the extending class's 'perform...' method (the param value should be set to null when initialised). Create Date: 03/08/2007. Last Date: 09/11/2007.
| Field Summary | |
|---|---|
protected String |
_canonicalName
|
protected String |
_description
|
protected String |
_displayName
|
protected String |
_name
|
protected HashMap<String,String> |
_params
|
| Constructor Summary | |
|---|---|
AbstractSelector()
|
|
AbstractSelector(String name)
|
|
AbstractSelector(String name,
HashMap<String,String> params)
|
|
AbstractSelector(String name,
String desc)
|
|
AbstractSelector(String name,
String desc,
HashMap<String,String> params)
|
|
| Method Summary | |
|---|---|
void |
addKey(String key)
Adds a key - ie. |
void |
addParam(String key,
String value)
Adds a single parameter passed to the selector's parameters |
void |
addParams(Map<String,String> paramMap)
Adds (does not replace) the parameters in the map passed to the selectors parameters |
String |
getCanonicalName()
|
String |
getClassName()
|
String |
getDescription()
|
String |
getDisplayName()
|
protected String |
getInformation(String outerTag)
Gets a 'dump' of this selector object as an XML'd String |
Set<String> |
getKeys()
|
String |
getName()
|
protected Set<String> |
getParamKeys()
|
HashMap |
getParams()
|
String |
getParamValue(String key)
Retrieves the value of the specified parameter |
void |
reconstitute(org.jdom.Element e)
Fills the members of this object with values found in an XML description |
void |
setCanonicalName(String name)
Stores the full class name of this 'selector' |
void |
setDescription(String desc)
Sets the description of this 'selector' |
void |
setDisplayName(String name)
Sets the user-friendly display name of this 'selector' |
void |
setKeyValue(String key,
String value)
Sets the value of a key (at specification design time) |
void |
setName(String name)
Stores the class name of this 'selector' |
void |
setParams(Map<String,String> paramsMap)
Sets (replaces) the parameters with the map passed |
String |
toString()
|
protected String |
toXML()
|
protected static HashMap<String,String> |
unmarshalParams(org.jdom.Element eParams)
Unpacks the xml describing the parameters to a HashMap object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String _name
protected String _canonicalName
protected String _displayName
protected String _description
protected HashMap<String,String> _params
| Constructor Detail |
|---|
public AbstractSelector()
public AbstractSelector(String name)
public AbstractSelector(String name,
String desc)
public AbstractSelector(String name,
HashMap<String,String> params)
public AbstractSelector(String name,
String desc,
HashMap<String,String> params)
| Method Detail |
|---|
protected Set<String> getParamKeys()
public String getName()
public String getDisplayName()
public String getDescription()
public Set<String> getKeys()
public HashMap getParams()
public String getClassName()
public String getCanonicalName()
public String getParamValue(String key)
key - the name of the parameter
public void setName(String name)
name - the name to setpublic void setCanonicalName(String name)
name - the name to setpublic void setDisplayName(String name)
name - the name to setpublic void setDescription(String desc)
desc - the description value to setpublic void setParams(Map<String,String> paramsMap)
paramsMap - the new parameter map of the form [name, value] (both Strings)public void addParams(Map<String,String> paramMap)
paramMap - the new parameter map of the form [name, value] (both Strings)
public void addParam(String key,
String value)
key - the name of the parametervalue - the value of the parameterpublic void addKey(String key)
key - the attribute name
public void setKeyValue(String key,
String value)
key - the attribute namevalue - the value to setpublic String toString()
toString in class Objectprotected String toXML()
protected static HashMap<String,String> unmarshalParams(org.jdom.Element eParams)
eParams -
Elementprotected String getInformation(String outerTag)
outerTag - a value for the surrounding tag (one of the extended classes)
reconstitute(Element)public void reconstitute(org.jdom.Element e)
e - a JDOM Element containing the valuesgetInformation(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||