org.castor.mapping

Class BindingType

Implemented Interfaces:
Cloneable, Comparable, Serializable

public final class BindingType
extends java.lang.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 BindingType
JDO
static BindingType
XML

Method Summary

Object
clone()
Clone only returns the one and only instance of this kind.
int
compareTo(Object other)
Compares _type against _type of the specified object.
boolean
equals(Object other)
Returns if the specified object and this are one and the same instance.
int
hashCode()
Returns the hash code of this object.
static Iterator
iterator()
protected Object
readResolve()
Called during deserialization.
String
toString()
Returns the String representation of this kind.
static BindingType
valueOf(String kind)

Field Details

JDO

public static final BindingType JDO

XML

public static final BindingType XML

Method Details

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 equals(Object).
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-2008. All rights reserved http://www.intalio.com