org.dmtf.schemas.wscim.rasd.util
Class RasdAdapterFactory

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

public class RasdAdapterFactory
extends AdapterFactoryImpl

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

See Also:
RasdPackage

Field Summary
protected static RasdPackage modelPackage
          The cached model package.
protected  RasdSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
RasdAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createAllocationUnitsTypeAdapter()
          Creates a new adapter for an object of class 'Allocation Units Type'.
 Adapter createCaptionTypeAdapter()
          Creates a new adapter for an object of class 'Caption Type'.
 Adapter createChangeableTypeTypeAdapter()
          Creates a new adapter for an object of class 'Changeable Type Type'.
 Adapter createCimAnySimpleTypeAdapter()
          Creates a new adapter for an object of class 'Cim Any Simple Type'.
 Adapter createCIMResourceAllocationSettingDataTypeAdapter()
          Creates a new adapter for an object of class 'CIM Resource Allocation Setting Data Type'.
 Adapter createCimStringAdapter()
          Creates a new adapter for an object of class 'Cim String'.
 Adapter createCimUnsignedShortAdapter()
          Creates a new adapter for an object of class 'Cim Unsigned Short'.
 Adapter createConsumerVisibilityTypeAdapter()
          Creates a new adapter for an object of class 'Consumer Visibility Type'.
 Adapter createDocumentRootAdapter()
          Creates a new adapter for an object of class 'Document Root'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createHostResourceAdapter()
          Creates a new adapter for an object of class 'Host Resource'.
 Adapter createLocalHostResourceAdapter()
          Creates a new adapter for an object of class 'Local Host Resource'.
 Adapter createMappingBehaviorTypeAdapter()
          Creates a new adapter for an object of class 'Mapping Behavior Type'.
 Adapter createProgrammaticUnitTypeAdapter()
          Creates a new adapter for an object of class 'Programmatic Unit Type'.
 Adapter createResourceTypeTypeAdapter()
          Creates a new adapter for an object of class 'Resource Type Type'.
 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 RasdPackage modelPackage
The cached model package.


modelSwitch

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

Constructor Detail

RasdAdapterFactory

public RasdAdapterFactory()
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.

createAllocationUnitsTypeAdapter

public Adapter createAllocationUnitsTypeAdapter()
Creates a new adapter for an object of class 'Allocation Units 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:
AllocationUnitsType

createCaptionTypeAdapter

public Adapter createCaptionTypeAdapter()
Creates a new adapter for an object of class 'Caption 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:
CaptionType

createChangeableTypeTypeAdapter

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

Returns:
the new adapter.
See Also:
ChangeableTypeType

createCIMResourceAllocationSettingDataTypeAdapter

public Adapter createCIMResourceAllocationSettingDataTypeAdapter()
Creates a new adapter for an object of class 'CIM Resource Allocation Setting Data 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:
CIMResourceAllocationSettingDataType

createConsumerVisibilityTypeAdapter

public Adapter createConsumerVisibilityTypeAdapter()
Creates a new adapter for an object of class 'Consumer Visibility 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:
ConsumerVisibilityType

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

createMappingBehaviorTypeAdapter

public Adapter createMappingBehaviorTypeAdapter()
Creates a new adapter for an object of class 'Mapping Behavior 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:
MappingBehaviorType

createResourceTypeTypeAdapter

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

Returns:
the new adapter.
See Also:
ResourceTypeType

createLocalHostResourceAdapter

public Adapter createLocalHostResourceAdapter()
Creates a new adapter for an object of class 'Local Host Resource'. 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:
LocalHostResource

createHostResourceAdapter

public Adapter createHostResourceAdapter()
Creates a new adapter for an object of class 'Host Resource'. 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:
HostResource

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

createProgrammaticUnitTypeAdapter

public Adapter createProgrammaticUnitTypeAdapter()
Creates a new adapter for an object of class 'Programmatic Unit 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:
ProgrammaticUnitType

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

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

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