1 package com.xtremelabs.robolectric.res; 2 3 import org.w3c.dom.Document; 4 5 import java.io.File; 6 7 public abstract class XmlLoader { 8 protected ResourceExtractor resourceExtractor; 9 protected boolean strictI18n = false; 10 XmlLoader(ResourceExtractor resourceExtractor)11 public XmlLoader(ResourceExtractor resourceExtractor) { 12 this.resourceExtractor = resourceExtractor; 13 } 14 processResourceXml(File xmlFile, Document document, boolean isSystem)15 protected abstract void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Exception; 16 setStrictI18n(boolean strict)17 public void setStrictI18n(boolean strict) { 18 this.strictI18n = strict; 19 } 20 } 21