Class AttributePicker

java.lang.Object
com.sun.msv.verifier.regexp.AttributePicker
All Implemented Interfaces:
ExpressionVisitorExpression

public class AttributePicker extends Object implements ExpressionVisitorExpression
removes all unnecessary expressions and creates an expression that consists of required attributes and choices only. For example, <choice> <element/> <attribute/> </choice> will be converted to <empty/> because no attribute is required. But <choice> <attribute/> <attribute/> </choice> will remain the same because one or the other is required. this method also removes SequenceExp. <sequence> <attribute name="A"/> <attribute name="B"/> </sequence> will be converted to <attribute name="A"/> This function object is used only for error recovery. Resulting expressions always consist only of <choice>s and <attribute>s.
Author:
Kohsuke KAWAGUCHI