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 return other.getClass() == this.getClass(); 13 } 14 void accept(PatternVisitor visitor) { 15 visitor.visitNotAllowed(); 16 } 17 Object apply(PatternFunction f) { 18 return f.caseNotAllowed(this); 19 } 20 } 21 | Popular Tags |