Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static DataSet getApartmentsDataSet() throws Exception {
- DataSetSpecification spec = createApartmentsDataSetSpec();
- return new DataSetFactory().fromFile("apartments", spec, "\\s+");
- }
- public static DataSetSpecification createApartmentsDataSetSpec() {
- DataSetSpecification dss = new DataSetSpecification();
- dss.defineStringAttribute("zona", new String[] {"Centru", "Marasti", "Gheorgheni", "Buna-Ziua", "Zorilor", "Manastur", "Baciu", "Floresti", "Grigorescu"});
- dss.defineStringAttribute("nr_camere", new String[] {"1", "2", "3"});
- dss.defineStringAttribute("suprafata", new String[] {"mic", "mediu", "mare"});
- dss.defineStringAttribute("pret", new String[] { "Cheap",
- "Medium", "Expensive" });
- return dss;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement