org.objectweb.speedo.metadata
Class SpeedoMetaInfo

java.lang.Object
  extended by org.objectweb.speedo.metadata.SpeedoMetaInfo

public class SpeedoMetaInfo
extends java.lang.Object

Represents the root of the Speedo meta information. This root contains the map of SpeedoXMLDescriptor meta object.

Author:
S.Chassande-Barrioz

Field Summary
 java.util.Map xmlDescriptors
          This fields is used by Speedo to reference the SpeedoXMLDescriptor.
 
Constructor Summary
SpeedoMetaInfo()
           
 
Method Summary
 SpeedoClass getSpeedoClass(java.lang.String className)
          Found into all XMLDescriptor the first a Speedo meta object corresponding to a class name.
 SpeedoClass getSpeedoClass(java.lang.String className, SpeedoPackage sp)
          Found into all XMLDescriptor the first a Speedo meta object corresponding to a class name.
 SpeedoClass getSpeedoClass(java.lang.String className, SpeedoXMLDescriptor xml)
          Found into all XMLDescriptor the first a Speedo meta object corresponding to a class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlDescriptors

public java.util.Map xmlDescriptors
This fields is used by Speedo to reference the SpeedoXMLDescriptor. It is completed by the JDOParser or by the EJBParser. key = XML descriptor File Name value = SpeedoXMLDescriptor

Constructor Detail

SpeedoMetaInfo

public SpeedoMetaInfo()
Method Detail

getSpeedoClass

public SpeedoClass getSpeedoClass(java.lang.String className)
Found into all XMLDescriptor the first a Speedo meta object corresponding to a class name.

Parameters:
className - is a name of a persistent class
Returns:
a SpeedoClass instance if found, otherwise null.

getSpeedoClass

public SpeedoClass getSpeedoClass(java.lang.String className,
                                  SpeedoXMLDescriptor xml)
Found into all XMLDescriptor the first a Speedo meta object corresponding to a class name.

Parameters:
className - is a name of a persistent class
xml - is the xmldescriptor which could contain the SpeedoClass
Returns:
a SpeedoClass instance if found, otherwise null.

getSpeedoClass

public SpeedoClass getSpeedoClass(java.lang.String className,
                                  SpeedoPackage sp)
Found into all XMLDescriptor the first a Speedo meta object corresponding to a class name.

Parameters:
className - is a name of a persistent class
sp - is the package which could contain the SpeedoClass
Returns:
a SpeedoClass instance if found, otherwise null.