T - the type of taskR - the type of resourcepublic class Mapping<T extends Task,R extends Resource> extends Element
| Modifier and Type | Field and Description |
|---|---|
protected T |
source |
protected R |
target |
attributes, id, parent, TYPE| Constructor and Description |
|---|
Mapping(Element parent,
T source,
R target)
Constructs a new mapping
|
Mapping(java.lang.String id,
T source,
R target)
Constructs a new mapping.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
T |
getSource()
Returns the source of the mapping.
|
R |
getTarget()
Returns the target of a mapping.
|
void |
setSource(T task)
Sets the source of the mapping.
|
void |
setTarget(R resource)
Sets the target of a mapping.
|
getAttribute, getAttributeNames, getAttributeParameter, getAttributes, getId, getLocalAttributeNames, getLocalAttributes, getParent, getType, hashCode, isDefined, setAttribute, setParent, setType, toStringpublic Mapping(java.lang.String id,
T source,
R target)
id - the idsource - the source tasktarget - the target resourcepublic T getSource()
public void setSource(T task)
task - the sourcepublic R getTarget()
public void setTarget(R resource)
resource - the target