Class UserPromptStruct
java.lang.Object
it.uniroma2.art.semanticturkey.customform.UserPromptStruct
-
Constructor Summary
ConstructorDescriptionUserPromptStruct
(String placeholderId, String userPromptName, String rdfType) Creates a new UserPromptStruct with the given name and the given type -
Method Summary
Modifier and TypeMethodDescriptionList<it.uniroma2.art.coda.pearl.model.annotation.Annotation>
it.uniroma2.art.coda.pearl.model.ConverterMention
Returns the type of the userPrompt (it can be uri or literal)boolean
boolean
boolean
boolean
boolean
isUri()
void
setAnnotations
(List<it.uniroma2.art.coda.pearl.model.annotation.Annotation> annotations) void
setConverter
(it.uniroma2.art.coda.pearl.model.ConverterMention converter) void
setConverterArgLangTag
(String lang) void
setConverterArgPhId
(String phId) void
setFeatureName
(String featurePath) void
setLiteralDatatype
(String literalDatatype) void
setLiteralLang
(String literalLang) void
setMandatory
(boolean mandatory) void
setPlaceholderId
(String placeholderId) void
setRdfType
(String rdfType) Sets the type of the user prompt.void
setUserPromptName
(String userPromptName) toString()
-
Constructor Details
-
UserPromptStruct
Creates a new UserPromptStruct with the given name and the given type- Parameters:
userPromptName
- name of the featureuserPrompt/example
rdfType
- Should beuri
orliteral
-
-
Method Details
-
getPlaceholderId
-
setPlaceholderId
-
getFeatureName
-
setFeatureName
-
getUserPromptName
-
setUserPromptName
-
getAnnotations
-
setAnnotations
public void setAnnotations(List<it.uniroma2.art.coda.pearl.model.annotation.Annotation> annotations) -
getRdfType
Returns the type of the userPrompt (it can be uri or literal)- Returns:
-
setRdfType
Sets the type of the user prompt. It must be 'uri' or 'literal'- Parameters:
rdfType
-
-
getLiteralDatatype
-
setLiteralDatatype
-
getLiteralLang
-
setLiteralLang
-
getConverter
public it.uniroma2.art.coda.pearl.model.ConverterMention getConverter() -
setConverter
public void setConverter(it.uniroma2.art.coda.pearl.model.ConverterMention converter) -
getConverterArgPhId
-
setConverterArgPhId
-
getConverterArgLangTag
-
setConverterArgLangTag
-
isMandatory
public boolean isMandatory() -
setMandatory
public void setMandatory(boolean mandatory) -
isUri
public boolean isUri() -
isLiteral
public boolean isLiteral() -
hasDatatype
public boolean hasDatatype() -
hasLanguage
public boolean hasLanguage() -
toString
-