Class FSStringConstraintImpl

  • All Implemented Interfaces:
    java.io.Serializable, FSConstraint, FSStringConstraint

    class FSStringConstraintImpl
    extends java.lang.Object
    implements FSStringConstraint
    Implement the FSStringConstraint interface. Package private.
    Version:
    $Revision: 1.1 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
      private java.lang.String string  
    • Constructor Summary

      Constructors 
      Constructor Description
      FSStringConstraintImpl()
      Constructor is package private.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void equals​(java.lang.String s)
      String value of matched FS must match input String.
      boolean match​(java.lang.String s)
      Check if String matches defined constraints.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • string

        private java.lang.String string
    • Constructor Detail

      • FSStringConstraintImpl

        FSStringConstraintImpl()
        Constructor is package private.
    • Method Detail

      • equals

        public void equals​(java.lang.String s)
        Description copied from interface: FSStringConstraint
        String value of matched FS must match input String.
        Specified by:
        equals in interface FSStringConstraint
        Parameters:
        s - The string that the matched FS must equal.
      • match

        public boolean match​(java.lang.String s)
        Description copied from interface: FSStringConstraint
        Check if String matches defined constraints.
        Specified by:
        match in interface FSStringConstraint
        Parameters:
        s - The String to be checked.
        Returns:
        true iff the String satisfies the constraints.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object