© 2002 BEA Systems, Inc.


examples.e2e.common
Class QuoteElement

java.lang.Object
  |
  +--examples.e2e.common.QuoteElement

public final class QuoteElement
extends java.lang.Object
implements java.io.Serializable

QuoteElement is a closed set of static instances each corresponding to an XML element defined in the E2E_AggregatedQPAResponse DTD. QuoteElement is used in conjunction with QuoteParser to efficiently parse quote XML.

See Also:
Serialized Form

Field Summary
static QuoteElement AGGREGATED_RESPONSE
           
static QuoteElement AVAILABILITY
           
static QuoteElement AVAILABLE_DATE
           
static QuoteElement CREATION_DATE
           
static int I_AGGREGATED_RESPONSE
           
static int I_AVAILABILITY
           
static int I_AVAILABLE_DATE
           
static int I_CREATION_DATE
           
static int I_LOCATION
           
static int I_NOTE
           
static int I_PART_DESC
           
static int I_PART_ID
           
static int I_QUANTITY
           
static int I_REQUEST_ID
           
static int I_RESPONSE
           
static int I_RESPONSE_DATE
           
static int I_RESPONSE_ID
           
static int I_SUPPLIER_NAME
           
static int I_UNIT_CURRENCY
           
static int I_UNIT_PRICE
           
static QuoteElement LOCATION
           
static QuoteElement NOTE
           
static QuoteElement PART_DESC
           
static QuoteElement PART_ID
           
static QuoteElement QUANTITY
           
static QuoteElement REQUEST_ID
           
static QuoteElement RESPONSE
           
static QuoteElement RESPONSE_DATE
           
static QuoteElement RESPONSE_ID
           
static int SIZE
           
static QuoteElement SUPPLIER_NAME
           
static QuoteElement UNIT_CURRENCY
           
static QuoteElement UNIT_PRICE
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if this element has the same integer representation as the QuoteElement supplied.
 int getInt()
          Returns an integer which is unique among the static instances of this class.
static QuoteElement getObject(java.lang.String token)
          Returns the QuoteElement corresponding to the name of the XML element supplied.
 java.lang.String getString()
          Returns the name of the corresponding XML element
 int hashCode()
           
 java.lang.String toString()
          Returns the name of the corresponding XML element
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

I_AGGREGATED_RESPONSE

public static final int I_AGGREGATED_RESPONSE

AGGREGATED_RESPONSE

public static final QuoteElement AGGREGATED_RESPONSE

I_REQUEST_ID

public static final int I_REQUEST_ID

REQUEST_ID

public static final QuoteElement REQUEST_ID

I_CREATION_DATE

public static final int I_CREATION_DATE

CREATION_DATE

public static final QuoteElement CREATION_DATE

I_RESPONSE

public static final int I_RESPONSE

RESPONSE

public static final QuoteElement RESPONSE

I_RESPONSE_ID

public static final int I_RESPONSE_ID

RESPONSE_ID

public static final QuoteElement RESPONSE_ID

I_RESPONSE_DATE

public static final int I_RESPONSE_DATE

RESPONSE_DATE

public static final QuoteElement RESPONSE_DATE

I_SUPPLIER_NAME

public static final int I_SUPPLIER_NAME

SUPPLIER_NAME

public static final QuoteElement SUPPLIER_NAME

I_AVAILABILITY

public static final int I_AVAILABILITY

AVAILABILITY

public static final QuoteElement AVAILABILITY

I_PART_ID

public static final int I_PART_ID

PART_ID

public static final QuoteElement PART_ID

I_PART_DESC

public static final int I_PART_DESC

PART_DESC

public static final QuoteElement PART_DESC

I_QUANTITY

public static final int I_QUANTITY

QUANTITY

public static final QuoteElement QUANTITY

I_UNIT_PRICE

public static final int I_UNIT_PRICE

UNIT_PRICE

public static final QuoteElement UNIT_PRICE

I_UNIT_CURRENCY

public static final int I_UNIT_CURRENCY

UNIT_CURRENCY

public static final QuoteElement UNIT_CURRENCY

I_AVAILABLE_DATE

public static final int I_AVAILABLE_DATE

AVAILABLE_DATE

public static final QuoteElement AVAILABLE_DATE

I_LOCATION

public static final int I_LOCATION

LOCATION

public static final QuoteElement LOCATION

I_NOTE

public static final int I_NOTE

NOTE

public static final QuoteElement NOTE

SIZE

public static final int SIZE
Method Detail

toString

public java.lang.String toString()
Returns the name of the corresponding XML element

Overrides:
toString in class java.lang.Object

getString

public java.lang.String getString()
Returns the name of the corresponding XML element


getInt

public int getInt()
Returns an integer which is unique among the static instances of this class.


getObject

public static QuoteElement getObject(java.lang.String token)
Returns the QuoteElement corresponding to the name of the XML element supplied.


equals

public boolean equals(java.lang.Object object)
Returns true if this element has the same integer representation as the QuoteElement supplied.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved