comparison artifacts/src/main/java/de/intevation/artifacts/ArtifactNamespaceContext.java @ 78:55eefe63a777

Repaired the javadoc stuff for almost all artifact interfaces. artifacts/trunk@760 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 11 Mar 2010 10:53:59 +0000
parents 48d1a9a082c2
children e27cf9c84eb8
comparison
equal deleted inserted replaced
77:48d1a9a082c2 78:55eefe63a777
5 import javax.xml.namespace.NamespaceContext; 5 import javax.xml.namespace.NamespaceContext;
6 6
7 import java.util.Iterator; 7 import java.util.Iterator;
8 8
9 /** 9 /**
10 * The namespace used in artifact documents.
10 * @author <a href="mailto:sascha.teichmann@intevation">Sascha L. Teichmann</a> 11 * @author <a href="mailto:sascha.teichmann@intevation">Sascha L. Teichmann</a>
11 */ 12 */
12 public class ArtifactNamespaceContext 13 public class ArtifactNamespaceContext
13 implements NamespaceContext 14 implements NamespaceContext
14 { 15 {
20 /** 21 /**
21 * The XML prefix for the artifacts namespace. 22 * The XML prefix for the artifacts namespace.
22 */ 23 */
23 public final static String NAMESPACE_PREFIX = "art"; 24 public final static String NAMESPACE_PREFIX = "art";
24 25
26 /**
27 * Final instance to be easily used to avoid creation
28 * of instances.
29 */
25 public static final ArtifactNamespaceContext INSTANCE = 30 public static final ArtifactNamespaceContext INSTANCE =
26 new ArtifactNamespaceContext(); 31 new ArtifactNamespaceContext();
27 32
33 /**
34 * The default constructor.
35 */
28 public ArtifactNamespaceContext() { 36 public ArtifactNamespaceContext() {
29 } 37 }
30 38
39 /**
40 * @see javax.xml.namespace.NamespaceContext#getNamespaceURI(String)
41 * @param prefix The prefix
42 * @return The corresponing URI
43 */
31 public String getNamespaceURI(String prefix) { 44 public String getNamespaceURI(String prefix) {
32 45
33 if (prefix == null) { 46 if (prefix == null) {
34 throw new NullPointerException("Null prefix"); 47 throw new NullPointerException("Null prefix");
35 } 48 }
43 } 56 }
44 57
45 return XMLConstants.NULL_NS_URI; 58 return XMLConstants.NULL_NS_URI;
46 } 59 }
47 60
61 /**
62 * @see javax.xml.namespace.NamespaceContext#getPrefix(String)
63 * @param uri The URI
64 * @return nothing.
65 * @throws java.lang.UnsupportedOperationException
66 */
48 public String getPrefix(String uri) { 67 public String getPrefix(String uri) {
49 throw new UnsupportedOperationException(); 68 throw new UnsupportedOperationException();
50 } 69 }
51 70
71 /**
72 * @see javax.xml.namespace.NamespaceContext#getPrefixes(java.lang.String)
73 * @param uri The URI
74 * @return nothing
75 * @throws java.lang.UnsupportedOperationException
76 */
52 public Iterator getPrefixes(String uri) { 77 public Iterator getPrefixes(String uri) {
53 throw new UnsupportedOperationException(); 78 throw new UnsupportedOperationException();
54 } 79 }
55 } 80 }
56 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: 81 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org