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

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.InstanceOfPrimitiveType
                      extended by rs.sol.soloist.server.builtindomains.builtindatatypes.Text
All Implemented Interfaces:
java.lang.Comparable<Text>, rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IDataTypeInstance, IPrimitiveTypeInstance, IRTElement

public class Text
extends InstanceOfPrimitiveType
implements java.lang.Comparable<Text>


Nested Class Summary
static class Text.ConservativeNulEncoded
          This DTH will encode empty Text as '\0' in order to distinguish it from null.
static class Text.DefaultHandler
          Default O2R handler for Text primitive type
TODO: read tagged values from attributes and set length accordingly
static class Text.DefaultHandlerForOracle
          In Oracle, unlike most DBMS, '' (empty string) is same as NULL.
This DTH will treat NULL as '', i.e.
static class Text.DefaultSerializationHandler
           
 
Field Summary
static IPrimitiveType CLASSIFIER
           
static Text DEFAULT
           
static java.lang.String FQ_TYPE_NAME
           
 
Constructor Summary
Text()
          Creates text with empty content
Text(java.lang.String value)
          Creates text instance with the given content.
 
Method Summary
 int compareTo(Text other)
           
 boolean equals(java.lang.Object obj)
           
static Text fromLiteral(java.lang.String s)
           
static Text fromSerializable(java.io.Serializable ser)
           
static Text fromString(java.lang.String s)
           
 java.lang.String getSQLString()
           
 java.lang.String getValue()
           
 int hashCode()
           
 boolean isEmpty()
           
static boolean isNullOrEmpty(Text text)
           
 IClassifierInstance makeClone()
          Clones this Classifier Instance.
static java.lang.String stringValue(ISlot<Text> slot)
           
static java.lang.String stringValue(ISlot<Text> slot, boolean translate)
           
static java.lang.String stringValue(Text text)
           
static java.lang.String stringValue(Text text, boolean translate)
           
static java.util.List<java.lang.String> stringValues(ISlot<Text> slot)
           
static java.util.List<java.lang.String> stringValues(ISlot<Text> slot, boolean translate)
           
static java.lang.String stringValueSafe(IAttributeValue<Text> slot)
           
 java.lang.String toString()
           
static Text valueOf(java.lang.String str)
           
 
Methods inherited from class rs.sol.soloist.server.builtindomains.builtindatatypes.InstanceOfPrimitiveType
accept, accept, toSerializable
 
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistDataTypeInstance
addAttributeValue, getAttributeValue, getDataType, getMyID, getSlot, getSlots, isEqualTo, 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.IDataTypeInstance
getDataType
 
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, isEqualTo, 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 IPrimitiveType CLASSIFIER

DEFAULT

public static Text DEFAULT
Constructor Detail

Text

public Text()
Creates text with empty content


Text

public Text(java.lang.String value)
Creates text instance with the given content.

Method Detail

fromString

public static Text fromString(java.lang.String s)

fromLiteral

public static Text fromLiteral(java.lang.String s)

makeClone

public IClassifierInstance makeClone()
                              throws rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Description copied from interface: IClassifierInstance
Clones this Classifier Instance.

Specified by:
makeClone in interface IClassifierInstance
Throws:
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

stringValue

public static java.lang.String stringValue(ISlot<Text> slot,
                                           boolean translate)

stringValue

public static java.lang.String stringValue(Text text,
                                           boolean translate)

stringValues

public static java.util.List<java.lang.String> stringValues(ISlot<Text> slot,
                                                            boolean translate)

stringValue

public static java.lang.String stringValue(ISlot<Text> slot)

stringValues

public static java.util.List<java.lang.String> stringValues(ISlot<Text> slot)

stringValue

public static java.lang.String stringValue(Text text)

valueOf

public static Text valueOf(java.lang.String str)

stringValueSafe

public static java.lang.String stringValueSafe(IAttributeValue<Text> slot)

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

isNullOrEmpty

public static boolean isNullOrEmpty(Text text)

isEmpty

public boolean isEmpty()

equals

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

hashCode

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

getValue

public java.lang.String getValue()
Specified by:
getValue in interface IPrimitiveTypeInstance
Overrides:
getValue in class InstanceOfPrimitiveType

fromSerializable

public static Text fromSerializable(java.io.Serializable ser)

compareTo

public int compareTo(Text other)
Specified by:
compareTo in interface java.lang.Comparable<Text>