public boolean hasParentSubstanceName(String value) { 
      if (this.parentSubstanceName == null)
        return false;
      for (StringType v : this.parentSubstanceName)
        if (v.getValue().equals(value)) // string
          return true;
      return false;
    }
public boolean hasParentSubstanceName ( String value ) { if ( this . parentSubstanceName == null ) return false ; for ( StringType v : this . parentSubstanceName ) if ( v . getValue ( ) . equals ( value ) ) return true ; return false ; }
@param value {@link #parentSubstanceName} (The parent substance of the Herbal Drug, or Herbal preparation.)