KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > relaxng > impl > NullNameClass


1 package com.thaiopensource.relaxng.impl;
2
3 import com.thaiopensource.xml.util.Name;
4
5 class NullNameClass implements NameClass {
6   public boolean contains(Name name) {
7     return false;
8   }
9
10   public int containsSpecificity(Name name) {
11     return SPECIFICITY_NONE;
12   }
13
14   public int hashCode() {
15     return NullNameClass.class.hashCode();
16   }
17
18   public boolean equals(Object JavaDoc obj) {
19     if (obj == null || !(obj instanceof NullNameClass))
20       return false;
21     return true;
22   }
23
24   public void accept(NameClassVisitor visitor) {
25     visitor.visitNull();
26   }
27
28   public boolean isOpen() {
29     return false;
30   }
31 }
32
Popular Tags