@Test public void build() { Element affNode = createAffNode(); CermineAffiliation cAff = builder.build(affNode); assertEquals("PolandInterdyscyplinarne Centrum ModelowaniaUniwersytet Warszawski Prosta 69, Warszawa", cAff.getRawText()); assertEquals("Poland", cAff.getCountryName()); assertEquals("PL", cAff.getCountryCode()); assertEquals("Prosta 69, Warszawa", cAff.getAddress()); assertEquals("Interdyscyplinarne Centrum Modelowania, Uniwersytet Warszawski", cAff.getInstitution()); }
public CermineAffiliation build(Element affNode) { Preconditions.checkNotNull(affNode); CermineAffiliation aff = new CermineAffiliation(); extractRawText(affNode, aff); extractInstitution(affNode, aff); extractCountry(affNode, aff); extractAddress(affNode, aff); return aff; }
CermineAffiliationBuilder { public CermineAffiliation build(Element affNode) { Preconditions.checkNotNull(affNode); CermineAffiliation aff = new CermineAffiliation(); extractRawText(affNode, aff); extractInstitution(affNode, aff); extractCountry(affNode, aff); extractAddress(affNode, aff); return aff; } }
CermineAffiliationBuilder { public CermineAffiliation build(Element affNode) { Preconditions.checkNotNull(affNode); CermineAffiliation aff = new CermineAffiliation(); extractRawText(affNode, aff); extractInstitution(affNode, aff); extractCountry(affNode, aff); extractAddress(affNode, aff); return aff; }  }
CermineAffiliationBuilder { public CermineAffiliation build(Element affNode) { Preconditions.checkNotNull(affNode); CermineAffiliation aff = new CermineAffiliation(); extractRawText(affNode, aff); extractInstitution(affNode, aff); extractCountry(affNode, aff); extractAddress(affNode, aff); return aff; }  CermineAffiliation build(Element affNode); }
CermineAffiliationBuilder { public CermineAffiliation build(Element affNode) { Preconditions.checkNotNull(affNode); CermineAffiliation aff = new CermineAffiliation(); extractRawText(affNode, aff); extractInstitution(affNode, aff); extractCountry(affNode, aff); extractAddress(affNode, aff); return aff; }  CermineAffiliation build(Element affNode);  }