public boolean hasTargetLocation(String value) { 
      if (this.targetLocation == null)
        return false;
      for (StringType v : this.targetLocation)
        if (v.getValue().equals(value)) // string
          return true;
      return false;
    }
public boolean hasTargetLocation ( String value ) { if ( this . targetLocation == null ) return false ; for ( StringType v : this . targetLocation ) if ( v . getValue ( ) . equals ( value ) ) return true ; return false ; }
@param value {@link #targetLocation} (The fhirpath location(s) within the resource that was validated.)