com.atlassian.confluence.api.extension.typebinding
Class AbstractContentTypeBinding

java.lang.Object
  extended by com.atlassian.confluence.api.extension.typebinding.AbstractContentTypeBinding
All Implemented Interfaces:
ContentTypeBinding
Direct Known Subclasses:
AttachmentContentTypeBinding, PageContentTypeBinding

@PublicSpi
public abstract class AbstractContentTypeBinding
extends java.lang.Object
implements ContentTypeBinding

Abstract ContentTypeBinding impl with some common helper methods.


Constructor Summary
AbstractContentTypeBinding(ContentType handledType, java.util.Set<ContentType> parentTypes)
           
 
Method Summary
 ContentType getHandledType()
           
 boolean handlesParentType(ContentType type)
           
 
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.api.extension.typebinding.ContentTypeBinding
getChildren
 

Constructor Detail

AbstractContentTypeBinding

public AbstractContentTypeBinding(ContentType handledType,
                                  java.util.Set<ContentType> parentTypes)
Method Detail

getHandledType

public ContentType getHandledType()
Specified by:
getHandledType in interface ContentTypeBinding
Returns:
the ContentType of the Content that this service provides.

handlesParentType

public boolean handlesParentType(ContentType type)
Specified by:
handlesParentType in interface ContentTypeBinding
Returns:
true if Content of this binding's ContentType can be a child of content of the given type


Copyright © 2003-2014 Atlassian. All Rights Reserved.