private ModelDescription getDescriptionFromObject ( EDBObject obj ) { String modelName = obj . getString ( EDBConstants . MODEL_TYPE ) ; String modelVersion = obj . getString ( EDBConstants . MODEL_TYPE_VERSION ) ; if ( modelName == null || modelVersion == null ) { throw new IllegalArgumentException ( "The object " + obj . getOID ( ) + " contains no model information" ) ; } return new ModelDescription ( modelName , modelVersion ) ; }
Extracts the required values to lookup a model class from the given EDBObject . If this object does not contain the required information an IllegalArgumentException is thrown .