rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
items.add(new Item(new JID(jid), name, Ask.valueOf(ask), Subscription.valueOf(subscription), groups));
Ask askStatus = ask == null ? null : Ask.valueOf(ask); Subscription subStatus = subscription == null ? null : Subscription.valueOf(subscription); items.add(new Item(new JID(jid), name, askStatus, subStatus, groups));
public Collection<Item> getItems() { Collection<Item> items = new ArrayList<Item>(); Element query = element.element(new QName("query", Namespace.get("jabber:iq:roster"))); if (query != null) { for (Iterator i=query.elementIterator("item"); i.hasNext(); ) { Element ite...
public Rectangle () { }
public Rectangle() { x = 0; y = 0; width = 0; height = 0; }
public Rectangle () { }
return new Rectangle (x, y, width, height);
return (Rectangle) this.clone();
public Rectangle getBounds () { return new Rectangle (x, y, width, height); }
file = file.substring(index + 3);
break;
protected void parseURL(URL u, String spec, int start, int limit) { String host = u.getHost(); int port = u.getPort(); String file = u.getFile(); /* TBD: The JDK 1.2 doc specifically says that limit is the position * to stop parsing at and that it will be either the end of the string * or the...
+pickerName + ".parentChanged();"
+ (parentPopUpStringForAll() == null ? pickerName + ".parentChanged();" : "")
public String hiddenFormElementStrings() { StringBuffer returnString; returnString = new StringBuffer(500); returnString.append("\n<script language=\"JavaScript\">"); returnString.append("\nvar " + pickerName +" = new ERXJSPopupRelationshipPicker(" + objectsArrayName + "," ...
return '|'; }
return _SQL_ESCAPE_CHAR; }
public char sqlEscapeChar() { return '|'; }
hex[nibbles++] = hexValues[((b >> 4) + 16) % 16]; hex[nibbles++] = hexValues[((b & 15) + 16) % 16];
hex[nibbles++] = _HEX_VALUES[((b >> 4) + 16) % 16]; hex[nibbles++] = _HEX_VALUES[((b & 15) + 16) % 16];
public String sqlStringForData(NSData data) { int length = data.length(); byte bytes[] = data.bytes(); char hex[] = new char[2 * length]; int nibbles = 0; for(int i = 0; i < length; i++) { byte b = bytes[i]; hex[nibbles++] = hexValues[((b >> 4) + 16) % 16]; ...
host = headerForKey("x-webobjects-remote-addr"); if (host != null) return host;
public String remoteHost() { String host = null; if (WOApplication.application().isDirectConnectEnabled()) { InetAddress hostAdd = _originatingAddress(); if (hostAdd != null) { host = hostAdd.getHostAddress(); return host; } } ...
return argument.substring(0, argument.indexOf(","));
int ind = argument.indexOf("GeolocCode="); if (ind == -1) { if (log.isWarnEnabled()) log.warn("Found no GeolocCode in HomeLocation"); return ""; } String narg = argument.substring(ind); if (narg.indexOf(",") != -1) return narg.substring(0, narg.indexOf(",")); else return narg;
private String parseHomeLocation(String argument) { return argument.substring(0, argument.indexOf(","));// return argument.substring(argument.indexOf("=")+1, argument.indexOf(",")); }
return ERXUtilities.booleanValueForBindingOnComponentWithDefault("renderBorder", this, true);
return booleanValueForBinding("renderBorder", true);
public boolean renderBorder() { return ERXUtilities.booleanValueForBindingOnComponentWithDefault("renderBorder", this, true); }
public static void deplicateRelationshipFromEO(ERXGenericRecord r1, String relationshipName){
public static void deplicateRelationshipFromEO(EOEnterpriseObject r1, String relationshipName){
public static void deplicateRelationshipFromEO(ERXGenericRecord r1, String relationshipName){ //System.out.println("r1 "+r1); //System.out.println("relationshipName "+relationshipName); //System.out.println("array "+r1.valueForKey(relationshipName)); for(Enumeration e = ((NSArray)r1.valu...
public static void replicateDataFromEOToEO(ERXGenericRecord r1, ERXGenericRecord r2, NSArray attributeNames){
public static void replicateDataFromEOToEO(EOEnterpriseObject r1, EOEnterpriseObject r2, NSArray attributeNames){
public static void replicateDataFromEOToEO(ERXGenericRecord r1, ERXGenericRecord r2, NSArray attributeNames){ for(Enumeration e = attributeNames.objectEnumerator(); e.hasMoreElements();){ String attributeName = (String)e.nextElement(); r2.takeValueForKey(r1.valueForKey(attributeName), a...
public static void replicateRelationshipFromEOToEO(ERXGenericRecord r1, ERXGenericRecord r2, String relationshipName){
public static void replicateRelationshipFromEOToEO(EOEnterpriseObject r1, EOEnterpriseObject r2, String relationshipName){
public static void replicateRelationshipFromEOToEO(ERXGenericRecord r1, ERXGenericRecord r2, String relationshipName){ for(Enumeration e = ((NSArray)r1.valueForKey(relationshipName)).objectEnumerator(); e.hasMoreElements();){ ERXReplicableInterface replicableTarget = (ERXReplicableInterface)e.next...
defaultValue = ERXTimestampUtilities.timestampForString(defaultValue.toString());
defaultValue = ERXTimestampUtilities.timestampForString(s);
public void setValueInObject(EOEnterpriseObject eo) { Object defaultValue = this.stringValue; if(stringValue.startsWith("@threadStorage.")) { String keyPath = stringValue.substring("@threadStorage.".length()); defaultValue = ERXThreadStorage.valueForKey(keyPat...
NSTimestamp temp = ERXTimestampUtilities.timestampForString(defaultValue.toString());
NSTimestamp temp = ERXTimestampUtilities.timestampForString(s);
public void setValueInObject(EOEnterpriseObject eo) { Object defaultValue = this.stringValue; if(stringValue.startsWith("@threadStorage.")) { String keyPath = stringValue.substring("@threadStorage.".length()); defaultValue = ERXThreadStorage.valueForKey(keyPat...
defaultValue = new Integer(Integer.parseInt(defaultValue.toString()));
defaultValue = ERXValueUtilities.bigDecimalValue(s);
public void setValueInObject(EOEnterpriseObject eo) { Object defaultValue = this.stringValue; if(stringValue.startsWith("@threadStorage.")) { String keyPath = stringValue.substring("@threadStorage.".length()); defaultValue = ERXThreadStorage.valueForKey(keyPat...
e.getfield(CALLBACK_FIELD);
e.invoke_interface(ENABLED,ENABLED_GET);
private void addReadMethod(String name, Type type) { CodeEmitter e = super.begin_method(Constants.ACC_PUBLIC, readMethodSig(name, type.getDescriptor()), null, null); e.load_thi...
e.getfield(CALLBACK_FIELD);
e.invoke_interface(ENABLED,ENABLED_GET);
private void addWriteMethod(String name, Type type) { CodeEmitter e = super.begin_method(Constants.ACC_PUBLIC, writeMethodSig(name, type.getDescriptor()), null, null); e.load_t...
ArrayList components = new ArrayList(); RecipeComponent[] recipes = organizer.getSelectedRecipes(); if (recipes != null) for (int i = 0; i < recipes.length; i++) components.add(recipes[i]); SocietyComponent[] societies = organizer.getSelectedSocieties(); if (societies != null) for (int i = 0; i < societies.length; i++)...
Object userObject = organizer.getSelectedObject(); if (userObject instanceof Experiment || userObject instanceof SocietyComponent || userObject instanceof RecipeComponent) runBuilder((ModifiableComponent)userObject, false); } else if (s.indexOf(EXPERIMENT_BUILDER) != -1) { Object userObject = organizer.getSelectedObjec...
public void actionPerformed(ActionEvent e) { String s = ((AbstractButton)e.getSource()).getActionCommand(); if (s.equals(NEW_MENU_ITEM)) { newWorkspace(); } else if (s.equals(NEW_RESULTS_MENU_ITEM)) { setResultDir(); } else if (s.equals(EXIT_MENU_ITEM)) { exit(); } else if (s.equals(HELP...
if (components.size() == 1) runBuilder((ModifiableComponent)components.get(0), false); else if (components.size() > 1) { runMultipleBuilders((ModifiableComponent[])components.toArray(new ModifiableComponent[components.size()])); } } else if (s.indexOf(EXPERIMENT_BUILDER) != -1) { Experiment[] experiments = organizer.ge...
public void actionPerformed(ActionEvent e) { String s = ((AbstractButton)e.getSource()).getActionCommand(); if (s.equals(NEW_MENU_ITEM)) { newWorkspace(); } else if (s.equals(NEW_RESULTS_MENU_ITEM)) { setResultDir(); } else if (s.equals(EXIT_MENU_ITEM)) { exit(); } else if (s.equals(HELP...
Experiment[] experiments = organizer.getSelectedExperiments(); if (experiments != null && experiments.length > 0) runAnalyzer(experiments[0]);
Object userObject = organizer.getSelectedObject(); if (userObject instanceof Experiment) runAnalyzer((Experiment)userObject);
public void actionPerformed(ActionEvent e) { String s = ((AbstractButton)e.getSource()).getActionCommand(); if (s.equals(NEW_MENU_ITEM)) { newWorkspace(); } else if (s.equals(NEW_RESULTS_MENU_ITEM)) { setResultDir(); } else if (s.equals(EXIT_MENU_ITEM)) { exit(); } else if (s.equals(HELP...
Class[] paramClasses = { CSMART.class, Experiment.class }; Object[] params = new Object[2]; params[0] = this; params[1] = experiment; createTool(PERFORMANCE_ANALYZER, Analyzer.class, experiment.getExperimentName(), experiment, paramClasses, params);
JFrame tool = (JFrame)new Analyzer(this, experiment); addTool(PERFORMANCE_ANALYZER, experiment.getExperimentName(), tool);
protected void runAnalyzer(Experiment experiment) { Class[] paramClasses = { CSMART.class, Experiment.class }; Object[] params = new Object[2]; params[0] = this; params[1] = experiment; createTool(PERFORMANCE_ANALYZER, Analyzer.class, experiment.getExperimentName(), experiment, p...
Class[] paramClasses = { CSMART.class, ModifiableComponent.class, Experiment.class }; Object[] params = new Object[3]; params[0] = this;
ModifiableComponent originalComponent = null;
protected void runBuilder(ModifiableComponent cc, boolean alwaysNew) { // note that cc is guaranteed non-null when this is called Class[] paramClasses = { CSMART.class, ModifiableComponent.class, Experiment.class }; Object[] params = new Object[3]; params[0] = this; Exper...
cc = new SocietyCDataComponent(cdata);
cc = new SocietyCDataComponent(cdata, ((SocietyComponent)experiment.getSocietyComponent()).getAssemblyId());
protected void runBuilder(ModifiableComponent cc, boolean alwaysNew) { // note that cc is guaranteed non-null when this is called Class[] paramClasses = { CSMART.class, ModifiableComponent.class, Experiment.class }; Object[] params = new Object[3]; params[0] = this; Exper...
((SocietyComponent)cc).setAssemblyId(((SocietyComponent)experiment.getSocietyComponent()).getAssemblyId());
protected void runBuilder(ModifiableComponent cc, boolean alwaysNew) { // note that cc is guaranteed non-null when this is called Class[] paramClasses = { CSMART.class, ModifiableComponent.class, Experiment.class }; Object[] params = new Object[3]; params[0] = this; Exper...
experiment.removeSocietyComponent(); experiment.addSocietyComponent(societyCopy);
originalComponent = cc;
protected void runBuilder(ModifiableComponent cc, boolean alwaysNew) { // note that cc is guaranteed non-null when this is called Class[] paramClasses = { CSMART.class, ModifiableComponent.class, Experiment.class }; Object[] params = new Object[3]; params[0] = this; Exper...
organizer.replaceComponent(experiment, society, societyCopy);
protected void runBuilder(ModifiableComponent cc, boolean alwaysNew) { // note that cc is guaranteed non-null when this is called Class[] paramClasses = { CSMART.class, ModifiableComponent.class, Experiment.class }; Object[] params = new Object[3]; params[0] = this; Exper...
experiment.removeRecipeComponent(recipe); experiment.addRecipeComponent(recipeCopy);
originalComponent = cc;
protected void runBuilder(ModifiableComponent cc, boolean alwaysNew) { // note that cc is guaranteed non-null when this is called Class[] paramClasses = { CSMART.class, ModifiableComponent.class, Experiment.class }; Object[] params = new Object[3]; params[0] = this; Exper...
organizer.replaceComponent(experiment, recipe, recipeCopy);
protected void runBuilder(ModifiableComponent cc, boolean alwaysNew) { // note that cc is guaranteed non-null when this is called Class[] paramClasses = { CSMART.class, ModifiableComponent.class, Experiment.class }; Object[] params = new Object[3]; params[0] = this; Exper...
params[1] = cc; params[2] = experiment; createTool(CONFIGURATION_BUILDER, PropertyBuilder.class, alwaysNew, cc.getShortName(), (ModifiableComponent)cc, paramClasses, params);
JFrame tool = (JFrame)new PropertyBuilder(this, cc, originalComponent, experiment); addTool(CONFIGURATION_BUILDER, cc.getShortName(), tool);
protected void runBuilder(ModifiableComponent cc, boolean alwaysNew) { // note that cc is guaranteed non-null when this is called Class[] paramClasses = { CSMART.class, ModifiableComponent.class, Experiment.class }; Object[] params = new Object[3]; params[0] = this; Exper...
Class[] paramClasses = { CSMART.class, Experiment.class }; Object[] params = new Object[2]; params[0] = this; params[1] = experiment; console = (CSMARTConsole)createNewTool(EXPERIMENT_CONTROLLER, CSMARTConsole.class, experiment.getExperimentName(), experiment, paramClasses, params);
JFrame tool = (JFrame)new CSMARTConsole(this, experiment); addTool(EXPERIMENT_CONTROLLER, experiment.getExperimentName(), tool);
protected void runConsole(Experiment experiment) { // TODO: we get here if the user edits an experiment containing // societies and removes all the societies, and then invokes the console if (experiment.getSocietyComponentCount() == 0) { // don't run console and disable it's button enableConsoleToo...
Class[] paramClasses = { CSMART.class, Experiment.class }; Object[] params = new Object[2]; params[0] = this; params[1] = experiment; createTool(EXPERIMENT_BUILDER, ExperimentBuilder.class, alwaysNew, experiment.getExperimentName(), experiment, paramClasses, params);
JFrame tool = (JFrame)new ExperimentBuilder(this, experiment); addTool(EXPERIMENT_BUILDER, experiment.getExperimentName(), tool);
private void runExperimentBuilderWorker(Experiment experiment, boolean alwaysNew) { // remove the children of the experiment in the tree // to avoid confusion while editing the experiment organizer.removeChildren(experiment); Class[] paramClasses = { CSMART.class, ...
Class[] paramClasses = { CSMART.class, Experiment.class }; Object[] params = new Object[2]; params[0] = this; params[1] = runningExperiment; createTool(SOCIETY_MONITOR, CSMARTUL.class, name, null, paramClasses, params);
JFrame tool = (JFrame)new CSMARTUL(this, runningExperiment); addTool(SOCIETY_MONITOR, name, tool);
protected void runMonitor() { Experiment runningExperiment = null; String name = ""; if (runningExperiments.size() > 0) { runningExperiment = (Experiment)runningExperiments.get(0); name = runningExperiment.getExperimentName(); } Class[] paramClasses = { CSMART.class, Experiment.class }; Ob...
System.out.println("arg=" + result[i]);
private String[] getNodeArguments(NodeComponent nc) { Properties props = nc.getArguments(); String commandArguments = props.getProperty(HostConfigurationBuilder.COMMAND_ARGUMENTS); if (commandArguments == null) return emptyStringArray; StringTokenizer tokens = new StringTokenizer(commandArguments.tri...
nameServerHostName = null;
private void runButton_actionPerformed() { destroyOldNodes(); // Get rid of any old stuff before creating the new userStoppedTrials = false; ArrayList nodesToUse = new ArrayList(); hostsToUse = new ArrayList(); // hosts that nodes are on nameServerHostName = null; HostComponent[] hosts = experiment....
if (hostsToRunOn.length > 0) nameServerHostName = hostsToRunOn[0];
private void runButton_actionPerformed() { destroyOldNodes(); // Get rid of any old stuff before creating the new userStoppedTrials = false; ArrayList nodesToUse = new ArrayList(); hostsToUse = new ArrayList(); // hosts that nodes are on nameServerHostName = null; HostComponent[] hosts = experiment....
NodeComponent nodeComponent,
String nodeName,
public ConsoleNodeListener(CSMARTConsole console, NodeComponent nodeComponent, String logFileName, NodeStatusButton statusButton, ConsoleStyledDocument doc) throws IOException { createLogger(); this.console = console; this.nodeComponent = nodeComponent; no...
this.nodeComponent = nodeComponent; nodeName = nodeComponent.toString();
this.nodeName = nodeName;
public ConsoleNodeListener(CSMARTConsole console, NodeComponent nodeComponent, String logFileName, NodeStatusButton statusButton, ConsoleStyledDocument doc) throws IOException { createLogger(); this.console = console; this.nodeComponent = nodeComponent; no...
logFlushTask = new TimerTask() { public void run() { synchronized (logFileLock) { try { logFile.flush(); } catch (Exception e) { } } } }; new Timer().schedule(logFlushTask, new Date(), 5000);
public ConsoleNodeListener(CSMARTConsole console, NodeComponent nodeComponent, String logFileName, NodeStatusButton statusButton, ConsoleStyledDocument doc) throws IOException { createLogger(); this.console = console; this.nodeComponent = nodeComponent; no...
int prevType = -1; String prevDescription = ""; int nextEventIndex = -1; for (int i = 0; i < n; i++) { NodeEvent nodeEvent = (NodeEvent)nodeEvents.get(i); int nodeEventType = nodeEvent.getType(); if (nodeEventType == NodeEvent.IDLE_UPDATE) { String s = nodeEvent.getMessage(); handleIdleUpdate(getIdleness(s), getTime...
synchronized (logFileLock) { try { logFile.flush(); } catch (Exception e) { } } }
public void run() { int prevType = -1; String prevDescription = ""; int nextEventIndex = -1; // get the first description which is not an idle update for (int i = 0; i < n; i++) { NodeEvent nodeEvent = (NodeEvent)nodeEvents.get(i); // if (filter != null && !filter.includeEventInDisp...
logFlushTask.cancel();
public void closeLogFile() { synchronized (logFileLock) { try { logFile.close(); } catch (Exception e) { if(log.isErrorEnabled()) { log.error("Exception closing log file: ", e); } } } }
console.nodeStopped(nodeComponent);
console.nodeStopped(nodeName);
private void updateStatus(NodeEvent nodeEvent) { int nodeEventType = nodeEvent.getType(); if (nodeEventType == NodeEvent.PROCESS_CREATED) statusButton.setStatus(NodeStatusButton.STATUS_NODE_CREATED); else if (nodeEventType == NodeEvent.PROCESS_DESTROYED) { statusButton.setStatus(NodeStatus...
OutputStream out = new FileOutputStream(new File(new File(debugLocation), className + ".class"));
File file = new File(new File(debugLocation), className + ".class"); System.err.println("CGLIB writing " + file); OutputStream out = new BufferedOutputStream(new FileOutputStream(file));
public final Class define() { try { init(); generate(); postGenerate(); byte[] bytes = backend.getBytes(); if (debugLocation != null) { OutputStream out = new FileOutputStream(new File(new File(debugLocation), c...
Action copyAction = new AbstractAction(SELECT_ALL_ACTION) {
Action cutAction = new AbstractAction(CUT_ACTION) { public void actionPerformed(ActionEvent e) { cut_actionPerformed(); } }; cutAction.setEnabled(false); JMenuItem mi = editMenu.add(cutAction); mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.CTRL_MASK)); Action copyAction = new AbstractAction(COPY_ACTION)...
public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName) { super("", // title true, //resizable ...
editMenu.add(copyAction);
mi = editMenu.add(copyAction); mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, Event.CTRL_MASK)); Action pasteAction = new AbstractAction(PASTE_ACTION) { public void actionPerformed(ActionEvent e) { paste_actionPerformed(); } }; pasteAction.setEnabled(false); mi = editMenu.add(pasteAction); mi.setAccelerator(Ke...
public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName) { super("", // title true, //resizable ...
editMenu.add(selectAllAction);
mi = editMenu.add(selectAllAction); mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, Event.CTRL_MASK));
public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName) { super("", // title true, //resizable ...
editMenu.add(findAction);
mi = editMenu.add(findAction); mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, Event.CTRL_MASK));
public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName) { super("", // title true, //resizable ...
editMenu.add(findNextAction);
mi = editMenu.add(findNextAction); mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_G, Event.CTRL_MASK));
public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName) { super("", // title true, //resizable ...
filterAction.setEnabled(false);
public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName) { super("", // title true, //resizable ...
notifyMenu.add(notifyAction);
mi = notifyMenu.add(notifyAction); mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, Event.CTRL_MASK));
public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName) { super("", // title true, //resizable ...
notifyMenu.add(notifyNextAction);
mi = notifyMenu.add(notifyNextAction); mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, Event.CTRL_MASK));
public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName) { super("", // title true, //resizable ...
setViewSize_actionPerformed();
find_actionPerformed();
public void actionPerformed(ActionEvent e) { setViewSize_actionPerformed(); }
filter_actionPerformed();
findNext_actionPerformed();
public void actionPerformed(ActionEvent e) { filter_actionPerformed(); }
displayLog_actionPerformed();
public void actionPerformed(ActionEvent e) { }
setViewSize_actionPerformed();
public void actionPerformed(ActionEvent e) { }
filter_actionPerformed();
public void actionPerformed(ActionEvent e) { }
notify_actionPerformed();
public void actionPerformed(ActionEvent e) { notify_actionPerformed(); }
removeNotify_actionPerformed();
public void actionPerformed(ActionEvent e) { removeNotify_actionPerformed(); }
notifyNext_actionPerformed();
public void actionPerformed(ActionEvent e) { notifyNext_actionPerformed(); }
resetNotifyAction_actionPerformed();
notify_actionPerformed();
public void actionPerformed(ActionEvent e) { resetNotifyAction_actionPerformed(); }
copy_actionPerformed();
cut_actionPerformed();
public void actionPerformed(ActionEvent e) { copy_actionPerformed(); }
selectAll_actionPerformed();
copy_actionPerformed();
public void actionPerformed(ActionEvent e) { selectAll_actionPerformed(); }
find_actionPerformed();
paste_actionPerformed();
public void actionPerformed(ActionEvent e) { find_actionPerformed(); }
findNext_actionPerformed();
clear_actionPerformed();
public void actionPerformed(ActionEvent e) { findNext_actionPerformed(); }
displayLog_actionPerformed();
selectAll_actionPerformed();
public void actionPerformed(ActionEvent e) { displayLog_actionPerformed(); }
ConsoleStyledDocument doc = (ConsoleStyledDocument)consoleTextPane.getStyledDocument();
boolean[] filterValues = null; boolean isAllSelected = true; ConsoleNodeOutputFilter currentFilter = listener.getFilter(); if (currentFilter != null) { filterValues = currentFilter.getValues(); isAllSelected = currentFilter.isAllSelected(); } ConsoleNodeOutputFilter filter = new ConsoleNodeOutputFilter(filterValues, is...
private void filter_actionPerformed() { ConsoleStyledDocument doc = (ConsoleStyledDocument)consoleTextPane.getStyledDocument(); }
Enumeration enum = elements();
Enumeration enumList = elements();
public void accept(Visitor visitor) { Enumeration enum = elements(); while (enum.hasMoreElements()) { Definition def = (Definition) enum.nextElement(); def.accept(visitor); }
while (enum.hasMoreElements()) { Definition def = (Definition) enum.nextElement();
while (enumList.hasMoreElements()) { Definition def = (Definition) enumList.nextElement();
public void accept(Visitor visitor) { Enumeration enum = elements(); while (enum.hasMoreElements()) { Definition def = (Definition) enum.nextElement(); def.accept(visitor); }
}
public void accept(Visitor visitor) { Enumeration enum = elements(); while (enum.hasMoreElements()) { Definition def = (Definition) enum.nextElement(); def.accept(visitor); }
public SocietyDBComponent(String name, String assemblyID) {
public SocietyDBComponent(String name) {
public SocietyDBComponent(String name, String assemblyID) { super(name); super.setAssemblyId(assemblyID); createLogger(); }
super.setAssemblyId(assemblyID);
public SocietyDBComponent(String name, String assemblyID) { super(name); super.setAssemblyId(assemblyID); createLogger(); }
((SocietyDBComponent)sc).saveToDatabase();
((SocietyBase)sc).modified = true; ((SocietyBase)sc).oldAssemblyId = assemblyID; ((SocietyBase)sc).setAssemblyId(null);
public ModifiableComponent copy(String name) { if (log.isDebugEnabled()) { log.debug("Copying society " + this.getSocietyName() + " with assembly " + getAssemblyId() + " into new name " + name); } String assemblyID = getAssemblyId(); ModifiableComponent sc = new SocietyDBComponent(name, assemblyID); ...
if (closed) throw new SocketException ("Socket is closed");
if (isClosed()) throw new SocketException("socket is closed");
public void bind (SocketAddress bindpoint) throws IOException { if (closed) throw new SocketException ("Socket is closed"); // XXX: JDK 1.4.1 API documentation says that if bindpoint is null the // socket will be bound to an ephemeral port and a valid local address. if (bindpoint == null) bindp...
if (getImpl() != null) getImpl().close();
if (isClosed()) throw new SocketException("socket is closed"); getImpl().close();
public synchronized void close () throws IOException { if (getImpl() != null) getImpl().close(); if (getChannel() != null) getChannel().close(); closed = true; }
closed = true;
impl = null;
public synchronized void close () throws IOException { if (getImpl() != null) getImpl().close(); if (getChannel() != null) getChannel().close(); closed = true; }
private SocketImpl getImpl()
SocketImpl getImpl()
private SocketImpl getImpl() throws SocketException { try { if (!implCreated) { impl.create(true); implCreated = true; } } catch (IOException e) { throw new SocketException(e.getMessage()); } return impl; }
if (getImpl() != null) return getImpl().getInputStream(); throw new IOException("Not connected");
if (isClosed()) throw new SocketException("socket is closed"); if (!isConnected()) throw new IOException("not connected"); return getImpl().getInputStream();
public InputStream getInputStream () throws IOException { if (getImpl() != null) return getImpl().getInputStream(); throw new IOException("Not connected"); }
if (isClosed()) throw new SocketException("socket is closed");
public boolean getKeepAlive () throws SocketException { Object buf = getImpl().getOption(SocketOptions.SO_KEEPALIVE); if (buf instanceof Boolean) return(((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected type"); }
if (isClosed()) throw new SocketException("socket is closed");
public boolean getOOBInline () throws SocketException { Object buf = getImpl().getOption(SocketOptions.SO_OOBINLINE); if (buf instanceof Boolean) return(((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected type"); }
if (getImpl() != null) return getImpl().getOutputStream(); throw new IOException("Not connected");
if (isClosed()) throw new SocketException("socket is closed"); if (!isConnected()) throw new IOException("not connected"); return getImpl().getOutputStream();
public OutputStream getOutputStream () throws IOException { if (getImpl() != null) return getImpl().getOutputStream(); throw new IOException("Not connected"); }
if (isClosed()) throw new SocketException("socket is closed");
public int getReceiveBufferSize () throws SocketException { Object buf = getImpl().getOption(SocketOptions.SO_RCVBUF); if (buf instanceof Integer) return(((Integer)buf).intValue()); else throw new SocketException("Internal Error: Unexpected type"); }
if (isClosed()) throw new SocketException("socket is closed");
public boolean getReuseAddress () throws SocketException { Object reuseaddr = getImpl().getOption (SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException ("Internal Error"); return ((Boolean) reuseaddr).booleanValue (); }
if (isClosed()) throw new SocketException("socket is closed");
public int getSendBufferSize () throws SocketException { Object buf = getImpl().getOption(SocketOptions.SO_SNDBUF); if (buf instanceof Integer) return(((Integer)buf).intValue()); else throw new SocketException("Internal Error: Unexpected type"); }
if (isClosed()) throw new SocketException("socket is closed");
public int getSoLinger() throws SocketException { Object linger = getImpl().getOption(SocketOptions.SO_LINGER); if (linger instanceof Integer) return(((Integer)linger).intValue()); else return -1; }
if (isClosed()) throw new SocketException("socket is closed");
public synchronized int getSoTimeout () throws SocketException { Object timeout = getImpl().getOption(SocketOptions.SO_TIMEOUT); if (timeout instanceof Integer) return(((Integer)timeout).intValue()); else return 0; }
if (isClosed()) throw new SocketException("socket is closed");
public boolean getTcpNoDelay() throws SocketException { Object on = getImpl().getOption(SocketOptions.TCP_NODELAY); if (on instanceof Boolean) return(((Boolean)on).booleanValue()); else throw new SocketException("Internal Error"); }
if (isClosed()) throw new SocketException("socket is closed");
public int getTrafficClass () throws SocketException { Object obj = getImpl().getOption(SocketOptions.IP_TOS); if (obj instanceof Integer) return ((Integer) obj).intValue (); else throw new SocketException ("Unexpected type"); }
if (isClosed()) throw new SocketException("socket is closed");
public void sendUrgentData (int data) throws IOException { getImpl().sendUrgentData (data); }
if (isClosed()) throw new SocketException("socket is closed");
public void setKeepAlive (boolean on) throws SocketException { getImpl().setOption(SocketOptions.SO_KEEPALIVE, new Boolean(on)); }
if (isClosed()) throw new SocketException("socket is closed");
public void setOOBInline (boolean on) throws SocketException { getImpl().setOption(SocketOptions.SO_OOBINLINE, new Boolean(on)); }
if (isClosed()) throw new SocketException("socket is closed");
public void setReceiveBufferSize (int size) throws SocketException { if (size <= 0) throw new IllegalArgumentException("SO_RCVBUF value must be > 0"); getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size)); }
if (isClosed()) throw new SocketException("socket is closed");
public void setSendBufferSize (int size) throws SocketException { if (size <= 0) throw new IllegalArgumentException("SO_SNDBUF value must be > 0"); getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size)); }
if (isClosed()) throw new SocketException("socket is closed");
public void setSoLinger(boolean on, int linger) throws SocketException { if (on == true) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger))...
if (isClosed()) throw new SocketException("socket is closed");
public synchronized void setSoTimeout (int timeout) throws SocketException { if (timeout < 0) throw new IllegalArgumentException("SO_TIMEOUT value must be >= 0"); getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); }
if (isClosed()) throw new SocketException("socket is closed");
public void setTcpNoDelay (boolean on) throws SocketException { getImpl().setOption(SocketOptions.TCP_NODELAY, new Boolean(on)); }
if (isClosed()) throw new SocketException("socket is closed");
public void setTrafficClass (int tc) throws SocketException { if (tc < 0 || tc > 255) throw new IllegalArgumentException(); getImpl().setOption (SocketOptions.IP_TOS, new Integer (tc)); }
if (getImpl() != null) getImpl().shutdownInput();
if (isClosed()) throw new SocketException("socket is closed"); getImpl().shutdownInput();
public void shutdownInput() throws IOException { if (getImpl() != null) getImpl().shutdownInput(); inputShutdown = true; }
if (getImpl() != null) getImpl().shutdownOutput();
if (isClosed()) throw new SocketException("socket is closed");
public void shutdownOutput() throws IOException { if (getImpl() != null) getImpl().shutdownOutput(); outputShutdown = true; }
getImpl().shutdownOutput();
public void shutdownOutput() throws IOException { if (getImpl() != null) getImpl().shutdownOutput(); outputShutdown = true; }
+ ",localport=" + getImpl().getLocalPort());
+ ",localport=" + getImpl().getLocalPort() + "]");
public String toString () { try { if (isConnected()) return ("Socket[addr=" + getImpl().getInetAddress() + ",port=" + getImpl().getPort() + ",localport=" + getImpl().getLocalPort()); } catch (SocketException e) { // This cannot happen as we are connected. } return "Socket[unconne...