Class ReplaceAsset


  • public class ReplaceAsset
    extends java.lang.Object
    高级替换素材 高级文字替换素材示例: 前缀查找文字替换 { text: "你好", type: 1, d_key_prefix: "dtext" } 默认前缀(dtext)查找文字替换 { text: "你好", type: 1 } 精确查找文字替换 { text: "你好", type: 1, d_key: "title" } 高级图片替换素材示例: 前缀查找图片替换 { file: "/path/to/file.png", type: 2, d_key_prefix: "dtext" } 默认前缀(dtext)查找替换 { file: "/path/to/file.png", type: 2 } 精确查找替换 { file: "/path/to/file.png", type: 2, d_key: "title" }
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getdKey()  
      java.lang.String getdKeyPrefix()  
      java.lang.String getFile()  
      java.lang.String getText()  
      int getType()  
      void setdKey​(java.lang.String dKey)  
      void setdKeyPrefix​(java.lang.String dKeyPrefix)  
      void setFile​(java.lang.String file)  
      void setText​(java.lang.String text)  
      void setType​(int type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplaceAsset

        public ReplaceAsset()
      • ReplaceAsset

        public ReplaceAsset​(int type)
    • Method Detail

      • getdKey

        public java.lang.String getdKey()
      • setdKey

        public void setdKey​(java.lang.String dKey)
      • getdKeyPrefix

        public java.lang.String getdKeyPrefix()
      • setdKeyPrefix

        public void setdKeyPrefix​(java.lang.String dKeyPrefix)
      • getText

        public java.lang.String getText()
      • setText

        public void setText​(java.lang.String text)
      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • getFile

        public java.lang.String getFile()
      • setFile

        public void setFile​(java.lang.String file)