org.favabeans.base
Class JavaType
java.lang.Object
|
+--java.awt.datatransfer.DataFlavor
|
+--org.favabeans.base.Type
|
+--org.favabeans.base.JavaType
- All Implemented Interfaces:
- Cloneable, Externalizable, PoComparable, Serializable
- public class JavaType
- extends Type
A JavaType object is a representative for a Java class
or interface in the Type hierarchy.
- See Also:
- Serialized Form
|
Constructor Summary |
JavaType(Class javaClass)
Construct a new JavaType. |
| Methods inherited from class java.awt.datatransfer.DataFlavor |
clone, equals, getDefaultRepresentationClass, getDefaultRepresentationClassAsString, getHumanPresentableName, getParameter, getPrimaryType, getReaderForText, getSubType, getTextPlainUnicodeFlavor, isFlavorJavaFileListType, isFlavorRemoteObjectType, isFlavorSerializedObjectType, isMimeTypeEqual, isMimeTypeEqual, isMimeTypeSerializedObject, isRepresentationClassInputStream, isRepresentationClassRemote, isRepresentationClassSerializable, match, normalizeMimeType, normalizeMimeTypeParameter, readExternal, selectBestTextFlavor, setHumanPresentableName, tryToLoadClass, writeExternal |
JavaType
public JavaType(Class javaClass)
- Construct a new
JavaType.
- Parameters:
javaClass - a Java Class object representing
the class or interface which this JavaType
represents.
getRepresentationClass
public Class getRepresentationClass()
- Overrides:
getRepresentationClass in class DataFlavor
isStrictSubtypeOf
public boolean isStrictSubtypeOf(Type t)
- Description copied from class:
Type
- Determine whether this
Type is a strict subtype of
another Type t. By strict subtype, we
mean that this Type is a subtype of
t, but not equal to t.
- Overrides:
isStrictSubtypeOf in class Type
- Following copied from class:
org.favabeans.base.Type
- Parameters:
type - the specified Type- Returns:
true if this object is a strict subtype of
t; false otherwise.
isInstance
public boolean isInstance(Object object)
- Description copied from class:
Type
- Determine if a given arbitrary Java object is an instance of
this
Type.
- Overrides:
isInstance in class Type
- Following copied from class:
org.favabeans.base.Type
- Parameters:
object - an arbitrary Java object reference.- Returns:
true if object is considered
"an instance of this Type"; false
otherwise.- See Also:
Class.isInstance(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode in class DataFlavor
equals
public boolean equals(DataFlavor t)
- Description copied from class:
Type
- Determine if
this object is equal to some other
Type object.
- Overrides:
equals in class Type
- Following copied from class:
org.favabeans.base.Type
- Parameters:
t - another DataFlavor, perhaps another
Type.- Returns:
- true if
t is a Type and
t is equal to this.
toString
public String toString()
- Overrides:
toString in class DataFlavor
Copyright © 2000-2001, Regents of the University of Minnesota. All Rights Reserved.