|
|||||||||
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.AttrTupleManager
public class AttrTupleManager
Attribute Tuple Manager - Factory of attribute management; Provides creating services needed by graphical components.
Field Summary | |
---|---|
protected ContextView |
defaultContext
|
protected AttrViewSetting |
defaultMaskedView
|
protected AttrViewSetting |
defaultOpenView
|
protected AttrViewSetting |
fixedViewSetting
|
protected AttrHandler[] |
handlers
|
protected boolean |
isCorrectInputEnforced
|
protected static AttrTupleManager |
myDefaultInstance
|
Fields inherited from class agg.attribute.impl.AttrObject |
---|
classHandlerExpr, classObject, classString, initialized |
Fields inherited from interface agg.attribute.AttrManager |
---|
serialVersionUID |
Constructor Summary | |
---|---|
AttrTupleManager()
Public constructor. |
Method Summary | |
---|---|
void |
checkIfReadyToMatch(AttrContext ruleContext)
Checking if matching can be performed with respect to a given rule context. |
void |
checkIfReadyToTransform(AttrContext matchContext)
Checking if a transformation can be performed with the attributes with respect to a given context: variables and attribute conditions. |
void |
checkIfReadyToTransform(AttrContext matchContext,
boolean checkVariablesOnly)
Checking if a transformation can be performed with the attributes with respect to a given context: if checkVariablesOnly is TRUE then only checking variables, otherwise - variables and attribute conditions. |
void |
clearErrorMsg()
|
static AttrManager |
getDefaultManager()
Returns the default instance of AttrManager. |
AttrViewSetting |
getDefaultMaskedView()
Obtaining the masked view of the default view setting ('masked' meaning: it considers permutations as well as hiding of members;). |
AttrViewSetting |
getDefaultOpenView()
Obtaining the open view of the default view setting ('open' meaning: it considers permutations, but not hiding of members;). |
java.lang.String |
getErrorMsg()
Returns an error message if something gone wrong, otherwise - empty message. |
AttrViewSetting |
getFixedViewSetting()
|
AttrHandler |
getHandler(java.lang.String name)
Getting an attribute handler by name. |
AttrHandler[] |
getHandlers()
Getting all attribute handlers that have been registered. |
java.lang.String |
isClassName(java.lang.String name)
Returns a class name if the specified name is a class name, otherwise - null. |
boolean |
isCorrectInputEnforced()
|
boolean |
isVariableContext()
|
AttrContext |
newContext(int mapStyle)
Creating a new attribute context which is the root of a context tree; |
AttrContext |
newContext(int mapStyle,
AttrContext parent)
Creating a new attribute context which extends an existing one. |
AttrInstance |
newInstance(AttrType type)
Creating a new attribute instance of the required type, without a context. |
AttrInstance |
newInstance(AttrType type,
AttrContext context)
Creating a new attribute instance of the required type and in the given context or a context view. |
AttrContext |
newLeftContext(AttrContext context)
Creating a full view on an existing attribute context; Through a "full view" on a context, variables can be declared and values can be assigned to them by the editor of attribute instances. |
AttrMapping |
newMapping(AttrContext mappingContext,
AttrInstance source,
AttrInstance target)
Mapping between two attribute instances; The mapping is done according to the context mapping property (total/partial) and is integrated into the context; |
AttrMapping |
newMappingChild2Parent(AttrContext mappingContext,
AttrInstance source,
AttrInstance target)
|
AttrContext |
newRightContext(AttrContext context)
Creating a view on an existing attribute context, through which variables can not be declared; they only can be assigned values; In Graph Transformation, it is used for the right-hand-side of a rule. |
AttrType |
newType()
Creating a new attribute type. |
AttrViewSetting |
newViewSetting()
Creating a new mediator instance for loose coupling of attribute objects with their visual representation. |
void |
setCorrectInputEnforced(boolean b)
|
void |
setDebug(boolean b)
|
void |
setVariableContext(boolean b)
A variable context mins that mainly variables will be used as values of the graph objects of a graph, so if a rule / match attribute context has an attribute condition, it cannot be evaluated and will get TRUE as result. |
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 AttrHandler[] handlers
protected AttrViewSetting defaultOpenView
protected AttrViewSetting defaultMaskedView
protected AttrViewSetting fixedViewSetting
protected ContextView defaultContext
protected boolean isCorrectInputEnforced
protected static AttrTupleManager myDefaultInstance
Constructor Detail |
---|
public AttrTupleManager()
Method Detail |
---|
public static AttrManager getDefaultManager()
public AttrContext newContext(int mapStyle)
AttrManager
newContext
in interface AttrManager
mapStyle
- The kind of mapping that is done within this context; it is
one of:
AttrContext
,
AttrMapping
public AttrContext newContext(int mapStyle, AttrContext parent)
newContext
in interface AttrManager
mapStyle
- The kind of mapping that is allowed within this context; it is
one of: - AttrMapping.PLAIN_MAP: In Graph Transformation: rule
mapping - AttrMapping.MATCH_MAP: In Graph Transformation:
matchingparent
- The context to extend
AttrContext
,
AttrMapping
public AttrContext newLeftContext(AttrContext context)
newLeftContext
in interface AttrManager
context
- The context to generate the view on
AttrContext
public AttrContext newRightContext(AttrContext context)
newRightContext
in interface AttrManager
context
- The context to generate the view on
AttrContext
public void setVariableContext(boolean b)
public boolean isVariableContext()
agg.attribute.impl
public AttrHandler getHandler(java.lang.String name)
getHandler
in interface AttrManager
public AttrType newType()
newType
in interface AttrManager
public AttrInstance newInstance(AttrType type)
newInstance
in interface AttrManager
type
- The type to use
public AttrInstance newInstance(AttrType type, AttrContext context)
newInstance
in interface AttrManager
type
- The type to usecontext
- The context to use
public java.lang.String getErrorMsg()
getErrorMsg
in interface AttrManager
public void clearErrorMsg()
public void checkIfReadyToMatch(AttrContext ruleContext) throws AttrException
checkIfReadyToMatch
in interface AttrManager
AttrException
public AttrMapping newMapping(AttrContext mappingContext, AttrInstance source, AttrInstance target) throws AttrException
newMapping
in interface AttrManager
mappingContext
- The context to include the mapping insource
- Mapping source attributetarget
- Mapping target attribute
AttrException
AttrMapping.remove()
,
AttrMapping.next()
public AttrMapping newMappingChild2Parent(AttrContext mappingContext, AttrInstance source, AttrInstance target) throws AttrException
AttrException
public void checkIfReadyToTransform(AttrContext matchContext) throws AttrException
checkIfReadyToTransform
in interface AttrManager
AttrException
public void checkIfReadyToTransform(AttrContext matchContext, boolean checkVariablesOnly) throws AttrException
checkIfReadyToTransform
in interface AttrManager
AttrException
public AttrViewSetting newViewSetting()
newViewSetting
in interface AttrManager
public AttrViewSetting getDefaultOpenView()
AttrManager
getDefaultOpenView
in interface AttrManager
public AttrViewSetting getDefaultMaskedView()
AttrManager
getDefaultMaskedView
in interface AttrManager
public AttrViewSetting getFixedViewSetting()
public void setDebug(boolean b)
public AttrHandler[] getHandlers()
AttrManager
getHandlers
in interface AttrManager
public boolean isCorrectInputEnforced()
public void setCorrectInputEnforced(boolean b)
public java.lang.String isClassName(java.lang.String name)
isClassName
in interface AttrManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |