Revision 4442
Added by daigle over 15 years ago
XMLSchemaService.java | ||
---|---|---|
45 | 45 |
import edu.ucsb.nceas.utilities.PropertyNotFoundException; |
46 | 46 |
import edu.ucsb.nceas.utilities.StringUtil; |
47 | 47 |
|
48 |
public class XMLSchemaService implements ServiceInterface {
|
|
48 |
public class XMLSchemaService extends BaseService {
|
|
49 | 49 |
|
50 | 50 |
public static final String NAMESPACEKEYWORD = "xmlns"; |
51 | 51 |
|
... | ... | |
98 | 98 |
return xmlSchemaService; |
99 | 99 |
} |
100 | 100 |
|
101 |
public boolean refreshable() { |
|
102 |
return true; |
|
103 |
} |
|
104 |
|
|
101 | 105 |
/** |
102 | 106 |
* refresh the persistant values in this service. |
103 | 107 |
*/ |
104 |
public static void refresh() {
|
|
108 |
protected void doRefresh() {
|
|
105 | 109 |
try { |
106 | 110 |
populateRegisteredSchemaList(); |
107 | 111 |
setUseFullSchemaValidation(); |
... | ... | |
229 | 233 |
*/ |
230 | 234 |
private static void createRegisteredNameSpaceAndLocationString() { |
231 | 235 |
boolean firstRow = true; |
236 |
nameSpaceAndLocationString = ""; |
|
237 |
|
|
232 | 238 |
for (XMLSchema xmlSchema : registeredSchemaList) { |
233 | 239 |
if (!firstRow) { |
234 | 240 |
nameSpaceAndLocationString += " "; |
... | ... | |
243 | 249 |
* create a lsit of all namespaces in the registered schema list. |
244 | 250 |
*/ |
245 | 251 |
private static void createRegisteredNameSpaceList() { |
252 |
nameSpaceList = new Vector<String>(); |
|
246 | 253 |
for (XMLSchema xmlSchema : registeredSchemaList) { |
247 | 254 |
nameSpaceList.add(xmlSchema.getFileNamespace()); |
248 | 255 |
} |
Also available in: Unified diff
Change the ServiceInterface into a base class called BaseService. All services extend BaseService.