plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/transforms/graph/ModelTargetType.java
public static ModelTargetType parseCode(String code) {
    if (code == null) {
      return Unmapped;
    }
    try {
      return ModelTargetType.valueOf(code);
    } catch (IllegalArgumentException e) {
      return Unmapped;
    }
  }
/**
   * Default to Unmapped in case we can't recognize the code or is null
   *
   * @param code
   * @return
   */
Default to Unmapped in case we can't recognize the code or is null
@param code
@return
Default to Unmapped in case we can ' t recognize the code or is null @param code @return
public static ModelTargetType parseCode(String code) {
    if (code == null) {
      return Unmapped;
    }
    try {
      return ModelTargetType.valueOf(code);
    } catch (IllegalArgumentException e) {
      return Unmapped;
    }
  }
public static ModelTargetType parseCode ( String code ) { if ( code == null ) { return Unmapped ; } try { return ModelTargetType . valueOf ( code ) ; } catch ( IllegalArgumentException e ) { return Unmapped ; } }
Default to Unmapped in case we can't recognize the code or is null
 @param code
 @return
Default to Unmapped in case we can ' t recognize the code or is null @param code @return