| java.lang.Object org.objectweb.speedo.metadata.SpeedoElement org.objectweb.speedo.metadata.SpeedoPackage
SpeedoPackage | public class SpeedoPackage extends SpeedoElement (Code) | | Describes a package which contains persistence capable classes.
author: S.Chassande-Barrioz |
Method Summary | |
public void | addClass(Object clazz, boolean failsOnError, Logger logger) Adds a class descriptor to the package descriptor. | public void | addSequence(Object sequence) Adds a sequence descriptor to the package descriptor. | public String | toString() Transforms a SpeedoPackage into a String. |
classes | public Map classes(Code) | | Persistence capable classes descriptors of the package. The HashMap key
is the class name.
|
sequences | public Map sequences(Code) | | Sequences descriptors of the package. The HashMap key
is the sequence name.
|
SpeedoPackage | public SpeedoPackage()(Code) | | |
addClass | public void addClass(Object clazz, boolean failsOnError, Logger logger) throws SpeedoException(Code) | | Adds a class descriptor to the package descriptor.
Parameters: clazz - class to add. Parameters: failsOnError - if an error provoques an exception or a warning message. Parameters: logger - logger where to put warning message. exception: SpeedoException - If a field of the class descriptor is alreadydefined into the package descriptor. |
addSequence | public void addSequence(Object sequence)(Code) | | Adds a sequence descriptor to the package descriptor.
If a sequence with the same name is already registered, nothing is done.
Parameters: sequence - the sequence to add. |
toString | public String toString()(Code) | | Transforms a SpeedoPackage into a String.
the corresponding String. |
|
|