com.atlassian.confluence.macro
Class V2CompatibilityModuleDescriptorPredicate

java.lang.Object
  extended by com.atlassian.confluence.macro.V2CompatibilityModuleDescriptorPredicate
All Implemented Interfaces:
com.atlassian.plugin.predicate.ModuleDescriptorPredicate<com.atlassian.renderer.v2.macro.Macro>

public class V2CompatibilityModuleDescriptorPredicate
extends Object
implements com.atlassian.plugin.predicate.ModuleDescriptorPredicate<com.atlassian.renderer.v2.macro.Macro>

Predicate class that encapsulates the logic of determining whether a particular module descriptor should be accepted as a v2 compatibility module descriptor.

In this specific case, the module descriptor is going to be a macro module descriptor of some description. This class is interested in testing whether the macro produced by ModuleDescriptor.getModule() should be accepted as a v2 compatibility macro.


Constructor Summary
V2CompatibilityModuleDescriptorPredicate()
           
 
Method Summary
 boolean matches(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

V2CompatibilityModuleDescriptorPredicate

public V2CompatibilityModuleDescriptorPredicate()
Method Detail

matches

public boolean matches(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Specified by:
matches in interface com.atlassian.plugin.predicate.ModuleDescriptorPredicate<com.atlassian.renderer.v2.macro.Macro>


Copyright © 2003-2011 Atlassian. All Rights Reserved.