/** * {@inheritDoc} */ public final String toString() { final StringBuffer buffer = new StringBuffer(); buffer.append(BEGIN); buffer.append(':'); buffer.append(getName()); buffer.append(Strings.LINE_SEPARATOR); buffer.append(getProperties()); buffer.append(getAlarms()); buffer.append(getVoters()); buffer.append(getCandidates()); buffer.append(END); buffer.append(':'); buffer.append(getName()); buffer.append(Strings.LINE_SEPARATOR); return buffer.toString(); }
/** * {@inheritDoc} */ public final String toString() { final StringBuffer buffer = new StringBuffer(); buffer.append(BEGIN); buffer.append(':'); buffer.append(getName()); buffer.append(Strings.LINE_SEPARATOR); buffer.append(getProperties()); buffer.append(getAlarms()); buffer.append(getVoters()); buffer.append(getCandidates()); buffer.append(END); buffer.append(':'); buffer.append(getName()); buffer.append(Strings.LINE_SEPARATOR); return buffer.toString(); }
for (final Object o: vpoll.getVoters()) { final VVoter vvoter = (VVoter)o;
cl = ((VPoll)comp).getVoters(); } else if (comp instanceof VVoter) { cl = ((VVoter)comp).getVotes();
final ComponentList voters = val.getVoters();
((VPoll) component).getAlarms().add(subComponent); } else if (subComponent instanceof VVoter) { ((VPoll) component).getVoters().add(subComponent); } else { ((VPoll) component).getCandidates().add(subComponent);
((VPoll) parent).getAlarms().add((VAlarm) component); } else if (component instanceof VVoter) { ((VPoll) parent).getVoters().add((VVoter) component); } else { ((VPoll) parent).getCandidates().add(component);
((VPoll)parent).getAlarms().add((VAlarm) component); } else if (component instanceof VVoter) { ((VPoll)parent).getVoters().add((VVoter) component); } else { ((VPoll)parent).getCandidates().add(component);
PropertyValidator.getInstance().assertNone(Property.VOTER, getProperties()); for (final Iterator i = getVoters().iterator(); i.hasNext();) { final VVoter voter = (VVoter) i.next(); voter.validate(Method.CONFIRM);
((VPoll)parent).getAlarms().add((VAlarm) component); } else if (component instanceof VVoter) { ((VPoll)parent).getVoters().add((VVoter) component); } else { ((VPoll)parent).getCandidates().add(component);
((VPoll)comp).getVoters().add(vv);
PropertyValidator.getInstance().assertNone(Property.VOTER, target.getProperties()); for (final VVoter voter: target.getVoters()) { voter.validate(Method.CONFIRM);