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

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.nonvisualcompoments.Transformer
                      extended by rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.ToSlotValueTransformer
All Implemented Interfaces:
rs.sol.soloist.server.server.ITransformer, rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IClassInstance, IRTElement
Direct Known Subclasses:
ToSlotValueByPropertyTransformer

public class ToSlotValueTransformer
extends Transformer

A handler that transforms an object provided by the owner GUITransformerComponent to the ClassifierInstance on the object's slot (specified by calling setPropertyFQName(String) method of this transformer or during construction of this transformer using factory create(IProperty) method).

If setDowncast(String) is called, transformer will search the slot for a ClassifierInstance of the class specified in that method.

Author:
SOL Expert Group

Nested Class Summary
static class ToSlotValueTransformer.FQPropertyNames
          Deprecated. Not for public use.
static class ToSlotValueTransformer.PROPERTIES
          Deprecated. Not for public use.
 
Field Summary
static IClass CLASSIFIER
          UML class reference
 IAttributeValue<Text> donwcastToClassFQName
          Deprecated. Not for public use.
static java.lang.String FQ_TYPE_NAME
          Fully qualified UML class name
 IAttributeValue<Text> propertyName
          Deprecated. Not for public use.
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.Transformer
complain
 
Constructor Summary
ToSlotValueTransformer()
           
 
Method Summary
 void constructor()
          The domain-specific constructor of the Classifier.
static ToSlotValueTransformer create(IProperty property)
          Returns new ToSlotValueTransformer that transforms the elements over the given property.
 rs.sol.soloist.client.common.info.ComponentInfo createInfo()
          Creates and returns an empty serializable object of the appropriate ComponentInfo sub-class.
 void fillInfo(rs.sol.soloist.client.common.info.ComponentInfo info)
          Fills-in already created ComponentInfo object with values of properties of this object.
 java.lang.String getDowncast()
          Returns the down-cast class FQ name.
 IClass getDownCastToClass()
          Returns the down-cast class.
 java.lang.String getPropertyFQName()
          Returns the property FQ name used for transformation.
 void setDowncast(java.lang.String classFQName)
          Sets the down-cast class FQ name
 void setPropertyFQName(java.lang.String propertyFQName)
          Sets the property FQ name used for transformation.
 rs.sol.soloist.server.uml.concepts.IElement transform(rs.sol.soloist.server.uml.concepts.IElement el)
           
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.Transformer
transform
 
Methods inherited from class rs.sol.soloist.server.builtindomains.common.ObjectOfClass
handle
 
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, destructor, 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, destructor, 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

propertyName

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

donwcastToClassFQName

@Deprecated
public IAttributeValue<Text> donwcastToClassFQName
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

Constructor Detail

ToSlotValueTransformer

public ToSlotValueTransformer()
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 Transformer

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
Specified by:
transform in class Transformer

createInfo

public rs.sol.soloist.client.common.info.ComponentInfo createInfo()
Description copied from class: Transformer
Creates and returns an empty serializable object of the appropriate ComponentInfo sub-class. The returned object must be able to transmit every property of objects of this class from server to clients (browsers).

Specified by:
createInfo in class Transformer
Returns:
a ComponentInfo sub-class instance

fillInfo

public void fillInfo(rs.sol.soloist.client.common.info.ComponentInfo info)
Description copied from class: Transformer
Fills-in already created ComponentInfo object with values of properties of this object.

Specified by:
fillInfo in class Transformer
Parameters:
info - a ComponentInfo sub-class object to be filled-in

getDownCastToClass

public IClass getDownCastToClass()
Returns the down-cast class.

Returns:
the down-cast class

create

public static ToSlotValueTransformer create(IProperty property)
Returns new ToSlotValueTransformer that transforms the elements over the given property.

Parameters:
property - the property used for transformation
Returns:
new ToSlotValueTransformer

getPropertyFQName

public java.lang.String getPropertyFQName()
Returns the property FQ name used for transformation.

Returns:
the property FQ name used for transformation
See Also:
setPropertyFQName(String)

setPropertyFQName

public void setPropertyFQName(java.lang.String propertyFQName)
Sets the property FQ name used for transformation.

Parameters:
propertyFQName - the property FQ name used for transformation

getDowncast

public java.lang.String getDowncast()
Returns the down-cast class FQ name.

Returns:
the down-cast class FQ name
See Also:
setDowncast(String)

setDowncast

public void setDowncast(java.lang.String classFQName)
Sets the down-cast class FQ name

Parameters:
classFQName - the down-cast class FQ name