Skip to content

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

Class ContentTypeStore

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

All Implemented Interfaces:
    ContentTypeResolver


public class ContentTypeStore

Method Summary

Modifier and Type Method Description
public Properties getServiceProperties()
public static ContentTypeStore instance()
public void setReporter(Reporter reporter)
public List<ContentType> getAll()
public void addAll(List<? extends ContentType> contentTypes)
public void add(ContentType contentType)
public ContentType resolve(String type)
public void reconcile(List<MergedContentType> types, ContentTypeRegistry registry)
public void debugOutputTypes(List<ContentType> types)

Method Details

getServiceProperties

public Properties getServiceProperties()


instance

public static ContentTypeStore instance()


setReporter

public void setReporter(Reporter reporter)


getAll

public List<ContentType> getAll()

Throws:

ContentTypeException


addAll

public void addAll(List<? extends ContentType> contentTypes)


add

public void add(ContentType contentType)


resolve

public ContentType resolve(String type)

Specified By:

ContentTypeResolver


reconcile

public void reconcile(List<MergedContentType> types, ContentTypeRegistry registry)


debugOutputTypes

public void debugOutputTypes(List<ContentType> types)