|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance
|
+--de.tuberlin.cs.cis.ocl.eval.instance.OclAnyInstance
|
+--de.tuberlin.cs.cis.ocl.eval.instance.StringInstance
Represents an instance of the OCL type String.
| Constructor Summary | |
StringInstance(java.lang.String value)
Constructs an instance of the OCL type String via a Java String. |
|
| Method Summary | |
OclString |
concat(OclString string2)
Results in the concatenation of this instance and string2. |
OclInteger |
size()
Results in the number of characters in string. |
static java.lang.String |
stringValue(OclString s2)
Determines the Java OclString representation of an
OclString. |
OclString |
substring(OclInteger lower,
OclInteger upper)
Results in the sub-string of this instance starting at character number lower, up to and including character number upper. |
OclString |
toLower()
Results in the value of this instance with all uppercase characters converted to lowercase characters. |
OclString |
toUpper()
Results in the value of this instance with all lowercase characters converted to uppercase characters. |
| Methods inherited from class de.tuberlin.cs.cis.ocl.eval.instance.OclAnyInstance |
eq, equals, neq, oclAsType, oclInState, oclIsKindOf, oclIsNew, oclIsTypeOf |
| Methods inherited from class de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance |
getRepresentation, getRuntimeType, getValue, hashCode, invoke, navigate, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.tuberlin.cs.cis.ocl.type.reflect.OclAny |
eq, neq, oclAsType, oclInState, oclIsKindOf, oclIsNew, oclIsTypeOf |
| Constructor Detail |
public StringInstance(java.lang.String value)
String.
value - a Java String.| Method Detail |
public static java.lang.String stringValue(OclString s2)
OclString representation of an
OclString.
s2 - an OclString
OclString representation of
the specified OCL String.public OclInteger size()
OclString
size in interface OclStringpublic OclString concat(OclString string2)
OclString
concat in interface OclStringstring2 - an instance of String (!= null)
public OclString toUpper()
OclString
toUpper in interface OclStringpublic OclString toLower()
OclString
toLower in interface OclString
public OclString substring(OclInteger lower,
OclInteger upper)
OclString
substring in interface OclStringlower - the lower bound of the sub-string (!= null)upper - the upper bound of the sub-string (!= null)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||