KickJava   Java API By Example, From Geeks To Geeks.

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


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