MetaDone
metadone.metabusiness.syntax.View Interface Reference
Inheritance diagram for metadone.metabusiness.syntax.View:

List of all members.

Public Member Functions

ConcreteModel getTarget ()
Script getScript ()
void deleteView () throws BadPreCondition
List< InternalViewElementgetElements () 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

Detailed Description

The base of all views.

Author:
kma

Member Function Documentation

void metadone.metabusiness.syntax.View.deleteView ( ) throws BadPreCondition

Deletes the view.

Exceptions:
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.

Parameters:
<E>The type of the element
clThe class
expressionThe expression
coThe concrete object or null
Returns:
An element of the given class or null if it was not found
Exceptions:
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);
Returns:
The list of elements
Exceptions:
BadPreCondition
See also:
getElements(Class)

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.

Parameters:
<E>The type of the elements
clThe class
Returns:
The list of elements
Exceptions:
BadPreCondition

Implemented in metadone.metabusiness.syntax.AbstractView, and metadone.metabusiness.syntax.grasyla.AbstractGrasylaView.

ConcreteModel metadone.metabusiness.syntax.View.getTarget ( )

Gets the target object.

Returns:
the View concreteModel (that is also the target of this proxy 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.

Parameters:
<E>The type of the element
clThe class
expressionThe expression
coThe concrete object or null
Returns:
An element of the given class
Exceptions:
BadPreConditionwhen the element couldn't be created
See also:
#getElement(Class, ConcreteObject, ConcreteObject)

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().


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations