Class CustomForm
java.lang.Object
it.uniroma2.art.semanticturkey.customform.CustomForm
- Direct Known Subclasses:
CustomFormGraph
,CustomFormNode
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a verbose description about theCustomForm
abstract Collection<UserPromptStruct>
getForm
(it.uniroma2.art.coda.core.CODACore codaCore) Parse the CODA rule contained in theref
tag and build a map of <userPrompt, type> pairs, whereuserPrompt
is a field of theuserPrompt/
feature path andtype
is the converter used for that feature.getId()
Returns the ID of theCustomForm
getLevel()
getName()
Returns the name of theCustomForm
getRef()
Returns the ref of theCustomForm
.getType()
boolean
boolean
void
Serialize theCustomForm
as xml on the given file.void
setDescription
(String description) void
void
setLevel
(CustomFormLevel level) void
void
-
Field Details
-
PREFIX
-
-
Method Details
-
getId
Returns the ID of theCustomForm
- Returns:
-
setId
-
getName
Returns the name of theCustomForm
- Returns:
-
setName
-
getDescription
Returns a verbose description about theCustomForm
- Returns:
-
setDescription
-
getRef
Returns the ref of theCustomForm
. It could be a CODA rule if the type of theCustomForm
isgraph, or a CODA converter if the type is node
.- Returns:
-
setRef
-
getType
-
isTypeNode
public boolean isTypeNode()- Returns:
-
asCustomFormNode
-
isTypeGraph
public boolean isTypeGraph()- Returns:
-
asCustomFormGraph
-
getLevel
-
setLevel
-
getForm
public abstract Collection<UserPromptStruct> getForm(it.uniroma2.art.coda.core.CODACore codaCore) throws it.uniroma2.art.coda.exception.parserexception.PRParserException, it.uniroma2.art.coda.exception.RDFModelNotSetException Parse the CODA rule contained in theref
tag and build a map of <userPrompt, type> pairs, whereuserPrompt
is a field of theuserPrompt/
feature path andtype
is the converter used for that feature.- Parameters:
codaCore
- an instance ofCODACore
already initialized- Returns:
- Throws:
it.uniroma2.art.coda.exception.parserexception.PRParserException
it.uniroma2.art.coda.exception.RDFModelNotSetException
-
save
Serialize theCustomForm
as xml on the given file. -
equals
-