private ObjectEntry getObjectEntry(UID uid) throws UnknownObjectException { if (removed) throw new UnknownObjectException("object's group removed"); ObjectEntry objEntry = objects.get(uid); if (objEntry == null) throw new UnknownObjectException("object unknown"); return objEntry; }
SwingUtilities.invokeLater(new RefreshThread(new JLabel(e.getMessage(), UIManager.getIcon("OptionPane.informationIcon"), JLabel.CENTER))); return;
/** * Returns the groupID for a given id of an object in the group. * Throws UnknownObjectException if the object is not registered. */ private ActivationGroupID getGroupID(UID uid) throws UnknownObjectException { ActivationGroupID groupID = idTable.get(uid); if (groupID != null) return groupID; throw new UnknownObjectException("object unknown"); }
/** * Returns the group entry for the object's id. Throws * UnknownObjectException if the object is not registered. */ private GroupEntry getGroupEntry(UID uid) throws UnknownObjectException { ActivationGroupID gid = getGroupID(uid); GroupEntry entry = groupTable.get(gid); if (entry != null) return entry; throw new UnknownObjectException("object's group removed"); }
private static UID getUID(ActivationID id) throws UnknownObjectException { Class c = id.getClass(); if (c == AID.class || c == ConstrainableAID.class) { return ((AID) id).getUID(); } throw new UnknownObjectException("object unknown"); }
nstub = stub; if (removed) { throw new UnknownObjectException("object removed"); } else if (!force && nstub != null) { return nstub;
throw new UnknownObjectException("object not active");
throw new UnknownObjectException("object not active");