Class FormCollection
java.lang.Object
it.uniroma2.art.semanticturkey.customform.FormCollection
A collection of
CustomForm
- Author:
- Tiziano
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFormCollection
(String id) FormCollection
(String id, Collection<CustomForm> forms) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addForm
(CustomForm form) Adds aCustomForm
to the current collectionvoid
addSuggestion
(org.eclipse.rdf4j.model.IRI suggestion) Adds a property/class to the suggestions listvoid
addSuggestions
(Collection<org.eclipse.rdf4j.model.IRI> suggestions) Adds a collection of properties/classes to the suggestions listboolean
containsForm
(CustomForm customForm) Returns true if the collection contains aCustomForm
with the given IDboolean
containsForm
(String formId) Returns true if the collection contains aCustomForm
with the given IDgetCustomForm
(String formId) Returns theCustomForm
with the given ID.getForms()
Returns theCustomForm
s contained in this collectionReturns all the id of the forms contained in the collectionReturns theCustomForm
s of type graph contained in this collectiongetId()
Returns the ID of the CustomForm.getLevel()
Collection<org.eclipse.rdf4j.model.IRI>
Returns a collection of properties/classes suggested for the form collectionvoid
removeForm
(CustomForm customForm) Removes the givenCustomForm
from this collectionvoid
removeForm
(String formId) Removes theCustomForm
with the given id from this collectionvoid
removeSuggestion
(org.eclipse.rdf4j.model.IRI suggestion) Removes a class/property from the suggestion listvoid
Serialize theFormCollection
on a xml file.void
setForms
(Collection<CustomForm> forms) Sets the forms of the collectionvoid
setLevel
(CustomFormLevel level) void
setSuggestions
(Collection<org.eclipse.rdf4j.model.IRI> suggestions)
-
Field Details
-
PREFIX
-
-
Constructor Details
-
FormCollection
-
FormCollection
-
-
Method Details
-
getId
Returns the ID of the CustomForm.- Returns:
-
getForms
Returns theCustomForm
s contained in this collection- Returns:
-
setForms
Sets the forms of the collection- Parameters:
forms
-
-
getGraphForms
Returns theCustomForm
s of type graph contained in this collection- Returns:
-
getCustomForm
Returns theCustomForm
with the given ID. Null if it doesn't exists in this collection- Parameters:
formId
-- Returns:
-
addForm
Adds aCustomForm
to the current collection- Parameters:
form
-- Returns:
- true if the form is added, false if it is already present in the current collection
-
removeForm
Removes theCustomForm
with the given id from this collection- Parameters:
formId
-
-
removeForm
Removes the givenCustomForm
from this collection- Parameters:
formId
-
-
containsForm
Returns true if the collection contains aCustomForm
with the given ID- Parameters:
formId
-- Returns:
-
containsForm
Returns true if the collection contains aCustomForm
with the given ID- Parameters:
formId
-- Returns:
-
getFormsId
Returns all the id of the forms contained in the collection- Returns:
-
getLevel
-
setLevel
-
getSuggestions
Returns a collection of properties/classes suggested for the form collection- Returns:
-
setSuggestions
-
addSuggestions
Adds a collection of properties/classes to the suggestions list- Parameters:
suggestions
-
-
addSuggestion
public void addSuggestion(org.eclipse.rdf4j.model.IRI suggestion) Adds a property/class to the suggestions list- Parameters:
suggestions
-
-
removeSuggestion
public void removeSuggestion(org.eclipse.rdf4j.model.IRI suggestion) Removes a class/property from the suggestion list- Parameters:
suggestion
-
-
save
Serialize theFormCollection
on a xml file.- Throws:
ParserConfigurationException
-