MetaDone
|
Public Member Functions | |
AbstractView (ConcreteModel target) throws BadPreCondition | |
final ConcreteModel | getTarget () |
final< E extends InternalViewElement > E | produceElement (Class< E > cl, ConcreteObject expression, ConcreteObject co) throws BadPreCondition |
List< InternalViewElement > | getElements () throws BadPreCondition |
void | deleteView () throws BadPreCondition |
int | hashCode () |
boolean | equals (Object obj) |
String | toString () |
Protected Member Functions | |
abstract < EextendsInternalViewElement > E | createElement (Class< E > cl, ConcreteObject expression, ConcreteObject co) throws BadPreCondition |
Package Functions | |
public< E extends InternalViewElement > E | getElement (Class< E > cl, ConcreteObject expression, ConcreteObject co) throws BadPreCondition |
public< E extends InternalViewElement > List< E > | getElements (Class< E > cl) throws BadPreCondition |
Private Attributes | |
final ConcreteModel | target |
An abstract implementation of the view.
The user of this class must not forget to override one of the methods getElements() or getElements(Class).
metadone.metabusiness.syntax.AbstractView.AbstractView | ( | ConcreteModel | target | ) | throws BadPreCondition |
abstract <EextendsInternalViewElement> E metadone.metabusiness.syntax.AbstractView.createElement | ( | Class< E > | cl, |
ConcreteObject | expression, | ||
ConcreteObject | co | ||
) | throws BadPreCondition [protected, pure virtual] |
Implemented in metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.
Referenced by metadone.metabusiness.syntax.AbstractView.produceElement().
void metadone.metabusiness.syntax.AbstractView.deleteView | ( | ) | throws BadPreCondition |
Deletes the view.
BadPreCondition |
Implements metadone.metabusiness.syntax.View.
References metadone.metabusiness.WorkspaceObject.delete(), and metadone.metabusiness.syntax.AbstractView.getTarget().
Referenced by metadone.metabusiness.syntax.grasyla.GrasylaInternalView.delete().
boolean metadone.metabusiness.syntax.AbstractView.equals | ( | Object | obj | ) |
public<E extends InternalViewElement> E metadone.metabusiness.syntax.AbstractView.getElement | ( | Class< E > | cl, |
ConcreteObject | expression, | ||
ConcreteObject | co | ||
) | throws BadPreCondition [package] |
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 |
Implements metadone.metabusiness.syntax.View.
References metadone.util.Objects.equal(), and metadone.metabusiness.syntax.AbstractView.getElements().
Referenced by metadone.metabusiness.syntax.AbstractView.produceElement().
List<InternalViewElement> metadone.metabusiness.syntax.AbstractView.getElements | ( | ) | throws BadPreCondition |
Gets the list of all elements in this view.
This is equivalent to:
return getElements(InternalViewElement.class);
BadPreCondition |
Implements metadone.metabusiness.syntax.View.
Referenced by metadone.metabusiness.syntax.AbstractView.getElement(), and metadone.metabusiness.syntax.AbstractView.getElements().
public<E extends InternalViewElement> List<E> metadone.metabusiness.syntax.AbstractView.getElements | ( | Class< E > | cl | ) | throws BadPreCondition [package] |
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 |
Implements metadone.metabusiness.syntax.View.
Reimplemented in metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.
References metadone.metabusiness.syntax.AbstractView.getElements().
final ConcreteModel metadone.metabusiness.syntax.AbstractView.getTarget | ( | ) |
Gets the target object.
Implements metadone.metabusiness.syntax.View.
References metadone.metabusiness.syntax.AbstractView.target.
Referenced by metadone.metabusiness.syntax.grasyla.GrasylaView._rename(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.createViewElement(), metadone.metabusiness.syntax.AbstractView.deleteView(), metadone.metabusiness.syntax.AbstractView.equals(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.getElements(), metadone.metabusiness.syntax.grasyla.GrasylaView.getModel(), metadone.metabusiness.syntax.grasyla.GrasylaView.getNameView(), metadone.metabusiness.syntax.grasyla.GrasylaView.getScript(), metadone.metabusiness.syntax.grasyla.GrasylaView.getUser(), and metadone.metabusiness.syntax.AbstractView.toString().
int metadone.metabusiness.syntax.AbstractView.hashCode | ( | ) |
References metadone.metabusiness.syntax.AbstractView.target.
final<E extends InternalViewElement> E metadone.metabusiness.syntax.AbstractView.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 |
Implements metadone.metabusiness.syntax.View.
References metadone.metabusiness.syntax.AbstractView.createElement(), and metadone.metabusiness.syntax.AbstractView.getElement().
String metadone.metabusiness.syntax.AbstractView.toString | ( | ) |
final ConcreteModel metadone.metabusiness.syntax.AbstractView.target [private] |
Referenced by metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.AbstractGrasylaView(), metadone.metabusiness.syntax.AbstractView.AbstractView(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.createElement(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.createViewElement(), metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.getElements(), metadone.metabusiness.syntax.AbstractView.getTarget(), metadone.metabusiness.syntax.grasyla.GrasylaInternalView.GrasylaInternalView(), metadone.metabusiness.syntax.grasyla.GrasylaView.GrasylaView(), and metadone.metabusiness.syntax.AbstractView.hashCode().