Class FormCollection

java.lang.Object
it.uniroma2.art.semanticturkey.customform.FormCollection

public class FormCollection extends Object
A collection of CustomForm
Author:
Tiziano
  • Field Details

    • PREFIX

      public static String PREFIX
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Returns the ID of the CustomForm.
      Returns:
    • getForms

      public Collection<CustomForm> getForms()
      Returns the CustomForms contained in this collection
      Returns:
    • setForms

      public void setForms(Collection<CustomForm> forms)
      Sets the forms of the collection
      Parameters:
      forms -
    • getGraphForms

      public Collection<CustomFormGraph> getGraphForms()
      Returns the CustomForms of type graph contained in this collection
      Returns:
    • getCustomForm

      public CustomForm getCustomForm(String formId)
      Returns the CustomForm with the given ID. Null if it doesn't exists in this collection
      Parameters:
      formId -
      Returns:
    • addForm

      public boolean addForm(CustomForm form)
      Adds a CustomForm to the current collection
      Parameters:
      form -
      Returns:
      true if the form is added, false if it is already present in the current collection
    • removeForm

      public void removeForm(String formId)
      Removes the CustomForm with the given id from this collection
      Parameters:
      formId -
    • removeForm

      public void removeForm(CustomForm customForm)
      Removes the given CustomForm from this collection
      Parameters:
      formId -
    • containsForm

      public boolean containsForm(String formId)
      Returns true if the collection contains a CustomForm with the given ID
      Parameters:
      formId -
      Returns:
    • containsForm

      public boolean containsForm(CustomForm customForm)
      Returns true if the collection contains a CustomForm with the given ID
      Parameters:
      formId -
      Returns:
    • getFormsId

      public Collection<String> getFormsId()
      Returns all the id of the forms contained in the collection
      Returns:
    • getLevel

      public CustomFormLevel getLevel()
    • setLevel

      public void setLevel(CustomFormLevel level)
    • getSuggestions

      public Collection<org.eclipse.rdf4j.model.IRI> getSuggestions()
      Returns a collection of properties/classes suggested for the form collection
      Returns:
    • setSuggestions

      public void setSuggestions(Collection<org.eclipse.rdf4j.model.IRI> suggestions)
    • addSuggestions

      public void addSuggestions(Collection<org.eclipse.rdf4j.model.IRI> suggestions)
      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

      public void save(File file)
      Serialize the FormCollection on a xml file.
      Throws:
      ParserConfigurationException