| Home >> All >> org >> alicebot >> server >> core >> [ targeting Javadoc ] |
Source code: org/alicebot/server/core/targeting/Category.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.targeting; 6 7 import org.alicebot.server.core.util.StringTriple; 8 9 public class Category 10 { 11 12 public Category() 13 { 14 address = new StringTriple("", "", ""); 15 } 16 17 public Category(String s, String s1, String s2, String s3) 18 { 19 address = new StringTriple(s, s1, s2); 20 template = s3; 21 } 22 23 public String getPattern() 24 { 25 return address.getFirst(); 26 } 27 28 public String getThat() 29 { 30 return address.getSecond(); 31 } 32 33 public String getTopic() 34 { 35 return address.getThird(); 36 } 37 38 public String getTemplate() 39 { 40 return template; 41 } 42 43 public void setPattern(String s) 44 { 45 address.setFirst(s); 46 } 47 48 public void setThat(String s) 49 { 50 address.setSecond(s); 51 } 52 53 public void setTopic(String s) 54 { 55 address.setThird(s); 56 } 57 58 public void setTemplate(String s) 59 { 60 template = s; 61 } 62 63 private StringTriple address; 64 private String template; 65 private static final String EMPTY_STRING = ""; 66 }