Skip to content

Package io.github.qishr.cascara.common.content.type

Class MergedContentType

java.lang.Object
        io.github.qishr.cascara.common.content.type.MergedContentType


public final class MergedContentType

A runtime\u2011merged content type produced by the ContentTypeNormalizer.This object represents a group of module\u2011declared ContentType instances that were determined to be equivalent based on MIME type intersection and suffix matching.

MergedContentType is ephemeral. It is created fresh each time the normalizer runs and is reconciled against the persistent canonical registry to determine stable canonical IDs.

This class is NOT persisted and should never be used as a long\u2011term identifier for content types.

Constructor Summary

Constructor Description
MergedContentType(String canonicalId, String canonicalName, Set<String> mergedSuffixes, Set<String> mergedMimeTypes, List<ContentType> originals)

Method Summary

Modifier and Type Method Description
public String getCanonicalId()
public String getName()
public Set<String> getSuffixes()
public Set<String> getMimeTypes()
public List<ContentType> getOriginalDeclarations()
public void setCanonicalId(String canonicalId)
public void setName(String canonicalName)
public void setSuffixes(Set<String> mergedSuffixes)
public void setMimeTypes(Set<String> mergedMimeTypes)
public void setOriginalDeclarations(List<ContentType> originalDeclarations)

Method Details

getCanonicalId

public String getCanonicalId()


getName

public String getName()


getSuffixes

public Set<String> getSuffixes()


getMimeTypes

public Set<String> getMimeTypes()


getOriginalDeclarations

public List<ContentType> getOriginalDeclarations()


setCanonicalId

public void setCanonicalId(String canonicalId)


setName

public void setName(String canonicalName)


setSuffixes

public void setSuffixes(Set<String> mergedSuffixes)


setMimeTypes

public void setMimeTypes(Set<String> mergedMimeTypes)


setOriginalDeclarations

public void setOriginalDeclarations(List<ContentType> originalDeclarations)