rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
Object key = KEY_FACTORY.newInstance(strings, ints); | Object key = KEY_FACTORY.newInstance(strings, ints, fixedInput); | public StringSwitcher create() { setNamePrefix(StringSwitcher.class.getName()); Object key = KEY_FACTORY.newInstance(strings, ints); return (StringSwitcher)super.create(key); } |
ComplexOps.string_switch(e, strings, Constants.SWITCH_STYLE_HASH, new ObjectSwitchCallback() { | int style = fixedInput ? Constants.SWITCH_STYLE_HASHONLY : Constants.SWITCH_STYLE_HASH; ComplexOps.string_switch(e, strings, style, new ObjectSwitchCallback() { | public void generateClass(ClassVisitor v) throws Exception { ClassEmitter ce = new ClassEmitter(v); ce.begin_class(Constants.ACC_PUBLIC, getClassName(), STRING_SWITCHER, null, Constants.... |
public Object newInstance(String[] strings, int[] ints); | public Object newInstance(String[] strings, int[] ints, boolean fixedInput); | public Object newInstance(String[] strings, int[] ints); |
public static StringSwitcher create(String[] strings, int[] ints) { | public static StringSwitcher create(String[] strings, int[] ints, boolean fixedInput) { | public static StringSwitcher create(String[] strings, int[] ints) { Generator gen = new Generator(); gen.setStrings(strings); gen.setInts(ints); return gen.create(); } |
gen.setFixedInput(fixedInput); | public static StringSwitcher create(String[] strings, int[] ints) { Generator gen = new Generator(); gen.setStrings(strings); gen.setInts(ints); return gen.create(); } | |
String hostName = JOptionPane.showInputDialog("New host name: "); if (hostName == null || hostName.length() == 0) return; | String hostName = null; while (true) { hostName = JOptionPane.showInputDialog("New host name: "); if (hostName == null || hostName.length() == 0) return; HostComponent[] hc = experiment.getHosts(); boolean isUnique = true; for (int i = 0; i < hc.length; i++) if (hostName.equals(hc[i].getShortName())) { isUnique = false... | public void newHostMenuItem_actionPerformed(ActionEvent e) { String hostName = JOptionPane.showInputDialog("New host name: "); if (hostName == null || hostName.length() == 0) return; DefaultTreeModel model = (DefaultTreeModel)hostTree.getModel(); DefaultMutableTreeNode hostTreeRoot = (DefaultMu... |
public void setDuration(long duration); | void setDuration(long duration); | public void setDuration(long duration); |
public void setIntensity(double intensity); | void setIntensity(double intensity); | public void setIntensity(double intensity); |
public void setParent(RealWorldEvent parent); | void setParent(RealWorldEvent parent); | public void setParent(RealWorldEvent parent); |
_content = _resourceImpl.getContent(); _isAvailable = _content != null; | _isAvailable = _resourceImpl.exists(); | public VfsResource(String vfsURI, FileSystemManager fsManager) throws IOException { _isAvailable = false; _resourceImpl = null; try { _resourceImpl = fsManager.resolveFile(vfsURI); } catch (FileSystemException e) { Message.verbose(e.getLocalizedMessage()); throw new IOException(e.getLocaliz... |
public FileContent getContent() { | public FileContent getContent() throws IOException { if ((_content == null) && _isAvailable) { try { _content = _resourceImpl.getContent(); } catch (FileSystemException e) { IOException error = new IOException(e.getLocalizedMessage()); error.initCause(e); throw error; } } | public FileContent getContent() { return _content; } |
ERXExtensions.setDefaultDelegate(defaultEditingContext()); | public Session() { super(); /* ** Put your per-session initialization code here ** */ ERXExtensions.setDefaultDelegate(defaultEditingContext()); //defaultEditingContext().setTimestamp(); } | |
log.debug("Set default EditingContext: " + newEc.getClass().getName()); | public void setDefaultEditingContext(EOEditingContext newEc) { super.setDefaultEditingContext(newEc); log.debug("Set default EditingContext: " + newEc.getClass().getName()); } | |
for (int i = 0; i < depth; i++) System.out.print (" "); System.out.print (Thread.currentThread() + ": "); | private void dumpElementln (String msg) { System.out.println(msg); } | |
if(dump) dumpElementln("BLOCKDATALONG"); | { if(dump) dumpElementln("BLOCKDATALONG"); } | public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ... |
if(dump) dumpElementln("BLOCKDATA"); | { if(dump) dumpElementln("BLOCKDATA"); } | public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ... |
catch (EOFException e) { if(dump) dumpElementln("no, got EOFException"); } | public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ... | |
else { readFields(obj, currentObjectStreamClass); } | public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ... | |
this.currentObject = null; this.currentObjectStreamClass = null; | this.currentObject = prevObject; this.currentObjectStreamClass = prevObjectStreamClass; | public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ... |
depth -= 2; | public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); ... | |
return Class.forName(osc.getName(), true, currentLoader()); | return Class.forName(osc.getName(), true, callersClassLoader); | protected Class resolveClass(ObjectStreamClass osc) throws ClassNotFoundException, IOException { return Class.forName(osc.getName(), true, currentLoader()); } |
MethodInterceptor mi = Enhancer.getMethodInterceptor(enhanced); | MethodInterceptor mi = (MethodInterceptor)((Factory)enhanced).getCallback(Callbacks.INTERCEPT); | public static Object writeReplace(Object enhanced) throws ObjectStreamException { MethodInterceptor mi = Enhancer.getMethodInterceptor(enhanced); String parentClassName = enhanced.getClass().getSuperclass().getName(); Class interfaces[] = enhanced.getClass().getInterfaces(); ... |
public static Factory enhance(Class cls, MethodInterceptor ih) { | public static Factory enhance(Class cls, Callback callback) { | public static Factory enhance(Class cls, MethodInterceptor ih) { return (Factory)enhanceHelper(cls.isInterface() ? null : cls, cls.isInterface() ? new Class[]{ cls } : null, adapt(ih), cls.getClassLoader(), null, null ); } |
adapt(ih), cls.getClassLoader(), null, null ); | callback, cls.getClassLoader(), null, null ); | public static Factory enhance(Class cls, MethodInterceptor ih) { return (Factory)enhanceHelper(cls.isInterface() ? null : cls, cls.isInterface() ? new Class[]{ cls } : null, adapt(ih), cls.getClassLoader(), null, null ); } |
Class[] interfaces, | final Class[] interfaces, | public static Class enhanceClass(Class cls, Class[] interfaces, ClassLoader loader, MethodFilter filter) { return enhanceClass(cls, interfaces, loader, adapt(filter)); } |
MethodFilter filter) { return enhanceClass(cls, interfaces, loader, adapt(filter)); | final CallbackFilter filter) { if (filter == null) { throw new IllegalArgumentException("CallbackFilter is required for enhanceClass"); } final Class base = (cls == null) ? Object.class : cls; return (Class) cache.get(loader, KEY_FACTORY.newInstance(base, interfaces, null, filter), new FactoryCache.ClassOnlyCallback() ... | public static Class enhanceClass(Class cls, Class[] interfaces, ClassLoader loader, MethodFilter filter) { return enhanceClass(cls, interfaces, loader, adapt(filter)); } |
final Class[] interfaces, final Callbacks callbacks, | Class[] interfaces, final Callback callback, | private static Object enhanceHelper(Class cls, final Class[] interfaces, final Callbacks callbacks, ClassLoader loader, final Method wreplace, ... |
final Method wreplace, final CallbackFilter filter) { final Class base = (cls == null) ? Object.class : cls; Object key = KEY_FACTORY.newInstance(base, interfaces, wreplace, filter); return cache.get(loader, key, new FactoryCache.AbstractCallback() { public BasicCodeGenerator newGenerator() { return new EnhancerGene... | Method wreplace, CallbackFilter filter) { Callbacks callbacks = new Callbacks() { public Callback get(int type) { return callback; } }; if (filter == null) { filter = new SimpleFilter(Callbacks.determineType(callback)); } return enhanceHelper(cls, interfaces, callbacks, loader, wreplace, filter); | private static Object enhanceHelper(Class cls, final Class[] interfaces, final Callbacks callbacks, ClassLoader loader, final Method wreplace, ... |
} else if (errMsg.contains(BUILD_FORREST_ERROR_MESSAGE)) { | } else if (errMsg.equalsIgnoreCase(BUILD_FORREST_ERROR_MESSAGE)) { | protected IStatus runAnt(IProgressMonitor monitor, String cmdString) { if (logger.isDebugEnabled()) { logger.debug("runAnt(IProgressMonitor, String) - start"); } IStatus status = Status.OK_STATUS; if (cmdString != null) { String fhome = ForrestPlugin.getDefault().getPluginPreferences() .getString(ForrestPr... |
if ((replacementEnabled || obj instanceof Replaceable) | if ((replacementEnabled || obj instanceof Serializable) | public final void writeObject (Object obj) throws IOException { if (useSubclassMethod) { writeObjectOverride (obj); return; } boolean was_serializing = isSerializing; if (! was_serializing) setBlockDataMode (false); try { isSerializing = true; boolean replaceDone = false... |
if (obj instanceof Replaceable) obj = ((Replaceable)obj).writeReplace (); | if (obj instanceof Serializable) { Method m = null; try { Class classArgs[] = {}; m = obj.getClass ().getDeclaredMethod ("writeReplace", classArgs); obj = m.invoke (obj, new Object[] {}); } catch (NoSuchMethodException ignore) { } catch (IllegalAccessException ignore) { } catch (InvocationTargetException ignore) { } ... | public final void writeObject (Object obj) throws IOException { if (useSubclassMethod) { writeObjectOverride (obj); return; } boolean was_serializing = isSerializing; if (! was_serializing) setBlockDataMode (false); try { isSerializing = true; boolean replaceDone = false... |
writer.println("# Note, this society may not run because OrtRTDataPlugin may"); writer.println("# have been changed to OrgDataPlugin"); | writer.println("# Note, this society may not run correctly because OrtRTDataPlugin may"); writer.println("# have been changed to OrgDataPlugin on loading from INI files"); | private void writeAgentFile(File configDir, AgentComponentData ac) throws IOException { PrintWriter writer = new PrintWriter(new FileWriter(new File(configDir, ac.getName() + ".ini"))); try { writer.println("[ Cluster ]"); writer.println("class = " + ac.getClassName()); AgentAssetData aad = ac.ge... |
EOEntity entity = EOUtilities.entityNamed(ec, entityName); | EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, entityName); | public static NSDictionary newPrimaryKeyDictionaryForEntityNamed(EOEditingContext ec, String entityName) { EOEntity entity = EOUtilities.entityNamed(ec, entityName); EODatabaseContext dbContext = EODatabaseContext.registeredDatabaseContextForModel(entity.model(), ec); NSDictionary primaryKey = ... |
EOSQLExpression sql = ERXEOAccessUtilities.sqlExpressionForFetchSpecificationAndEditingContext(spec, ec, start, end); | EOSQLExpression sql = ERXEOAccessUtilities.sqlExpressionForFetchSpecification(ec, spec, start, end); | public static NSArray objectsInRange(EOEditingContext ec, EOFetchSpecification spec, int start, int end) { EOSQLExpression sql = ERXEOAccessUtilities.sqlExpressionForFetchSpecificationAndEditingContext(spec, ec, start, end); NSDictionary hints = new NSDictionary(sql, "EOCustomQueryExpressionHintKey");... |
EOModelGroup group = EOModelGroup.modelGroupForObjectStoreCoordinator((EOObjectStoreCoordinator)ec.rootObjectStore()); EOEntity entity = group.entityNamed(entityName); | EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, entityName); | public static EOFetchSpecification primaryKeyFetchSpecificationForEntity(EOEditingContext ec, String entityName, EOQualifier eoqualifier, ... |
Object pk=primaryKeyObjectForObject(eo); if(pk == null) return null; if(pk instanceof String || pk instanceof Number) { return pk.toString(); } return NSPropertyListSerialization.stringFromPropertyList(pk); | return _stringForPrimaryKey(primaryKeyObjectForObject(eo)); | public static String primaryKeyStringForObject(EOEnterpriseObject eo) { Object pk=primaryKeyObjectForObject(eo); if(pk == null) return null; if(pk instanceof String || pk instanceof Number) { return pk.toString(); } return NSPropertyListSerialization.stringFr... |
public void getDueMessages(List toIn, List toOut); | void getDueMessages(List toIn, List toOut); | public void getDueMessages(List toIn, List toOut); |
public void receiveMessage(Message m); | void receiveMessage(Message m); | public void receiveMessage(Message m); |
public void sendMessage(Message m); | void sendMessage(Message m); | public void sendMessage(Message m); |
return(multipleMode); | return multipleMode; | allowsMultipleSelections(){ return(multipleMode);} |
removeAll(); | items.clear(); ListPeer peer = (ListPeer) getPeer (); if (peer != null) peer.removeAll (); | clear(){ removeAll();} |
return(getItemCount()); | return items.size (); | countItems(){ return(getItemCount());} |
remove(index); | items.removeElementAt (index); ListPeer peer = (ListPeer) getPeer (); if (peer != null) peer.delItems (index, index); | delItem(int index) throws IllegalArgumentException{ remove(index);} |
return(getMinimumSize(rows)); | return getMinimumSize (getRows ()); | getMinimumSize(){ return(getMinimumSize(rows));} |
return(getPreferredSize(rows)); | return getPreferredSize (getRows ()); | getPreferredSize(){ return(getPreferredSize(rows));} |
int[] indexes = getSelectedIndexes(); for (int i = 0; i < indexes.length; i++) if (indexes[i] == index) return(true); return(false); | return isSelected (index); | isIndexSelected(int index){ int[] indexes = getSelectedIndexes(); for (int i = 0; i < indexes.length; i++) if (indexes[i] == index) return(true); return(false);} |
return(isIndexSelected(index)); | int[] indexes = getSelectedIndexes (); for (int i = 0; i < indexes.length; i++) if (indexes[i] == index) return true; return false; | isSelected(int index){ return(isIndexSelected(index));} |
return(getMinimumSize(rows)); | return minimumSize (getRows ()); | minimumSize(){ return(getMinimumSize(rows));} |
return(getPreferredSize(rows)); | return preferredSize (getRows ()); | preferredSize(){ return(getPreferredSize(rows));} |
items.removeElementAt (index); if (peer != null) { ListPeer l = (ListPeer) peer; l.delItems (index, index); } | delItem (index); | remove(int index) throws IllegalArgumentException{ items.removeElementAt (index); if (peer != null) { ListPeer l = (ListPeer) peer; l.delItems (index, index); }} |
items.clear(); if (peer != null) { ListPeer l = (ListPeer) peer; l.removeAll (); } | clear (); | removeAll(){ items.clear(); if (peer != null) { ListPeer l = (ListPeer) peer; l.removeAll (); }} |
this.multipleMode = multipleMode; if (peer != null) { ListPeer l = (ListPeer) peer; l.setMultipleMode (multipleMode); } | setMultipleSelections (multipleMode); | setMultipleMode(boolean multipleMode){ this.multipleMode = multipleMode; if (peer != null) { ListPeer l = (ListPeer) peer; l.setMultipleMode (multipleMode); }} |
setMultipleMode(multipleMode); | this.multipleMode = multipleMode; ListPeer peer = (ListPeer) getPeer (); if (peer != null) peer.setMultipleMode (multipleMode); | setMultipleSelections(boolean multipleMode){ setMultipleMode(multipleMode);} |
am.deleteAccount("tatayoyo"); boolean toto = am.addNewAccount("Tymeng","tatayoyo","eastcoast","tyty@vachier.com"); | boolean toto ; toto = am.checkLogon("tatayoyo","eastcoast"); | public static void main(String [] args){ DBI dbh = new DBI("sqletud.univ-mlv.fr",5432,"rtchuitc","rtchuitc","papa"); //dbh.establishConnection(); //dbh.createTable(); AccountManager am = new AccountManager(dbh,"account"); am.deleteAccount("tatayoyo"); boolean toto = am.addNewAccount("Tymeng","tatayoyo","eastcoast",... |
am.updateAccount("tatayoyo","grumble","pistolty@vachier.com"); dbh.disconnect(); | public static void main(String [] args){ DBI dbh = new DBI("sqletud.univ-mlv.fr",5432,"rtchuitc","rtchuitc","papa"); //dbh.establishConnection(); //dbh.createTable(); AccountManager am = new AccountManager(dbh,"account"); am.deleteAccount("tatayoyo"); boolean toto = am.addNewAccount("Tymeng","tatayoyo","eastcoast",... | |
ExperimentDB.updateCMTAssembly(experimentId); | String newCMTasb = ExperimentDB.updateCMTAssembly(experimentId); if (forceRecomputeBox.isSelected()) { System.out.println("new CMTasb is: "+newCMTasb); ExperimentDB.deleteCMTAssembly(experimentId); newCMTasb = ExperimentDB.updateCMTAssembly(experimentId); System.out.println("new CMTasb is: "+newCMTasb); } | public void processResults() { boolean modified = false; int n = ULThreads.length; for (int i = 0; i < n; i++) { JCheckBox cb = (JCheckBox)ULThreadCheckBoxes.get(i); Boolean b = (Boolean)originalThreadSelected.get(i); if (b.booleanValue() == cb.isSelected()) continue; if (!modified... |
if (! use_addr2line) | if (! use_addr2line || blacklist.contains(file)) | public void lookup (String file, long addr) { binaryFile = file; sourceFile = null; lineNum = -1; if (! use_addr2line) return; Addr2Line addr2line = (Addr2Line) procs.get(file); if (addr2line == null) { addr2line = new Addr2Line(file); procs.put(file, addr2line); } ... |
else { blacklist.add(binaryFile); } | public void lookup (String file, long addr) { binaryFile = file; sourceFile = null; lineNum = -1; if (! use_addr2line) return; Addr2Line addr2line = (Addr2Line) procs.get(file); if (addr2line == null) { addr2line = new Addr2Line(file); procs.put(file, addr2line); } ... | |
public Map getRecipeNamesFromDatabase() { createLogger(); | public static Map getRecipeNamesFromDatabase() { Logger log = CSMART.createLogger("org.cougaar.tools.csmart.ui.viewer.OrganizerHelper"); | public Map getRecipeNamesFromDatabase() { createLogger(); Map recipes = new TreeMap(); String query = null; try { Connection conn = DBUtils.getConnection(); Statement stmt = conn.createStatement(); Map substitutions = new HashMap(); query = DBUtils.getQuery("queryLibRecipes", subst... |
response.appendContentString("new Ajax.PeriodicalUpdater('" + id + "', $(" + id + ").updateUrl, "); | response.appendContentString("new Ajax.PeriodicalUpdater('" + id + "', $(" + id + ").getAttribute('updateUrl'), "); | public void appendToResponse(WOResponse response, WOContext context) { super.appendToResponse(response, context); String id = containerID(); NSDictionary options = createAjaxOptions(); response.appendContentString("<script type = \"text/javascript\" language = \"javascript\"><!--\n")... |
response.appendContentString("new Ajax.Updater('" + id + "', $('" + id + "').updateUrl, "); | response.appendContentString("new Ajax.Updater('" + id + "', $('" + id + "').getAttribute('updateUrl'), "); | public void appendToResponse(WOResponse response, WOContext context) { super.appendToResponse(response, context); String id = containerID(); NSDictionary options = createAjaxOptions(); response.appendContentString("<script type = \"text/javascript\" language = \"javascript\"><!--\n")... |
response.appendContentString("function " + id + "Update() { new Ajax.Updater('" + id + "', $(" + id + ").updateUrl, "); | response.appendContentString("function " + id + "Update() { new Ajax.Updater('" + id + "', $(" + id + ").getAttribute('updateUrl'), "); | public void appendToResponse(WOResponse response, WOContext context) { super.appendToResponse(response, context); String id = containerID(); NSDictionary options = createAjaxOptions(); response.appendContentString("<script type = \"text/javascript\" language = \"javascript\"><!--\n")... |
checkAttribute( "from", this.from ); | checkStringAttribute( "from", this.from ); | public void doTag(XMLOutput output) throws Exception { Process process = getCurrentProcess(); checkAttribute( "from", this.from ); checkAttribute( "to", this.to ); State fromState = process.getState( this.from ); if ( fromState == n... |
checkAttribute( "to", this.to ); | checkStringAttribute( "to", this.to ); | public void doTag(XMLOutput output) throws Exception { Process process = getCurrentProcess(); checkAttribute( "from", this.from ); checkAttribute( "to", this.to ); State fromState = process.getState( this.from ); if ( fromState == n... |
if (societies.getChildCount() != 0) { System.err.println("attempt to add second society to an experiment"); return; } | private void addSocietyComponent(SocietyComponent sc) { DefaultMutableTreeNode node = new DefaultMutableTreeNode(sc, false); model.insertNodeInto(node, societies, societies.getChildCount()); } | |
for (int i = 0, n = experiment.getSocietyComponentCount(); i < n; i++) { addSocietyComponent(experiment.getSocietyComponent(i)); | SocietyComponent society = experiment.getSocietyComponent(); if (society != null) { addSocietyComponent(society); | private void initDisplay() { model.removeTreeModelListener(myTreeModelListener); societies.removeAllChildren(); recipes.removeAllChildren(); model.nodeStructureChanged(root); DefaultTreeCellRenderer renderer = new DefaultTreeCellRenderer(); if (!isEditable) { renderer.setTextNonSelectionColor(C... |
SocietyComponent[] societyComponentsAry = new SocietyComponent[nSocieties]; for (int i = 0; i < nSocieties; i++) { SocietyComponent society = (SocietyComponent) ((DefaultMutableTreeNode) societies.getChildAt(i)).getUserObject(); societyComponentsAry[i] = society; | if (nSocieties > 1) { System.err.println("Only 1 society in an experiment!"); } else if (nSocieties == 1) { SocietyComponent society = (SocietyComponent) ((DefaultMutableTreeNode) societies.getChildAt(0)).getUserObject(); | private void reconcileExperimentNodes() { int nSocieties = societies.getChildCount(); SocietyComponent[] societyComponentsAry = new SocietyComponent[nSocieties]; for (int i = 0; i < nSocieties; i++) { SocietyComponent society = (SocietyComponent) ((DefaultMutableTreeNode) societies.getChildAt(i)).getUse... |
experiment.setSocietyComponents(societyComponentsAry); | private void reconcileExperimentNodes() { int nSocieties = societies.getChildCount(); SocietyComponent[] societyComponentsAry = new SocietyComponent[nSocieties]; for (int i = 0; i < nSocieties; i++) { SocietyComponent society = (SocietyComponent) ((DefaultMutableTreeNode) societies.getChildAt(i)).getUse... | |
public AssetFileComponent(String filename) { | public AssetFileComponent(String filename, String clusterName) { | public AssetFileComponent(String filename) { super("AssetData"); this.filename = filename; } |
this.clusterName = clusterName; | public AssetFileComponent(String filename) { super("AssetData"); this.filename = filename; } | |
rData.setItem((String)rel.getProperty(RelationshipBase.PROP_ITEM).getValue()); | rData.setItemId((String)rel.getProperty(RelationshipBase.PROP_ITEM).getValue()); | public ComponentData addComponentData(ComponentData data) { AgentAssetData assetData = new AgentAssetData((AgentComponentData)data); assetData.setAssetClass((String)propAssetClass.getValue()); assetData.setUniqueID((String)propUniqueID.getValue()); assetData.setUnitName((String)propUnitName.getValue()); ... |
propUIC = addProperty(PROP_UIC, (aad.getUIC() != null) ? aad.getUIC() : "UIC/" + aad.getClusterID()); | propUIC = addProperty(PROP_UIC, (aad.getUIC() != null) ? aad.getUIC() : "UIC/" + clusterName); | public void initProperties() { // strip off extension if it exists int index = filename.indexOf('.'); if (index != -1) filename = filename.substring(0, index); // Since there are two possible types of asset files, we // need to determine which parser to use. // We will determine this by lookin... |
{ if ((SAXDriver.FEATURE + "validation").equals (featureId)) return isValidating; | { if ((SAXDriver.FEATURE + "validation").equals(featureId)) { return isValidating; } | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((SAXDriver.FEATURE + "validation").equals (featureId)) return isValidating; return aelfred2.getFeature (featureId); } |
{ if ((SAXDriver.PROPERTY + "declaration-handler") .equals (propertyId) || (SAXDriver.PROPERTY + "lexical-handler") .equals (propertyId)) return filter.getProperty (propertyId); throw new SAXNotRecognizedException (propertyId); } | { if ((SAXDriver.PROPERTY + "declaration-handler").equals(propertyId) || (SAXDriver.PROPERTY + "lexical-handler").equals(propertyId)) { return filter.getProperty(propertyId); } throw new SAXNotRecognizedException(propertyId); } | public Object getProperty (String propertyId) throws SAXNotRecognizedException { if ((SAXDriver.PROPERTY + "declaration-handler") .equals (propertyId) || (SAXDriver.PROPERTY + "lexical-handler") .equals (propertyId)) return filter.getProperty (propertyId); throw new SAXNotRecognizedException (propert... |
public void setContentHandler (ContentHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setContentHandler (handler); } | public void setContentHandler(ContentHandler handler) { if (active) { throw new IllegalStateException("already parsing"); } filter.setContentHandler(handler); } | public void setContentHandler (ContentHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setContentHandler (handler); } |
public void setDTDHandler (DTDHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setDTDHandler (handler); } | public void setDTDHandler(DTDHandler handler) { if (active) { throw new IllegalStateException("already parsing"); } filter.setDTDHandler(handler); } | public void setDTDHandler (DTDHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setDTDHandler (handler); } |
public void setErrorHandler (ErrorHandler handler) { if (active) throw new IllegalStateException ("already parsing"); aelfred2.setErrorHandler (handler); } | public void setErrorHandler(ErrorHandler handler) { if (active) { throw new IllegalStateException("already parsing"); } aelfred2.setErrorHandler(handler); } | public void setErrorHandler (ErrorHandler handler) { if (active) throw new IllegalStateException ("already parsing"); aelfred2.setErrorHandler (handler); } |
if (state == value) return; | if (state == value) { return; } | public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("alrea... |
if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("already parsing"); if (state) forceValidating (); isValidating = state; } else aelfred2.setFeature (featureId, state); } | if ((SAXDriver.FEATURE + "validation").equals(featureId)) { if (active) { throw new SAXNotSupportedException("already parsing"); } if (state) { forceValidating(); } isValidating = state; } else { aelfred2.setFeature(featureId, state); } } | public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("alrea... |
{ if (active) throw new IllegalStateException ("already parsing"); if (getProperty (propertyId) != value) filter.setProperty (propertyId, value); } | { if (active) { throw new IllegalStateException("already parsing"); } if (getProperty(propertyId) != value) { filter.setProperty(propertyId, value); } } | public void setProperty (String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (active) throw new IllegalStateException ("already parsing"); if (getProperty (propertyId) != value) filter.setProperty (propertyId, value); } |
{ boolean state; state = getFeature (featureId); | { boolean state; state = getFeature (featureId); if (state == value) { return; } if (parser != null) { throw new SAXNotSupportedException("not while parsing"); } | public void setFeature (String featureId, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { boolean state; // Features with a defined value, we just change it if we can. state = getFeature (featureId); if (state == value) return; if (parser != null) throw new SAXNotSupported... |
if (state == value) return; if (parser != null) throw new SAXNotSupportedException ("not while parsing"); | if ((FEATURE + "namespace-prefixes").equals(featureId)) { xmlNames = value; if (!xmlNames) { namespaces = true; } return; } | public void setFeature (String featureId, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { boolean state; // Features with a defined value, we just change it if we can. state = getFeature (featureId); if (state == value) return; if (parser != null) throw new SAXNotSupported... |
if ((FEATURE + "namespace-prefixes").equals (featureId)) { xmlNames = value; if (!xmlNames) namespaces = true; return; } | if ((FEATURE + "namespaces").equals(featureId)) { namespaces = value; if (!namespaces) { xmlNames = true; } return; } | public void setFeature (String featureId, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { boolean state; // Features with a defined value, we just change it if we can. state = getFeature (featureId); if (state == value) return; if (parser != null) throw new SAXNotSupported... |
if ((FEATURE + "namespaces").equals (featureId)) { namespaces = value; if (!namespaces) xmlNames = true; return; } | if ((FEATURE + "external-general-entities").equals(featureId)) { extGE = value; return; } if ((FEATURE + "external-parameter-entities").equals(featureId)) { extPE = value; return; } if ((FEATURE + "resolve-dtd-uris").equals(featureId)) { resolveAll = value; return; } | public void setFeature (String featureId, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { boolean state; // Features with a defined value, we just change it if we can. state = getFeature (featureId); if (state == value) return; if (parser != null) throw new SAXNotSupported... |
if ((FEATURE + "external-general-entities").equals (featureId)) { extGE = value; return; } if ((FEATURE + "external-parameter-entities") .equals (featureId)) { extPE = value; return; } if ((FEATURE + "resolve-dtd-uris").equals (featureId)) { resolveAll = value; return; } | if ((FEATURE + "use-entity-resolver2").equals(featureId)) { useResolver2 = value; return; } | public void setFeature (String featureId, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { boolean state; // Features with a defined value, we just change it if we can. state = getFeature (featureId); if (state == value) return; if (parser != null) throw new SAXNotSupported... |
if ((FEATURE + "use-entity-resolver2").equals (featureId)) { useResolver2 = value; return; } throw new SAXNotRecognizedException (featureId); } | throw new SAXNotRecognizedException(featureId); } | public void setFeature (String featureId, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { boolean state; // Features with a defined value, we just change it if we can. state = getFeature (featureId); if (state == value) return; if (parser != null) throw new SAXNotSupported... |
{ synchronized (base) { parser = new XmlParser (); if (namespaces) prefixStack = new NamespaceSupport (); else if (!xmlNames) throw new IllegalStateException (); parser.setHandler (this); try { Reader r = source.getCharacterStream(); InputStream in = source.getByteStream(); parser.doParse (source.getSystemId (), so... | { synchronized (base) { parser = new XmlParser(); if (namespaces) { prefixStack = new NamespaceSupport(); } else if (!xmlNames) { throw new IllegalStateException(); } parser.setHandler(this); try { Reader r = source.getCharacterStream(); InputStream in = source.getByteStream(); parser.doParse(source.getSystemId(), so... | public void parse (InputSource source) throws SAXException, IOException { synchronized (base) { parser = new XmlParser (); if (namespaces) prefixStack = new NamespaceSupport (); else if (!xmlNames) throw new IllegalStateException (); parser.setHandler (this); try { Reader r = sourc... |
public void setEntityResolver (EntityResolver resolver) { if (resolver instanceof EntityResolver2) resolver2 = (EntityResolver2) resolver; else resolver2 = null; if (resolver == null) resolver = base; entityResolver = resolver; } | public void setEntityResolver(EntityResolver resolver) { if (resolver instanceof EntityResolver2) { resolver2 = (EntityResolver2) resolver; } else { resolver2 = null; } if (resolver == null) { resolver = base; } entityResolver = resolver; } | public void setEntityResolver (EntityResolver resolver) { if (resolver instanceof EntityResolver2) resolver2 = (EntityResolver2) resolver; else resolver2 = null; if (resolver == null) resolver = base; entityResolver = resolver; } |
public void setErrorHandler (ErrorHandler handler) { if (handler == null) handler = base; this.errorHandler = handler; } | public void setErrorHandler(ErrorHandler handler) { if (handler == null) { handler = base; } this.errorHandler = handler; } | public void setErrorHandler (ErrorHandler handler) { if (handler == null) handler = base; this.errorHandler = handler; } |
{ if ("en".equals (locale.getLanguage ())) return ; throw new SAXException ("AElfred2 only supports English locales."); } | { if ("en".equals(locale.getLanguage())) { return; } throw new SAXException ("AElfred2 only supports English locales."); } | public void setLocale (Locale locale) throws SAXException { if ("en".equals (locale.getLanguage ())) return ; throw new SAXException ("AElfred2 only supports English locales."); } |
prop_init = true; properties = props; | synchronized (System.class) { properties = props; } | public static void setProperties (Properties props) { if (secman != null) secman.checkPropertiesAccess(); // We might not have initialized yet. prop_init = true; properties = props; } |
JLabel assetClusterLabel = new JLabel("Asset Cluster :"); | JLabel assetClusterLabel = new JLabel("Asset Agent :"); | private void planObjectTypeActionPerformed(ActionEvent e) { JComboBox cb = (JComboBox)e.getSource(); String s = (String)cb.getSelectedItem(); if (s.equals(ALL)){ if (!loadedPanels.isEmpty()) { for (int i=0; i<loadedPanels.size(); i++) box.remove((JPanel)loadedPanels.elementAt(i)); ... |
JLabel allocToClusterLabel = new JLabel("To Cluster :"); | JLabel allocToClusterLabel = new JLabel("To Agent :"); | private void planObjectTypeActionPerformed(ActionEvent e) { JComboBox cb = (JComboBox)e.getSource(); String s = (String)cb.getSelectedItem(); if (s.equals(ALL)){ if (!loadedPanels.isEmpty()) { for (int i=0; i<loadedPanels.size(); i++) box.remove((JPanel)loadedPanels.elementAt(i)); ... |
JLabel allocRemoteClusterUIDLabel = new JLabel("Remote Cluster UID :"); | JLabel allocRemoteClusterUIDLabel = new JLabel("Remote Agent UID :"); | private void planObjectTypeActionPerformed(ActionEvent e) { JComboBox cb = (JComboBox)e.getSource(); String s = (String)cb.getSelectedItem(); if (s.equals(ALL)){ if (!loadedPanels.isEmpty()) { for (int i=0; i<loadedPanels.size(); i++) box.remove((JPanel)loadedPanels.elementAt(i)); ... |
if (!WOApplication.application().isCachingEnabled()) { | boolean checkRules = !WOApplication.application().isCachingEnabled(); if (checkRules) { | public void myCheckRules() { if (!WOApplication.application().isCachingEnabled()) { ERD2WModel.erDefaultModel().checkRules(); } } |
if (getIvy().getVersionMatcher().isDynamic(mrid) && !acceptLatest()) { | boolean isDynamic = getIvy().getVersionMatcher().isDynamic(mrid); if (isDynamic && !acceptLatest()) { | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; ModuleRevisionId mrid = ... |
if (!getIvy().getVersionMatcher().isDynamic(mrid) && !isCheckmodified() && !isChangingDependency) { | if (!isDynamic && !isCheckmodified() && !isChangingDependency) { | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; ModuleRevisionId mrid = ... |
if (getIvy().getVersionMatcher().isDynamic(mrid)) { | if (isDynamic) { | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; ModuleRevisionId mrid = ... |
if (getIvy().getVersionMatcher().isDynamic(resolvedMrid)) { | if (isDynamic) { | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; ModuleRevisionId mrid = ... |
analyzerAction, organizer.buildCommunityAction | analyzerAction | public CSMART() { setTitle("CSMART"); csmart = this; createLog(); // Write initial CSMART info to the log file if (log.isShoutEnabled()) { log.shout(writeDebug()); } resultDir = initResultDir(); organizer = new Organizer(this); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.