private DefBase getDefForLevel ( String level ) { if ( LEVEL_CLASS . equals ( level ) ) { return _curClassDef ; } else if ( LEVEL_FIELD . equals ( level ) ) { return _curFieldDef ; } else if ( LEVEL_REFERENCE . equals ( level ) ) { return _curReferenceDef ; } else if ( LEVEL_COLLECTION . equals ( level ) ) { return _curCollectionDef ; } else if ( LEVEL_OBJECT_CACHE . equals ( level ) ) { return _curObjectCacheDef ; } else if ( LEVEL_INDEX_DESC . equals ( level ) ) { return _curIndexDescriptorDef ; } else if ( LEVEL_TABLE . equals ( level ) ) { return _curTableDef ; } else if ( LEVEL_COLUMN . equals ( level ) ) { return _curColumnDef ; } else if ( LEVEL_FOREIGNKEY . equals ( level ) ) { return _curForeignkeyDef ; } else if ( LEVEL_INDEX . equals ( level ) ) { return _curIndexDef ; } else if ( LEVEL_PROCEDURE . equals ( level ) ) { return _curProcedureDef ; } else if ( LEVEL_PROCEDURE_ARGUMENT . equals ( level ) ) { return _curProcedureArgumentDef ; } else { return null ; } }
Returns the current definition on the indicated level .