org.eclipse.emf.cdo.client
Interface PackageManager

All Superinterfaces:
org.eclipse.net4j.spring.Loggable, org.eclipse.net4j.spring.Service
All Known Implementing Classes:
PackageManagerImpl

public interface PackageManager
extends org.eclipse.net4j.spring.Service

Manages the set of packages that are mappable to a CDO server.

For each such package a PackageManager contains a PackageInfo instance.


Method Summary
 void addPackage(org.eclipse.emf.ecore.EPackage ePackage, java.lang.String mappingFile)
          For internal use only.
 void addPackageListener(PackageListener listener)
          Adds a PackageListener to the list of listeners to be notified about packages newly added to this PackageManager.
 void announceNewPackages(org.eclipse.net4j.core.Channel channel)
          For internal use only.
 AttributeConverter getAttributeConverter()
          For internal use only.
 ClassInfo getClassInfo(org.eclipse.emf.ecore.EClass eClass)
          Returns the ClassInfo instance associated with the given EClass.
 ClassInfo getClassInfo(org.eclipse.emf.ecore.EObject eObject)
          Returns the ClassInfo instance associated with the EClass of the given EObject.
 ClassInfo getClassInfo(int cid)
          Returns the ClassInfo instance associated with the given CID.
 java.util.Iterator<ClassInfo> getClassInfos()
          Returns an iterator over all ClassInfo instances managed by this PackageManager.
 OIDEncoder getOidEncoder()
          For internal use only.
 java.util.List<PackageInfo> getPackages()
          Returns a list of the contained PackageInfo instances.
 void initCID(ClassInfo classInfo)
          For internal use only.
 void removePackageListener(PackageListener listener)
          Removes a PackageListener from the list of listeners to be notified about packages newly added to this PackageManager.
 
Methods inherited from interface org.eclipse.net4j.spring.Service
addStateListener, dump, getState, isActive, isAutoStart, isStarted, removeStateListener, start, stop, testSetState
 
Methods inherited from interface org.eclipse.net4j.spring.Loggable
debug, debug, error, error, fatal, fatal, getBeanName, getChild, getContainer, getFullBeanName, getLogger, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isWarnEnabled, warn, warn
 

Method Detail

getPackages

java.util.List<PackageInfo> getPackages()
Returns a list of the contained PackageInfo instances.

Returns:
A list of the contained PackageInfo instances.


getClassInfo

ClassInfo getClassInfo(org.eclipse.emf.ecore.EClass eClass)
Returns the ClassInfo instance associated with the given EClass.

Parameters:
eClass - The EClass to use as search key.

Returns:
The ClassInfo instance (or null).


getClassInfo

ClassInfo getClassInfo(org.eclipse.emf.ecore.EObject eObject)
Returns the ClassInfo instance associated with the EClass of the given EObject.

This is a convenience method and identical to calling getClassInfo(eObject.eClass()).

Parameters:
eObject - The EObject whose EClass to use as search key.

Returns:
The ClassInfo instance (or null).

See Also:
getClassInfo(EClass)

getClassInfo

ClassInfo getClassInfo(int cid)
Returns the ClassInfo instance associated with the given CID.

Parameters:
cid - The CID to use as search key.

Returns:
The ClassInfo instance (or null).


getClassInfos

java.util.Iterator<ClassInfo> getClassInfos()
Returns an iterator over all ClassInfo instances managed by this PackageManager.

Returns:
An iterator over all ClassInfo instances managed by this PackageManager.


initCID

void initCID(ClassInfo classInfo)
For internal use only.


addPackage

void addPackage(org.eclipse.emf.ecore.EPackage ePackage,
                java.lang.String mappingFile)
For internal use only.


addPackageListener

void addPackageListener(PackageListener listener)
Adds a PackageListener to the list of listeners to be notified about packages newly added to this PackageManager.

Parameters:
listener - The PackageListener to be added.


removePackageListener

void removePackageListener(PackageListener listener)
Removes a PackageListener from the list of listeners to be notified about packages newly added to this PackageManager.

Parameters:
listener - The PackageListener to be removed.


announceNewPackages

void announceNewPackages(org.eclipse.net4j.core.Channel channel)
For internal use only.


getOidEncoder

OIDEncoder getOidEncoder()
For internal use only.

TODO Move this out of PackageManager.


getAttributeConverter

AttributeConverter getAttributeConverter()
For internal use only.

TODO Move this out of PackageManager.


Copyright (c) 2004, 2005, 2006 Eike Stepper, Germany.
All Rights Reserved.