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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormsMapping(FormsMapping formMapping) Adds aFormsMappingto the configurationgetFormCollectionForResource(org.eclipse.rdf4j.model.IRI resource) Given a resource returns theFormCollectionassociated to that resource.getFormsMapping(org.eclipse.rdf4j.model.IRI resource) Returns the FormCollectionMapping of the given resourcebooleangetReplace(org.eclipse.rdf4j.model.IRI resource) Tells if the CustomForm should replace the "classic" form for the given resource.voidremoveMappingOfFormCollection(FormCollection formColl) Remove resource-FormCollection pair with the given FormCollection IDvoidremoveMappingOfResource(org.eclipse.rdf4j.model.IRI resource) Remove aFormsMappingfrom the configurationvoidSerialize 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 theFormCollectionassociated to that resource.nullif noFormCollectionis specified for it.- Parameters:
resource-- Returns:
-
addFormsMapping
Adds aFormsMappingto the configuration- Parameters:
formMapping-
-
removeMappingOfResource
public void removeMappingOfResource(org.eclipse.rdf4j.model.IRI resource) Remove aFormsMappingfrom 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.
-