rs.sol.soloist.server.guiconfiguration.nonvisualcompoments
Class GUITransformerComponent

java.lang.Object
  extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
      extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance
          extended by rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance
              extended by rs.sol.soloist.server.builtindomains.common.ObjectOfClass
                  extended by rs.sol.soloist.server.guiconfiguration.construction.GUIComponent
                      extended by rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUINonVisualComponent
                          extended by rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUITransformerComponent
All Implemented Interfaces:
IElementPresentationProvider, IUpdatable, rs.sol.soloist.server.server.ITransformer, rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IClassInstance, IRTElement

public class GUITransformerComponent
extends GUINonVisualComponent
implements rs.sol.soloist.server.server.ITransformer

An invisible widget that accepts an object on input input pin (ipInput() method) and performs a transformation (depending on a type of transformer object set by calling setTransformer(Transformer) method), to other objects that are provided on ouput output pin (opOutput() method) after transformation.

Author:
SOL Expert Group
See Also:
Transformer

Nested Class Summary
static class GUITransformerComponent.FQPropertyNames
          Deprecated. Not for public use.
static class GUITransformerComponent.PROPERTIES
          Deprecated. Not for public use.
 
Field Summary
static IClass CLASSIFIER
          UML class reference
static java.lang.String FQ_TYPE_NAME
          Fully qualified UML class name
 IAttributeValue<Text> input
          Deprecated. Not for public use.
 IAttributeValue<Text> output
          Deprecated. Not for public use.
 IAttributeValue<Text> refresh
          Deprecated. Not for public use.
 IAssociationEndInstance<Transformer> transformer
          Deprecated. Not for public use.
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent
addStyle, context, description, enabled, init, inputBindings, layoutData, logger, name, outputBindings, ownerTable, parent, removeStyle, show, showInParent, styleName, tooltip, visible
 
Constructor Summary
GUITransformerComponent()
           
 
Method Summary
 void constructor()
          The domain-specific constructor of the Classifier.
static GUITransformerComponent createSlotValue(GUIContainerComponent parent, IProperty property)
          Returns new GUITransformerComponent that transforms an element into the element linked with it via the slot of the given property, and assigns new object to the given parent GUIContainerComponent.
static GUITransformerComponent createSlotValueDowncast(GUIContainerComponent parent, IProperty property, IClass klass)
          Returns new GUITransformerComponent that transforms an element into the element linked with it via the slot of the given property and typed with the given class, and assigns new object to the given parent GUIContainerComponent.
 Transformer getTransformer()
          Returns the assigned transformer object that performs the transformation of elements.
 java.lang.Object handle(rs.sol.soloist.client.common.requests.Request request)
          Handles single request from the client (browser) and returns an appropriate response.
 ISlot<?> ipInput()
          Returns the input input pin; when event occurs, this widget will transform (using assigned transformer) the element from the binding message received on this pin into other element, which will be provided on the output output pin (opOutput() method).
 ISlot<?> ipRefresh()
          Returns the refresh input pin; when event occurs, this widget will re-transform the last element received on the input input pin (ipInput() method), and provide transformation result on the output output pin (opOutput() method).
 ISlot<?> opOutput()
          Returns the output output pin; when event occurs on either input input pin (ipInput() method) or refresh input pin (ipRefresh() method) this widget will transform the element and provide the result on this pin.
 void setTransformer(Transformer t)
          Sets the transformer object that performs the transformation of elements.
 rs.sol.soloist.client.common.descr.Descr transform(rs.sol.soloist.client.common.descr.Descr elementDescr)
          Deprecated. Not for public use.
static GUITransformerComponent transform(GUIContainerComponent parent, Transformer transformer)
          Deprecated. Not for public use.
 rs.sol.soloist.server.uml.concepts.IElement transform(rs.sol.soloist.server.uml.concepts.IElement el)
           
static GUITransformerComponent transformToSlotValue(GUIContainerComponent parent, IProperty property)
          Deprecated. Not for public use.
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUINonVisualComponent
setCellAlignment, setCellSize, setCellStyle, setCenter, setDirectionAndSize, setLeftRightWidth, setRowColumn, setRowColumn, setSize, setTopBottomHeight, setXY
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent
addStyleNames, addValueToSlot, clearSlot, clone, createInfo, createInfoAlreadyValidated, destructor, fillElementInfo, getApplication, getCommands, getCommands, getCommonOwner, getContext, getDescription, getDescrString, getDragIcon, getEnabled, getFeature, getFeature, getInputBindings, getInputPin, getInputPins, getLabelString, getLargeIcon, getLayoutData, getName, getNameString, getOutputPin, getOutputPins, getOwner, getParts, getSetting, getSmallIcon, getStyle, getSubnodes, getTooltip, getTooltipString, getTypeString, getVisible, ipAddStyle, ipEnabled, ipInit, ipRemoveStyle, ipShow, ipShowInParent, ipVisible, isInputPin, isOutputPin, putFeatureInfo, readElement, readElements, readSlot, readSlotAsInfo, readSubnodes, removeValueFromSlot, setContext, setDescription, setEnabled, setLayoutData, setName, setSlot, setSlot, setStyle, setTooltip, setVisible, toTranslateDescriptors, translatePinName, updateInfo, validate, validateParts, validateParts
 
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance
destroy, equals, getAssociationEndInstance, getAssociationEndInstances, getAttributeValue, getAttributeValues, getMyClass, getMyID, getSlot, getSlot, getSlots, getUMLClass, hashCode, isMarkedAsDeleted, toString
 
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance
accept, accept, exists, getAssociationEndInstance, getAssociationEndInstance, getAssociationEndInstance, getClassifier, hasIdentity, isClassInstance, isDataTypeInstance, isEqualTo, makeClone, markAsDeleted
 
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
conformsTo, copySlots, copySlots, getAttributeValue, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMElement, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isKindOf, isModelElement, isRTElement
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IClassifierInstance
conformsTo, copySlots, copySlots, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IRTElement
getMElement
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement
isKindOf, isModelElement, isRTElement
 

Field Detail

input

@Deprecated
public IAttributeValue<Text> input
Deprecated. Not for public use.

output

@Deprecated
public IAttributeValue<Text> output
Deprecated. Not for public use.

refresh

@Deprecated
public IAttributeValue<Text> refresh
Deprecated. Not for public use.

FQ_TYPE_NAME

public static final java.lang.String FQ_TYPE_NAME
Fully qualified UML class name

See Also:
Constant Field Values

CLASSIFIER

public static final IClass CLASSIFIER
UML class reference


transformer

@Deprecated
public IAssociationEndInstance<Transformer> transformer
Deprecated. Not for public use.
Constructor Detail

GUITransformerComponent

public GUITransformerComponent()
Method Detail

constructor

public void constructor()
Description copied from interface: IClassifierInstance
The domain-specific constructor of the Classifier.

Specified by:
constructor in interface IClassifierInstance
Overrides:
constructor in class GUINonVisualComponent

transform

public rs.sol.soloist.server.uml.concepts.IElement transform(rs.sol.soloist.server.uml.concepts.IElement el)
Specified by:
transform in interface rs.sol.soloist.server.server.ITransformer

createSlotValue

public static GUITransformerComponent createSlotValue(GUIContainerComponent parent,
                                                      IProperty property)
Returns new GUITransformerComponent that transforms an element into the element linked with it via the slot of the given property, and assigns new object to the given parent GUIContainerComponent.

Parameters:
parent - the parent GUIContainerComponent widget
property - the property used for transformation
Returns:
the new GUITransformerComponent

createSlotValueDowncast

public static GUITransformerComponent createSlotValueDowncast(GUIContainerComponent parent,
                                                              IProperty property,
                                                              IClass klass)
Returns new GUITransformerComponent that transforms an element into the element linked with it via the slot of the given property and typed with the given class, and assigns new object to the given parent GUIContainerComponent.

Parameters:
parent - the parent GUIContainerComponent widget
property - the property used for transformation
klass - the class used for down-casting
Returns:
the new GUITransformerComponent

ipInput

public ISlot<?> ipInput()
Returns the input input pin; when event occurs, this widget will transform (using assigned transformer) the element from the binding message received on this pin into other element, which will be provided on the output output pin (opOutput() method).

Returns:
the input input pin
See Also:
setTransformer(Transformer), GUIComponentBinding

ipRefresh

public ISlot<?> ipRefresh()
Returns the refresh input pin; when event occurs, this widget will re-transform the last element received on the input input pin (ipInput() method), and provide transformation result on the output output pin (opOutput() method).

The content of the binding message accepted on this pin is of no importance. Only event is what matters.

Returns:
the refresh input pin
See Also:
setTransformer(Transformer), GUIComponentBinding

opOutput

public ISlot<?> opOutput()
Returns the output output pin; when event occurs on either input input pin (ipInput() method) or refresh input pin (ipRefresh() method) this widget will transform the element and provide the result on this pin.

Returns:
the output output pin
See Also:
setTransformer(Transformer), GUIComponentBinding

getTransformer

public Transformer getTransformer()
Returns the assigned transformer object that performs the transformation of elements.

Returns:
the assigned transformer object
See Also:
setTransformer(Transformer)

setTransformer

public void setTransformer(Transformer t)
Sets the transformer object that performs the transformation of elements.

Parameters:
t - the new transformer object.

handle

public java.lang.Object handle(rs.sol.soloist.client.common.requests.Request request)
Description copied from class: GUIComponent
Handles single request from the client (browser) and returns an appropriate response. It is meant to be overriden in sub-classes.

Overrides:
handle in class GUIComponent
Parameters:
request - a Request from client deserialized and ready to be handeled
Returns:
an Object representing the server's response to a request

transform

@Deprecated
public rs.sol.soloist.client.common.descr.Descr transform(rs.sol.soloist.client.common.descr.Descr elementDescr)
Deprecated. Not for public use.


transform

@Deprecated
public static GUITransformerComponent transform(GUIContainerComponent parent,
                                                           Transformer transformer)
Deprecated. Not for public use.


transformToSlotValue

@Deprecated
public static GUITransformerComponent transformToSlotValue(GUIContainerComponent parent,
                                                                      IProperty property)
Deprecated. Not for public use.