Class WbNameDescExpr


  • public class WbNameDescExpr
    extends Object
    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 Detail

      • WbNameDescExpr

        public WbNameDescExpr​(org.openrefine.wikibase.schema.WbNameDescExpr.NameDescType type,
                              WbMonolingualExpr value)
    • Method Detail

      • validate

        public void validate​(ValidationState validation)
        Checks that the expression has all its required elements and can be evaluated.
      • getType

        public org.openrefine.wikibase.schema.WbNameDescExpr.NameDescType getType()
      • getStaticLanguage

        public String getStaticLanguage()
        For error-reporting purposes, during schema validation.
        Returns:
        the constant language code for this term, if there is one, otherwise null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object