Project

General

Profile

« Previous | Next » 

Revision 9943

Added by Jing Tao almost 8 years ago

Add a method to get the type of the schema.

View differences:

src/edu/ucsb/nceas/metacat/service/XMLSchema.java
28 28

  
29 29
import org.apache.log4j.Logger;
30 30

  
31
import edu.ucsb.nceas.metacat.DocumentImpl;
31 32
import edu.ucsb.nceas.metacat.util.SystemUtil;
32 33
import edu.ucsb.nceas.utilities.FileUtil;
33 34
import edu.ucsb.nceas.utilities.PropertyNotFoundException;
......
41 42
	private String localFileDir = null;
42 43
	private String formatId = null;
43 44
	
45
	private static final String type = DocumentImpl.SCHEMA;
46
	
44 47

  
45 48
    private Logger logMetacat = Logger.getLogger(XMLSchema.class);
46 49

  
......
222 225
    public void setFormatId(String formatId) {
223 226
            this.formatId = formatId;
224 227
    }
228
    
229
    /**
230
     * Return the type of the schema. It always is "Schema"
231
     * @return
232
     */
233
    public static String getType() {
234
        return type;
235
    }
225 236
}

Also available in: Unified diff