1 package org.unicode.cldr.test; 2 3 import java.util.List; 4 5 import org.unicode.cldr.test.CheckCLDR.CheckStatus.Subtype; 6 import org.unicode.cldr.util.CldrUtility; 7 8 public class CheckForInheritanceMarkers extends CheckCLDR { 9 10 @Override handleCheck(String path, String fullPath, String value, Options options, List<CheckStatus> result)11 public CheckCLDR handleCheck(String path, String fullPath, String value, Options options, 12 List<CheckStatus> result) { 13 if (value == null) { 14 return this; 15 } 16 17 if (value.contains(CldrUtility.INHERITANCE_MARKER)) { 18 result.add(new CheckStatus().setCause(this) 19 .setMainType(CheckStatus.errorType) 20 .setSubtype(Subtype.inheritanceMarkerNotAllowed) 21 .setMessage("Inheritance marker " + CldrUtility.INHERITANCE_MARKER + " not allowed in a data value.")); 22 } 23 return this; 24 } 25 } 26