|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAdapterFactoryImpl
org.eclipse.ocl.types.util.TypesAdapterFactory
public class TypesAdapterFactory
The Adapter Factory for the model.
It provides an adapter createXXX method for each class of the model.
TypesPackage| Field Summary | |
|---|---|
protected static TypesPackage |
modelPackage
The cached model package |
protected TypesSwitch<Adapter> |
modelSwitch
The switch that delegates to the createXXX methods |
| Constructor Summary | |
|---|---|
TypesAdapterFactory()
Creates an instance of the adapter factory |
|
| Method Summary | |
|---|---|
Adapter |
createAdapter(Notifier target)
Creates an adapter for the target |
Adapter |
createAnyTypeAdapter()
Creates a new adapter for an object of class ' Any Type' |
Adapter |
createASTNodeAdapter()
Creates a new adapter for an object of class ' AST Node' |
Adapter |
createBagTypeAdapter()
Creates a new adapter for an object of class ' Bag Type' |
Adapter |
createCollectionTypeAdapter()
Creates a new adapter for an object of class ' Collection Type' |
Adapter |
createElementTypeAdapter()
Creates a new adapter for an object of class ' Element Type' |
Adapter |
createEObjectAdapter()
Creates a new adapter for the default case |
Adapter |
createInvalidTypeAdapter()
Creates a new adapter for an object of class ' Invalid Type' |
Adapter |
createMessageTypeAdapter()
Creates a new adapter for an object of class ' Message Type' |
Adapter |
createOrderedSetTypeAdapter()
Creates a new adapter for an object of class ' Ordered Set Type' |
Adapter |
createPredefinedTypeAdapter()
Creates a new adapter for an object of class ' Predefined Type' |
Adapter |
createPrimitiveTypeAdapter()
Creates a new adapter for an object of class ' Primitive Type' |
Adapter |
createSequenceTypeAdapter()
Creates a new adapter for an object of class ' Sequence Type' |
Adapter |
createSetTypeAdapter()
Creates a new adapter for an object of class ' Set Type' |
Adapter |
createTemplateParameterTypeAdapter()
Creates a new adapter for an object of class ' Template Parameter Type' |
Adapter |
createTupleTypeAdapter()
Creates a new adapter for an object of class ' Tuple Type' |
Adapter |
createTypedASTNodeAdapter()
Creates a new adapter for an object of class ' Typed AST Node' |
Adapter |
createTypeTypeAdapter()
Creates a new adapter for an object of class ' Type Type' |
Adapter |
createVoidTypeAdapter()
Creates a new adapter for an object of class ' Void Type' |
boolean |
isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static TypesPackage modelPackage
protected TypesSwitch<Adapter> modelSwitch
createXXX methods.
| Constructor Detail |
|---|
public TypesAdapterFactory()
| Method Detail |
|---|
public boolean isFactoryForType(java.lang.Object object)
true if the object is either the model's package or is an instance object of the model.
public Adapter createAdapter(Notifier target)
target.
target - the object to adapt.
target.public Adapter createAnyTypeAdapter()
Any Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
AnyTypepublic Adapter createBagTypeAdapter()
Bag Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
BagTypepublic Adapter createCollectionTypeAdapter()
Collection Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
CollectionTypepublic Adapter createElementTypeAdapter()
Element Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
ElementTypepublic Adapter createInvalidTypeAdapter()
Invalid Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
InvalidTypepublic Adapter createMessageTypeAdapter()
Message Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
MessageTypepublic Adapter createOrderedSetTypeAdapter()
Ordered Set Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
OrderedSetTypepublic Adapter createPrimitiveTypeAdapter()
Primitive Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
PrimitiveTypepublic Adapter createSequenceTypeAdapter()
Sequence Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
SequenceTypepublic Adapter createSetTypeAdapter()
Set Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
SetTypepublic Adapter createTupleTypeAdapter()
Tuple Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
TupleTypepublic Adapter createTypeTypeAdapter()
Type Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
TypeTypepublic Adapter createVoidTypeAdapter()
Void Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
VoidTypepublic Adapter createTemplateParameterTypeAdapter()
Template Parameter Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
TemplateParameterTypepublic Adapter createPredefinedTypeAdapter()
Predefined Type'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
PredefinedTypepublic Adapter createASTNodeAdapter()
AST Node'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
ASTNodepublic Adapter createTypedASTNodeAdapter()
Typed AST Node'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
TypedASTNodepublic Adapter createEObjectAdapter()
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||