Class CustomViewsManager
java.lang.Object
it.uniroma2.art.semanticturkey.customviews.CustomViewsManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassociationExists(org.eclipse.rdf4j.model.IRI property) Returns true if an association for the given property already exists, namely if the given property has a CustomViewbooleancustomViewExists(String reference) Returns true if a custom view with the given reference existsvoiddeleteAssociation(Reference reference) voiddeleteCustomView(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 associationsvoidstoreAssociation(org.eclipse.rdf4j.model.IRI property, String customViewRef, ViewsEnum defaultView) voidstoreCustomView(Reference reference, CustomView customView) voidstoreCustomViewFromFile(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:
IOExceptionSTPropertyAccessException
-
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:
-