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

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

public class ToSlotValueByPropertyTransformer
extends ToSlotValueTransformer

A handler that transforms an object provided by the owner GUITransformerComponent the same way as ToSlotValueTransformer do, except from the fact that this handler adds additional filtering based on the value on one of the object's properties. That (target) property is specified either by calling setTargetPropertyFQName(String) method or during construction of this handler using create(IProperty, IProperty, IClassifierInstance) method. The filtering value is specified by calling setTargetValue(IClassifierInstance) method.

Author:
SOL Expert Group

Nested Class Summary
static class ToSlotValueByPropertyTransformer.FQPropertyNames
          Deprecated. Not for public use.
static class ToSlotValueByPropertyTransformer.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> targetPropertyName
          Deprecated. Not for public use.
 IAssociationEndInstance<rs.sol.soloist.server.builtindomains.common.ClassifierInstanceDescriptor> targetValue
          Deprecated. Not for public use.
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.ToSlotValueTransformer
donwcastToClassFQName, propertyName
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.Transformer
complain
 
Constructor Summary
ToSlotValueByPropertyTransformer()
           
 
Method Summary
 void constructor()
          The domain-specific constructor of the Classifier.
static ToSlotValueByPropertyTransformer create(IProperty property, IProperty targetProperty, IClassifierInstance target)
          Returns new ToSlotValueByPropertyTransformer for the given property that defines the slot over which the transformation will be performed, for the given target property over which the filtering of slot values will be performed, and for the given value by which the values will be filtered.
 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 getTargetPropertyFQName()
          Returns the filtering property.
 IClassifierInstance getTargetValue()
          Returns the filtering value.
 void setTargetPropertyFQName(java.lang.String targetPropertyFQName)
          Sets the the filtering property.
 void setTargetValue(IClassifierInstance target)
          Sets the filtering value.
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.ToSlotValueTransformer
create, getDowncast, getDownCastToClass, getPropertyFQName, setDowncast, setPropertyFQName, transform
 
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

targetPropertyName

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


targetValue

@Deprecated
public IAssociationEndInstance<rs.sol.soloist.server.builtindomains.common.ClassifierInstanceDescriptor> targetValue
Deprecated. Not for public use.
Constructor Detail

ToSlotValueByPropertyTransformer

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

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

Overrides:
createInfo in class ToSlotValueTransformer
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.

Overrides:
fillInfo in class ToSlotValueTransformer
Parameters:
info - a ComponentInfo sub-class object to be filled-in

create

public static ToSlotValueByPropertyTransformer create(IProperty property,
                                                      IProperty targetProperty,
                                                      IClassifierInstance target)
Returns new ToSlotValueByPropertyTransformer for the given property that defines the slot over which the transformation will be performed, for the given target property over which the filtering of slot values will be performed, and for the given value by which the values will be filtered.

Parameters:
property - the transformation property
targetProperty - the filtering property
target - the filtering value
Returns:
the new ToSlotValueByPropertyTransformer

getTargetPropertyFQName

public java.lang.String getTargetPropertyFQName()
Returns the filtering property.

Returns:
the filtering property
See Also:
setTargetPropertyFQName(String)

setTargetPropertyFQName

public void setTargetPropertyFQName(java.lang.String targetPropertyFQName)
Sets the the filtering property.

Parameters:
targetPropertyFQName - the filtering property

getTargetValue

public IClassifierInstance getTargetValue()
Returns the filtering value.

Returns:
the filtering value
See Also:
setTargetValue(IClassifierInstance)

setTargetValue

public void setTargetValue(IClassifierInstance target)
Sets the filtering value.

Parameters:
target - the filtering value