Package com.microstrategy.web.blocks
Class ContentTypes
- java.lang.Object
-
- com.microstrategy.web.blocks.ContentTypes
-
public class ContentTypes extends java.lang.Object
This class manages the information pertaining to a set of registered Content Types. This information is used to support the construction of content using Tasks and Blocks. All of this information is stored in a single properties file (ContentTypes.properties).- Since:
- MicroStrategy Web 9.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContentTypes.ContentType
This class class defines a ContentType object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentTypes.ContentType
getContentType(java.lang.String contentType)
Returns the information for the specified content type.java.util.Iterator<java.lang.String>
getContentTypeKeys()
Gets an Iterator of registered content types.static ContentTypes
getInstance()
Gets the singleton instance of this class.
-
-
-
Method Detail
-
getInstance
public static ContentTypes getInstance()
Gets the singleton instance of this class.- Returns:
- The singleton instance of this class.
-
getContentType
public ContentTypes.ContentType getContentType(java.lang.String contentType)
Returns the information for the specified content type.- Parameters:
contentType
- The name of the content type. Note that the lookup for content type is done in a case-insensitive manner.- Returns:
- A
ContentTypes.ContentType
object for this content type, if it exists. Otherwise,it returns null.
-
getContentTypeKeys
public java.util.Iterator<java.lang.String> getContentTypeKeys()
Gets an Iterator of registered content types.- Returns:
- An
Iterator
of content types (Strings).
-
-