OSDN Git Service

502cd96d3f4777e1add20f8eef341d275d20b351
[mikutoga/Pmd2XML.git] / src / main / java / jp / sfjp / mikutoga / pmd / xml / Schema101009.java
1 /*
2  * xml resources for PMD-XML
3  *
4  * License : The MIT License
5  * Copyright(c) 2010 MikuToga Partners
6  */
7
8 package jp.sfjp.mikutoga.pmd.xml;
9
10 import java.net.URI;
11 import java.net.URISyntaxException;
12 import jp.sourceforge.mikutoga.xml.LocalSchema;
13
14 /**
15  * 101009形式XML各種リソースの定義。
16  */
17 public class Schema101009 extends LocalSchema{
18
19     /** 名前空間。 */
20     public static final String NS_PMDXML =
21             "http://mikutoga.sourceforge.jp/xml/ns/pmdxml/101009";
22     /** 公開スキーマ。 */
23     public static final String SCHEMA_PMDXML =
24             "http://mikutoga.sourceforge.jp/xml/xsd/pmdxml-101009.xsd";
25     /** 版数。 */
26     public static final String VER_PMDXML =
27             "101009";
28     /** 代替リソースの相対名。 */
29     public static final String LOCAL_SCHEMA_PMDXML =
30             "resources/pmdxml-101009.xsd";
31
32     private static final URI URI_SCHEMA_PMDXML = URI.create(SCHEMA_PMDXML);
33     private static final URI RES_SCHEMA_PMDXML;
34
35     private static final Class<?> THISCLASS = Schema101009.class;
36
37     static{
38         try{
39             RES_SCHEMA_PMDXML =
40                     THISCLASS.getResource(LOCAL_SCHEMA_PMDXML).toURI();
41         }catch(URISyntaxException e){
42             throw new ExceptionInInitializerError(e);
43         }
44     }
45
46
47     /**
48      * 隠しコンストラクタ。
49      */
50     public Schema101009(){
51         super();
52         assert this.getClass() == THISCLASS;
53         return;
54     }
55
56
57     /**
58      * {@inheritDoc}
59      * @return {@inheritDoc}
60      */
61     @Override
62     public URI getOriginalSchema(){
63         return URI_SCHEMA_PMDXML;
64     }
65
66     /**
67      * {@inheritDoc}
68      * @return {@inheritDoc}
69      */
70     @Override
71     public URI getLocalSchema(){
72         return RES_SCHEMA_PMDXML;
73     }
74
75 }