Skip to content
Snippets Groups Projects
Commit 5de17b10 authored by Jakub Kolman's avatar Jakub Kolman
Browse files

[#81] documantation: added documantation to classes

parent 9980bca9
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,10 @@ import cz.fidentis.analyst.feature.services.FeaturePointsCsvExporter; ...@@ -24,7 +24,10 @@ import cz.fidentis.analyst.feature.services.FeaturePointsCsvExporter;
import cz.fidentis.analyst.feature.services.FeaturePointsFpExporter; import cz.fidentis.analyst.feature.services.FeaturePointsFpExporter;
/** /**
* * Class used for exporting feature points from file
*
* for more details @see cz.fidentis.analyst.feature.services.FeaturePointsCsvExporter or @see cz.fidentis.analyst.feature.services.FeaturePointsFpExporter
*
* @author kubok * @author kubok
*/ */
public class FeaturePointExportService { public class FeaturePointExportService {
...@@ -40,6 +43,7 @@ public class FeaturePointExportService { ...@@ -40,6 +43,7 @@ public class FeaturePointExportService {
FeaturePointsFpExporter fpExporter = new FeaturePointsFpExporter(); FeaturePointsFpExporter fpExporter = new FeaturePointsFpExporter();
fpExporter.exportFeaturePointsToFP(featurePointList, objectName); fpExporter.exportFeaturePointsToFP(featurePointList, objectName);
break; break;
default: default:
break; break;
} }
......
...@@ -15,7 +15,8 @@ import java.util.logging.Level; ...@@ -15,7 +15,8 @@ import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
/** /**
* * Class used to export feature points to file of csv format
*
* @author kubok * @author kubok
*/ */
public class FeaturePointsCsvExporter { public class FeaturePointsCsvExporter {
...@@ -54,29 +55,6 @@ public class FeaturePointsCsvExporter { ...@@ -54,29 +55,6 @@ public class FeaturePointsCsvExporter {
} }
} }
// public static void marshal() throws JAXBException, IOException {
// FeaturePointType fpt = new FeaturePointType(
// 1,
// "Exocanthion R",
// "The point at the outer commissure of the eye where the outer margin of the upper eyelid meets the lower eyelid. If the precise spot cannot be found then the location is in the intersection of imaginary lines obtained by prolonging the eyelid margins. The point is bilateral.",
// "EX_R");
// FeaturePoint fp = new FeaturePoint(10, 20, 30, fpt);
//
// JAXBContext context = JAXBContext.newInstance(FeaturePoint.class);
// Marshaller mar = context.createMarshaller();
// mar.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
// mar.marshal(fp, new File("./fp.xml"));
// }
//
// public static FeaturePoint unmarshall() throws JAXBException, IOException {
// JAXBContext context = JAXBContext.newInstance(FeaturePoint.class);
// return (FeaturePoint) context.createUnmarshaller()
// .unmarshal(new FileReader("./fp.xml"));
// }
//
// public static void main() throws JAXBException, IOException {
// marshal();
// unmarshall();
// }
} }
...@@ -20,7 +20,8 @@ import java.util.Optional; ...@@ -20,7 +20,8 @@ import java.util.Optional;
import java.util.stream.Stream; import java.util.stream.Stream;
/** /**
* * Class used to import feature points from file of csv format
*
* @author kubok * @author kubok
*/ */
public class FeaturePointsCsvLoader { public class FeaturePointsCsvLoader {
......
...@@ -16,7 +16,8 @@ import java.util.logging.Level; ...@@ -16,7 +16,8 @@ import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
/** /**
* * Class used to export feature points to file of fp format
*
* @author kubok * @author kubok
*/ */
public class FeaturePointsFpExporter { public class FeaturePointsFpExporter {
...@@ -48,31 +49,6 @@ public class FeaturePointsFpExporter { ...@@ -48,31 +49,6 @@ public class FeaturePointsFpExporter {
bw.write("</facialPoints>"); bw.write("</facialPoints>");
} }
} }
// public static void marshal() throws JAXBException, IOException {
// FeaturePointType fpt = new FeaturePointType(
// 1,
// "Exocanthion R",
// "The point at the outer commissure of the eye where the outer margin of the upper eyelid meets the lower eyelid. If the precise spot cannot be found then the location is in the intersection of imaginary lines obtained by prolonging the eyelid margins. The point is bilateral.",
// "EX_R");
// FeaturePoint fp = new FeaturePoint(10, 20, 30, fpt);
//
// JAXBContext context = JAXBContext.newInstance(FeaturePoint.class);
// Marshaller mar = context.createMarshaller();
// mar.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
// mar.marshal(fp, new File("./fp.xml"));
// }
//
// public static FeaturePoint unmarshall() throws JAXBException, IOException {
// JAXBContext context = JAXBContext.newInstance(FeaturePoint.class);
// return (FeaturePoint) context.createUnmarshaller()
// .unmarshal(new FileReader("./fp.xml"));
// }
//
// public static void main() throws JAXBException, IOException {
// marshal();
// unmarshall();
// }
} }
...@@ -19,7 +19,8 @@ import java.util.Optional; ...@@ -19,7 +19,8 @@ import java.util.Optional;
import java.util.stream.Stream; import java.util.stream.Stream;
/** /**
* * Class used to import feature points from file of fp format
*
* @author kubok * @author kubok
*/ */
public class FeaturePointsFpLoader { public class FeaturePointsFpLoader {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment