/** * Compute the full name from a name. * * If the name identifies a primitive type, return the name. * If the name is unqualified, the full name is computed by * pre-pending the current namespace and "." to the input name. * If the name is a full name, i.e. it contains a ".", then * return the name. * * @param name as input to compute the full name. * @return the computed full name. */ 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; } else { fullname = getCurrentNamespace() + "." + name; } return fullname; }