Class CustomViewsManager
java.lang.Object
it.uniroma2.art.semanticturkey.customviews.CustomViewsManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
associationExists
(org.eclipse.rdf4j.model.IRI property) Returns true if an association for the given property already exists, namely if the given property has a CustomViewboolean
customViewExists
(String reference) Returns true if a custom view with the given reference existsvoid
deleteAssociation
(Reference reference) void
deleteCustomView
(Reference reference) getAssociationForProperty
(org.eclipse.rdf4j.model.IRI property) Given a property, returns the association, if any, null otherwisegetCustomView
(String reference) Given a reference returns the CVgetCustomViewForProperty
(org.eclipse.rdf4j.model.IRI property) Given a property, returns the CV associated, if any, null otherwiseReturns the identifiers (configurations references) of CVsLists the available associationsvoid
storeAssociation
(org.eclipse.rdf4j.model.IRI property, String customViewRef, ViewsEnum defaultView) void
storeCustomView
(Reference reference, CustomView customView) void
storeCustomViewFromFile
(Reference reference, File srcFile)
-
Constructor Details
-
CustomViewsManager
public CustomViewsManager(Project project, ExtensionPointManager exptManager) throws STPropertyAccessException, NoSuchConfigurationManager
-
-
Method Details
-
listRefAssociationsMap
-
getCustomViewsIdentifiers
Returns the identifiers (configurations references) of CVs- Returns:
-
getCustomView
Given a reference returns the CV- Parameters:
reference
-- Returns:
-
getCustomViewFile
-
getCustomViewForProperty
Given a property, returns the CV associated, if any, null otherwise- Parameters:
property
-- Returns:
-
storeCustomView
public void storeCustomView(Reference reference, CustomView customView) throws STPropertyUpdateException, WrongPropertiesException, IOException -
storeCustomViewFromFile
public void storeCustomViewFromFile(Reference reference, File srcFile) throws IOException, STPropertyAccessException - Throws:
IOException
STPropertyAccessException
-
deleteCustomView
- Throws:
ConfigurationNotFoundException
-
customViewExists
Returns true if a custom view with the given reference exists- Parameters:
reference
-- Returns:
-
listAssociation
Lists the available associations- Returns:
-
getAssociationForProperty
Given a property, returns the association, if any, null otherwise- Parameters:
property
-- Returns:
-
storeAssociation
public void storeAssociation(org.eclipse.rdf4j.model.IRI property, String customViewRef, ViewsEnum defaultView) throws ConfigurationNotFoundException, STPropertyUpdateException, WrongPropertiesException, IOException -
deleteAssociation
- Throws:
ConfigurationNotFoundException
-
associationExists
public boolean associationExists(org.eclipse.rdf4j.model.IRI property) Returns true if an association for the given property already exists, namely if the given property has a CustomView- Parameters:
property
-- Returns:
-