KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.thaiopensource.relaxng.impl;
2
3 class NotAllowedPattern extends Pattern {
4   NotAllowedPattern() {
5     super(false, EMPTY_CONTENT_TYPE, NOT_ALLOWED_HASH_CODE);
6   }
7   boolean isNotAllowed() {
8     return true;
9   }
10   boolean samePattern(Pattern other) {
11     // needs to work for UnexpandedNotAllowedPattern
12
return other.getClass() == this.getClass();
13   }
14   void accept(PatternVisitor visitor) {
15     visitor.visitNotAllowed();
16   }
17   Object JavaDoc apply(PatternFunction f) {
18     return f.caseNotAllowed(this);
19   }
20 }
21
Popular Tags