estamp
Class Estamp

java.lang.Object
  extended byestamp.Estamp

public class Estamp
extends java.lang.Object

Title: Estamp.java

Description: Represents an estamp. The detailed information contains:

Copyright: Copyright (c) 2003

Company: segy


Field Summary
static int ACTIVE
           
static int ENCRYPTED_STRING
           
static int EXPIRE_DATE
           
static java.lang.String[] FIELDS
          Fields' name
static int FROM_EMAIL
           
static int ISSUE_DATE
           
static int REUSABLE
           
static int TO_EMAIL
           
static int VENDOR_ID
           
 
Constructor Summary
Estamp()
          Default constructor
Estamp(java.lang.Object[] fields)
          Constructor with specific estamp fields
Estamp(java.util.Vector fields)
          Constructor with specific estamp fields
 
Method Summary
static Estamp decryptEstamp(java.lang.String theItem)
           
 void encryptEstamp()
          Encrypt the estamp using key-pairs
 boolean equals(Estamp estamp)
          Indicates whether some other estamp is "equal to" this one
 java.lang.Object get(int index)
          Gets one estamp field
 java.lang.Object[] getFields()
          Get all estamp fields
 void init()
          Initialize estamp fields
 boolean isValid()
          Determin whether the estamp of an email is a valid estamp.
 void set(int index, java.lang.Object field)
          Sets one estamp fields
 void setFields(java.lang.Object[] fields)
          Resets all the estamp fields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM_EMAIL

public static final int FROM_EMAIL
See Also:
Constant Field Values

TO_EMAIL

public static final int TO_EMAIL
See Also:
Constant Field Values

ISSUE_DATE

public static final int ISSUE_DATE
See Also:
Constant Field Values

EXPIRE_DATE

public static final int EXPIRE_DATE
See Also:
Constant Field Values

ACTIVE

public static final int ACTIVE
See Also:
Constant Field Values

REUSABLE

public static final int REUSABLE
See Also:
Constant Field Values

VENDOR_ID

public static final int VENDOR_ID
See Also:
Constant Field Values

ENCRYPTED_STRING

public static final int ENCRYPTED_STRING
See Also:
Constant Field Values

FIELDS

public static final java.lang.String[] FIELDS
Fields' name

Constructor Detail

Estamp

public Estamp()
Default constructor


Estamp

public Estamp(java.lang.Object[] fields)
Constructor with specific estamp fields

Parameters:
fields - estamp fields

Estamp

public Estamp(java.util.Vector fields)
Constructor with specific estamp fields

Parameters:
fields - estamp fields
Method Detail

decryptEstamp

public static Estamp decryptEstamp(java.lang.String theItem)

encryptEstamp

public void encryptEstamp()
                   throws java.lang.Exception
Encrypt the estamp using key-pairs

Throws:
java.lang.Exception

equals

public boolean equals(Estamp estamp)
Indicates whether some other estamp is "equal to" this one

Parameters:
estamp - the reference esta,p with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise

get

public java.lang.Object get(int index)
Gets one estamp field

Parameters:
index - the index of the field
Returns:
the estamp field

getFields

public java.lang.Object[] getFields()
Get all estamp fields

Returns:

init

public void init()
Initialize estamp fields


isValid

public boolean isValid()
Determin whether the estamp of an email is a valid estamp.

Returns:
true if the estamp is a valid estamp. false if the estamp is invalid.

set

public void set(int index,
                java.lang.Object field)
Sets one estamp fields

Parameters:
index - the index of the field
field - the value of the field

setFields

public void setFields(java.lang.Object[] fields)
Resets all the estamp fields

Parameters:
fields -