com.thaiopensource.relaxng.impl
Class ChoicePattern

java.lang.Object
  extended by com.thaiopensource.relaxng.impl.Pattern
      extended by com.thaiopensource.relaxng.impl.BinaryPattern
          extended by com.thaiopensource.relaxng.impl.ChoicePattern
All Implemented Interfaces:
ParsedPattern

 class ChoicePattern
extends BinaryPattern


Field Summary
 
Fields inherited from class com.thaiopensource.relaxng.impl.BinaryPattern
p1, p2
 
Fields inherited from class com.thaiopensource.relaxng.impl.Pattern
AFTER_HASH_CODE, ATTRIBUTE_CONTEXT, ATTRIBUTE_HASH_CODE, CHOICE_HASH_CODE, DATA_CONTENT_TYPE, DATA_EXCEPT_CONTEXT, DATA_HASH_CODE, ELEMENT_CONTENT_TYPE, ELEMENT_CONTEXT, ELEMENT_HASH_CODE, ELEMENT_REPEAT_CONTEXT, ELEMENT_REPEAT_GROUP_CONTEXT, ELEMENT_REPEAT_INTERLEAVE_CONTEXT, EMPTY_CONTENT_TYPE, EMPTY_HASH_CODE, ERROR_HASH_CODE, GROUP_HASH_CODE, INTERLEAVE_HASH_CODE, LIST_CONTEXT, LIST_HASH_CODE, MIXED_CONTENT_TYPE, NOT_ALLOWED_HASH_CODE, ONE_OR_MORE_HASH_CODE, START_CONTEXT, TEXT_HASH_CODE, VALUE_HASH_CODE
 
Constructor Summary
ChoicePattern(Pattern p1, Pattern p2)
           
 
Method Summary
(package private)  void accept(PatternVisitor visitor)
           
(package private)  Object apply(PatternFunction f)
           
(package private)  void checkRestrictions(int context, DuplicateAttributeDetector dad, Alphabet alpha)
           
(package private)  boolean containsChoice(Pattern p)
           
(package private)  Pattern expand(SchemaPatternBuilder b)
           
 
Methods inherited from class com.thaiopensource.relaxng.impl.BinaryPattern
checkRecursion, getOperand1, getOperand2, samePattern
 
Methods inherited from class com.thaiopensource.relaxng.impl.Pattern
applyForPattern, combineHashCode, combineHashCode, contentTypeGroupable, getContentType, isNotAllowed, isNullable, patternHashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoicePattern

ChoicePattern(Pattern p1,
              Pattern p2)
Method Detail

expand

Pattern expand(SchemaPatternBuilder b)
Overrides:
expand in class Pattern

containsChoice

boolean containsChoice(Pattern p)
Overrides:
containsChoice in class Pattern

accept

void accept(PatternVisitor visitor)
Specified by:
accept in class Pattern

apply

Object apply(PatternFunction f)
Specified by:
apply in class Pattern

checkRestrictions

void checkRestrictions(int context,
                       DuplicateAttributeDetector dad,
                       Alphabet alpha)
                 throws RestrictionViolationException
Overrides:
checkRestrictions in class BinaryPattern
Throws:
RestrictionViolationException