Class PatternFacet

  • All Implemented Interfaces:
    Facet

    public class PatternFacet
    extends java.lang.Object
    implements Facet
    Author:
    Marcel Valovy - marcel.valovy@oracle.com
    Since:
    2.6
    • Constructor Summary

      Constructors 
      Constructor Description
      PatternFacet​(java.lang.String regexp, javax.validation.constraints.Pattern.Flag[] flags)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <R,​P>
      R
      accept​(FacetVisitor<R,​P> visitor, P p)  
      javax.validation.constraints.Pattern.Flag[] getFlags()  
      java.lang.String getRegexp()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PatternFacet

        public PatternFacet​(java.lang.String regexp,
                            javax.validation.constraints.Pattern.Flag[] flags)
    • Method Detail

      • getRegexp

        public java.lang.String getRegexp()
      • getFlags

        public javax.validation.constraints.Pattern.Flag[] getFlags()
      • accept

        public <R,​P> R accept​(FacetVisitor<R,​P> visitor,
                                    P p)
        Specified by:
        accept in interface Facet