Package org.openrefine.wikidata.schema
Class WbNameDescExpr
java.lang.Object
org.openrefine.wikidata.schema.WbNameDescExpr
An expression that represent a term (label, description or alias). The
structure is slightly different from other expressions because we need to
call different methods on
ItemEditBuilder.- Author:
- Antonin Delpeuch
-
Constructor Summary
ConstructorsConstructorDescriptionWbNameDescExpr(org.openrefine.wikidata.schema.WbNameDescExpr.NameDescType type, WbMonolingualExpr value) -
Method Summary
Modifier and TypeMethodDescriptionvoidcontributeTo(ItemEditBuilder entity, ExpressionContext ctxt) Evaluates the expression and adds the result to the entity update.voidcontributeTo(MediaInfoEditBuilder entity, ExpressionContext ctxt) Evaluates the expression and adds the result to the entity update.booleanorg.openrefine.wikidata.schema.WbNameDescExpr.NameDescTypegetType()getValue()inthashCode()
-
Constructor Details
-
WbNameDescExpr
public WbNameDescExpr(org.openrefine.wikidata.schema.WbNameDescExpr.NameDescType type, WbMonolingualExpr value)
-
-
Method Details
-
contributeTo
Evaluates the expression and adds the result to the entity update.- Parameters:
entity- the entity update where the term should be storedctxt- the evaluation context for the expression- Throws:
QAWarningException
-
contributeTo
public void contributeTo(MediaInfoEditBuilder entity, ExpressionContext ctxt) throws QAWarningException Evaluates the expression and adds the result to the entity update.- Parameters:
entity- the entity update where the term should be storedctxt- the evaluation context for the expression- Throws:
QAWarningException
-
getType
public org.openrefine.wikidata.schema.WbNameDescExpr.NameDescType getType() -
getValue
-
equals
-
hashCode
public int hashCode()
-