1 19 package org.netbeans.modules.xml.retriever; 20 21 import java.io.File ; 22 import org.netbeans.modules.xml.retriever.catalog.Utilities.DocumentTypesEnum; 23 24 25 public class RetrieveEntry{ 26 private String baseAddress; 28 private String currentAddress; 30 private File localBaseFile = null; 32 private File saveFile = null; 34 private boolean recursive = false; 36 private DocumentTypesEnum docType = DocumentTypesEnum.schema; 38 private String effectiveAddress = null; 40 41 public RetrieveEntry(String baseAddress, String currentAddress, File localBaseFile){ 42 this.baseAddress = baseAddress; 43 this.currentAddress = currentAddress; 44 this.localBaseFile = localBaseFile; 45 } 46 47 public RetrieveEntry(String baseAddress, String currentAddress, File localBaseFile, File saveFile, DocumentTypesEnum docType, boolean recursive){ 48 this.baseAddress = baseAddress; 49 this.currentAddress = currentAddress; 50 this.localBaseFile = localBaseFile; 51 this.saveFile = saveFile; 52 this.setDocType(docType); 53 this.setRecursive(recursive); 54 } 55 56 public String getBaseAddress() { 57 return baseAddress; 58 } 59 60 public void setBaseAddress(String baseAddress) { 61 this.baseAddress = baseAddress; 62 } 63 64 public String getCurrentAddress() { 65 return currentAddress; 66 } 67 68 public void setCurrentAddress(String currentAddress) { 69 this.currentAddress = currentAddress; 70 } 71 72 public File getLocalBaseFile() { 73 return localBaseFile; 74 } 75 76 public void setLocalBaseFile(File localBaseFile) { 77 this.localBaseFile = localBaseFile; 78 } 79 80 public File getSaveFile() { 81 return saveFile; 82 } 83 84 public void setSaveFile(File saveFile) { 85 this.saveFile = saveFile; 86 } 87 88 public boolean isRecursive() { 89 return recursive; 90 } 91 92 public void setRecursive(boolean recursive) { 93 this.recursive = recursive; 94 } 95 96 public DocumentTypesEnum getDocType() { 97 return docType; 98 } 99 100 public void setDocType(DocumentTypesEnum docType) { 101 this.docType = docType; 102 } 103 public String toString(){ 105 return "base:" +this.baseAddress+ 106 "\n\tcur:" +this.currentAddress+ 107 "\n\tbFile:" +this.localBaseFile+ 108 "\n\tcFile:" +this.saveFile+ 109 "\n\tdType:" +this.docType+ 110 "\n\trec:"+this.recursive; 111 } 112 113 public String getEffectiveAddress() { 114 return effectiveAddress; 115 } 116 117 public void setEffectiveAddress(String effectiveAddress) { 118 this.effectiveAddress = effectiveAddress; 119 } 120 } | Popular Tags |