@Test public void schemaExtendsMultiClassTest() throws URISyntaxException, TeslaSchemaException, NoSuchAlgorithmException, SAXException, IOException, ParserConfigurationException { Schema schema = parseSchema("src/test/resources/extendsmulticlass.tml"); com.expedia.tesla.schema.Class extendedClass = (com.expedia.tesla.schema.Class) schema .findType("com.expedia.tesla.automation.component.schema.ExtendClass"); assertNotNull(extendedClass); List<Field> fields = extendedClass.getAllFields(); assertEquals(3, fields.size()); }
public Type findType(String idOrName) { if (typeMap.containsKey(idOrName)) { return typeMap.get(idOrName); } else if (typeMap.containsKey(Class.nameToId(idOrName))) { return typeMap.get(Class.nameToId(idOrName)); } else if (typeMap.containsKey(Enum.nameToId(idOrName))) { return typeMap.get(Enum.nameToId(idOrName)); } return null; }
Schema { public Type findType(String idOrName) { if (typeMap.containsKey(idOrName)) { return typeMap.get(idOrName); } else if (typeMap.containsKey(Class.nameToId(idOrName))) { return typeMap.get(Class.nameToId(idOrName)); } else if (typeMap.containsKey(Enum.nameToId(idOrName))) { return typeMap.get(Enum.nameToId(idOrName)); } return null; } }
Schema { public Type findType(String idOrName) { if (typeMap.containsKey(idOrName)) { return typeMap.get(idOrName); } else if (typeMap.containsKey(Class.nameToId(idOrName))) { return typeMap.get(Class.nameToId(idOrName)); } else if (typeMap.containsKey(Enum.nameToId(idOrName))) { return typeMap.get(Enum.nameToId(idOrName)); } return null; }  }
Schema { public Type findType(String idOrName) { if (typeMap.containsKey(idOrName)) { return typeMap.get(idOrName); } else if (typeMap.containsKey(Class.nameToId(idOrName))) { return typeMap.get(Class.nameToId(idOrName)); } else if (typeMap.containsKey(Enum.nameToId(idOrName))) { return typeMap.get(Enum.nameToId(idOrName)); } return null; }  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 Type findType(String idOrName) { if (typeMap.containsKey(idOrName)) { return typeMap.get(idOrName); } else if (typeMap.containsKey(Class.nameToId(idOrName))) { return typeMap.get(Class.nameToId(idOrName)); } else if (typeMap.containsKey(Enum.nameToId(idOrName))) { return typeMap.get(Enum.nameToId(idOrName)); } return null; }  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; }