/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.alibaba.fastjson.JSONObject * org.docx4j.openpackaging.parts.WordprocessingML.StyleDefinitionsPart */ package com.jby.officecore.domain.bo; import com.alibaba.fastjson.JSONObject; import com.jby.officecore.domain.bo.ImageBO; import com.jby.officecore.utils.NumPr; import java.io.Serializable; import java.nio.file.Path; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.xml.transform.Transformer; import org.docx4j.openpackaging.parts.WordprocessingML.StyleDefinitionsPart; public class ParseBO implements Serializable { private static final long serialVersionUID = -1386361606482288851L; public static final String IMAGES = "images"; public static final String PARSE_ = "parse-"; public static final String OUTPUT_HTML = "output.html"; private static final String JBY_OPEN_OFFICE_XML_ = "JBY_OPEN_OFFICE_XML_"; private static final String JBY_IMAGE_DATA_ = "JBY_IMAGE_DATA_"; private static final String PLACEHOLDER_SUFFIX = "_END"; private static final String IMAGE_ = "image_"; private static final String JBY_EQ_LATEX_ = "JBY_EQ_LATEX_"; public static final String JBY_TEXTBOX = "JBY_TEXTBOX_JBY"; private static final String JBY_MATHTYPE_DATA_ = "JBY_MATHTYPE_DATA_"; private Path tempDir; private String sourceFilePath; private String sourceFileUrl; private String sourceFileMd5; private String sourceFileBakPath; private String htmlPath; private String imagesDir; private String ossFolder; private Transformer transformer; private List latexReplaceList; private Map imgMap = new HashMap(); private Map shapeImgMap; private Map openOfficeXmlMap = new HashMap(); private Map mathTypeMap = new HashMap(); private Map eqLatexMap = new HashMap(); private StyleDefinitionsPart styleDefinitionsPart; private Map numberingDefinitionsMap = new HashMap(); private Map imageMap; private Boolean newParseVersion; private Integer count = 0; private Long fileId; public ParseBO() { this.shapeImgMap = new HashMap(); this.imageMap = new HashMap(); } private Integer incrCount() { this.count = this.count + 1; return this.count; } public String getOpenOfficeXmlPlaceholder() { return JBY_OPEN_OFFICE_XML_ + this.incrCount() + PLACEHOLDER_SUFFIX; } public String getMathTypePlaceholder() { return JBY_IMAGE_DATA_ + this.incrCount() + PLACEHOLDER_SUFFIX; } public String getMathTypePlaceholder(String ctOleObjectRid) { return JBY_MATHTYPE_DATA_ + ctOleObjectRid + PLACEHOLDER_SUFFIX; } public String getImgName() { return IMAGE_ + this.incrCount(); } public String getEqLatexPlaceholder() { return JBY_EQ_LATEX_ + this.incrCount() + PLACEHOLDER_SUFFIX; } public String getShapeImgPlaceholder() { return JBY_IMAGE_DATA_ + this.incrCount() + PLACEHOLDER_SUFFIX; } public String getImagePlaceholder(String rid) { return JBY_IMAGE_DATA_ + this.incrCount() + PLACEHOLDER_SUFFIX; } public Path getTempDir() { return this.tempDir; } public String getSourceFilePath() { return this.sourceFilePath; } public String getSourceFileUrl() { return this.sourceFileUrl; } public String getSourceFileMd5() { return this.sourceFileMd5; } public String getSourceFileBakPath() { return this.sourceFileBakPath; } public String getHtmlPath() { return this.htmlPath; } public String getImagesDir() { return this.imagesDir; } public String getOssFolder() { return this.ossFolder; } public Transformer getTransformer() { return this.transformer; } public List getLatexReplaceList() { return this.latexReplaceList; } public Map getImgMap() { return this.imgMap; } public Map getShapeImgMap() { return this.shapeImgMap; } public Map getOpenOfficeXmlMap() { return this.openOfficeXmlMap; } public Map getMathTypeMap() { return this.mathTypeMap; } public Map getEqLatexMap() { return this.eqLatexMap; } public StyleDefinitionsPart getStyleDefinitionsPart() { return this.styleDefinitionsPart; } public Map getNumberingDefinitionsMap() { return this.numberingDefinitionsMap; } public Map getImageMap() { return this.imageMap; } public Boolean getNewParseVersion() { return this.newParseVersion; } public Integer getCount() { return this.count; } public Long getFileId() { return this.fileId; } public ParseBO setTempDir(Path tempDir) { this.tempDir = tempDir; return this; } public ParseBO setSourceFilePath(String sourceFilePath) { this.sourceFilePath = sourceFilePath; return this; } public ParseBO setSourceFileUrl(String sourceFileUrl) { this.sourceFileUrl = sourceFileUrl; return this; } public ParseBO setSourceFileMd5(String sourceFileMd5) { this.sourceFileMd5 = sourceFileMd5; return this; } public ParseBO setSourceFileBakPath(String sourceFileBakPath) { this.sourceFileBakPath = sourceFileBakPath; return this; } public ParseBO setHtmlPath(String htmlPath) { this.htmlPath = htmlPath; return this; } public ParseBO setImagesDir(String imagesDir) { this.imagesDir = imagesDir; return this; } public ParseBO setOssFolder(String ossFolder) { this.ossFolder = ossFolder; return this; } public ParseBO setTransformer(Transformer transformer) { this.transformer = transformer; return this; } public ParseBO setLatexReplaceList(List latexReplaceList) { this.latexReplaceList = latexReplaceList; return this; } public ParseBO setImgMap(Map imgMap) { this.imgMap = imgMap; return this; } public ParseBO setShapeImgMap(Map shapeImgMap) { this.shapeImgMap = shapeImgMap; return this; } public ParseBO setOpenOfficeXmlMap(Map openOfficeXmlMap) { this.openOfficeXmlMap = openOfficeXmlMap; return this; } public ParseBO setMathTypeMap(Map mathTypeMap) { this.mathTypeMap = mathTypeMap; return this; } public ParseBO setEqLatexMap(Map eqLatexMap) { this.eqLatexMap = eqLatexMap; return this; } public ParseBO setStyleDefinitionsPart(StyleDefinitionsPart styleDefinitionsPart) { this.styleDefinitionsPart = styleDefinitionsPart; return this; } public ParseBO setNumberingDefinitionsMap(Map numberingDefinitionsMap) { this.numberingDefinitionsMap = numberingDefinitionsMap; return this; } public ParseBO setImageMap(Map imageMap) { this.imageMap = imageMap; return this; } public ParseBO setNewParseVersion(Boolean newParseVersion) { this.newParseVersion = newParseVersion; return this; } public ParseBO setCount(Integer count) { this.count = count; return this; } public ParseBO setFileId(Long fileId) { this.fileId = fileId; return this; } public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof ParseBO)) { return false; } ParseBO other = (ParseBO)o; if (!other.canEqual(this)) { return false; } Path this$tempDir = this.getTempDir(); Path other$tempDir = other.getTempDir(); if (this$tempDir == null ? other$tempDir != null : !((Object)this$tempDir).equals(other$tempDir)) { return false; } String this$sourceFilePath = this.getSourceFilePath(); String other$sourceFilePath = other.getSourceFilePath(); if (this$sourceFilePath == null ? other$sourceFilePath != null : !this$sourceFilePath.equals(other$sourceFilePath)) { return false; } String this$sourceFileUrl = this.getSourceFileUrl(); String other$sourceFileUrl = other.getSourceFileUrl(); if (this$sourceFileUrl == null ? other$sourceFileUrl != null : !this$sourceFileUrl.equals(other$sourceFileUrl)) { return false; } String this$sourceFileMd5 = this.getSourceFileMd5(); String other$sourceFileMd5 = other.getSourceFileMd5(); if (this$sourceFileMd5 == null ? other$sourceFileMd5 != null : !this$sourceFileMd5.equals(other$sourceFileMd5)) { return false; } String this$sourceFileBakPath = this.getSourceFileBakPath(); String other$sourceFileBakPath = other.getSourceFileBakPath(); if (this$sourceFileBakPath == null ? other$sourceFileBakPath != null : !this$sourceFileBakPath.equals(other$sourceFileBakPath)) { return false; } String this$htmlPath = this.getHtmlPath(); String other$htmlPath = other.getHtmlPath(); if (this$htmlPath == null ? other$htmlPath != null : !this$htmlPath.equals(other$htmlPath)) { return false; } String this$imagesDir = this.getImagesDir(); String other$imagesDir = other.getImagesDir(); if (this$imagesDir == null ? other$imagesDir != null : !this$imagesDir.equals(other$imagesDir)) { return false; } String this$ossFolder = this.getOssFolder(); String other$ossFolder = other.getOssFolder(); if (this$ossFolder == null ? other$ossFolder != null : !this$ossFolder.equals(other$ossFolder)) { return false; } Transformer this$transformer = this.getTransformer(); Transformer other$transformer = other.getTransformer(); if (this$transformer == null ? other$transformer != null : !this$transformer.equals(other$transformer)) { return false; } List this$latexReplaceList = this.getLatexReplaceList(); List other$latexReplaceList = other.getLatexReplaceList(); if (this$latexReplaceList == null ? other$latexReplaceList != null : !((Object)this$latexReplaceList).equals(other$latexReplaceList)) { return false; } Map this$imgMap = this.getImgMap(); Map other$imgMap = other.getImgMap(); if (this$imgMap == null ? other$imgMap != null : !((Object)this$imgMap).equals(other$imgMap)) { return false; } Map this$shapeImgMap = this.getShapeImgMap(); Map other$shapeImgMap = other.getShapeImgMap(); if (this$shapeImgMap == null ? other$shapeImgMap != null : !((Object)this$shapeImgMap).equals(other$shapeImgMap)) { return false; } Map this$openOfficeXmlMap = this.getOpenOfficeXmlMap(); Map other$openOfficeXmlMap = other.getOpenOfficeXmlMap(); if (this$openOfficeXmlMap == null ? other$openOfficeXmlMap != null : !((Object)this$openOfficeXmlMap).equals(other$openOfficeXmlMap)) { return false; } Map this$mathTypeMap = this.getMathTypeMap(); Map other$mathTypeMap = other.getMathTypeMap(); if (this$mathTypeMap == null ? other$mathTypeMap != null : !((Object)this$mathTypeMap).equals(other$mathTypeMap)) { return false; } Map this$eqLatexMap = this.getEqLatexMap(); Map other$eqLatexMap = other.getEqLatexMap(); if (this$eqLatexMap == null ? other$eqLatexMap != null : !((Object)this$eqLatexMap).equals(other$eqLatexMap)) { return false; } StyleDefinitionsPart this$styleDefinitionsPart = this.getStyleDefinitionsPart(); StyleDefinitionsPart other$styleDefinitionsPart = other.getStyleDefinitionsPart(); if (this$styleDefinitionsPart == null ? other$styleDefinitionsPart != null : !this$styleDefinitionsPart.equals(other$styleDefinitionsPart)) { return false; } Map this$numberingDefinitionsMap = this.getNumberingDefinitionsMap(); Map other$numberingDefinitionsMap = other.getNumberingDefinitionsMap(); if (this$numberingDefinitionsMap == null ? other$numberingDefinitionsMap != null : !((Object)this$numberingDefinitionsMap).equals(other$numberingDefinitionsMap)) { return false; } Map this$imageMap = this.getImageMap(); Map other$imageMap = other.getImageMap(); if (this$imageMap == null ? other$imageMap != null : !((Object)this$imageMap).equals(other$imageMap)) { return false; } Boolean this$newParseVersion = this.getNewParseVersion(); Boolean other$newParseVersion = other.getNewParseVersion(); if (this$newParseVersion == null ? other$newParseVersion != null : !((Object)this$newParseVersion).equals(other$newParseVersion)) { return false; } Integer this$count = this.getCount(); Integer other$count = other.getCount(); if (this$count == null ? other$count != null : !((Object)this$count).equals(other$count)) { return false; } Long this$fileId = this.getFileId(); Long other$fileId = other.getFileId(); return !(this$fileId == null ? other$fileId != null : !((Object)this$fileId).equals(other$fileId)); } protected boolean canEqual(Object other) { return other instanceof ParseBO; } public int hashCode() { int PRIME = 59; int result = 1; Path $tempDir = this.getTempDir(); result = result * 59 + ($tempDir == null ? 43 : ((Object)$tempDir).hashCode()); String $sourceFilePath = this.getSourceFilePath(); result = result * 59 + ($sourceFilePath == null ? 43 : $sourceFilePath.hashCode()); String $sourceFileUrl = this.getSourceFileUrl(); result = result * 59 + ($sourceFileUrl == null ? 43 : $sourceFileUrl.hashCode()); String $sourceFileMd5 = this.getSourceFileMd5(); result = result * 59 + ($sourceFileMd5 == null ? 43 : $sourceFileMd5.hashCode()); String $sourceFileBakPath = this.getSourceFileBakPath(); result = result * 59 + ($sourceFileBakPath == null ? 43 : $sourceFileBakPath.hashCode()); String $htmlPath = this.getHtmlPath(); result = result * 59 + ($htmlPath == null ? 43 : $htmlPath.hashCode()); String $imagesDir = this.getImagesDir(); result = result * 59 + ($imagesDir == null ? 43 : $imagesDir.hashCode()); String $ossFolder = this.getOssFolder(); result = result * 59 + ($ossFolder == null ? 43 : $ossFolder.hashCode()); Transformer $transformer = this.getTransformer(); result = result * 59 + ($transformer == null ? 43 : $transformer.hashCode()); List $latexReplaceList = this.getLatexReplaceList(); result = result * 59 + ($latexReplaceList == null ? 43 : ((Object)$latexReplaceList).hashCode()); Map $imgMap = this.getImgMap(); result = result * 59 + ($imgMap == null ? 43 : ((Object)$imgMap).hashCode()); Map $shapeImgMap = this.getShapeImgMap(); result = result * 59 + ($shapeImgMap == null ? 43 : ((Object)$shapeImgMap).hashCode()); Map $openOfficeXmlMap = this.getOpenOfficeXmlMap(); result = result * 59 + ($openOfficeXmlMap == null ? 43 : ((Object)$openOfficeXmlMap).hashCode()); Map $mathTypeMap = this.getMathTypeMap(); result = result * 59 + ($mathTypeMap == null ? 43 : ((Object)$mathTypeMap).hashCode()); Map $eqLatexMap = this.getEqLatexMap(); result = result * 59 + ($eqLatexMap == null ? 43 : ((Object)$eqLatexMap).hashCode()); StyleDefinitionsPart $styleDefinitionsPart = this.getStyleDefinitionsPart(); result = result * 59 + ($styleDefinitionsPart == null ? 43 : $styleDefinitionsPart.hashCode()); Map $numberingDefinitionsMap = this.getNumberingDefinitionsMap(); result = result * 59 + ($numberingDefinitionsMap == null ? 43 : ((Object)$numberingDefinitionsMap).hashCode()); Map $imageMap = this.getImageMap(); result = result * 59 + ($imageMap == null ? 43 : ((Object)$imageMap).hashCode()); Boolean $newParseVersion = this.getNewParseVersion(); result = result * 59 + ($newParseVersion == null ? 43 : ((Object)$newParseVersion).hashCode()); Integer $count = this.getCount(); result = result * 59 + ($count == null ? 43 : ((Object)$count).hashCode()); Long $fileId = this.getFileId(); result = result * 59 + ($fileId == null ? 43 : ((Object)$fileId).hashCode()); return result; } public String toString() { return "ParseBO(tempDir=" + this.getTempDir() + ", sourceFilePath=" + this.getSourceFilePath() + ", sourceFileUrl=" + this.getSourceFileUrl() + ", sourceFileMd5=" + this.getSourceFileMd5() + ", sourceFileBakPath=" + this.getSourceFileBakPath() + ", htmlPath=" + this.getHtmlPath() + ", imagesDir=" + this.getImagesDir() + ", ossFolder=" + this.getOssFolder() + ", transformer=" + this.getTransformer() + ", latexReplaceList=" + this.getLatexReplaceList() + ", imgMap=" + this.getImgMap() + ", shapeImgMap=" + this.getShapeImgMap() + ", openOfficeXmlMap=" + this.getOpenOfficeXmlMap() + ", mathTypeMap=" + this.getMathTypeMap() + ", eqLatexMap=" + this.getEqLatexMap() + ", styleDefinitionsPart=" + this.getStyleDefinitionsPart() + ", numberingDefinitionsMap=" + this.getNumberingDefinitionsMap() + ", imageMap=" + this.getImageMap() + ", newParseVersion=" + this.getNewParseVersion() + ", count=" + this.getCount() + ", fileId=" + this.getFileId() + ")"; } }