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); } }
public void add(State state) { states.put(state.getStatus(), state); }