operator/src/main/java/oracle/kubernetes/operator/helpers/DomainTopology.java
public static DomainTopology parseDomainTopologyYaml(String topologyYaml, Consumer<List<String>> errorReporter) {
    final DomainTopology domainTopology = parseDomainTopologyYaml(topologyYaml);
    if (domainTopology == null || domainTopology.getDomainValid()) {
      return domainTopology;
    } else {
      errorReporter.accept(domainTopology.validationErrors);
      return null;
    }
  }
/**
   * Parses a topology yaml. If validation errors occur, logs them and returns null.
   * @param topologyYaml the YAML to parse
   * @param errorReporter processing for the validation errors
   * @return a valid topology or null
   */
Parses a topology yaml. If validation errors occur, logs them and returns null.
@param topologyYaml the YAML to parse
@param errorReporter processing for the validation errors
@return a valid topology or null
Parses a topology yaml . If validation errors occur logs them and returns null . @param topologyYaml the YAML to parse @param errorReporter processing for the validation errors @return a valid topology or null
public static DomainTopology parseDomainTopologyYaml(String topologyYaml, Consumer<List<String>> errorReporter) {
    final DomainTopology domainTopology = parseDomainTopologyYaml(topologyYaml);
    if (domainTopology == null || domainTopology.getDomainValid()) {
      return domainTopology;
    } else {
      errorReporter.accept(domainTopology.validationErrors);
      return null;
    }
  }
public static DomainTopology parseDomainTopologyYaml ( String topologyYaml , Consumer < List < String > > errorReporter ) { final DomainTopology domainTopology = parseDomainTopologyYaml ( topologyYaml ) ; if ( domainTopology == null || domainTopology . getDomainValid ( ) ) { return domainTopology ; } else { errorReporter . accept ( domainTopology . validationErrors ) ; return null ; } }
Parses a topology yaml.
Parses a topology yaml .