org.eclipse.ocl.cst.impl
Class CSTFactoryImpl
java.lang.Object
EFactoryImpl
org.eclipse.ocl.cst.impl.CSTFactoryImpl
- All Implemented Interfaces:
- CSTFactory
public class CSTFactoryImpl
- extends EFactoryImpl
- implements CSTFactory
An implementation of the model Factory.
Constructor Summary |
CSTFactoryImpl()
Creates an instance of the factory |
Method Summary |
java.lang.String |
convertCollectionTypeIdentifierEnumToString(EDataType eDataType,
java.lang.Object instanceValue)
|
java.lang.String |
convertDotOrArrowEnumToString(EDataType eDataType,
java.lang.Object instanceValue)
|
java.lang.String |
convertITokenToString(EDataType eDataType,
java.lang.Object instanceValue)
|
java.lang.String |
convertMessageExpKindToString(EDataType eDataType,
java.lang.Object instanceValue)
|
java.lang.String |
convertPrePostOrBodyEnumToString(EDataType eDataType,
java.lang.Object instanceValue)
|
java.lang.String |
convertSimpleTypeEnumToString(EDataType eDataType,
java.lang.Object instanceValue)
|
java.lang.String |
convertToString(EDataType eDataType,
java.lang.Object instanceValue)
|
EObject |
create(EClass eClass)
|
BooleanLiteralExpCS |
createBooleanLiteralExpCS()
|
CallExpCS |
createCallExpCS()
|
ClassifierContextDeclCS |
createClassifierContextDeclCS()
|
CollectionLiteralExpCS |
createCollectionLiteralExpCS()
|
CollectionLiteralPartCS |
createCollectionLiteralPartCS()
|
CollectionRangeCS |
createCollectionRangeCS()
|
CollectionTypeCS |
createCollectionTypeCS()
|
CollectionTypeIdentifierEnum |
createCollectionTypeIdentifierEnumFromString(EDataType eDataType,
java.lang.String initialValue)
|
DefCS |
createDefCS()
|
DefExpressionCS |
createDefExpressionCS()
|
DerValueCS |
createDerValueCS()
|
DotOrArrowEnum |
createDotOrArrowEnumFromString(EDataType eDataType,
java.lang.String initialValue)
|
FeatureCallExpCS |
createFeatureCallExpCS()
|
java.lang.Object |
createFromString(EDataType eDataType,
java.lang.String initialValue)
|
IfExpCS |
createIfExpCS()
|
InitValueCS |
createInitValueCS()
|
IntegerLiteralExpCS |
createIntegerLiteralExpCS()
|
InvalidLiteralExpCS |
createInvalidLiteralExpCS()
|
InvCS |
createInvCS()
|
IsMarkedPreCS |
createIsMarkedPreCS()
|
IterateExpCS |
createIterateExpCS()
|
IteratorExpCS |
createIteratorExpCS()
|
IToken |
createITokenFromString(EDataType eDataType,
java.lang.String initialValue)
|
LetExpCS |
createLetExpCS()
|
LoopExpCS |
createLoopExpCS()
|
MessageExpCS |
createMessageExpCS()
|
MessageExpKind |
createMessageExpKindFromString(EDataType eDataType,
java.lang.String initialValue)
|
NullLiteralExpCS |
createNullLiteralExpCS()
|
OCLDocumentCS |
createOCLDocumentCS()
|
OCLMessageArgCS |
createOCLMessageArgCS()
|
OperationCallExpCS |
createOperationCallExpCS()
|
OperationContextDeclCS |
createOperationContextDeclCS()
|
OperationCS |
createOperationCS()
|
PackageDeclarationCS |
createPackageDeclarationCS()
|
PathNameCS |
createPathNameCS()
|
PrePostOrBodyDeclCS |
createPrePostOrBodyDeclCS()
|
PrePostOrBodyEnum |
createPrePostOrBodyEnumFromString(EDataType eDataType,
java.lang.String initialValue)
|
PrimitiveLiteralExpCS |
createPrimitiveLiteralExpCS()
|
PrimitiveTypeCS |
createPrimitiveTypeCS()
|
PropertyContextCS |
createPropertyContextCS()
|
RealLiteralExpCS |
createRealLiteralExpCS()
|
SimpleNameCS |
createSimpleNameCS()
|
SimpleTypeEnum |
createSimpleTypeEnumFromString(EDataType eDataType,
java.lang.String initialValue)
|
StringLiteralExpCS |
createStringLiteralExpCS()
|
TupleLiteralExpCS |
createTupleLiteralExpCS()
|
TupleTypeCS |
createTupleTypeCS()
|
UnlimitedNaturalLiteralExpCS |
createUnlimitedNaturalLiteralExpCS()
|
VariableCS |
createVariableCS()
|
VariableExpCS |
createVariableExpCS()
|
CSTPackage |
getCSTPackage()
|
static CSTPackage |
getPackage()
Deprecated. |
static CSTFactory |
init()
Creates the default factory implementation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSTFactoryImpl
public CSTFactoryImpl()
- Creates an instance of the factory.
init
public static CSTFactory init()
- Creates the default factory implementation.
create
public EObject create(EClass eClass)
-
createFromString
public java.lang.Object createFromString(EDataType eDataType,
java.lang.String initialValue)
-
convertToString
public java.lang.String convertToString(EDataType eDataType,
java.lang.Object instanceValue)
-
createPackageDeclarationCS
public PackageDeclarationCS createPackageDeclarationCS()
-
- Specified by:
createPackageDeclarationCS
in interface CSTFactory
- Returns:
- a new object of class 'Package Declaration CS'.
createPropertyContextCS
public PropertyContextCS createPropertyContextCS()
-
- Specified by:
createPropertyContextCS
in interface CSTFactory
- Returns:
- a new object of class 'Property Context CS'.
createClassifierContextDeclCS
public ClassifierContextDeclCS createClassifierContextDeclCS()
-
- Specified by:
createClassifierContextDeclCS
in interface CSTFactory
- Returns:
- a new object of class 'Classifier Context Decl CS'.
createOperationContextDeclCS
public OperationContextDeclCS createOperationContextDeclCS()
-
- Specified by:
createOperationContextDeclCS
in interface CSTFactory
- Returns:
- a new object of class 'Operation Context Decl CS'.
createPrePostOrBodyDeclCS
public PrePostOrBodyDeclCS createPrePostOrBodyDeclCS()
-
- Specified by:
createPrePostOrBodyDeclCS
in interface CSTFactory
- Returns:
- a new object of class 'Pre Post Or Body Decl CS'.
createOperationCS
public OperationCS createOperationCS()
-
- Specified by:
createOperationCS
in interface CSTFactory
- Returns:
- a new object of class 'Operation CS'.
createDerValueCS
public DerValueCS createDerValueCS()
-
- Specified by:
createDerValueCS
in interface CSTFactory
- Returns:
- a new object of class 'Der Value CS'.
createInitValueCS
public InitValueCS createInitValueCS()
-
- Specified by:
createInitValueCS
in interface CSTFactory
- Returns:
- a new object of class 'Init Value CS'.
createInvCS
public InvCS createInvCS()
-
- Specified by:
createInvCS
in interface CSTFactory
- Returns:
- a new object of class 'Inv CS'.
createDefCS
public DefCS createDefCS()
-
- Specified by:
createDefCS
in interface CSTFactory
- Returns:
- a new object of class 'Def CS'.
createDefExpressionCS
public DefExpressionCS createDefExpressionCS()
-
- Specified by:
createDefExpressionCS
in interface CSTFactory
- Returns:
- a new object of class 'Def Expression CS'.
createPathNameCS
public PathNameCS createPathNameCS()
-
- Specified by:
createPathNameCS
in interface CSTFactory
- Returns:
- a new object of class 'Path Name CS'.
createVariableExpCS
public VariableExpCS createVariableExpCS()
-
- Specified by:
createVariableExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Variable Exp CS'.
createSimpleNameCS
public SimpleNameCS createSimpleNameCS()
-
- Specified by:
createSimpleNameCS
in interface CSTFactory
- Returns:
- a new object of class 'Simple Name CS'.
createPrimitiveTypeCS
public PrimitiveTypeCS createPrimitiveTypeCS()
-
- Specified by:
createPrimitiveTypeCS
in interface CSTFactory
- Returns:
- a new object of class 'Primitive Type CS'.
createTupleTypeCS
public TupleTypeCS createTupleTypeCS()
-
- Specified by:
createTupleTypeCS
in interface CSTFactory
- Returns:
- a new object of class 'Tuple Type CS'.
createCollectionTypeCS
public CollectionTypeCS createCollectionTypeCS()
-
- Specified by:
createCollectionTypeCS
in interface CSTFactory
- Returns:
- a new object of class 'Collection Type CS'.
createLetExpCS
public LetExpCS createLetExpCS()
-
- Specified by:
createLetExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Let Exp CS'.
createIfExpCS
public IfExpCS createIfExpCS()
-
- Specified by:
createIfExpCS
in interface CSTFactory
- Returns:
- a new object of class 'If Exp CS'.
createMessageExpCS
public MessageExpCS createMessageExpCS()
-
- Specified by:
createMessageExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Message Exp CS'.
createOCLMessageArgCS
public OCLMessageArgCS createOCLMessageArgCS()
-
- Specified by:
createOCLMessageArgCS
in interface CSTFactory
- Returns:
- a new object of class 'OCL Message Arg CS'.
createVariableCS
public VariableCS createVariableCS()
-
- Specified by:
createVariableCS
in interface CSTFactory
- Returns:
- a new object of class 'Variable CS'.
createCollectionLiteralExpCS
public CollectionLiteralExpCS createCollectionLiteralExpCS()
-
- Specified by:
createCollectionLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Collection Literal Exp CS'.
createTupleLiteralExpCS
public TupleLiteralExpCS createTupleLiteralExpCS()
-
- Specified by:
createTupleLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Tuple Literal Exp CS'.
createPrimitiveLiteralExpCS
public PrimitiveLiteralExpCS createPrimitiveLiteralExpCS()
-
- Specified by:
createPrimitiveLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Primitive Literal Exp CS'.
createIntegerLiteralExpCS
public IntegerLiteralExpCS createIntegerLiteralExpCS()
-
- Specified by:
createIntegerLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Integer Literal Exp CS'.
createUnlimitedNaturalLiteralExpCS
public UnlimitedNaturalLiteralExpCS createUnlimitedNaturalLiteralExpCS()
-
- Specified by:
createUnlimitedNaturalLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Unlimited Natural Literal Exp CS'.
createRealLiteralExpCS
public RealLiteralExpCS createRealLiteralExpCS()
-
- Specified by:
createRealLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Real Literal Exp CS'.
createStringLiteralExpCS
public StringLiteralExpCS createStringLiteralExpCS()
-
- Specified by:
createStringLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'String Literal Exp CS'.
createBooleanLiteralExpCS
public BooleanLiteralExpCS createBooleanLiteralExpCS()
-
- Specified by:
createBooleanLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Boolean Literal Exp CS'.
createCollectionLiteralPartCS
public CollectionLiteralPartCS createCollectionLiteralPartCS()
-
- Specified by:
createCollectionLiteralPartCS
in interface CSTFactory
- Returns:
- a new object of class 'Collection Literal Part CS'.
createCollectionRangeCS
public CollectionRangeCS createCollectionRangeCS()
-
- Specified by:
createCollectionRangeCS
in interface CSTFactory
- Returns:
- a new object of class 'Collection Range CS'.
createCallExpCS
public CallExpCS createCallExpCS()
-
- Specified by:
createCallExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Call Exp CS'.
createLoopExpCS
public LoopExpCS createLoopExpCS()
-
- Specified by:
createLoopExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Loop Exp CS'.
createIteratorExpCS
public IteratorExpCS createIteratorExpCS()
-
- Specified by:
createIteratorExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Iterator Exp CS'.
createIterateExpCS
public IterateExpCS createIterateExpCS()
-
- Specified by:
createIterateExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Iterate Exp CS'.
createFeatureCallExpCS
public FeatureCallExpCS createFeatureCallExpCS()
-
- Specified by:
createFeatureCallExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Feature Call Exp CS'.
createOperationCallExpCS
public OperationCallExpCS createOperationCallExpCS()
-
- Specified by:
createOperationCallExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Operation Call Exp CS'.
createIsMarkedPreCS
public IsMarkedPreCS createIsMarkedPreCS()
-
- Specified by:
createIsMarkedPreCS
in interface CSTFactory
- Returns:
- a new object of class 'Is Marked Pre CS'.
createOCLDocumentCS
public OCLDocumentCS createOCLDocumentCS()
-
- Specified by:
createOCLDocumentCS
in interface CSTFactory
- Returns:
- a new object of class 'OCL Document CS'.
- Since:
- 1.3
createNullLiteralExpCS
public NullLiteralExpCS createNullLiteralExpCS()
-
- Specified by:
createNullLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Null Literal Exp CS'.
createInvalidLiteralExpCS
public InvalidLiteralExpCS createInvalidLiteralExpCS()
-
- Specified by:
createInvalidLiteralExpCS
in interface CSTFactory
- Returns:
- a new object of class 'Invalid Literal Exp CS'.
createPrePostOrBodyEnumFromString
public PrePostOrBodyEnum createPrePostOrBodyEnumFromString(EDataType eDataType,
java.lang.String initialValue)
-
convertPrePostOrBodyEnumToString
public java.lang.String convertPrePostOrBodyEnumToString(EDataType eDataType,
java.lang.Object instanceValue)
-
createSimpleTypeEnumFromString
public SimpleTypeEnum createSimpleTypeEnumFromString(EDataType eDataType,
java.lang.String initialValue)
-
convertSimpleTypeEnumToString
public java.lang.String convertSimpleTypeEnumToString(EDataType eDataType,
java.lang.Object instanceValue)
-
createCollectionTypeIdentifierEnumFromString
public CollectionTypeIdentifierEnum createCollectionTypeIdentifierEnumFromString(EDataType eDataType,
java.lang.String initialValue)
-
convertCollectionTypeIdentifierEnumToString
public java.lang.String convertCollectionTypeIdentifierEnumToString(EDataType eDataType,
java.lang.Object instanceValue)
-
createDotOrArrowEnumFromString
public DotOrArrowEnum createDotOrArrowEnumFromString(EDataType eDataType,
java.lang.String initialValue)
-
convertDotOrArrowEnumToString
public java.lang.String convertDotOrArrowEnumToString(EDataType eDataType,
java.lang.Object instanceValue)
-
createITokenFromString
public IToken createITokenFromString(EDataType eDataType,
java.lang.String initialValue)
-
- Since:
- 1.3
convertITokenToString
public java.lang.String convertITokenToString(EDataType eDataType,
java.lang.Object instanceValue)
-
- Since:
- 1.3
createMessageExpKindFromString
public MessageExpKind createMessageExpKindFromString(EDataType eDataType,
java.lang.String initialValue)
-
convertMessageExpKindToString
public java.lang.String convertMessageExpKindToString(EDataType eDataType,
java.lang.Object instanceValue)
-
getCSTPackage
public CSTPackage getCSTPackage()
-
- Specified by:
getCSTPackage
in interface CSTFactory
- Returns:
- the package supported by this factory.
getPackage
@Deprecated
public static CSTPackage getPackage()
- Deprecated.
-