1 package com.thaiopensource.relaxng.impl; 2 3 class TextOnlyFunction extends EndAttributesFunction { 4 TextOnlyFunction(ValidatorPatternBuilder builder) { 5 super(builder); 6 } 7 public Object caseAttribute(AttributePattern p) { 8 return p; 9 } 10 public Object caseElement(ElementPattern p) { 11 return getPatternBuilder().makeNotAllowed(); 12 } 13 14 PatternMemo apply(PatternMemo memo) { 15 return memo.textOnly(this); 16 } 17 18 } 19 20 | Popular Tags |