dk.brics.relaxng
Class ChoicePattern

java.lang.Object
  extended by dk.brics.relaxng.Pattern
      extended by dk.brics.relaxng.MultiContentPattern
          extended by dk.brics.relaxng.ChoicePattern

public class ChoicePattern
extends MultiContentPattern

<choice> pattern* </choice>


Field Summary
 
Fields inherited from class dk.brics.relaxng.MultiContentPattern
ps
 
Fields inherited from class dk.brics.relaxng.Pattern
origin
 
Constructor Summary
ChoicePattern(List<Pattern> ps, Origin origin)
          Constructs a new choice pattern.
 
Method Summary
<T> T
process(PatternProcessor<T> v)
          Applies the given pattern processor on this pattern.
 
Methods inherited from class dk.brics.relaxng.MultiContentPattern
getContents, setContents
 
Methods inherited from class dk.brics.relaxng.Pattern
getOrigin, setOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoicePattern

public ChoicePattern(List<Pattern> ps,
                     Origin origin)
Constructs a new choice pattern.

Parameters:
ps - list of patterns
origin - source information (null if not applicable)
Method Detail

process

public <T> T process(PatternProcessor<T> v)
Description copied from class: Pattern
Applies the given pattern processor on this pattern.

Specified by:
process in class Pattern
Type Parameters:
T - return type
Parameters:
v - pattern processor
Returns:
result from processor


Copyright © 2005-2010 Anders Møller.