Class WbMediaInfoEditExpr

    • Field Detail

      • normalizedFileNameChars

        public static final Pattern normalizedFileNameChars
    • Constructor Detail

      • WbMediaInfoEditExpr

        public WbMediaInfoEditExpr​(WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.EntityIdValue> subjectExpr,
                                   List<WbNameDescExpr> nameDescExprs,
                                   List<WbStatementGroupExpr> statementGroupExprs,
                                   WbExpression<org.wikidata.wdtk.datamodel.interfaces.StringValue> filePath,
                                   WbExpression<org.wikidata.wdtk.datamodel.interfaces.StringValue> fileName,
                                   WbExpression<org.wikidata.wdtk.datamodel.interfaces.StringValue> wikitext,
                                   boolean overrideWikitext)
    • 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<MediaInfoEdit>
        validation - the state in which to log any validation errors
      • getSubject

        public WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.EntityIdValue> getSubject()
        The Mid for the entity. If marked as new, a new file will be uploaded, otherwise the existing MediaInfo entity will be edited.
      • getNameDescs

        public List<WbNameDescExpr> getNameDescs()
        The captions edited on the mediainfo entity.
      • getStatementGroups

        public List<WbStatementGroupExpr> getStatementGroups()
        The statements edited on the mediainfo entity.
      • getFilePath

        public WbExpression<org.wikidata.wdtk.datamodel.interfaces.StringValue> getFilePath()
        The path to the file that should be uploaded, either to replace the current file if the subject already exists, or to create a new file on the MediaWiki instance if the subject does not exist yet. Can be null if editing existing entities only (in which case the files' contents are not changed)
      • getFileName

        public WbExpression<org.wikidata.wdtk.datamodel.interfaces.StringValue> getFileName()
        The filename at which the file should be uploaded (if new), or moved (if existing). Can be null if editing existing entities only (in which case the files will not be moved)
      • getWikitext

        public WbExpression<org.wikidata.wdtk.datamodel.interfaces.StringValue> getWikitext()
        The wikitext to be added to the file (or edited)
      • isOverridingWikitext

        public boolean isOverridingWikitext()
        Whether the provided wikitext should override any existing wikitext.
      • hashCode

        public int hashCode()
        hashCode in class Object