1 19 package org.openharmonise.commons.xml.namespace; 20 21 29 public class NamespaceType { 30 31 34 private String m_sPrefix = null; 35 36 39 private String m_sURI = null; 40 41 42 45 public static final NamespaceType OHRM = new NamespaceType("ohrm", "OHRM"); 46 47 50 public static final NamespaceType OHRM_RBS = new NamespaceType("ohrm_rbs", "OHRM_RBS"); 51 52 55 public static final NamespaceType OHRM_WORKFLOW = new NamespaceType("ohflw", "OHRM_WORKFLOW"); 56 57 60 public static final NamespaceType OHRM_DOC = new NamespaceType("ohrmd","http://www.openharmonise.org/harmonise/document"); 61 62 65 public static final NamespaceType DAV = new NamespaceType("D", "DAV:"); 66 67 70 public static final NamespaceType XML_SCHEMA = new NamespaceType("xsd", "http://www.w3.org/2001/XMLSchema"); 71 72 75 public static final NamespaceType XML = new NamespaceType("xml", "http://www.w3.org/XML/1998/namespace"); 76 77 80 public static final NamespaceType XML_SCHEMA_INSTANCE = new NamespaceType("xsi", "http://www.w3.org/2001/XMLSchema-instance"); 81 82 85 public static final NamespaceType LOM_XML = new NamespaceType("lom", "http://www.imsglobal.org/xsd/imsmd_v1p2"); 86 87 90 public static final NamespaceType COL_RDF = new NamespaceType("col", "hhttp://www.dfes.gov.uk/curriculumonline/ts/metadata/rdf/col#"); 91 92 95 public static final NamespaceType LOM_CLS = new NamespaceType("lom_cls", "http://www.imsproject.org/rdf/imsmd_classificationv1p2#"); 96 97 100 public static final NamespaceType RDF = new NamespaceType("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#"); 101 102 105 public static final NamespaceType RDF_SCHEMA = new NamespaceType("rdfs", "http://www.w3.org/2000/01/rdf-schema#"); 106 107 110 public static final NamespaceType XSLT = new NamespaceType("xsl", "http://www.w3.org/1999/XSL/Transform"); 111 112 115 public static final NamespaceType XSLFO = new NamespaceType("fo", "http://www.w3.org/1999/XSL/Format"); 116 117 120 public static final NamespaceType SOAP_ENCODING = new NamespaceType("enc", "http://www.w3.org/2003/05/soap-encoding"); 121 122 125 public static final NamespaceType SVG = new NamespaceType("svg", "http://www.w3.org/2000/svg"); 126 127 130 public static final NamespaceType XINCLUDE = new NamespaceType("xi","http://www.w3.org/2001/XInclude"); 131 132 138 protected NamespaceType(String sPrefix, String sURI) { 139 super(); 140 this.m_sPrefix = sPrefix; 141 this.m_sURI = sURI; 142 } 143 144 149 public String getPrefix() { 150 return this.m_sPrefix; 151 } 152 153 158 public String getURI() { 159 return this.m_sURI; 160 } 161 162 165 public String toString() { 166 return new StringBuffer (this.m_sPrefix).append(":").append(this.m_sURI).toString(); 167 } 168 169 } 170 | Popular Tags |