01: /*
02: * Copyright 2004 Outerthought bvba and Schaubroeck nv
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.outerj.daisy.repository.namespace;
17:
18: import org.outerx.daisy.x10.NamespaceDocument;
19:
20: import java.util.Date;
21:
22: public interface Namespace {
23: /**
24: * Internal namespace ID. This is a repository-specific value, i.e. the same namespace
25: * in two different repositories might have different internal IDs. This value should
26: * normally not be used for anything but operations on a specific repository instance.
27: */
28: long getId();
29:
30: /**
31: * The name of the namespace. Each namespace has a unique name.
32: */
33: String getName();
34:
35: /**
36: * The fingerprint of the namespace. The fingerprint is some random key which is used
37: * to check that two namespaces with the same name are really the same between
38: * different repositories. This is used to detect collisions in the namespace-names
39: * selected by different non-coordinated parties.
40: */
41: String getFingerprint();
42:
43: Date getRegisteredOn();
44:
45: long getRegisteredBy();
46:
47: NamespaceDocument getXml();
48: }
|