com.atlassian.confluence.core
Interface BodyTypeFactory


public interface BodyTypeFactory

Describes a factory responsible for providing a consistent and fixed set of BodyType instances to other components.

Since:
4.0

Method Summary
 BodyType getBodyType(String type)
          Return a body type which isn't one of the core types with their own direct accessor.
 BodyType getMailBodyType()
           
 BodyType getWikiBodyType()
           
 BodyType getXhtmlBodyType()
           
 void initialiseBodyTypes()
          For use during setup to ensure all the necessary BodyTypes have been created.
 

Method Detail

initialiseBodyTypes

void initialiseBodyTypes()
For use during setup to ensure all the necessary BodyTypes have been created.


getXhtmlBodyType

BodyType getXhtmlBodyType()
Returns:
the body type representing Xhtml.

getMailBodyType

BodyType getMailBodyType()
Returns:
the body type representing Mail.

getWikiBodyType

BodyType getWikiBodyType()
Returns:
the body type representing wiki markup.

getBodyType

BodyType getBodyType(String type)
Return a body type which isn't one of the core types with their own direct accessor. The BodyType matching the supplied String is returned or null if there is no BodyType matching the requested type.

Parameters:
type - the String representation of the BodyType required
Returns:
the matching BodyType or null if there is no BodyType in the system for the supplied String.


Copyright © 2003–2015 Atlassian. All rights reserved.