org.jbind.xml.core.constraint
Interface IPatternConstraint

All Superinterfaces:
IConstraint, IHasLocation, ISimpleConstraint
All Known Implementing Classes:
ConstraintType.Pattern.PatternConstraint

public interface IPatternConstraint
extends ISimpleConstraint


Method Summary
 void addPattern(IRegEx aRegEx, IConstraintViolations aViolations, IHasLocation aHasLocation)
          Adds a pattern to the pattern constraint.
 
Methods inherited from interface org.jbind.xml.core.constraint.IConstraint
getConstraintType, globalCheck, isFinal, isRestriction, localCheck
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 

Method Detail

addPattern

public void addPattern(IRegEx aRegEx,
                       IConstraintViolations aViolations,
                       IHasLocation aHasLocation)
Adds a pattern to the pattern constraint. If multiple patterns are added to the same pattern constraint then they describe valid alternatives, i.e. they are "or"ed together. Whereas patterns added to different steps in the type derivation are "and"ed together.

Parameters:
aViolations - (required).