public Set<BwAlarm> getAlarms() { return entity.getAlarms(); }
@Override @NoProxy public boolean removeAlarm(final BwAlarm val) { Set<BwAlarm> rs = getAlarms(); if (rs == null) { return false; } return rs.remove(val); }
public Set<BwAlarm> getMasterCollection() { return getTarget().getAlarms(); } };
public Set<BwAlarm> getAlarms() { Set<BwAlarm> c = super.getAlarms(); if (c == null) { c = new OverrideSet<BwAlarm>(BwEvent.ProxiedFieldIndex.pfiAlarms, ref, this) { public void setOverrideCollection(Set<BwAlarm> val) { ref.setAlarms(val); setChangeFlag(true); } public Set<BwAlarm> getOverrideCollection() { return ref.getAlarms(); } public void copyIntoOverrideCollection() { Set<BwAlarm> mstr = getMasterCollection(); if (mstr != null) { Set<BwAlarm> over = getOverrideCollection(); over.addAll(mstr); } } public Set<BwAlarm> getMasterCollection() { return getTarget().getAlarms(); } }; super.setAlarms(c); } return c; }
@Override @NoProxy public void addAlarm(final BwAlarm val) { Set<BwAlarm> rs = getAlarms(); if (rs == null) { rs = new TreeSet<BwAlarm>(); setAlarms(rs); } val.setEvent(this); if (!rs.contains(val)) { rs.add(val); } }
@Override @NoProxy @NoDump public int getNumAlarms() { Set<BwAlarm> c = getAlarms(); if (c == null) { return 0; } return c.size(); }
/** Return a clone of the Set * * @return Set of BwAlarm */ @Override @NoProxy public Set<BwAlarm> cloneAlarms() { Set<BwAlarm> rs = getAlarms(); if (rs == null) { return null; } Set<BwAlarm> nrs = new TreeSet<BwAlarm>(); for (BwAlarm al: rs) { nrs.add((BwAlarm)al.clone()); } return nrs; }
Set<BwAlarm> als = ev.getAlarms(); if ((als == null) || als.isEmpty()) { return;
Collection<BwAlarm> als = ev.getAlarms(); if ((als == null) || als.isEmpty()) { return;
public void setAlarms(Set<BwAlarm> val) { if (val instanceof OverrideSet) { val = ((OverrideSet<BwAlarm>)val).getOverrideCollection(); } int res = doSet(ProxiedFieldIndex.pfiAlarms, false, getTarget().getAlarms(), ref.getAlarms(), val); if (res == setRefNull) { ref.setAlarms(null); } if (res == setRefVal) { ref.setAlarms(val); } }
originalVals = ev.getAlarms(); if (checkMulti(ent, originalVals, update)) { ev.setAlarms((Set)ent.getAddedValues());