com.atlassian.confluence.plugins.emailgateway.api
Class BaseLinkConverter<B>

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.api.BaseLinkConverter<B>
All Implemented Interfaces:
LinkConverter<B,Link>
Direct Known Subclasses:
ConfluenceLinkConverter, YouTubeLinkConverter

@PublicSpi
public abstract class BaseLinkConverter<B>
extends java.lang.Object
implements LinkConverter<B,Link>

A base class for converters, with common behaviour baked in.

Since:
5.3

Constructor Summary
BaseLinkConverter()
           
 
Method Summary
 java.lang.Class<Link> getConversionClass()
          Returns the class of the Object after conversion.
 boolean isFinal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.plugins.emailgateway.api.LinkConverter
convert
 

Constructor Detail

BaseLinkConverter

public BaseLinkConverter()
Method Detail

isFinal

public boolean isFinal()
Specified by:
isFinal in interface LinkConverter<B,Link>
Returns:
true if no converters should run after this one handles a link.

getConversionClass

public java.lang.Class<Link> getConversionClass()
Description copied from interface: LinkConverter
Returns the class of the Object after conversion. This is required for lookup against the MarshallingRegistry, as the key Class in the registry may be a superclass or interface of the actual Object returned by the conversion.

Specified by:
getConversionClass in interface LinkConverter<B,Link>
Returns:
the class of the Object after conversion.


Copyright © 2003-2014 Atlassian. All Rights Reserved.