Class ProjectMetricStorage
java.lang.Object
com.e1c.langtool.internal.stat.db.ProjectMetricStorage
-
Constructor Summary
ConstructorsConstructorDescriptionProjectMetricStorage(org.eclipse.core.resources.IProject project, Collection<TranslateLanguage> languages) Instantiates a new project metric storage. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the store.booleandelete()Delete the store files from disk.booleandelete(TranslateLanguage language) Delete the store files from disk.getPercentage(org.eclipse.core.runtime.IPath path, TranslateLanguage language) getTotalPercentage(TranslateLanguage language) getTotalValues(TranslateLanguage language) getValues(org.eclipse.core.runtime.IPath path) getValues(org.eclipse.core.runtime.IPath path, TranslateLanguage language) booleanisEmpty()voidopen()Open the storage.putPercentage(org.eclipse.core.runtime.IPath path, TranslateLanguage language, MetricPercentage percentage) putValues(org.eclipse.core.runtime.IPath path, MetricValues values) putValues(org.eclipse.core.runtime.IPath path, TranslateLanguage language, MetricValues values) removePercentage(org.eclipse.core.runtime.IPath path, TranslateLanguage language) removeValues(org.eclipse.core.runtime.IPath path) removeValues(org.eclipse.core.runtime.IPath path, TranslateLanguage language) Iterator<org.eclipse.core.runtime.IPath>voidsetTotalPercentage(TranslateLanguage language, MetricPercentage totalPercentage) voidsetTotalValues(MetricValues totalValues) voidsetTotalValues(TranslateLanguage language, MetricValues totalValues) booleanvaluesExists(org.eclipse.core.runtime.IPath path)
-
Constructor Details
-
ProjectMetricStorage
public ProjectMetricStorage(org.eclipse.core.resources.IProject project, Collection<TranslateLanguage> languages) Instantiates a new project metric storage.- Parameters:
project- the project, cannot benull.languages- the initial languages of the project on the start, cannot benull.
-
-
Method Details
-
getTotalValues
-
setTotalValues
-
getTotalValues
-
setTotalValues
-
getTotalPercentage
-
setTotalPercentage
-
getValues
-
isEmpty
public boolean isEmpty() -
valuesExists
public boolean valuesExists(org.eclipse.core.runtime.IPath path) -
getValues
-
putValues
-
putValues
public MetricValues putValues(org.eclipse.core.runtime.IPath path, TranslateLanguage language, MetricValues values) -
removeValues
-
removeValues
-
getPercentage
public MetricPercentage getPercentage(org.eclipse.core.runtime.IPath path, TranslateLanguage language) -
putPercentage
public MetricPercentage putPercentage(org.eclipse.core.runtime.IPath path, TranslateLanguage language, MetricPercentage percentage) -
removePercentage
public MetricPercentage removePercentage(org.eclipse.core.runtime.IPath path, TranslateLanguage language) -
resourceIterator
-
open
public void open()Open the storage. -
close
public void close()Close the store. -
delete
public boolean delete()Delete the store files from disk. -
delete
Delete the store files from disk.
-