func (sw Software) Validate() error {
	if sw.PrivateEnterpriseNumber <= 0 {
		return errors.NewNotValid(nil, "missing PrivateEnterpriseNumber")
	}
	if sw.Name == "" {
		return errors.NewNotValid(nil, "empty Name")
	}
	if sw.Version == version.Zero {
		return errors.NewNotValid(nil, "empty Version")
	}
	return nil
}
// Validate ensures that the software info is correct.
Validate ensures that the software info is correct.
// Validate ensures that the software info is correct .
func (sw Software) Validate() error {
	if sw.PrivateEnterpriseNumber <= 0 {
		return errors.NewNotValid(nil, "missing PrivateEnterpriseNumber")
	}
	if sw.Name == "" {
		return errors.NewNotValid(nil, "empty Name")
	}
	if sw.Version == version.Zero {
		return errors.NewNotValid(nil, "empty Version")
	}
	return nil
}
func ( sw Software ) Validate ( ) error { if sw . PrivateEnterpriseNumber <= 0 { return errors . NewNotValid ( nil , " " ) } if sw . Name == " " { return errors . NewNotValid ( nil , " " ) } if sw . Version == version . Zero { return errors . NewNotValid ( nil , " " ) } return nil }
Validate ensures that the software info is correct.
Validate ensures that the software info is correct .