rs.sol.soloist.server.builtindomains.builtindatatypes
Class Boolean
java.lang.Object
rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
rs.sol.soloist.server.uml.commonimplementation.runtime._DataTypeInstance
rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance
rs.sol.soloist.server.builtindomains.builtindatatypes.InstanceOfDataType
rs.sol.soloist.server.builtindomains.builtindatatypes.InstanceOfPrimitiveType
rs.sol.soloist.server.builtindomains.builtindatatypes.Boolean
- All Implemented Interfaces:
- rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IDataTypeInstance, IPrimitiveTypeInstance, IRTElement
public class Boolean
- extends InstanceOfPrimitiveType
TODO
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance |
addAttributeValue, getAttributeValue, getDataType, getMyID, getSlot, getSlots, 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, getAttributeValue, getAttributeValues, getClassifier, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMyID, getSlot, getSlot, getSlot, getSlot, getSlots, isClassInstance, isDataTypeInstance, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isMarkedAsDeleted, markAsDeleted |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement |
isKindOf, isModelElement, isRTElement |
FQ_TYPE_NAME
public static final java.lang.String FQ_TYPE_NAME
- See Also:
- Constant Field Values
CLASSIFIER
public static final IPrimitiveType CLASSIFIER
TRUE
public static final Boolean TRUE
FALSE
public static final Boolean FALSE
DEFAULT
public static final Boolean DEFAULT
Boolean
public Boolean()
- Creates a new Boolean instance. Equivalent to
new Boolean(false)
Please, use valueOf(boolean)
, TRUE
or FALSE
whenever possible.
Boolean
public Boolean(boolean value)
- Creates a new Boolean instance.
Please, use valueOf(boolean)
, TRUE
or FALSE
whenever possible.
fromString
public static Boolean fromString(java.lang.String str)
fromLiteral
public static Boolean fromLiteral(java.lang.String str)
valueOf
public static Boolean valueOf(boolean value)
makeClone
public IClassifierInstance makeClone()
- Description copied from interface:
IClassifierInstance
- Clones this Classifier Instance.
toBoolean
public boolean toBoolean()
toString
public java.lang.String toString()
- Specified by:
toString
in interface IDataTypeInstance
- Overrides:
toString
in class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
getSQLString
public java.lang.String getSQLString()
- Specified by:
getSQLString
in interface IDataTypeInstance
- Overrides:
getSQLString
in class InstanceOfPrimitiveType
booleanValueSafe
public static boolean booleanValueSafe(IAttributeValue<Boolean> slot)
booleanValue
public static boolean booleanValue(IAttributeValue<Boolean> slot)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
isEqualTo
public boolean isEqualTo(IClassifierInstance ci)
throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
- 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
- Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getValue
public java.lang.Boolean getValue()
- Specified by:
getValue
in interface IPrimitiveTypeInstance
- Overrides:
getValue
in class InstanceOfPrimitiveType
fromSerializable
public static Boolean fromSerializable(java.io.Serializable ser)