01: package uk.org.ponder.saxalizer;
02:
03: /**
04: * The <code>LocalEntityResolver</code> maps a DTD reference onto a locally
05: * cached copy. These objects are stored inside an
06: * <code>EntityResolverStash</code>.
07: */
08:
09: public class LocalEntityResolver {
10: int IDtype;
11: String ID;
12: String path;
13:
14: /**
15: * Sets the type of the ID for this resolver. This should be either
16: * <code>public</code> (recommended) or <code>system</code>.
17: *
18: * @param IDtypestring The required ID type.
19: */
20:
21: public void setIDType(String IDtypestring) {
22: if (IDtypestring.equalsIgnoreCase("public")) {
23: this .IDtype = EntityResolverStash.PUBLIC_ID;
24: } else
25: IDtype = EntityResolverStash.SYSTEM_ID;
26: }
27:
28: /**
29: * Sets the entity ID for this resolver.
30: *
31: * @param ID The required entity ID.
32: */
33: public void setID(String ID) {
34: this .ID = ID;
35: }
36:
37: /**
38: * Sets the URL from which the required entity may be resolved.
39: *
40: * @param entityURL The required entity URL.
41: */
42: public void setPath(String path) {
43: this.path = path;
44: }
45:
46: }
|