rs.sol.soloist.server.builtindomains.builtindatatypes
Class InstanceOfEnumeration

java.lang.Object
  extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
      extended by rs.sol.soloist.server.uml.commonimplementation.runtime._DataTypeInstance
          extended by rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance
              extended by rs.sol.soloist.server.builtindomains.builtindatatypes.InstanceOfDataType
                  extended by rs.sol.soloist.server.builtindomains.builtindatatypes.InstanceOfEnumeration
All Implemented Interfaces:
rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IDataTypeInstance, IEnumerationInstance, IRTElement
Direct Known Subclasses:
DockLayoutDirection, FilteringLogic, GUIDateTimeFormat, GUINumberFormat, HorizontalAlignment, PerformImmediately, PropertyKind, VerticalAlignment

public class InstanceOfEnumeration
extends InstanceOfDataType
implements IEnumerationInstance


Field Summary
static IClassifier CLASSIFIER
           
static java.lang.String FQ_TYPE_NAME
           
 
Constructor Summary
InstanceOfEnumeration(IEnumerationLiteral literal)
           
 
Method Summary
 void accept(rs.sol.soloist.server.uml.concepts.IVisitor visitor)
           
<T> T
accept(rs.sol.soloist.server.uml.concepts.IVisitorWithResult<T> visitor)
           
 boolean equals(java.lang.Object obj)
           
 IAttributeValue getAttributeValue(java.lang.String uqName, java.lang.String clsFQName)
          Returns the Attribute Value owned by this Classifier Instance with the given unqualified name.
 IDataType getDataType()
          Returns the DataType of the UML model whose instance is this.
 IEnumerationLiteral getLiteral()
           
 long getMyID()
          Returns unique identifier of this classifier instance.
 ISlot getSlot(java.lang.String uqName, java.lang.String clsFQName)
          Returns the Slot owned by this Classifier Instance with the given unqualified name.
 java.util.List<ISlot> getSlots()
          Returns the set of all Slots owned by this Classifier Instance.
 java.lang.String getSQLString()
          TODO - this is hard-coded - it should depend on DataTypeHandler mapping
 int hashCode()
           
 boolean isEqualTo(IClassifierInstance instance)
          Is this Classifier Instance equal to the given Classifier Instance?
Semantic rules:
1.
 IClassifierInstance makeClone()
          Clones this Classifier Instance.
 java.io.Serializable toSerializable()
           
 java.lang.String toString()
          Probably required by O2R mapper
 
Methods inherited from class rs.sol.soloist.server.builtindomains.builtindatatypes.InstanceOfDataType
fromSerializable
 
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance
addAttributeValue, setDataType, setMyID
 
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._DataTypeInstance
getClassifier, hasIdentity, isClassInstance, isDataTypeInstance, isMarkedAsDeleted, markAsDeleted
 
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
conformsTo, constructor, copySlots, copySlots, destroy, destructor, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValues, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMElement, getSlot, 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, constructor, copySlots, copySlots, destroy, destructor, getAttributeValue, getAttributeValue, getAttributeValues, getClassifier, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getSlot, getSlot, getSlot, isClassInstance, isDataTypeInstance, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isMarkedAsDeleted, markAsDeleted
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IRTElement
getMElement, hasIdentity
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement
isKindOf, isModelElement, isRTElement
 

Field Detail

FQ_TYPE_NAME

public static final java.lang.String FQ_TYPE_NAME
See Also:
Constant Field Values

CLASSIFIER

public static final IClassifier CLASSIFIER
Constructor Detail

InstanceOfEnumeration

public InstanceOfEnumeration(IEnumerationLiteral literal)
Method Detail

equals

public final boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

getLiteral

public IEnumerationLiteral getLiteral()
Specified by:
getLiteral in interface IEnumerationInstance

getDataType

public IDataType getDataType()
Description copied from interface: IDataTypeInstance
Returns the DataType of the UML model whose instance is this. Subsets classifier.

Specified by:
getDataType in interface IDataTypeInstance
Overrides:
getDataType in class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance

toString

public final java.lang.String toString()
Probably required by O2R mapper

Specified by:
toString in interface IDataTypeInstance
Overrides:
toString in class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance

isEqualTo

public boolean isEqualTo(IClassifierInstance instance)
Description copied from interface: IClassifierInstance
Is this Classifier Instance equal to the given Classifier Instance?
Semantic rules:
1. If this and ci are instances of different kinds of Classifiers (one is an instance of a Class, and the other is an instance of a Data Type) they are different (not equal).
2. If this and ci refer to two different instances of Classes, they are different (not equal).
3. If this and ci refer to two instances of Data Types, their equality is checked on value basis (if all of their Slots are equal).

Specified by:
isEqualTo in interface IClassifierInstance
Overrides:
isEqualTo in class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance

getAttributeValue

public IAttributeValue getAttributeValue(java.lang.String uqName,
                                         java.lang.String clsFQName)
Description copied from interface: IClassifierInstance
Returns the Attribute Value owned by this Classifier Instance with the given unqualified name. Subsets attributeValues.
The search by name for the Attribute Value starts from the Classifier with the given fully qualified name upwards the generalization hierarchy; if it is is null, the search starts from the direct Classifier of this Classifier Instance.
Returns null if such does not exist.

Specified by:
getAttributeValue in interface IClassifierInstance
Overrides:
getAttributeValue in class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance

getSlot

public ISlot getSlot(java.lang.String uqName,
                     java.lang.String clsFQName)
Description copied from interface: IClassifierInstance
Returns the Slot owned by this Classifier Instance with the given unqualified name. Subsets slots.
The search by name for the Slot starts from the Classifier with the given fully qualified name upwards the generalization hierarchy; if it is is null, the search starts from the direct Classifier of this Classifier Instance.
Returns null if such does not exist.

Specified by:
getSlot in interface IClassifierInstance
Overrides:
getSlot in class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance

getSlots

public java.util.List<ISlot> getSlots()
Description copied from interface: IClassifierInstance
Returns the set of all Slots owned by this Classifier Instance.

Specified by:
getSlots in interface IClassifierInstance
Overrides:
getSlots in class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance

getSQLString

public java.lang.String getSQLString()
TODO - this is hard-coded - it should depend on DataTypeHandler mapping

Specified by:
getSQLString in interface IDataTypeInstance
Overrides:
getSQLString in class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance

getMyID

public long getMyID()
Description copied from interface: IClassifierInstance
Returns unique identifier of this classifier instance.

Specified by:
getMyID in interface IClassifierInstance
Overrides:
getMyID in class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance

toSerializable

public final java.io.Serializable toSerializable()
Specified by:
toSerializable in interface IDataTypeInstance
Overrides:
toSerializable in class InstanceOfDataType

makeClone

public IClassifierInstance makeClone()
Description copied from interface: IClassifierInstance
Clones this Classifier Instance.

Specified by:
makeClone in interface IClassifierInstance

accept

public void accept(rs.sol.soloist.server.uml.concepts.IVisitor visitor)
Specified by:
accept in interface rs.sol.soloist.server.uml.concepts.IElement

accept

public <T> T accept(rs.sol.soloist.server.uml.concepts.IVisitorWithResult<T> visitor)
Specified by:
accept in interface rs.sol.soloist.server.uml.concepts.IElement