/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/chests/ChestBean.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/chests/ChestBean.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1869 by torben, Tue Nov 6 16:49:06 2012 UTC revision 1904 by torben, Tue Dec 18 10:33:47 2012 UTC
# Line 4  package dk.thoerup.bukkit.hoeruputils.ch Line 4  package dk.thoerup.bukkit.hoeruputils.ch
4  import javax.persistence.Entity;  import javax.persistence.Entity;
5  import javax.persistence.GeneratedValue;  import javax.persistence.GeneratedValue;
6  import javax.persistence.Id;  import javax.persistence.Id;
7    import javax.persistence.Transient;
8    
9    import java.util.Set;
10    
11    import dk.thoerup.bukkit.hoeruputils.Util;
12    
13    
14  @Entity  @Entity
# Line 33  public class ChestBean { Line 37  public class ChestBean {
37    
38          String comment = "";          String comment = "";
39                    
40            @Transient
41            Set<String> modifyPlayersSet;  
42                    
43          public int getChestType() {          public int getChestType() {
44                  return chestType;                  return chestType;
# Line 105  public class ChestBean { Line 110  public class ChestBean {
110          }          }
111          public void setModifyPlayers(String modifyPlayers) {          public void setModifyPlayers(String modifyPlayers) {
112                  this.modifyPlayers = modifyPlayers;                  this.modifyPlayers = modifyPlayers;
113    
114                    this.modifyPlayersSet = Util.stringToSet( modifyPlayers );
115            }
116    
117            public Set<String> getModifyPlayersSet() {
118                    return modifyPlayersSet;
119          }          }
120    
121            /*public void setModifyPlayersSet(Set<String> modifyPlayersSet) {
122                    this.modifyPlayersSet = modifyPlayersSet;
123            }*/
124    
125          public String getComment() {          public String getComment() {
126                  return comment;                  return comment;
127          }          }
128          public void setComment(String comment) {          public void setComment(String comment) {
129                  this.comment = comment;                  this.comment = comment.trim();
130            }
131    
132            public String getCommentString() {
133                    if (this.comment == null || this.comment.length() == 0)
134                            return "";
135    
136                    return " (Comment: " + this.comment + ")";
137          }          }
138                    
139  }  }

Legend:
Removed from v.1869  
changed lines
  Added in v.1904

  ViewVC Help
Powered by ViewVC 1.1.20