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
-
NoStringConstraints()
-
Constructor for an empty string constraint.
-
convert(String)
-
Returns the string itself.
-
isSatisfied(String)
-
Returns always true because any string satisfies
the empty constraint.
-
showInfo(Frame, String)
-
Does nothing because every string is allowed.
NoStringConstraints
public NoStringConstraints()
- Constructor for an empty string constraint.
- Returns:
- the new no-constraint constraint object.
- See Also:
- Integer
isSatisfied
public boolean isSatisfied(String s)
- Returns always true because any string satisfies
the empty constraint.
- Parameters:
- s - the string to test.
- Returns:
- true.
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.
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