All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.preferences.NoStringConstraints

java.lang.Object
   |
   +----semper.preferences.NoStringConstraints

public class NoStringConstraints
extends Object
implements StringConstraints
This is used when a PrefFieldString is used to represent any string value. This class represents the absence of constraint on an input string.

Version:
$Revision: 1.6 $ $Date: 1997/09/26 16:29:25 $
Author:
Louis Salvail
See Also:
PrefFieldString

Constructor Index

 o NoStringConstraints()
Constructor for an empty string constraint.

Method Index

 o convert(String)
Returns the string itself.
 o isSatisfied(String)
Returns always true because any string satisfies the empty constraint.
 o showInfo(Frame, String)
Does nothing because every string is allowed.

Constructors

 o NoStringConstraints
 public NoStringConstraints()
Constructor for an empty string constraint.

Returns:
the new no-constraint constraint object.
See Also:
Integer

Methods

 o isSatisfied
 public boolean isSatisfied(String s)
Returns always true because any string satisfies the empty constraint.

Parameters:
s - the string to test.
Returns:
true.
 o convert
 public Object convert(String s) throws StringConversionException
Returns the string itself.

Parameters:
s - is the string to convert.
Returns:
the the string.
Throws: StringConversionException
if the string could not be converted.
 o showInfo
 public void showInfo(Frame frame,
                      String fieldName)
Does nothing because every string is allowed.

Parameters:
frame - is the parent frame.
Returns:
none.

All Packages  Class Hierarchy  This Package  Previous  Next  Index