示例#1
0
 @Override
 public void storeProperties(Map properties) {
   super.storeProperties(properties);
   properties.put("projectId", this.projectId);
   properties.put("name", this.name);
   properties.put("text", this.text);
 }
示例#2
0
 public void updateProperties(Map props) {
   projectId = (String) props.get("projectId");
   number = (Integer) props.get("number");
   label = (java.lang.String) props.get("label");
   description = (java.lang.String) props.get("description");
   testDescription = (java.lang.String) props.get("testDescription");
   updateLocalModificationTime();
 }
示例#3
0
 @Override
 public void storeProperties(Map properties) {
   super.storeProperties(properties);
   properties.put("projectId", this.projectId);
   properties.put("number", this.number);
   properties.put("label", this.label);
   properties.put("description", this.description);
   properties.put("testDescription", this.testDescription);
 }
示例#4
0
 public void updateProperties(Map<?, ?> properties) {
   for (Map.Entry entry : properties.entrySet()) {
     String property = (String) entry.getKey();
     if (property.equals("id")) continue;
     Object value = entry.getValue();
     if (property.equals("projectId")) updateProject(value);
     if (property.equals("name")) updateName(value);
     if (property.equals("text")) updateText(value);
   }
 }