[prev in list] [next in list] [prev in thread] [next in thread]
List: slide-dev
Subject: cvs commit: jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core NamespaceRegistryImpl.java
From: stefan () apache ! org
Date: 2004-07-30 15:33:01
Message-ID: 20040730153301.46479.qmail () minotaur ! apache ! org
[Download RAW message or body]
stefan 2004/07/30 08:33:01
Modified: proposals/jcrri/src/org/apache/slide/jcr/core
NamespaceRegistryImpl.java
Log:
jcrri
Revision Changes Path
1.10 +14 -2 \
jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/NamespaceRegistryImpl.java
Index: NamespaceRegistryImpl.java
===================================================================
RCS file: /home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/NamespaceRegistryImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- NamespaceRegistryImpl.java 30 Jul 2004 06:50:29 -0000 1.9
+++ NamespaceRegistryImpl.java 30 Jul 2004 15:33:01 -0000 1.10
@@ -73,16 +73,28 @@
private static final String NS_REG_RESOURCE = "ns_reg.properties";
+ // reserved namespaces that must not be used or redefined
+ public static final String NS_XML_PREFIX = "xml";
+ public static final String NS_XML_URI = \
"http://www.w3.org/XML/1998/namespace"; + public static final String \
NS_XMLNS_PREFIX = "xmlns"; + public static final String NS_XMLNS_URI = \
"http://www.w3.org/2000/xmlns/"; +
private static final HashSet reservedPrefixes = new HashSet();
private static final HashSet reservedURIs = new HashSet();
static {
+ // reserved prefixes
+ reservedPrefixes.add(NS_XML_PREFIX);
+ reservedPrefixes.add(NS_XMLNS_PREFIX);
// predefined (e.g. built-in) prefixes
reservedPrefixes.add(NS_JCR_PREFIX);
reservedPrefixes.add(NS_NT_PREFIX);
reservedPrefixes.add(NS_MIX_PREFIX);
reservedPrefixes.add(NS_PT_PREFIX);
reservedPrefixes.add(NS_SV_PREFIX);
+ // reserved namespace URI's
+ reservedURIs.add(NS_XML_URI);
+ reservedURIs.add(NS_XMLNS_URI);
// predefined (e.g. built-in) namespace URI's
reservedURIs.add(NS_JCR_URI);
reservedURIs.add(NS_NT_URI);
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic