org.favabeans.base
Class DataSourceType
java.lang.Object
|
+--java.awt.datatransfer.DataFlavor
|
+--org.favabeans.base.Type
|
+--org.favabeans.base.DataSourceType
- All Implemented Interfaces:
- Cloneable, Externalizable, PoComparable, Serializable
- public class DataSourceType
- extends Type
A DataSourceType object is a representative for a
javax.activation.DataSource object, for which the MIME
type of the data is known.
- See Also:
- Serialized Form
| 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 |
DataSourceType
public DataSourceType(String mimeType)
- Construct a new
DataSourceType.
- Parameters:
mimeType - the string representation of the MIME type
which this DataSourceType is to represent; for
example, "text/html".
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 t)
- 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)
getSupertypes
public Type[] getSupertypes()
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
getMimeType
public String getMimeType()
- Obtain the MIME type of this
DataSourceType.
- Overrides:
getMimeType in class Type
- Returns:
- the MIME type.
Copyright © 2000-2001, Regents of the University of Minnesota. All Rights Reserved.