| Home >> All >> org >> alicebot >> server >> core >> [ util Javadoc ] |
Source code: org/alicebot/server/core/util/Match.java
1 // Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov. 2 // Jad home page: http://www.geocities.com/kpdus/jad.html 3 // Decompiler options: packimports(3) 4 5 package org.alicebot.server.core.util; 6 7 import java.util.ArrayList; 8 import org.alicebot.server.core.node.Nodemapper; 9 10 // Referenced classes of package org.alicebot.server.core.util: 11 // InputNormalizer 12 13 public class Match 14 { 15 16 public Match() 17 { 18 inputStars = new ArrayList(); 19 thatStars = new ArrayList(); 20 topicStars = new ArrayList(); 21 path = ""; 22 } 23 24 public void pushInputStar(String s) 25 { 26 inputStars.add(0, s); 27 } 28 29 public void pushThatStar(String s) 30 { 31 thatStars.add(0, s); 32 } 33 34 public void pushTopicStar(String s) 35 { 36 topicStars.add(0, s); 37 } 38 39 public void setPattern(String s) 40 { 41 pattern = s; 42 } 43 44 public void setThat(String s) 45 { 46 that = s; 47 } 48 49 public void setTopic(String s) 50 { 51 topic = s; 52 } 53 54 public void setBotID(String s) 55 { 56 botid = s; 57 } 58 59 public void setNodemapper(Nodemapper nodemapper1) 60 { 61 nodemapper = nodemapper1; 62 } 63 64 public String getPattern() 65 { 66 return pattern; 67 } 68 69 public String getThat() 70 { 71 return that; 72 } 73 74 public String getTopic() 75 { 76 return topic; 77 } 78 79 public String getPath() 80 { 81 return InputNormalizer.patternFit(pattern) + " : " + InputNormalizer.patternFit(that) + " : " + InputNormalizer.patternFit(topic) + " : " + botid; 82 } 83 84 public Nodemapper getNodemapper() 85 { 86 return nodemapper; 87 } 88 89 public String getTemplate() 90 { 91 return (String)nodemapper.get("<template>"); 92 } 93 94 public String getFileName() 95 { 96 return (String)nodemapper.get("<filename>"); 97 } 98 99 public ArrayList getInputStars() 100 { 101 return inputStars; 102 } 103 104 public ArrayList getThatStars() 105 { 106 return thatStars; 107 } 108 109 public ArrayList getTopicStars() 110 { 111 return topicStars; 112 } 113 114 private ArrayList inputStars; 115 private ArrayList thatStars; 116 private ArrayList topicStars; 117 private String pattern; 118 private String that; 119 private String topic; 120 private String botid; 121 private static final String EMPTY_STRING = ""; 122 private String path; 123 private Nodemapper nodemapper; 124 public static final String SPACE = " "; 125 private static final String SPACED_PATH_SEPARATOR = " : "; 126 }