|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttrManager
Factory class interface for attribute-related objects; Provides creating services needed by graphical components.
Field Summary | |
---|---|
static long |
serialVersionUID
|
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. |
void |
checkIfReadyToTransform(AttrContext matchContext,
boolean checkOnlyVariables)
|
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. |
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. |
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 left rule side view for an existing rule context; Here, variables can be declared, but the assignment of complex expressions to single attribute values is forbidden. |
AttrMapping |
newMapping(AttrContext mappingContext,
AttrInstance source,
AttrInstance target)
Mapping between two attribute instances; The mapping is done according to the context mapping property (match/plain) and is integrated into the context; |
AttrContext |
newRightContext(AttrContext context)
Creating a right rule side view for an existing rule context, through which variables cannot be declared; complex expressions as attribute values are allowed, but only declared variables may be used. |
AttrType |
newType()
Creating a new attribute type. |
AttrViewSetting |
newViewSetting()
Creating a new mediator instance for loose coupling of attribute objects with their visual representation. |
Field Detail |
---|
static final long serialVersionUID
Method Detail |
---|
AttrContext newContext(int mapStyle)
mapStyle
- The kind of mapping that is done within this context; it is
one of:
AttrContext
,
AttrMapping
AttrContext newContext(int mapStyle, AttrContext parent)
mapStyle
- The kind of mapping that is done within this context; it is
one of:
parent
- The context to extend
AttrContext
,
AttrMapping
AttrContext newLeftContext(AttrContext context)
context
- The context to generate the view on
AttrContext
AttrContext newRightContext(AttrContext context)
context
- The context to generate the view on
AttrContext
AttrHandler getHandler(java.lang.String name)
AttrHandler[] getHandlers()
AttrType newType()
AttrInstance newInstance(AttrType type)
type
- The type to use
AttrInstance newInstance(AttrType type, AttrContext context)
type
- The type to usecontext
- The context to use
void checkIfReadyToMatch(AttrContext ruleContext) throws AttrException
AttrException
AttrMapping newMapping(AttrContext mappingContext, AttrInstance source, AttrInstance target) throws AttrException
mappingContext
- The context to include the mapping insource
- Mapping source attributetarget
- Mapping target attribute
AttrException
void checkIfReadyToTransform(AttrContext matchContext) throws AttrException
AttrException
void checkIfReadyToTransform(AttrContext matchContext, boolean checkOnlyVariables) throws AttrException
AttrException
AttrViewSetting newViewSetting()
AttrViewSetting getDefaultOpenView()
AttrViewSetting getDefaultMaskedView()
java.lang.String getErrorMsg()
java.lang.String isClassName(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |