KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.thaiopensource.relaxng.impl;
2
3 class ErrorPattern extends Pattern {
4   ErrorPattern() {
5     super(false, EMPTY_CONTENT_TYPE, ERROR_HASH_CODE);
6   }
7   boolean samePattern(Pattern other) {
8     return other instanceof ErrorPattern;
9   }
10   void accept(PatternVisitor visitor) {
11     visitor.visitError();
12   }
13   Object JavaDoc apply(PatternFunction f) {
14     return f.caseError(this);
15   }
16 }
17
Popular Tags