func (eid OriginEnterpriseID) Validate() error {
	for i, num := range eid.SubTree {
		if num <= 0 {
			return fmt.Errorf("Subtree[%d] must be positive integer", i)
		}
	}

	return eid.Number.Validate()
}
// Validate ensures that the ID is correct.
Validate ensures that the ID is correct.
// Validate ensures that the ID is correct .
func (eid OriginEnterpriseID) Validate() error {
	for i, num := range eid.SubTree {
		if num <= 0 {
			return fmt.Errorf("Subtree[%d] must be positive integer", i)
		}
	}
	return eid.Number.Validate()
}
func ( eid OriginEnterpriseID ) Validate ( ) error { for i , num := range eid . SubTree { if num <= 0 { return fmt . Errorf ( " " , i ) } } return eid . Number . Validate ( ) }
Validate ensures that the ID is correct.
Validate ensures that the ID is correct .