package org.ovirt.engine.core.common.businessentities;

public class OpenstackNetworkProviderProperties extends TenantProviderProperties {

    private static final long serialVersionUID = -7470940167999871534L;

    private String pluginType;

    public String getPluginType() {
        return pluginType;
    }

    public void setPluginType(String pluginType) {
        this.pluginType = pluginType;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = super.hashCode();
        result = prime * result + ((getPluginType() == null) ? 0 : getPluginType().hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!super.equals(obj)) {
            return false;
        }
        if (!(obj instanceof OpenstackNetworkProviderProperties)) {
            return false;
        }
        OpenstackNetworkProviderProperties other = (OpenstackNetworkProviderProperties) obj;
        if (!getPluginType().equals(other.getPluginType())) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("OpenstackNetworkProviderProperties [pluginType=")
                .append(getPluginType())
                .append(", tenantName=")
                .append(getTenantName())
                .append("]");
        return builder.toString();
    }

}

@@ -396,32 +396,680 @@
 ginType;%0A    %7D%0A%0A
+    /**%0A     * Convenience method to know if the plugin represented is Linux Bridge.%0A     *%0A     * @return %3Ccode%3Etrue%3C/code%3E iff the plugin type represents a Linux Bridge plugin.%0A     */%0A    public final boolean isLinuxBridge() %7B%0A        return OpenstackNetworkPluginType.LINUX_BRIDGE.name().equals(getPluginType());%0A    %7D%0A%0A    /**%0A     * Convenience method to know if the plugin represented is Open vSwitch.%0A     *%0A     * @return %3Ccode%3Etrue%3C/code%3E iff the plugin type represents a Open vSwitch plugin.%0A     */%0A    public final boolean isOpenVSwitch() %7B%0A        return OpenstackNetworkPluginType.OPEN_VSWITCH.name().equals(getPluginType());%0A    %7D%0A%0A
     @Override%0A  

Add convenience methods for plugin types