KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.thaiopensource.relaxng.impl;
2
3 class TextOnlyFunction extends EndAttributesFunction {
4   TextOnlyFunction(ValidatorPatternBuilder builder) {
5     super(builder);
6   }
7   public Object JavaDoc caseAttribute(AttributePattern p) {
8     return p;
9   }
10   public Object JavaDoc 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