public boolean codeMatches(String queryCode){
  if (codePosition != null && code != null) {
    int startIndex=codePosition.startIndex;
    int length=code.indexOf('-');
    if (length == -1) {
      length=code.length();
    }
    if (Debug.debugging("symbology.detail")) {
      Debug.output("Checking " + queryCode + " against |"+ code+ "| starting at "+ startIndex+ " for "+ length);
    }
    return queryCode.regionMatches(true,startIndex,code,0,length);
  }
  return true;
}

public boolean codeMatches ( String queryCode ) { if ( codePosition != null && code != null ) { int startIndex = codePosition . startIndex ; int length = code . indexOf ( '-' ) ; if ( length == - 1 ) { length = code . length ( ) ; } if ( Debug . debugging ( "symbology.detail" ) ) { Debug . output ( "Checking " + queryCode + " against |" + code + "| starting at " + startIndex + " for " + length ) ; } return queryCode . regionMatches ( true , startIndex , code , 0 , length ) ; } return true ; }
a query method that answers if the given 15 digit code applies to this symbol part .
