org.castor.mapping

Class BindingType

public final class BindingType extends Object implements Cloneable, Comparable, Serializable

Version: $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $

Author: Ralf Joachim

Field Summary
static BindingTypeJDO
static BindingTypeXML
Method Summary
Objectclone()
Clone only returns the one and only instance of this kind.
intcompareTo(Object other)
Compares _type against _type of the specified object.
booleanequals(Object other)
Returns if the specified object and this are one and the same instance.
inthashCode()
Returns the hash code of this object.
static Iteratoriterator()
protected ObjectreadResolve()
Called during deserialization.
StringtoString()
Returns the String representation of this kind.
static BindingTypevalueOf(String kind)

Field Detail

JDO

public static final BindingType JDO

XML

public static final BindingType XML

Method Detail

clone

public Object clone()
Clone only returns the one and only instance of this kind.

Returns: The original instance.

compareTo

public int compareTo(Object other)
Compares _type against _type of the specified object. So this method is inconsistent with BindingType.

Parameters: other Object to be compared with this instance.

Returns: A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

equals

public boolean equals(Object other)
Returns if the specified object and this are one and the same instance.

Parameters: other Object to be compared with this instance.

Returns: true if other equals this else false.

hashCode

public int hashCode()
Returns the hash code of this object.

Returns: Hash code of this object.

iterator

public static Iterator iterator()

readResolve

protected Object readResolve()
Called during deserialization.

Returns: The existing instance of the enum.
So you can use '==' like 'equals' even if you use a deserialized Enum.

toString

public String toString()
Returns the String representation of this kind.

Returns: String representation of this kind.

valueOf

public static BindingType valueOf(String kind)
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com