Revision 9944
Added by Jing Tao over 8 years ago
src/edu/ucsb/nceas/metacat/service/XMLNoNamespaceSchema.java | ||
---|---|---|
19 | 19 |
*/ |
20 | 20 |
package edu.ucsb.nceas.metacat.service; |
21 | 21 |
|
22 |
import edu.ucsb.nceas.metacat.DocumentImpl; |
|
22 | 23 |
|
24 |
|
|
23 | 25 |
/** |
24 | 26 |
* This class represents the information for a schema without a namespace |
25 | 27 |
* @author tao |
... | ... | |
27 | 29 |
*/ |
28 | 30 |
public class XMLNoNamespaceSchema extends XMLSchema { |
29 | 31 |
private String noNamespaceSchemaLocation = null; |
32 |
private static final String type = DocumentImpl.NONAMESPACESCHEMA; |
|
30 | 33 |
|
31 | 34 |
/** |
32 | 35 |
* Constructor of the object |
... | ... | |
40 | 43 |
this.noNamespaceSchemaLocation = noNamespaceSchemaLocation; |
41 | 44 |
} |
42 | 45 |
|
46 |
/** |
|
47 |
* Get the no-namespace-schemal-location uri |
|
48 |
* @return |
|
49 |
*/ |
|
43 | 50 |
public String getNoNamespaceSchemaLocation() { |
44 | 51 |
return noNamespaceSchemaLocation; |
45 | 52 |
} |
53 |
|
|
54 |
/** |
|
55 |
* Set the no-namespace-schemal-location uri |
|
56 |
* @param noNamespaceSchemaLocation |
|
57 |
*/ |
|
46 | 58 |
public void setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation) { |
47 | 59 |
this.noNamespaceSchemaLocation = noNamespaceSchemaLocation; |
48 | 60 |
} |
61 |
|
|
62 |
/** |
|
63 |
* Return the type of schema. It always is "NoNamespaceSchema". |
|
64 |
* @return |
|
65 |
*/ |
|
66 |
public static String getType() { |
|
67 |
return type; |
|
68 |
} |
|
49 | 69 |
} |
Also available in: Unified diff
Add a method to get the type.