MetaDone
|
Public Member Functions | |
ConcreteModel | getTarget () |
Script | getScript () |
void | deleteView () throws BadPreCondition |
List< InternalViewElement > | getElements () throws BadPreCondition |
public< E extends InternalViewElement > List< E > | getElements (Class< E > cl) throws BadPreCondition |
public< E extends InternalViewElement > E | getElement (Class< E > cl, ConcreteObject expression, ConcreteObject co) throws BadPreCondition |
public< E extends InternalViewElement > E | produceElement (Class< E > cl, ConcreteObject expression, ConcreteObject co) throws BadPreCondition |
The base of all views.
void metadone.metabusiness.syntax.View.deleteView | ( | ) | throws BadPreCondition |
Deletes the view.
BadPreCondition |
Implemented in metadone.metabusiness.syntax.AbstractView.
public<E extends InternalViewElement> E metadone.metabusiness.syntax.View.getElement | ( | Class< E > | cl, |
ConcreteObject | expression, | ||
ConcreteObject | co | ||
) | throws BadPreCondition |
Returns a view element.
<E> | The type of the element |
cl | The class |
expression | The expression |
co | The concrete object or null |
null
if it was not found BadPreCondition |
Implemented in metadone.metabusiness.syntax.AbstractView.
Referenced by metadone.client.grasyla2.GrasylaContext.activate(), metadone.client.grasyla2.GrasylaContext.deactivate(), metadone.client.grasyla2.GrasylaContext.getVariable(), and metadone.client.grasyla2.GrasylaContext.setVariable().
List<InternalViewElement> metadone.metabusiness.syntax.View.getElements | ( | ) | throws BadPreCondition |
Gets the list of all elements in this view.
This is equivalent to:
return getElements(InternalViewElement.class);
BadPreCondition |
Implemented in metadone.metabusiness.syntax.AbstractView.
public<E extends InternalViewElement> List<E> metadone.metabusiness.syntax.View.getElements | ( | Class< E > | cl | ) | throws BadPreCondition |
Gets the list of all elements in this view that are instances of a class.
Returns all the view elements that are instances of the given class.
<E> | The type of the elements |
cl | The class |
BadPreCondition |
Implemented in metadone.metabusiness.syntax.AbstractView, and metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.
Script metadone.metabusiness.syntax.View.getScript | ( | ) |
Gets the script.
Implemented in metadone.metabusiness.syntax.grasyla.GrasylaInternalView, metadone.metabusiness.syntax.grasyla.GrasylaView, and metadone.metabusiness.syntax.UserView.
Referenced by metadone.metabusiness.syntax.grasyla.GrasylaInternalView.getScript(), metadone.client.grasyla2.GrasylaContext.getScript(), and metadone.client.grasyla2.GrasylaInterpreter.GrasylaInterpreter().
ConcreteModel metadone.metabusiness.syntax.View.getTarget | ( | ) |
Gets the target object.
Implemented in metadone.metabusiness.syntax.AbstractView.
Referenced by metadone.metabusiness.syntax.AbstractView.equals(), and metadone.client.grasyla2.GrasylaInterpreter.GrasylaInterpreter().
public<E extends InternalViewElement> E metadone.metabusiness.syntax.View.produceElement | ( | Class< E > | cl, |
ConcreteObject | expression, | ||
ConcreteObject | co | ||
) | throws BadPreCondition |
Retrieves or creates a view element.
If the element already exists, it is returned.
<E> | The type of the element |
cl | The class |
expression | The expression |
co | The concrete object or null |
BadPreCondition | when the element couldn't be created |
Implemented in metadone.metabusiness.syntax.AbstractView.
Referenced by metadone.client.grasyla2.GrasylaContext.declareVariable(), metadone.client.grasyla2.visuallibrary.GrasylaScene.getPhenomenon(), and metadone.client.grasyla2.GrasylaContext.setOwner().