class ChefPackage {

    public boolean addProperty(String propertyName, String propertyValue) {
        Boolean propertyAdded = false;

        switch (propertyName) {
            case ChefDslConstants.PACKAGE_NAME_PROPERTY:
                setPackageName(propertyValue);
                propertyAdded = true;
                break;
            case ChefDslConstants.PACKAGE_VERSION_PROPERTY:
                setVersion(propertyValue);
                propertyAdded = true;
                break;
            case "action":
                setAction(propertyValue);
                propertyAdded = true;
                break;
            default:
                propertyAdded = false;
                break;
        }
        return propertyAdded;
    }

    public  ChefPackage(String name);
    public  ChefPackage(String name, String version);
    public  ChefPackage(ChefPackage chefPackage);

}