|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.xtreemos.xosd.localallocmgr.attributes.operations.OperationTranslator
public class OperationTranslator
translates the commands to the handlers methods
Field Summary | |
---|---|
static AttrHandlerStorage |
attrHandlers
|
Constructor Summary | |
---|---|
OperationTranslator()
|
Method Summary | |
---|---|
static void |
cloneAttributes(AttributeStorage elm1,
AttributeStorage elm2,
ExcludeAttributes exclAttr)
clone attributes from elm1 to elm2, if an attribute exists, it is overwritten! |
static boolean |
translate(OperationTypes operation,
AttributeStorage elm1attr,
AttributeStorage elm2attr,
ExcludeAttributes exclAttr)
TODO: check if this is needed at all! |
static boolean |
translate(OperationTypes operation,
IAttribute<?> elm1attr,
AttributeStorage elm2attrs,
java.lang.Class<?> attr2type)
performs an operation on an attribute type where the type differs from the type of the argument |
static boolean |
translate(OperationTypes operation,
IAttributeHandler handler,
IAttribute<?> op1,
IAttribute<?> op2)
Returns false if the handler for the attribute does not exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static AttrHandlerStorage attrHandlers
Constructor Detail |
---|
public OperationTranslator()
Method Detail |
---|
public static boolean translate(OperationTypes operation, IAttributeHandler handler, IAttribute<?> op1, IAttribute<?> op2)
operation
- op1
- op2
-
public static boolean translate(OperationTypes operation, IAttribute<?> elm1attr, AttributeStorage elm2attrs, java.lang.Class<?> attr2type)
operation
- attrType
- elm2
-
public static boolean translate(OperationTypes operation, AttributeStorage elm1attr, AttributeStorage elm2attr, ExcludeAttributes exclAttr)
operation
- elm1attr
- elm2attr
-
public static void cloneAttributes(AttributeStorage elm1, AttributeStorage elm2, ExcludeAttributes exclAttr)
elm1
- elm2
- exclAttr
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |