@Test public void schemaFieldDisplayNameTest() throws URISyntaxException, TeslaSchemaException, NoSuchAlgorithmException, SAXException, IOException, ParserConfigurationException { Schema schema = parseSchema("src/test/resources/fielddisplayname.tml"); Collection<UserType> types = schema.getUserTypes(); assertTrue(types.iterator().next().isClass()); Class class1 = (Class) types.iterator().next(); List<Field> fields = class1.getAllFields(); assertEquals("FieldDisplayName", fields.get(0).getDisplayName()); }
public Collection<UserType> getUserTypes() { Collection<UserType> uts = new ArrayList<UserType>(); for (Type t : typeMap.values()) { if (t.isUserType()) { uts.add((UserType) t); } } return uts; }
Schema { public Collection<UserType> getUserTypes() { Collection<UserType> uts = new ArrayList<UserType>(); for (Type t : typeMap.values()) { if (t.isUserType()) { uts.add((UserType) t); } } return uts; } }
Schema { public Collection<UserType> getUserTypes() { Collection<UserType> uts = new ArrayList<UserType>(); for (Type t : typeMap.values()) { if (t.isUserType()) { uts.add((UserType) t); } } return uts; }  }
Schema { public Collection<UserType> getUserTypes() { Collection<UserType> uts = new ArrayList<UserType>(); for (Type t : typeMap.values()) { if (t.isUserType()) { uts.add((UserType) t); } } return uts; }  static Schema build(String path); void save(OutputStream os); Collection<Type> getTypes(); Collection<UserType> getUserTypes(); Type findType(String idOrName); SchemaVersion getVersion(); Collection<Type> getDerivedTypes(String baseTypeId,
			boolean directOnly); Collection<Type> getDerivedTypes(Type baseType,
			boolean directOnly); }
Schema { public Collection<UserType> getUserTypes() { Collection<UserType> uts = new ArrayList<UserType>(); for (Type t : typeMap.values()) { if (t.isUserType()) { uts.add((UserType) t); } } return uts; }  static Schema build(String path); void save(OutputStream os); Collection<Type> getTypes(); Collection<UserType> getUserTypes(); Type findType(String idOrName); SchemaVersion getVersion(); Collection<Type> getDerivedTypes(String baseTypeId,
			boolean directOnly); Collection<Type> getDerivedTypes(Type baseType,
			boolean directOnly); static final String TYPE_ID_TOKENIZER_PATTERN; }