org.eclipse.emf.cdo.client
Interface ClassInfo

All Known Implementing Classes:
ClassInfoImpl

public interface ClassInfo

Stores CDO related information for an associated EClass instance.

The most important information is the mapping specification that is determined from a mapping file or from model annotations. A ClassInfo instance is always contained in a PackageInfo instance.

A server assigned class identifier (CID) uniquely identifies a ClassInfo instance within the scope of a PackageManager.

This interface is not expected to be implemented by clients.

See Also:
EClass, ClassMapping, PackageInfo

Method Summary
 org.eclipse.emf.ecore.EReference[] getAllReferences()
          Returns the name of this ClassInfo.
 AttributeInfo getAttributeInfo(org.eclipse.emf.ecore.EAttribute eAttribute)
          Returns the AttributeInfo instance associated with the given EAttribute instance.
 AttributeInfo getAttributeInfo(int feature)
          Returns the AttributeInfo instance associated with the given Feature ID.
 AttributeInfo[] getAttributeInfos()
          Returns a handle to the internal array of the AttributeInfo instances contained by this ClassInfo.
 int getCID()
          Returns the CID of this ClassInfo.
 org.eclipse.emf.ecore.EClass getEClass()
          Returns the EClass associated with this ClassInfo.
 java.lang.String getFullName()
          Returns the fully qualified name of this ClassInfo.
 ClassMapping getMapping()
          Returns the CDO mapping specification associated with this ClassInfo.
 java.lang.String getName()
          Returns the name of this ClassInfo.
 PackageInfo getPackageInfo()
          Returns the PackageInfo containing this ClassInfo.
 ClassInfo getParent()
          Returns the parent ClassInfo of this ClassInfo.
 void setCID(int cid)
          For internal use only.
 

Method Detail

getCID

int getCID()
Returns the CID of this ClassInfo.

Returns:
The CID of this ClassInfo.

setCID

void setCID(int cid)
For internal use only.


getName

java.lang.String getName()
Returns the name of this ClassInfo.

Identical to calling getEClass().getName().

Returns:
The name of this ClassInfo.

getFullName

java.lang.String getFullName()
Returns the fully qualified name of this ClassInfo.

Identical to calling getPackageInfo().getFullName() + "." + getName().

Returns:
The fully qualified of this ClassInfo.

getEClass

org.eclipse.emf.ecore.EClass getEClass()
Returns the EClass associated with this ClassInfo.

Returns:
The EClass associated with this ClassInfo.

getParent

ClassInfo getParent()
Returns the parent ClassInfo of this ClassInfo.

Returns:
The parent ClassInfo of this ClassInfo.

getMapping

ClassMapping getMapping()
Returns the CDO mapping specification associated with this ClassInfo.

Returns:
The CDO mapping specification} associated with this ClassInfo.

getPackageInfo

PackageInfo getPackageInfo()
Returns the PackageInfo containing this ClassInfo.

Returns:
The PackageInfo containing this ClassInfo.

getAttributeInfos

AttributeInfo[] getAttributeInfos()
Returns a handle to the internal array of the AttributeInfo instances contained by this ClassInfo.

Model inheritance is not taken into account, attributes contained in the ClassInfo instance returned by getParent() are excluded from the result.

Returns:
A handle to the internal array of the AttributeInfo instances contained by this ClassInfo.


getAllReferences

org.eclipse.emf.ecore.EReference[] getAllReferences()
Returns the name of this ClassInfo.

Identical to calling getEClass().getName().

Returns:
The name of this ClassInfo.

getAttributeInfo

AttributeInfo getAttributeInfo(org.eclipse.emf.ecore.EAttribute eAttribute)
Returns the AttributeInfo instance associated with the given EAttribute instance.

Parameters:
eAttribute - The associated EAttribute instance.

Returns:
The AttributeInfo instance (or null).


getAttributeInfo

AttributeInfo getAttributeInfo(int feature)
Returns the AttributeInfo instance associated with the given Feature ID.

Parameters:
feature - The associated Feature ID.

Returns:
The AttributeInfo instance (or null).


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