org.dmtf.schemas.wscim.cim.common.util
Class CommonAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.dmtf.schemas.wscim.cim.common.util.CommonAdapterFactory
All Implemented Interfaces:
AdapterFactory

public class CommonAdapterFactory
extends AdapterFactoryImpl

The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.

See Also:
CommonPackage

Field Summary
protected static CommonPackage modelPackage
          The cached model package.
protected  CommonSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
CommonAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createCimAnySimpleTypeAdapter()
          Creates a new adapter for an object of class 'Cim Any Simple Type'.
 Adapter createCimBase64BinaryAdapter()
          Creates a new adapter for an object of class 'Cim Base64 Binary'.
 Adapter createCimBooleanAdapter()
          Creates a new adapter for an object of class 'Cim Boolean'.
 Adapter createCimByteAdapter()
          Creates a new adapter for an object of class 'Cim Byte'.
 Adapter createCimChar16Adapter()
          Creates a new adapter for an object of class 'Cim Char16'.
 Adapter createCimDateTimeAdapter()
          Creates a new adapter for an object of class 'Cim Date Time'.
 Adapter createCimDoubleAdapter()
          Creates a new adapter for an object of class 'Cim Double'.
 Adapter createCimFloatAdapter()
          Creates a new adapter for an object of class 'Cim Float'.
 Adapter createCimHexBinaryAdapter()
          Creates a new adapter for an object of class 'Cim Hex Binary'.
 Adapter createCimIntAdapter()
          Creates a new adapter for an object of class 'Cim Int'.
 Adapter createCimLongAdapter()
          Creates a new adapter for an object of class 'Cim Long'.
 Adapter createCimReferenceAdapter()
          Creates a new adapter for an object of class 'Cim Reference'.
 Adapter createCimShortAdapter()
          Creates a new adapter for an object of class 'Cim Short'.
 Adapter createCimStringAdapter()
          Creates a new adapter for an object of class 'Cim String'.
 Adapter createCimUnsignedByteAdapter()
          Creates a new adapter for an object of class 'Cim Unsigned Byte'.
 Adapter createCimUnsignedIntAdapter()
          Creates a new adapter for an object of class 'Cim Unsigned Int'.
 Adapter createCimUnsignedLongAdapter()
          Creates a new adapter for an object of class 'Cim Unsigned Long'.
 Adapter createCimUnsignedShortAdapter()
          Creates a new adapter for an object of class 'Cim Unsigned Short'.
 Adapter createDocumentRootAdapter()
          Creates a new adapter for an object of class 'Document Root'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createQualifierBooleanAdapter()
          Creates a new adapter for an object of class 'Qualifier Boolean'.
 Adapter createQualifierSArrayAdapter()
          Creates a new adapter for an object of class 'Qualifier SArray'.
 Adapter createQualifierSInt64Adapter()
          Creates a new adapter for an object of class 'Qualifier SInt64'.
 Adapter createQualifierStringAdapter()
          Creates a new adapter for an object of class 'Qualifier String'.
 Adapter createQualifierUInt32Adapter()
          Creates a new adapter for an object of class 'Qualifier UInt32'.
 boolean isFactoryForType(java.lang.Object object)
          Returns whether this factory is applicable for the type of the object.
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static CommonPackage modelPackage
The cached model package.


modelSwitch

protected CommonSwitch<Adapter> modelSwitch
The switch that delegates to the createXXX methods.

Constructor Detail

CommonAdapterFactory

public CommonAdapterFactory()
Creates an instance of the adapter factory.

Method Detail

isFactoryForType

public boolean isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.

Specified by:
isFactoryForType in interface AdapterFactory
Overrides:
isFactoryForType in class AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.

createAdapter

public Adapter createAdapter(Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.

createCimAnySimpleTypeAdapter

public Adapter createCimAnySimpleTypeAdapter()
Creates a new adapter for an object of class 'Cim Any Simple 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.

Returns:
the new adapter.
See Also:
CimAnySimpleType

createCimBase64BinaryAdapter

public Adapter createCimBase64BinaryAdapter()
Creates a new adapter for an object of class 'Cim Base64 Binary'. 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.

Returns:
the new adapter.
See Also:
CimBase64Binary

createCimBooleanAdapter

public Adapter createCimBooleanAdapter()
Creates a new adapter for an object of class 'Cim Boolean'. 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.

Returns:
the new adapter.
See Also:
CimBoolean

createCimByteAdapter

public Adapter createCimByteAdapter()
Creates a new adapter for an object of class 'Cim Byte'. 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.

Returns:
the new adapter.
See Also:
CimByte

createCimChar16Adapter

public Adapter createCimChar16Adapter()
Creates a new adapter for an object of class 'Cim Char16'. 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.

Returns:
the new adapter.
See Also:
CimChar16

createCimDateTimeAdapter

public Adapter createCimDateTimeAdapter()
Creates a new adapter for an object of class 'Cim Date Time'. 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.

Returns:
the new adapter.
See Also:
CimDateTime

createCimDoubleAdapter

public Adapter createCimDoubleAdapter()
Creates a new adapter for an object of class 'Cim Double'. 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.

Returns:
the new adapter.
See Also:
CimDouble

createCimFloatAdapter

public Adapter createCimFloatAdapter()
Creates a new adapter for an object of class 'Cim Float'. 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.

Returns:
the new adapter.
See Also:
CimFloat

createCimHexBinaryAdapter

public Adapter createCimHexBinaryAdapter()
Creates a new adapter for an object of class 'Cim Hex Binary'. 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.

Returns:
the new adapter.
See Also:
CimHexBinary

createCimIntAdapter

public Adapter createCimIntAdapter()
Creates a new adapter for an object of class 'Cim Int'. 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.

Returns:
the new adapter.
See Also:
CimInt

createCimLongAdapter

public Adapter createCimLongAdapter()
Creates a new adapter for an object of class 'Cim Long'. 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.

Returns:
the new adapter.
See Also:
CimLong

createCimReferenceAdapter

public Adapter createCimReferenceAdapter()
Creates a new adapter for an object of class 'Cim Reference'. 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.

Returns:
the new adapter.
See Also:
CimReference

createCimShortAdapter

public Adapter createCimShortAdapter()
Creates a new adapter for an object of class 'Cim Short'. 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.

Returns:
the new adapter.
See Also:
CimShort

createCimStringAdapter

public Adapter createCimStringAdapter()
Creates a new adapter for an object of class 'Cim String'. 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.

Returns:
the new adapter.
See Also:
CimString

createCimUnsignedByteAdapter

public Adapter createCimUnsignedByteAdapter()
Creates a new adapter for an object of class 'Cim Unsigned Byte'. 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.

Returns:
the new adapter.
See Also:
CimUnsignedByte

createCimUnsignedIntAdapter

public Adapter createCimUnsignedIntAdapter()
Creates a new adapter for an object of class 'Cim Unsigned Int'. 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.

Returns:
the new adapter.
See Also:
CimUnsignedInt

createCimUnsignedLongAdapter

public Adapter createCimUnsignedLongAdapter()
Creates a new adapter for an object of class 'Cim Unsigned Long'. 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.

Returns:
the new adapter.
See Also:
CimUnsignedLong

createCimUnsignedShortAdapter

public Adapter createCimUnsignedShortAdapter()
Creates a new adapter for an object of class 'Cim Unsigned Short'. 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.

Returns:
the new adapter.
See Also:
CimUnsignedShort

createDocumentRootAdapter

public Adapter createDocumentRootAdapter()
Creates a new adapter for an object of class 'Document Root'. 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.

Returns:
the new adapter.
See Also:
DocumentRoot

createQualifierBooleanAdapter

public Adapter createQualifierBooleanAdapter()
Creates a new adapter for an object of class 'Qualifier Boolean'. 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.

Returns:
the new adapter.
See Also:
QualifierBoolean

createQualifierSArrayAdapter

public Adapter createQualifierSArrayAdapter()
Creates a new adapter for an object of class 'Qualifier SArray'. 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.

Returns:
the new adapter.
See Also:
QualifierSArray

createQualifierSInt64Adapter

public Adapter createQualifierSInt64Adapter()
Creates a new adapter for an object of class 'Qualifier SInt64'. 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.

Returns:
the new adapter.
See Also:
QualifierSInt64

createQualifierStringAdapter

public Adapter createQualifierStringAdapter()
Creates a new adapter for an object of class 'Qualifier String'. 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.

Returns:
the new adapter.
See Also:
QualifierString

createQualifierUInt32Adapter

public Adapter createQualifierUInt32Adapter()
Creates a new adapter for an object of class 'Qualifier UInt32'. 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.

Returns:
the new adapter.
See Also:
QualifierUInt32

createEObjectAdapter

public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.

Returns:
the new adapter.


© Copyright 2008 IBM Corp. 2008 All Rights Reserved