Class semper.preferences.NoStringConstraints
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.4 $ $Date: 1997/01/17 19:53:04 $
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 myStreamSize()
Returns the size of the stream that would hold the externalized form of these constraints.
 o readObject(StreamInputInterface)
Internalizes this Constraint.
 o showInfo(Frame, String)
Does nothing because every string is allowed.
 o writeObject(StreamOutputInterface)
Externalizes this Constraint.

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.
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Returns the size of the stream that would hold the externalized form of these constraints.
Returns:
the size of the stream in bytes
See Also:
Streamable
 o readObject
  public void readObject(StreamInputInterface stream) throws StreamIOException
Internalizes this Constraint. In fact does nothing since an empty constraint needs not to be read.
Parameters:
stream - is the stream of data the object state is retrieved from
Returns:
none.
See Also:
Streamable
 o writeObject
  public void writeObject(StreamOutputInterface stream) throws StreamIOException
Externalizes this Constraint. In fact does nothing since an empty constraint does not need to be stored.
Parameters:
stream - is the stream of data the object state is recorded in
Returns:
none
See Also:
Streamable

All Packages  Class Hierarchy  This Package  Previous  Next  Index