Class CustomFormsConfig
java.lang.Object
it.uniroma2.art.semanticturkey.customform.CustomFormsConfig
Collection of
FormsMapping
. This class represent a model in memory of customFormsConfig.xml
- Author:
- Tiziano
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormsMapping
(FormsMapping formMapping) Adds aFormsMapping
to the configurationgetFormCollectionForResource
(org.eclipse.rdf4j.model.IRI resource) Given a resource returns theFormCollection
associated to that resource.getFormsMapping
(org.eclipse.rdf4j.model.IRI resource) Returns the FormCollectionMapping of the given resourceboolean
getReplace
(org.eclipse.rdf4j.model.IRI resource) Tells if the CustomForm should replace the "classic" form for the given resource.void
removeMappingOfFormCollection
(FormCollection formColl) Remove resource-FormCollection pair with the given FormCollection IDvoid
removeMappingOfResource
(org.eclipse.rdf4j.model.IRI resource) Remove aFormsMapping
from the configurationvoid
Serialize the CustomFormsConfig on a xml file.
-
Field Details
-
CUSTOM_FORMS_CONFIG_FILENAME
- See Also:
-
-
Constructor Details
-
CustomFormsConfig
-
CustomFormsConfig
public CustomFormsConfig()
-
-
Method Details
-
getFormsMapping
Returns the FormCollectionMapping of the given resource- Parameters:
resource
-- Returns:
-
getFormsMappings
-
getFormCollectionForResource
Given a resource returns theFormCollection
associated to that resource.null
if noFormCollection
is specified for it.- Parameters:
resource
-- Returns:
-
addFormsMapping
Adds aFormsMapping
to the configuration- Parameters:
formMapping
-
-
removeMappingOfResource
public void removeMappingOfResource(org.eclipse.rdf4j.model.IRI resource) Remove aFormsMapping
from the configuration- Parameters:
resource
-
-
removeMappingOfFormCollection
Remove resource-FormCollection pair with the given FormCollection ID- Parameters:
formColl
-
-
getReplace
public boolean getReplace(org.eclipse.rdf4j.model.IRI resource) Tells if the CustomForm should replace the "classic" form for the given resource.- Parameters:
resource
-- Returns:
-
save
Serialize the CustomFormsConfig on a xml file.
-