org.openbp.common.rc
Class ResourceItemTypes

java.lang.Object
  extended by org.openbp.common.rc.ResourceItemTypes

public final class ResourceItemTypes
extends java.lang.Object

Provides the access to the ResourceItem implementations. Loads the class only one time, and caches the classes for later use. The resource technology to read one by the mime type is realized like following. Example: The mime type is "text/plain" and the resource object is an instance of a the 'org.openbp.common.rc.text.Plain'.

Author:
Andreas Putz

Field Summary
static java.lang.String DATA_KEYSTROKE
          Mime type data/keystroke
static java.lang.String IMAGE_BMP
          Mime type image/bmp
static java.lang.String IMAGE_GIF
          Mime type image/gif
static java.lang.String IMAGE_JPEG
          Mime type image/jpeg
static java.lang.String IMAGE_PNG
          Mime type image/png
static java.lang.String MULTIICON
          Mime type multiicon.
static java.lang.String PRIMITIVE_CHARACTER
          Mime type primitive/character
static java.lang.String PRIMITIVE_INTEGER
          Mime type primitive/integer
static java.lang.String TEXT_PLAIN
          Mime type text/plain
 
Method Summary
static java.lang.Class determineResourceItemClass(java.lang.String mimeType)
          Determines the resource item class for the given mime-type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_PLAIN

public static final java.lang.String TEXT_PLAIN
Mime type text/plain

See Also:
Constant Field Values

IMAGE_GIF

public static final java.lang.String IMAGE_GIF
Mime type image/gif

See Also:
Constant Field Values

IMAGE_JPEG

public static final java.lang.String IMAGE_JPEG
Mime type image/jpeg

See Also:
Constant Field Values

IMAGE_PNG

public static final java.lang.String IMAGE_PNG
Mime type image/png

See Also:
Constant Field Values

IMAGE_BMP

public static final java.lang.String IMAGE_BMP
Mime type image/bmp

See Also:
Constant Field Values

MULTIICON

public static final java.lang.String MULTIICON
Mime type multiicon.

See Also:
Constant Field Values

PRIMITIVE_INTEGER

public static final java.lang.String PRIMITIVE_INTEGER
Mime type primitive/integer

See Also:
Constant Field Values

PRIMITIVE_CHARACTER

public static final java.lang.String PRIMITIVE_CHARACTER
Mime type primitive/character

See Also:
Constant Field Values

DATA_KEYSTROKE

public static final java.lang.String DATA_KEYSTROKE
Mime type data/keystroke

See Also:
Constant Field Values
Method Detail

determineResourceItemClass

public static java.lang.Class determineResourceItemClass(java.lang.String mimeType)
Determines the resource item class for the given mime-type.

Parameters:
mimeType - Mime type of the resource object
Returns:
The ResourceItem class suitable for this mime type or null if no such resource item type exists


Copyright © 2011. All Rights Reserved.