© 2002 BEA Systems, Inc.


com.beasys.commerce.foundation
Interface Belonging

All Known Subinterfaces:
DescribedMoney, DescribedPrice, ImageInfo, InventoryInfo, JspInfo, Money, OrderLine, Price, Quality, Quantity, Result, ShoppingCart, ShoppingCartLine, State, TaxInformation, TaxLine, TaxLineList, TaxLineResult, TaxParameters, TaxResult, TransactionEntry, Transition, Unit, UnitPrice
All Known Implementing Classes:
BelongingImpl

public interface Belonging
extends BusinessSmartComponent, java.lang.Comparable, java.lang.Cloneable

A Belonging is a lightweight, local value that can be serialized. A Belonging must "belong" to another object. That object must have the only reference to that Belonging. For this reason the "value" of the Belonging must make a copy of the object that it will return. Belongings must be allocated from a corresponding SmartHome object. Objects that have a stereotype of Belonging will automatically have a SmartHome and Base Implementation class generated by the SmartGenerator.

See Also:
BelongingImpl, SmartHome

Method Summary
 java.lang.Object clone()
          Returns a shallow copy of the Belonging instance.
 boolean equals(java.lang.Object anObject)
          Indicates whether some other Belonging is equivalent to this Belonging.
 java.lang.String interfaceName()
          Returns the unqualified name of the interface as specified in the UML model.
 void setByValue(Belonging value)
          Intializes the Belonging based upon a supplied Belonging.
 Belonging value()
          Returns a type safe shallow copy of the Belonging instance.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

equals

public boolean equals(java.lang.Object anObject)
Indicates whether some other Belonging is equivalent to this Belonging.

Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object is not of the same type as this Belonging.
Overrides:
equals in class java.lang.Object

value

public Belonging value()
Returns a type safe shallow copy of the Belonging instance.

Returns:
A type safe shallow copy of this Belonging.

clone

public java.lang.Object clone()
Returns a shallow copy of the Belonging instance.

Returns:
A shallow copy of this Belonging.
Overrides:
clone in class java.lang.Object

interfaceName

public java.lang.String interfaceName()
Returns the unqualified name of the interface as specified in the UML model.

Returns:
The unqualified name of the belonging interface.

setByValue

public void setByValue(Belonging value)
Intializes the Belonging based upon a supplied Belonging.

Parameters:
belonging - The Belonging to use for initialization.

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved