コード例 #1
0
ファイル: KeyBinding.java プロジェクト: Titousensei/sisyphus
 public static KeyBinding loadStrict(String filename, String keyname, String valuename)
     throws LoadingException, SchemaException {
   KeyBinding ret = load(filename);
   List<String> sch = ret.getSchemaIn();
   if (keyname.equals(sch.get(0)) && valuename.equals(sch.get(1))) {
     return ret;
   } else {
     throw new SchemaException("[" + keyname + "," + valuename + "] != " + sch);
   }
 }