Revision 5340
Added by berkley almost 14 years ago
XMLSchemaService.java | ||
---|---|---|
128 | 128 |
* |
129 | 129 |
* @return a list of XMLSchema objects holding registered schema information |
130 | 130 |
*/ |
131 |
public static Vector<XMLSchema> getRegisteredSchemaList() {
|
|
131 |
public Vector<XMLSchema> getRegisteredSchemaList() { |
|
132 | 132 |
return registeredSchemaList; |
133 | 133 |
} |
134 | 134 |
|
... | ... | |
140 | 140 |
* @return a string that holds space delimited registered namespaces and |
141 | 141 |
* locations. |
142 | 142 |
*/ |
143 |
public static String getNameSpaceAndLocationString() {
|
|
143 |
public String getNameSpaceAndLocationString() { |
|
144 | 144 |
return nameSpaceAndLocationString; |
145 | 145 |
} |
146 | 146 |
|
... | ... | |
150 | 150 |
* |
151 | 151 |
* @return a list that holds registered namespaces. |
152 | 152 |
*/ |
153 |
public static Vector<String> getNameSpaceList() {
|
|
153 |
public Vector<String> getNameSpaceList() { |
|
154 | 154 |
return nameSpaceList; |
155 | 155 |
} |
156 | 156 |
|
... | ... | |
162 | 162 |
* @return true if the xml.useFullSchemaValidation property is set to true, |
163 | 163 |
* false otherwise. |
164 | 164 |
*/ |
165 |
public static boolean useFullSchemaValidation() {
|
|
165 |
public boolean useFullSchemaValidation() { |
|
166 | 166 |
return useFullSchemaValidation; |
167 | 167 |
} |
168 | 168 |
|
... | ... | |
170 | 170 |
* sets the UseFullSchemaValidation variable. The only way this should be |
171 | 171 |
* set is in the constructor or the refresh methods. |
172 | 172 |
*/ |
173 |
private static void setUseFullSchemaValidation() throws PropertyNotFoundException {
|
|
173 |
private void setUseFullSchemaValidation() throws PropertyNotFoundException { |
|
174 | 174 |
String strUseFullSchemaValidation = |
175 | 175 |
PropertyService.getProperty("xml.useFullSchemaValidation"); |
176 | 176 |
useFullSchemaValidation = Boolean.valueOf(strUseFullSchemaValidation); |
... | ... | |
181 | 181 |
* xml_catalog table and then makes sure the schema actually exists and is |
182 | 182 |
* readable on disk. |
183 | 183 |
*/ |
184 |
public static void populateRegisteredSchemaList() {
|
|
184 |
public void populateRegisteredSchemaList() { |
|
185 | 185 |
DBConnection conn = null; |
186 | 186 |
int serialNumber = -1; |
187 | 187 |
PreparedStatement pstmt = null; |
Also available in: Unified diff
refactored XMLSchemaService to not have static methods. made the CrudServiceTest more robust.