All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.commerce.Statement

java.lang.Object
   |
   +----semper.commerce.Statement

public final class Statement
extends Object
implements Serializable
This class encapsulates information about a specific statement. A statement is some information signed by a signer.

Currently only statements represented as plain text are supported. The core statement service of SEMPER also supports other data types as statements, but it is still unclear whether this is necessary. We will add this later if necessary.

Note: Objects of this type must be immutable.

Version:
$Id: Statement.java,v 1.3 1998/04/30 07:10:16 semper Exp $
Author:
Rolf Michelsen, Stig Mj�lsnes
See Also:
StatementTransaction

Constructor Index

 o Statement(String, String)
Creates a statement.

Method Index

 o equals(Object)
Compares two statement objects for equality.
 o getSignerName()
Returns the distinguished name of the signer of the statement.
 o getStatementText()
Returns the text of the statement.

Constructors

 o Statement
 public Statement(String statementText,
                  String signerName)
Creates a statement.

Parameters:
statementText - The text of the statement.
signerName - The distinguished name of the signer.

Methods

 o getSignerName
 public String getSignerName()
Returns the distinguished name of the signer of the statement.

Returns:
The distinguished name of the signer.
 o getStatementText
 public String getStatementText()
Returns the text of the statement. Currently only statements represented as plain text are supported.

Returns:
The text of the statement.
 o equals
 public boolean equals(Object obj)
Compares two statement objects for equality. If the parameter object is not of type Statement then the test will always fail.

Parameters:
obj - The candidate object.
Returns:
true if the statements are equal.
Overrides:
equals in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index