Class WbStringConstant

  • All Implemented Interfaces:

    public class WbStringConstant
    extends Object
    implements WbExpression<org.wikidata.wdtk.datamodel.interfaces.StringValue>
    • Constructor Detail

      • WbStringConstant

        public WbStringConstant​(String value)
    • Method Detail

      • validate

        public void validate​(ValidationState validation)
        Description copied from interface: WbExpression
        Check that this expression is fully formed and ready to be evaluated.
        Specified by:
        validate in interface WbExpression<org.wikidata.wdtk.datamodel.interfaces.StringValue>
        validation - the state in which to log any validation errors
      • evaluate

        public org.wikidata.wdtk.datamodel.interfaces.StringValue evaluate​(ExpressionContext ctxt)
        Description copied from interface: WbExpression
        Evaluates the value expression in a given context, returns a Wikibase value suitable to be the target of a claim. As a premise to calling that method, we assume that calling WbExpression.validate(ValidationState) did not log any error in the validation state.
        Specified by:
        evaluate in interface WbExpression<org.wikidata.wdtk.datamodel.interfaces.StringValue>
      • getValue

        public String getValue()
      • hashCode

        public int hashCode()
        hashCode in class Object