01: package com.jclark.xml.parse;
02:
03: import java.util.Locale;
04:
05: /**
06: *
07: * @version $Revision: 1.1 $ $Date: 1998/06/25 10:52:26 $
08: */
09: public class ParserBase {
10: protected EntityManager entityManager = new EntityManagerImpl();
11: protected Locale locale = Locale.getDefault();
12:
13: public void setEntityManager(EntityManager entityManager) {
14: if (entityManager == null)
15: throw new NullPointerException();
16: this .entityManager = entityManager;
17: }
18:
19: public void setLocale(Locale locale) {
20: if (locale == null)
21: throw new NullPointerException();
22: this.locale = locale;
23: }
24: }
|