Example #1
0
 public Role(Element e) {
   name = e.attributeValue(NAME);
   for (Object o : e.elements(STATE)) {
     State state = new State((Element) o);
     states.put(state.getStatus(), state);
   }
 }
Example #2
0
 public void add(State state) {
   states.put(state.getStatus(), state);
 }