Project

General

Profile

« Previous | Next » 

Revision 9940

Added by Jing Tao about 8 years ago

Add a new class represent a schema without a namespace.

View differences:

src/edu/ucsb/nceas/metacat/service/XMLNoNamespaceSchema.java
1
/**
2
 *  '$RCSfile$'
3
 *  Copyright: 2016 Regents of the University of California and the
4
 *             National Center for Ecological Analysis and Synthesis
5
 *    Authors: Jing Tao
6
 * This program is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; either version 2 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
 */
20
package edu.ucsb.nceas.metacat.service;
21

  
22

  
23
/**
24
 * This class represents the information for a schema without a namespace
25
 * @author tao
26
 *
27
 */
28
public class XMLNoNamespaceSchema extends XMLSchema {
29
    private String noNamespaceSchemaLocation = null;
30
   
31
    /**
32
     * Constructor of the object
33
     * @param noNamespaceSchemaLocation  the uri of the noNamespaceSchemaLocation of the schema
34
     * @param externalFileUri  the registered file url location for this schema
35
     * @param formatId  the format id of a xml instance of the schema
36
     */
37
    public XMLNoNamespaceSchema(String noNamespaceSchemaLocation, String externalFileUri, String formatId) {
38
        //since it doesn't have a namespace, the null value will be set for the namespace
39
        super(null, externalFileUri, formatId);
40
        this.noNamespaceSchemaLocation = noNamespaceSchemaLocation;
41
    }
42
    
43
    public String getNoNamespaceSchemaLocation() {
44
        return noNamespaceSchemaLocation;
45
    }
46
    public void setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation) {
47
        this.noNamespaceSchemaLocation = noNamespaceSchemaLocation;
48
    }
49
}

Also available in: Unified diff