Package com.norconex.commons.lang.file
Class ContentFamily
java.lang.Object
com.norconex.commons.lang.file.ContentFamily
Represents a family of content types. Typically, a broader, conceptual
object for related content types.
To provide your own content type mappings or display names, copy the appropriate
To provide your own content type mappings or display names, copy the appropriate
.properties file to your classpath root, with
the word "custom" inserted: ContentFamily-custom-[...].
The actual custom names and classpath location are:
| Original | Custom |
|---|---|
| com.norconex.commmons.lang.file.ContentFamily-mappings.properties | ContentFamily-custom-mappings.properties |
| com.norconex.commmons.lang.file.ContentFamily-name[_locale].properties | ContentFamily-custom-name[_locale].properties |
- Since:
- 1.4.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(ContentType contentType) booleanbooleanstatic ContentFamilyforContentType(ContentType contentType) static ContentFamilyforContentType(String contentType) getDisplayName(Locale locale) getId()inthashCode()toString()static ContentFamily