code: public static String[] getNames(String datatypeKey)
      {
      	Set<String> names = new HashSet<String>();
      	Datatype datatype = getDatatype(datatypeKey);
      	names.add(datatype.getName());
      	Synonyms synonyms = datatype.getSynonyms();
      	if(synonyms != null)
      	  for(String name : synonyms.getSynonym()) {
      		names.add(name);
      	  }
      	return names.toArray(ARRAY_OF_STRINGS);
      }
docs: Retrieves all the synonyms (incl. the preferred name) of a data type.
  
  @param datatypeKey ID, any name, or URI (URL or URN) of a data type
  @return all the data type's synonyms (incl. preferred name)