Package com.norconex.commons.lang.file
Class ContentFamily
- java.lang.Object
-
- com.norconex.commons.lang.file.ContentFamily
-
public final class ContentFamily extends Object
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.propertiesfile 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
- Author:
- Pascal Essiembre
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(ContentType contentType)booleancontains(String contentType)booleanequals(Object obj)static ContentFamilyforContentType(ContentType contentType)static ContentFamilyforContentType(String contentType)StringgetDisplayName()StringgetDisplayName(Locale locale)StringgetId()inthashCode()StringtoString()static ContentFamilyvalueOf(String familyId)
-
-
-
Method Detail
-
valueOf
public static ContentFamily valueOf(String familyId)
-
forContentType
public static ContentFamily forContentType(ContentType contentType)
-
forContentType
public static ContentFamily forContentType(String contentType)
-
getId
public String getId()
-
getDisplayName
public String getDisplayName()
-
contains
public boolean contains(ContentType contentType)
-
contains
public boolean contains(String contentType)
-
-