|
From: Andreas V. <a_...@us...> - 2004-04-14 20:18:50
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/item In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25819/src/org/cobricks/item Modified Files: Item.java Log Message: Index: Item.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/item/Item.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- Item.java 14 Apr 2004 18:47:24 -0000 1.18 +++ Item.java 14 Apr 2004 20:18:42 -0000 1.19 @@ -212,7 +212,8 @@ private void initFromXML(String xml, ItemManager itemManager) throws CobricksException { - Map attrs = itemManager.extractFromXML(xml, alreadyInstantiated, this); + Map attrs = ItemAttrs.extractFromXML(xml, alreadyInstantiated, this, + itemManager); if (attrs == null) { logger.warn("Item(String, ItemManager): Couldn't instantiate Item"); } else { @@ -234,8 +235,8 @@ this.setFromMap(checkedAttrs); this.usedLanguages.add(this.defaultLanguage); } else { - logger.warn("The item out of the XML didn't pass the ontology" + - "check. Possible reason: Inconsistency."); + logger.warn("The item out of the XML didn't pass the ontology " + + "check. Possible reason: Inconsistency."); throw new CobricksException(itemManager.getComponentId(), Item.XML_INSTANTIATION_EXCEPTION_CODE, "Ontology check failed"); } |