@ Override public String computeFullName ( String name ) { String fullname ; DataSchema schema = DataSchemaUtil . typeStringToPrimitiveDataSchema ( name ) ; if ( schema != null ) { fullname = name ; } else if ( Name . isFullName ( name ) || getCurrentNamespace ( ) . isEmpty ( ) ) { fullname = name ; // already a fullname } else if ( currentImports . containsKey ( name ) ) { // imported names are higher precedence than names in current namespace fullname = currentImports . get ( name ) . getFullName ( ) ; } else { fullname = getCurrentNamespace ( ) + "." + name ; // assumed to be in current namespace } return fullname ; }
Extended fullname computation to handle imports