rs.sol.soloist.server.uml.concepts.reflection
Interface IProperty

All Superinterfaces:
rs.sol.soloist.server.uml.concepts.IElement, IFeature, IMElement, IMultiplicityElement, INamedElement, IStructuralFeature, ITypedElement

public interface IProperty
extends IStructuralFeature

A property of a Classifier.


Method Summary
 void addFirstValueToSlot(IClassifierInstance ci, IClassifierInstance val)
          Adds a new value to the Slot of the given Classifier Instance that is an instance of this Property, at the beginning.
 void addLastValueToSlot(IClassifierInstance ci, IClassifierInstance val)
          Adds a new value to the Slot of the given Classifier Instance that is an instance of this Property, at the end.
 void addValueToSlot(IClassifierInstance ci, IClassifierInstance val)
          Adds a new value to the Slot of the given Classifier Instance that is an instance of this Property.
 void addValueToSlotAt(IClassifierInstance ci, IClassifierInstance val, int at)
          Adds a new value to the Slot of the given Classifier Instance that is an instance of this Property, at the given position.
 void clearSlot(IClassifierInstance ci)
          Clears (removes all values from) the Slot of the given Classifier Instance that is an instance of this Property.
 void copySlot(IClassifierInstance ci, ISlot sltFrom)
          Copies the value of the given Slot sltFrom to the Slot of the given Classifier Instance that is an instance of this Property (removes all values and then assigns new ones).
 IAssociation getAssociation()
          Returns the Association, if this is an association end.
 java.lang.String getInitialValue()
          Returns the initial value, if this is an attribute.
 IProperty getOpposite()
          Returns the opposite Property, if this is an association end.
 IAssociation getOwningAssociation()
          Returns the Association that owns this end, if this is an association end.
 ISlot getSlot(IClassifierInstance ci)
          Returns the Slot of the given Classifier Instance that is an instance of this Property.
 java.util.List<IProperty> getSubsettedProperties()
          Returns the subsetted Properties.
 IClass getUMLClass()
          Returns the Class that owns this Property.
 boolean isAssociationEnd()
          Is this Property an association end?
 boolean isAttribute()
          Is this Property an attribute (not an asociation end)?
 boolean isComposite()
          Is this Property a composite aggregation?
 boolean isDerived()
          Is this Property derived?
 boolean isDerivedUnion()
          Is this Property a derived union?
 boolean isNavigable()
          Tells whether this property (association end) is navigable.
 boolean isPropagatedDeletion()
          Is this Property marked to propagate deletion?
 IClassifierInstance readFirstValueFromSlot(IClassifierInstance ci)
          Reads and returns the first value from the Slot of the given Classifier Instance that is an instance of this Property.
 IClassifierInstance readLastValueFromSlot(IClassifierInstance ci)
          Reads and returns the last value from the Slot of the given Classifier Instance that is an instance of this Property.
 java.util.List<IClassifierInstance> readSlot(IClassifierInstance ci)
          Reads and returns the entire value of the Slot of the given Classifier Instance that is an instance of this Property.
 long readSlotCount(IClassifierInstance ci, IClassifierInstance val)
          Reads and returns the number of occurrences of the given value in the Slot of the given Classifier Instance that is an instance of this Property.
 long readSlotSize(IClassifierInstance ci)
          Reads and returns the current size of the Slot of the given Classifier Instance that is an instance of this Property.
 IClassifierInstance readValueFromSlot(IClassifierInstance ci)
          Reads and returns one value (the first or the only one) from the Slot of the given Classifier Instance that is an instance of this Property.
 IClassifierInstance readValueFromSlotAt(IClassifierInstance ci, int at)
          Reads and returns the value at the given position in the Slot of the given Classifier Instance that is an instance of this Property.
 IClassifierInstance removeFirstValueFromSlot(IClassifierInstance ci)
          Removes and returns the first value from the Slot of the given Classifier Instance that is an instance of this Property.
 IClassifierInstance removeLastValueFromSlot(IClassifierInstance ci)
          Removes and returns the last value from the Slot of the given Classifier Instance that is an instance of this Property.
 void removeOneValueFromSlot(IClassifierInstance ci, IClassifierInstance val)
          Removes one (the first, or the only one) occurrence of the given value from the Slot of the given Classifier Instance that is an instance of this Property.
 void removeValueFromSlot(IClassifierInstance ci, IClassifierInstance val)
          Removes all occurrences of the given value from the Slot of the given Classifier Instance that is an instance of this Property.
 IClassifierInstance removeValueFromSlotAt(IClassifierInstance ci, int at)
          Removes the value from the given position in the Slot of the given Classifier Instance that is an instance of this Property and returns that value.
 void reorderValuesInSlot(IClassifierInstance ci, int at1, int at2)
          Exchanges the values at the two given positions in the Slot of the given Classifier Instance that is an instance of this Property.
 void replaceValueInSlot(IClassifierInstance ci, IClassifierInstance val, IClassifierInstance newVal)
          Replaces one (the first, or the only one) occurrence of the given value in the Slot of the given Classifier Instance that is an instance of this Property, with the given new value.
 void setSlot(IClassifierInstance ci, IClassifierInstance val)
          Assigns the given value (removes all values and then assigns the new one) to the Slot of the given Classifier Instance that is an instance of this Property.
 void setSlot(IClassifierInstance ci, java.util.List<IClassifierInstance> val)
          Assigns the given value (removes all values and then assigns new ones) to the Slot of the given Classifier Instance that is an instance of this Property.
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.IStructuralFeature
isReadOnly
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.IFeature
getFeaturingClassifier, isStatic
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.IMultiplicityElement
conformsTo, getLowerBound, getUpperBound, includesCardinality, includesMultiplicity, isLimited, isMultiValued, isOrdered, isSingleValued, isUnique, isUnlimited
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.ITypedElement
canAccept, getType, getTypeFQName, getTypeUQName
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.INamedElement
getFQName, getNamespace, getUQName, getVisibility
 

Method Detail

isAttribute

boolean isAttribute()
                    throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Is this Property an attribute (not an asociation end)?

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

isAssociationEnd

boolean isAssociationEnd()
                         throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Is this Property an association end?

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

isDerived

boolean isDerived()
                  throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Is this Property derived?

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

isDerivedUnion

boolean isDerivedUnion()
                       throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Is this Property a derived union?

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

isPropagatedDeletion

boolean isPropagatedDeletion()
                             throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Is this Property marked to propagate deletion?

For composite association ends, it always is.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

isComposite

boolean isComposite()
                    throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Is this Property a composite aggregation?

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getUMLClass

IClass getUMLClass()
                   throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the Class that owns this Property. Subsets featuringClassifier, subsets namespace.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getSubsettedProperties

java.util.List<IProperty> getSubsettedProperties()
                                                 throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the subsetted Properties.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getOpposite

IProperty getOpposite()
                      throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the opposite Property, if this is an association end.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getAssociation

IAssociation getAssociation()
                            throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the Association, if this is an association end.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getOwningAssociation

IAssociation getOwningAssociation()
                                  throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the Association that owns this end, if this is an association end. Subsets association, subsets namespace, subsets featuringClassifier.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getInitialValue

java.lang.String getInitialValue()
Returns the initial value, if this is an attribute.


getSlot

ISlot getSlot(IClassifierInstance ci)
              throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the Slot of the given Classifier Instance that is an instance of this Property.

Returns null if there is no such Slot.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

readSlotSize

long readSlotSize(IClassifierInstance ci)
                  throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                         rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Reads and returns the current size of the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.readSlotSize(getSlot(ci)).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

readSlotCount

long readSlotCount(IClassifierInstance ci,
                   IClassifierInstance val)
                   throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                          rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Reads and returns the number of occurrences of the given value in the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.readSlotCount(getSlot(ci),val).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

readSlot

java.util.List<IClassifierInstance> readSlot(IClassifierInstance ci)
                                             throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                                    rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Reads and returns the entire value of the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.readSlot(getSlot(ci)).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

readValueFromSlot

IClassifierInstance readValueFromSlot(IClassifierInstance ci)
                                      throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                             rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Reads and returns one value (the first or the only one) from the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.readValueFromSlot(getSlot()).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

readValueFromSlotAt

IClassifierInstance readValueFromSlotAt(IClassifierInstance ci,
                                        int at)
                                        throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                               rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Reads and returns the value at the given position in the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.readValueFromSlotAt(getSlot(),at).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

readFirstValueFromSlot

IClassifierInstance readFirstValueFromSlot(IClassifierInstance ci)
                                           throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                                  rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Reads and returns the first value from the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.readFirstValueFromSlot(getSlot(ci)).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

readLastValueFromSlot

IClassifierInstance readLastValueFromSlot(IClassifierInstance ci)
                                          throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                                 rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Reads and returns the last value from the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.readLastValueFromSlot(getSlot(ci)).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

clearSlot

void clearSlot(IClassifierInstance ci)
               throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                      rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Clears (removes all values from) the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.clearSlot(getSlot(ci)).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

removeValueFromSlot

void removeValueFromSlot(IClassifierInstance ci,
                         IClassifierInstance val)
                         throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Removes all occurrences of the given value from the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.removeValueFromSlot(getSlot(ci),val).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

removeOneValueFromSlot

void removeOneValueFromSlot(IClassifierInstance ci,
                            IClassifierInstance val)
                            throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                   rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Removes one (the first, or the only one) occurrence of the given value from the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.removeOneValueFromSlot(getSlot(ci),val).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

removeValueFromSlotAt

IClassifierInstance removeValueFromSlotAt(IClassifierInstance ci,
                                          int at)
                                          throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                                 rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Removes the value from the given position in the Slot of the given Classifier Instance that is an instance of this Property and returns that value.

Always simply calls Actions::Action.removeValueFromSlotAt(getSlot(ci),at).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

removeFirstValueFromSlot

IClassifierInstance removeFirstValueFromSlot(IClassifierInstance ci)
                                             throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                                    rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Removes and returns the first value from the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.removeFirstValueFromSlot(getSlot(ci)).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

removeLastValueFromSlot

IClassifierInstance removeLastValueFromSlot(IClassifierInstance ci)
                                            throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                                   rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Removes and returns the last value from the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.removeLastValueFromSlot(getSlot(ci)).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

setSlot

void setSlot(IClassifierInstance ci,
             java.util.List<IClassifierInstance> val)
             throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                    rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Assigns the given value (removes all values and then assigns new ones) to the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.setSlot(getSlot(ci),val).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

setSlot

void setSlot(IClassifierInstance ci,
             IClassifierInstance val)
             throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                    rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Assigns the given value (removes all values and then assigns the new one) to the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.setSlot(getSlot(ci),{val}).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

addValueToSlot

void addValueToSlot(IClassifierInstance ci,
                    IClassifierInstance val)
                    throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                           rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Adds a new value to the Slot of the given Classifier Instance that is an instance of this Property.

Always simply calls Actions::Action.addValueToSlot(getSlot(ci),val).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

addValueToSlotAt

void addValueToSlotAt(IClassifierInstance ci,
                      IClassifierInstance val,
                      int at)
                      throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                             rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Adds a new value to the Slot of the given Classifier Instance that is an instance of this Property, at the given position.

Always simply calls Actions::Action.addValueToSlotAt(getSlot(ci),val,at).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

addFirstValueToSlot

void addFirstValueToSlot(IClassifierInstance ci,
                         IClassifierInstance val)
                         throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Adds a new value to the Slot of the given Classifier Instance that is an instance of this Property, at the beginning.

Always simply calls Actions::Action.addFirstValueToSlot(getSlot(ci),val).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

addLastValueToSlot

void addLastValueToSlot(IClassifierInstance ci,
                        IClassifierInstance val)
                        throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                               rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Adds a new value to the Slot of the given Classifier Instance that is an instance of this Property, at the end.

Always simply calls Actions::Action.addLastValueToSlot(getSlot(ci),val).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

reorderValuesInSlot

void reorderValuesInSlot(IClassifierInstance ci,
                         int at1,
                         int at2)
                         throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                                rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Exchanges the values at the two given positions in the Slot of the given Classifier Instance that is an instance of this Property.

Position -1 indicates the tailing (last) position.

Always simply calls Actions::Action.reorderValuesInSlot(getSlot(ci),at1,at2).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

replaceValueInSlot

void replaceValueInSlot(IClassifierInstance ci,
                        IClassifierInstance val,
                        IClassifierInstance newVal)
                        throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                               rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Replaces one (the first, or the only one) occurrence of the given value in the Slot of the given Classifier Instance that is an instance of this Property, with the given new value.

Always simply calls Actions::Action.replaceValueInSlot(getSlot(ci),val,newVal).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

copySlot

void copySlot(IClassifierInstance ci,
              ISlot sltFrom)
              throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                     rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Copies the value of the given Slot sltFrom to the Slot of the given Classifier Instance that is an instance of this Property (removes all values and then assigns new ones).

Always simply calls Actions::Action.copySlot(getSlot(ci),sltFrom).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

isNavigable

boolean isNavigable()
Tells whether this property (association end) is navigable.