/** A factory method to create an instance of a usage {@link Used} from another * @param u an instance of a usage * @return an instance of {@link Used} equal (in the sense of @see Object.equals()) to the input */ public Used newUsed(Used u) { Used u1 = newUsed(u.getId(), u.getActivity(), u.getEntity()); u1.setTime(u.getTime()); u1.getType().addAll(u.getType()); u1.getLabel().addAll(u.getLabel()); u1.getRole().addAll(u.getRole()); u1.getLocation().addAll(u.getLocation()); u1.getOther().addAll(u.getOther()); return u1; }
/** A factory method to create an instance of a usage {@link Used} from another * @param u an instance of a usage * @return an instance of {@link Used} equal (in the sense of @see Object.equals()) to the input */ public Used newUsed(Used u) { Used u1 = newUsed(u.getId(), u.getActivity(), u.getEntity()); u1.setTime(u.getTime()); u1.getType().addAll(u.getType()); u1.getLabel().addAll(u.getLabel()); u1.getRole().addAll(u.getRole()); u1.getLocation().addAll(u.getLocation()); u1.getOther().addAll(u.getOther()); return u1; }
public Used doAction(Used use) { List<Attribute> attrs=new LinkedList<Attribute>(); convertTypeAttributes(use,attrs); convertLabelAttributes(use,attrs); convertLocationAttributes(use,attrs); convertRoleAttributes(use,attrs); convertAttributes(use,attrs); return c.newUsed(use.getId(), use.getActivity(), use.getEntity(), use.getTime(), attrs); }
public Used doAction(Used use) { List<Attribute> attrs=new LinkedList<Attribute>(); convertTypeAttributes(use,attrs); convertLabelAttributes(use,attrs); convertLocationAttributes(use,attrs); convertRoleAttributes(use,attrs); convertAttributes(use,attrs); return c.newUsed(use.getId(), use.getActivity(), use.getEntity(), use.getTime(), attrs); }
@Override public void doAction(Used s) { Used res = pf.newUsed(s.getId(), s.getActivity(), s.getEntity()); res.setTime(s.getTime()); QualifiedName id = res.getId(); boolean updated1 = setExpand(res, id, 0); QualifiedName en = res.getActivity(); boolean updated2 = setExpand(res, en, 1); QualifiedName ag = res.getEntity(); boolean updated3 = setExpand(res, ag, 2); boolean updated4 = expandAttributes(s, res); boolean updated = updated1 || updated2 || updated3 || updated4; boolean allUpdated = updated1 && updated2 && updated3; allExpanded=allExpanded && allUpdated; if (!allUpdatedRequired || allUpdated) { ll.add(res); } if (updated) addOrderAttribute(res); }
@Override public void doAction(Used s) { Used res = pf.newUsed(s.getId(), s.getActivity(), s.getEntity()); res.setTime(s.getTime()); QualifiedName id = res.getId(); boolean updated1 = setExpand(res, id, 0); QualifiedName en = res.getActivity(); boolean updated2 = setExpand(res, en, 1); QualifiedName ag = res.getEntity(); boolean updated3 = setExpand(res, ag, 2); boolean updated4 = expandAttributes(s, res); boolean updated = updated1 || updated2 || updated3 || updated4; boolean allUpdated = updated1 && updated2 && updated3; allExpanded=allExpanded && allUpdated; if (!allUpdatedRequired || allUpdated) { ll.add(res); } if (updated) addOrderAttribute(res); }
return a.getEntity(); case 3: return a.getTime(); case 4: return a.getOther();
return a.getEntity(); case 3: return a.getTime(); case 4: return a.getOther();