Home » displaytag-1.1.1-src » org » displaytag » properties » [javadoc | source]
public final class: MediaTypeEnum [javadoc | source]
Enumeration for media types.
Field Summary
public static final  MediaTypeEnum HTML    media type HTML = 0. 
public static final  MediaTypeEnum CSV    Media type CSV = 1. 
public static final  MediaTypeEnum EXCEL    media type EXCEL = 2. 
public static final  MediaTypeEnum XML    media type XML = 3. 
Method from org.displaytag.properties.MediaTypeEnum Summary:
equals,   fromCode,   fromCode,   fromIntegerCode,   fromName,   getCode,   getName,   getSize,   hashCode,   iterator,   registerMediaType,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.displaytag.properties.MediaTypeEnum Detail:
 public boolean equals(Object o) 
    Only a single instance of a specific MediaTypeEnum can be created, so we can check using ==.
 public static MediaTypeEnum fromCode(int key) 
    lookup a media type by key.
 public static MediaTypeEnum fromCode(Integer key) 
    lookup a media type by an Integer key.
 public static MediaTypeEnum fromIntegerCode(Integer key) 
Deprecated! use - fromCode(Integer)

    lookup a media type by an Integer key.
 public static MediaTypeEnum fromName(String code) 
    Lookup a media type by a String key.
 public int getCode() 
    returns the int code.
 public String getName() 
    returns the description.
 public static int getSize() 
    Returns the number of media type currently loaded.
 public int hashCode() 
 public static Iterator iterator() 
    returns an iterator on all the media type.
 public static synchronized MediaTypeEnum registerMediaType(String name) 
    Register a new MediaType. If name is already assigned the existing instance is returned, otherwise a new instance is created.
 public String toString() 
    returns the media type description.