KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > service > namespace > NamespaceService


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.service.namespace;
18
19
20
21 /**
22  * Namespace Service.
23  *
24  * The Namespace Service provides access to and definition of namespace
25  * URIs and Prefixes.
26  *
27  * @author David Caruana
28  */

29 public interface NamespaceService extends NamespacePrefixResolver
30 {
31     /** Default Namespace URI */
32     public static final String JavaDoc DEFAULT_URI = "";
33     
34     /** Default Namespace Prefix */
35     public static final String JavaDoc DEFAULT_PREFIX = "";
36
37     /** Default Alfresco URI */
38     public static final String JavaDoc ALFRESCO_URI = "http://www.alfresco.org";
39     
40     /** Default Alfresco Prefix */
41     public static final String JavaDoc ALFRESCO_PREFIX = "alf";
42     
43     /** Dictionary Model URI */
44     public static final String JavaDoc DICTIONARY_MODEL_1_0_URI = "http://www.alfresco.org/model/dictionary/1.0";
45     
46     /** Dictionary Model Prefix */
47     public static final String JavaDoc DICTIONARY_MODEL_PREFIX = "d";
48
49     /** System Model URI */
50     public static final String JavaDoc SYSTEM_MODEL_1_0_URI = "http://www.alfresco.org/model/system/1.0";
51
52     /** System Model Prefix */
53     public static final String JavaDoc SYSTEM_MODEL_PREFIX = "sys";
54
55     /** Content Model URI */
56     public static final String JavaDoc CONTENT_MODEL_1_0_URI = "http://www.alfresco.org/model/content/1.0";
57
58     /** Content Model Prefix */
59     public static final String JavaDoc CONTENT_MODEL_PREFIX = "cm";
60
61     /** Application Model URI */
62     public static final String JavaDoc APP_MODEL_1_0_URI = "http://www.alfresco.org/model/application/1.0";
63
64     /** Application Model Prefix */
65     public static final String JavaDoc APP_MODEL_PREFIX = "app";
66
67     /** Alfresco View Namespace URI */
68     public static final String JavaDoc REPOSITORY_VIEW_1_0_URI = "http://www.alfresco.org/view/repository/1.0";
69     
70     /** Alfresco View Namespace Prefix */
71     public static final String JavaDoc REPOSITORY_VIEW_PREFIX = "view";
72     
73     /** Alfresco security URI */
74     public static final String JavaDoc SECURITY_MODEL_1_0_URI = "http://www.alfresco.org/model/security/1.0";
75     
76     /** Alfresco security Prefix */
77     public static final String JavaDoc SECURITY_MODEL_PREFIX = "security";
78     
79     
80     /**
81      * Register a prefix for namespace uri.
82      *
83      * @param prefix
84      * @param uri
85      */

86     public void registerNamespace(String JavaDoc prefix, String JavaDoc uri);
87     
88
89     /**
90      * Unregister a prefix.
91      *
92      * @param prefix
93      */

94     public void unregisterNamespace(String JavaDoc prefix);
95     
96 }
97
Popular Tags