CPD Results

The following document contains the results of PMD's CPD 3.9.

Duplications

FileLine
org/andromda/cartridges/spring/metafacades/SpringQueueLogicImpl.java15
org/andromda/cartridges/spring/metafacades/SpringTopicLogicImpl.java15
    public SpringTopicLogicImpl (Object metaObject, String context)
    {
        super (metaObject, context);
    }

    /**
     * @see org.andromda.cartridges.spring.metafacades.SpringTopic#getBeanName()
     */
    protected java.lang.String handleGetBeanName()
    {
        return StringUtilsHelper.lowerCamelCaseName(this.getName());
    }

    /**
     * @see org.andromda.cartridges.spring.metafacades.SpringTopic#getTemplateBeanName()
     */
    protected String handleGetTemplateBeanName()
    {
        return StringUtilsHelper.lowerCamelCaseName(this.getTemplatePattern().replaceAll(
            "\\{0\\}",
            this.getName()));
    }

    /**
     * @see org.andromda.cartridges.spring.metafacades.SpringTopic#getTemplateGetterName()
     */
    protected String handleGetTemplateGetterName()
    {
        return "get" + StringUtilsHelper.capitalize(this.getTemplateBeanName());
    }

    /**
     * @see org.andromda.cartridges.spring.metafacades.SpringTopic#getTemplateSetterName()
     */
    protected String handleGetTemplateSetterName()
    {
        return "set" + StringUtilsHelper.capitalize(this.getTemplateBeanName());
    }
    
    /**
     * Gets the value of the {@link SpringGlobals#JMS_DESTINATION_TEMPLATE_PATTERN}
     *
     * @return the template name pattern.
     */
    private String getTemplatePattern()
    {
        return String.valueOf(this.getConfiguredProperty(SpringGlobals.JMS_DESTINATION_TEMPLATE_PATTERN));
    }

}