|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.attribute.impl.AttrObject
agg.attribute.impl.TupleMapping
public class TupleMapping
Representation of a mapping between two attribute instances.
Field Summary | |
---|---|
protected java.lang.String[] |
assignedVariables
References to value settings done due to this mapping. |
protected ContextView |
context
The context this mapping is contained in. |
protected ValueTuple |
source
The source and target objects of this mapping. |
protected ValueTuple |
target
The source and target objects of this mapping. |
Fields inherited from class agg.attribute.impl.AttrObject |
---|
classHandlerExpr, classObject, classString, initialized |
Fields inherited from interface agg.attribute.AttrMapping |
---|
GRAPH_MAP, MATCH_MAP, PLAIN_MAP |
Fields inherited from interface agg.attribute.impl.AttrMsgCode |
---|
ATTR_DONT_MATCH, BAD_EXPR_TYPE, EXPR_EVAL_ERR, EXPR_MUST_BE_CONST, EXPR_MUST_BE_CONST_OR_VAR, EXPR_PARSE_ERR, EXPR_REQUIRED, MATCH_TARGETS_DIFFER, NAME_DUPLICATION, NO_SUCH_NAME, NO_SUCH_TYPE, OK, RULE_SOURCES_DIFFER, VAR_NOT_DECLARED |
Constructor Summary | |
---|---|
TupleMapping(ContextView mappingContext,
ValueTuple src,
ValueTuple tar)
All or nothing: tries to create a mapping right away, with matching if it's in a match context. |
Method Summary | |
---|---|
void |
adoptEntriesWhereEmpty(ValueTuple src,
ValueTuple tar)
This method accepts AttrMapping.PLAIN_MAP only. |
protected java.lang.String |
getAllowedMappingAsString(ContextView contextview)
For debugging output. |
java.util.Vector<java.lang.String> |
getAssignedVariables()
|
ValueTuple |
getSource()
Getting the source attribute instance. |
ValueTuple |
getTarget()
Getting the target attribute instance. |
boolean |
next()
Use the next possible mapping; |
void |
remove()
Implementation of agg.attribute.AttrMapping#remove(). |
void |
removeNow()
Called from this mapping's context; Discard mapping; Removes assignments made by it from its context. |
Methods inherited from class agg.attribute.impl.AttrObject |
---|
defaultToString, err, err, getInstRepr, log, log, log, logEnteredMethod, logPrintln, logPrintln, stdoutPrintOnEnter, stdoutPrintOnExit, toString, update, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ValueTuple source
protected ValueTuple target
protected ContextView context
protected java.lang.String[] assignedVariables
Constructor Detail |
---|
public TupleMapping(ContextView mappingContext, ValueTuple src, ValueTuple tar)
Method Detail |
---|
public void adoptEntriesWhereEmpty(ValueTuple src, ValueTuple tar)
public java.util.Vector<java.lang.String> getAssignedVariables()
public boolean next()
next
in interface AttrMapping
public void remove()
remove
in interface AttrMapping
public void removeNow()
public ValueTuple getSource()
public ValueTuple getTarget()
protected java.lang.String getAllowedMappingAsString(ContextView contextview)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |