|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtl.common.utils.MTLNonStandardLibrary
public final class MTLNonStandardLibrary
This will define additional convenience operations on OCL types. Those were not defined in the specification.
| Field Summary | |
|---|---|
static java.lang.String |
OPERATION_OCLANY_ANCESTORS
Name of the "ancestors" non-standard operation accessible on all objects. |
static java.lang.String |
OPERATION_OCLANY_EALLCONTENTS
Name of the "eAllContents" non-standard operation accessible on all objects. |
static java.lang.String |
OPERATION_OCLANY_TOSTRING
Name of the "toString" non-standard operation accessible on all objects. |
static java.lang.String |
OPERATION_STRING_ENDSWITH
Name of the "endsWith" non-standard String operation. |
static java.lang.String |
OPERATION_STRING_REPLACE
Name of the "replace" non-standard String operation. |
static java.lang.String |
OPERATION_STRING_REPLACEALL
Name of the "replaceAll" non-standard String operation. |
static java.lang.String |
OPERATION_STRING_STARTSWITH
Name of the "startsWith" non-standard String operation. |
static java.lang.String |
OPERATION_STRING_SUBSTITUTEALL
Name of the "substituteAll" non-standard String operation. |
static java.lang.String |
OPERATION_STRING_TOKENIZE
Name of the "tokenize" non-standard String operation. |
static java.lang.String |
OPERATION_STRING_TRIM
Name of the "trim" non-standard String operation. |
| Constructor Summary | |
|---|---|
MTLNonStandardLibrary()
Initializes the non-standard library package along with its content. |
|
| Method Summary | |
|---|---|
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EOperation> |
getExistingOperations(org.eclipse.emf.ecore.EClassifier type)
Obtains the operations declared on the specified type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OPERATION_STRING_ENDSWITH
endsWith( String substring ) : Boolean
Returns true if self ends with the
substring substring, false otherwise.
public static final java.lang.String OPERATION_STRING_REPLACE
replace( String substring, String replacement ) : String
Substitutes the first occurence of
substring substring in self by substring replacement and returns the
resulting string. If there is no occurrence of the substring, The original string is returned.
substring and replacement are treated as regular expressions.
public static final java.lang.String OPERATION_STRING_REPLACEALL
replaceAll( String substring, String replacement ) : String
Substitutes all substrings
substring in self by substring replacement and returns the resulting string.
If there is no occurrence of the substring, The original string is returned. substring and
replacement are treated as regular expressions.
public static final java.lang.String OPERATION_STRING_STARTSWITH
startsWith( String substring ) : Boolean
Returns true if self starts with the
substring substring, false otherwise.
public static final java.lang.String OPERATION_STRING_SUBSTITUTEALL
substituteAll( String substring, String replacement ) : String
Substitutes all substrings
substring in self by substring replacement and returns the resulting string.
If there is no occurrence of the substring, The original string is returned. substring and
replacement are not treated as regular expressions.
public static final java.lang.String OPERATION_STRING_TRIM
trim( ) : String
Removes all leading and trailing spaces of self.
public static final java.lang.String OPERATION_STRING_TOKENIZE
tokenize( String delim ) : Sequence
Returns a sequence containing the tokens of the given
string (using delim as delimiter).
public static final java.lang.String OPERATION_OCLANY_EALLCONTENTS
eAllContents( ) : Sequence
Returns the whole content tree of the receiver as a Sequence.
eAllContents( OclAny ) : Sequence
Returns the elements of the given type from the whole
content tree of the receiver as a Sequence.
public static final java.lang.String OPERATION_OCLANY_ANCESTORS
ancestors( ) : Sequence
Returns a Sequence containing the full set of the receiver's
ancestors.
public static final java.lang.String OPERATION_OCLANY_TOSTRING
toString( ) : String
Returns the String representation of the receiver.
| Constructor Detail |
|---|
public MTLNonStandardLibrary()
| Method Detail |
|---|
public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EOperation> getExistingOperations(org.eclipse.emf.ecore.EClassifier type)
null, not an empty list, if none are found.
type - The type which operation are sought.
null if none.
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||