com.vinculumtech.carrierwave.typemap
Class ImageTypeMap

java.lang.Object
  extended bycom.vinculumtech.carrierwave.typemap.ImageTypeMap
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DynamicImageTypeMap

public abstract class ImageTypeMap
extends java.lang.Object
implements java.io.Serializable

Version:
$Id: //depot/carrierwave/src/shared/com/vinculumtech/carrierwave/typemap/ImageTypeMap.java#21 $
See Also:
Serialized Form

Constructor Summary
ImageTypeMap()
           
 
Method Summary
protected  void addImageableImageMapping(java.lang.String imageableType, java.lang.String imageType)
           
protected  void addInterfaceImageableMapping(java.lang.String imageInterfaceType, java.lang.String imageableType)
           
 java.lang.String getCommonImageableType()
           
 java.lang.Class getImageableClassForImageType(java.lang.String imageType)
           
 java.lang.String getImageableTypeForImageInterfaceType(java.lang.String imageInterfaceType)
           
 java.lang.String getImageableTypeForImageType(java.lang.String imageType)
           
 java.util.Map getImageableTypeMap()
           
 java.lang.Class getImageClassForImageableType(java.lang.String imageableType)
           
 Image getImageForImageableType(java.lang.String imageableType)
           
 java.util.Map getImageInterfaceTypeMap()
           
 java.lang.String getImageTypeForImageableType(java.lang.String imagebleType)
           
 java.util.Map getImageTypeMap()
           
 java.lang.String getName()
           
 boolean hasMappingForImageableType(java.lang.String imageableType)
           
 boolean hasMappingForImageInterfaceType(java.lang.String imageInterfaceType)
           
 boolean hasMappingForImageType(java.lang.String imageType)
           
protected abstract  void initMap()
           
 boolean isImageableType(java.lang.String type)
           
 boolean isImageInterfaceType(java.lang.String type)
           
 boolean isImageType(java.lang.String type)
           
protected  void setCommonImageableType(java.lang.String commonImageableType)
           
protected  void setImageableTypeMap(java.util.Map imageableTypeMap)
           
protected  void setImageInterfaceTypeMap(java.util.Map imageInterfaceTypeMap)
           
 void setImageTypeMap(java.util.Map imageTypeMap)
           
protected  void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageTypeMap

public ImageTypeMap()
Method Detail

setName

protected void setName(java.lang.String name)

getName

public java.lang.String getName()

getImageableTypeMap

public java.util.Map getImageableTypeMap()

setImageableTypeMap

protected void setImageableTypeMap(java.util.Map imageableTypeMap)

getImageTypeMap

public java.util.Map getImageTypeMap()

setImageTypeMap

public void setImageTypeMap(java.util.Map imageTypeMap)

getImageInterfaceTypeMap

public java.util.Map getImageInterfaceTypeMap()

setImageInterfaceTypeMap

protected void setImageInterfaceTypeMap(java.util.Map imageInterfaceTypeMap)

getCommonImageableType

public java.lang.String getCommonImageableType()

setCommonImageableType

protected void setCommonImageableType(java.lang.String commonImageableType)

initMap

protected abstract void initMap()

addImageableImageMapping

protected void addImageableImageMapping(java.lang.String imageableType,
                                        java.lang.String imageType)

addInterfaceImageableMapping

protected void addInterfaceImageableMapping(java.lang.String imageInterfaceType,
                                            java.lang.String imageableType)

getImageTypeForImageableType

public java.lang.String getImageTypeForImageableType(java.lang.String imagebleType)

hasMappingForImageableType

public boolean hasMappingForImageableType(java.lang.String imageableType)

isImageableType

public boolean isImageableType(java.lang.String type)

getImageableTypeForImageType

public java.lang.String getImageableTypeForImageType(java.lang.String imageType)

hasMappingForImageType

public boolean hasMappingForImageType(java.lang.String imageType)

isImageType

public boolean isImageType(java.lang.String type)

getImageableTypeForImageInterfaceType

public java.lang.String getImageableTypeForImageInterfaceType(java.lang.String imageInterfaceType)

hasMappingForImageInterfaceType

public boolean hasMappingForImageInterfaceType(java.lang.String imageInterfaceType)

isImageInterfaceType

public boolean isImageInterfaceType(java.lang.String type)

getImageForImageableType

public Image getImageForImageableType(java.lang.String imageableType)

getImageClassForImageableType

public java.lang.Class getImageClassForImageableType(java.lang.String imageableType)

getImageableClassForImageType

public java.lang.Class getImageableClassForImageType(java.lang.String imageType)


Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.