rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
_requestedConf = requestedConf;
_requestedConf.put(getRootModuleConf(), requestedConf);
public final void setRequestedConf(String requestedConf) { _requestedConf = requestedConf; }
boolean isHostRootSelected = hcb.isHostTreeRootSelected();
public void menuSelected(MenuEvent e) { Component selectedComponent = tabbedPane.getSelectedComponent(); boolean communityEnabled = selectedComponent.equals(communityPanel); newCommunityMenuItem.setEnabled(communityEnabled); viewCommunityMenuItem.setEnabled(communityEnabled); bo...
newHostMenuItem.setEnabled(isHostRootSelected); if (isHostRootSelected || isNodeRootSelected || (hostsInHostTree != null) || (nodesInHostTree != null) || (nodesInNodeTree != null)) globalCommandLineMenuItem.setEnabled(true); else globalCommandLineMenuItem.setEnabled(false);
public void menuSelected(MenuEvent e) { Component selectedComponent = tabbedPane.getSelectedComponent(); boolean communityEnabled = selectedComponent.equals(communityPanel); newCommunityMenuItem.setEnabled(communityEnabled); viewCommunityMenuItem.setEnabled(communityEnabled); bo...
newHostMenuItem.setEnabled(isHostRootSelected);
public void menuSelected(MenuEvent e) { Component selectedComponent = tabbedPane.getSelectedComponent(); boolean communityEnabled = selectedComponent.equals(communityPanel); newCommunityMenuItem.setEnabled(communityEnabled); viewCommunityMenuItem.setEnabled(communityEnabled); bo...
dumpHNA(); }
exit(); NamedFrame.getNamedFrame().removeFrame(ExperimentBuilder.this); dispose(); }
public void actionPerformed(ActionEvent e) { dumpHNA(); }
importHNAMap();
dumpHNA();
public void actionPerformed(ActionEvent e) { importHNAMap(); }
exit(); NamedFrame.getNamedFrame().removeFrame(ExperimentBuilder.this); dispose(); }
importHNAMap(); }
public void actionPerformed(ActionEvent e) { exit(); NamedFrame.getNamedFrame().removeFrame(ExperimentBuilder.this); dispose(); }
fileMenu.setToolTipText("Configure communities, hosts and nodes, save, or quit");
fileMenu.setToolTipText("Save, export configuration, or quit"); communityMenu = new JMenu(COMMUNITY_MENU); communityMenu.setToolTipText("Configure communities"); configureMenu = new JMenu(CONFIGURE_MENU); configureMenu.setToolTipText("Configure hosts and nodes");
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
fileMenu.add(newCommunityMenuItem);
communityMenu.add(newCommunityMenuItem);
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
fileMenu.add(viewCommunityMenuItem);
communityMenu.add(viewCommunityMenuItem); newHostMenuItem = new JMenuItem(HostConfigurationBuilder.NEW_HOST_MENU_ITEM); newHostMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { hcb.createHost(); } }); configureMenu.add(newHostMenuItem); describeHostMenuItem = new JMenuItem(H...
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
fileMenu.add(globalCommandLineMenuItem); newHostMenuItem = new JMenuItem(HostConfigurationBuilder.NEW_HOST_MENU_ITEM); newHostMenuItem.addActionListener(new ActionListener() {
configureMenu.add(globalCommandLineMenuItem); commandLineMenuItem = new JMenuItem(HostConfigurationBuilder.NODE_COMMAND_LINE_MENU_ITEM); commandLineMenuItem.addActionListener(new ActionListener() {
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
hcb.createHost();
hcb.setNodeCommandLine();
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
fileMenu.add(newHostMenuItem);
configureMenu.add(commandLineMenuItem); configureMenu.addSeparator();
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
fileMenu.add(newNodeMenu); commandLineMenuItem = new JMenuItem(HostConfigurationBuilder.NODE_COMMAND_LINE_MENU_ITEM); commandLineMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { hcb.setNodeCommandLine(); } }); fileMenu.add(commandLineMenuItem); describeHostMenuItem = new JM...
configureMenu.add(newNodeMenu);
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
fileMenu.add(describeNodeMenuItem); hostTypeMenuItem = new JMenuItem(HostConfigurationBuilder.HOST_TYPE_MENU_ITEM); hostTypeMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { hcb.setHostType(); } }); fileMenu.add(hostTypeMenuItem); hostLocationMenuItem = new JMenuItem(HostCon...
configureMenu.add(describeNodeMenuItem);
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
fileMenu.add(deleteNodeMenuItem); fileMenu.addSeparator();
configureMenu.add(deleteNodeMenuItem);
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
fileMenu.addSeparator();
configureMenu.addSeparator();
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
fileMenu.add(hnaActions[i]);
configureMenu.add(hnaActions[i]);
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
if (tabbedPane.getSelectedComponent().equals(hcb))
if (tabbedPane.getSelectedComponent().equals(hcb)) {
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
findMenu.setEnabled(false);
communityMenu.setEnabled(false);
public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure communities, hosts and...
hcb.setGlobalCommandLine();
hcb.createHost();
public void actionPerformed(ActionEvent e) { hcb.setGlobalCommandLine(); }
hcb.createHost();
hcb.setHostDescription();
public void actionPerformed(ActionEvent e) { hcb.createHost(); }
hcb.createUnassignedNode();
hcb.setHostType();
public void actionPerformed(ActionEvent e) { hcb.createUnassignedNode(); }
hcb.createAssignedNode();
hcb.setHostLocation();
public void actionPerformed(ActionEvent e) { hcb.createAssignedNode(); }
hcb.setNodeCommandLine();
hcb.deleteHost();
public void actionPerformed(ActionEvent e) { hcb.setNodeCommandLine(); }
hcb.setHostDescription();
hcb.setGlobalCommandLine();
public void actionPerformed(ActionEvent e) { hcb.setHostDescription(); }
hcb.setNodeDescription();
hcb.setNodeCommandLine();
public void actionPerformed(ActionEvent e) { hcb.setNodeDescription(); }
hcb.setHostType();
hcb.createUnassignedNode();
public void actionPerformed(ActionEvent e) { hcb.setHostType(); }
hcb.setHostLocation();
hcb.createAssignedNode();
public void actionPerformed(ActionEvent e) { hcb.setHostLocation(); }
hcb.deleteHost();
hcb.setNodeDescription();
public void actionPerformed(ActionEvent e) { hcb.deleteHost(); }
if (tabbedPane.getSelectedComponent().equals(hcb))
if (tabbedPane.getSelectedComponent().equals(hcb)) {
public void stateChanged(ChangeEvent e) { if (tabbedPane.getSelectedComponent().equals(hcb)) findMenu.setEnabled(true); else findMenu.setEnabled(false); }
findMenu.setEnabled(false);
communityMenu.setEnabled(false);
public void stateChanged(ChangeEvent e) { if (tabbedPane.getSelectedComponent().equals(hcb)) findMenu.setEnabled(true); else findMenu.setEnabled(false); }
MetricComponent mc = createMet(name, item.cls); if (mc == null) return; DefaultMutableTreeNode newNode = addMetricToWorkspace(mc, node); workspace.setSelection(newNode);
private void newMetric(DefaultMutableTreeNode node) { Object[] values = metComboItems; Object answer = JOptionPane.showInputDialog(this, "Select Metric Type", "Select Metric", JOptionPane.QUESTION_MESSAGE, null, values, "Empty Metric"); //"Mo Metric"); if (answer instanceof...
log = CSMART.createLogger("org.cougaar.tools.csmart.ui");
createLogger();
public PropertyEditorPanel(ModifiableComponent configComp, boolean isEditable) { // caller decides if this panel should allow editing this.isEditable = isEditable; // create the configComp panel configCompPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); setLayout(new Bo...
e.invoke_interface(DISPATCHER, LOAD_OBJECT);
if (proxyRef) { e.load_this(); e.invoke_interface(PROXY_REF_DISPATCHER, PROXY_REF_LOAD_OBJECT); } else { e.invoke_interface(DISPATCHER, LOAD_OBJECT); }
public void generate(ClassEmitter ce, final Context context) { for (Iterator it = context.getMethods(); it.hasNext();) { MethodInfo method = (MethodInfo)it.next(); if (TypeUtils.isProtected(method.getModifiers())) { // ignore protected methods } else { ...
exptId, trialId, false, GUIUtils.createSaveToDbConflictHandler(myCon));
exptId, trialId, GUIUtils.createSaveToDbConflictHandler(myCon));
private void populateCMT() throws SQLException, IOException { pdb = new PopulateDb("", CMT_TYPE, CMT_TYPE, "REGRESSION Experiment " + exptId, exptId, trialId, false, GUIUtils.createSaveToDbConflictHandler(myCon));// pdb.setDebug(true); for (int i = 0; i < nodeData....
log.info("setting useSharedEditingContext to "+ useSharedEditingContext);
log.debug("setting useSharedEditingContext to "+ useSharedEditingContext);
public boolean useSharedEditingContext() { if (useSharedEditingContext == null) { useSharedEditingContext = ERXProperties.booleanForKeyWithDefault("er.extensions.ERXEC.useSharedEditingContext", true) ? Boolean.TRUE : Boolean.FALSE; log.info("setting useSharedEditingContext to "+ useSharedEdi...
Map objectModel) throws ConfigurationException { String original; String attributeValue; try { original = super.getAttributeValues(name, modeConf, objectModel)[0] .toString(); attributeValue = this.getAttributeValues(name, modeConf, objectModel)[0].toString(); } catch (NullPointerException npe) { original = "(not defi...
Map objectModel) throws ConfigurationException { String original; String attributeValue;
public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException { String original; String attributeValue; try { original = super.getAttributeValues(name, modeConf, objectModel)[0] .toStri...
if (debugging()) { debug(" - Requested:" + name); debug(" - Unfiltered:" + original); debug(" - Given:" + attributeValue); }
try { original = super.getAttributeValues(name, modeConf, objectModel)[0] .toString(); attributeValue = this.getAttributeValues(name, modeConf, objectModel)[0].toString(); } catch (NullPointerException npe) { original = "(not defined in forrest.xconf)"; attributeValue = filteringProperties.getProperty(name); if (attrib...
public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException { String original; String attributeValue; try { original = super.getAttributeValues(name, modeConf, objectModel)[0] .toStri...
return attributeValue; }
if (debugging()) { debug(" - Requested:" + name); debug(" - Unfiltered:" + original); debug(" - Given:" + attributeValue); } return attributeValue; }
public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException { String original; String attributeValue; try { original = super.getAttributeValues(name, modeConf, objectModel)[0] .toStri...
String forrestPropertiesStringURI; try { forrestPropertiesStringURI = projectHome + SystemUtils.FILE_SEPARATOR + "forrest.properties.xml";
public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti...
filteringProperties = loadXMLPropertiesFromURI(filteringProperties, forrestPropertiesStringURI); } catch (FileNotFoundException e) { if (debugging()) debug("Unable to find forrest.properties.xml, ignoring."); }
String forrestPropertiesStringURI;
public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti...
try { forrestPropertiesStringURI = projectHome + SystemUtils.FILE_SEPARATOR + "forrest.properties.xml";
public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti...
try { forrestPropertiesStringURI = contextHome + SystemUtils.FILE_SEPARATOR + "default.forrest.properties.xml";
filteringProperties = loadXMLPropertiesFromURI(filteringProperties, forrestPropertiesStringURI); } catch (FileNotFoundException e) { if (debugging()) debug("Unable to find forrest.properties.xml, ignoring."); }
public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti...
filteringProperties = loadXMLPropertiesFromURI(filteringProperties, forrestPropertiesStringURI); } catch (FileNotFoundException e) { if (debugging()) debug("Unable to find default.forrest.properties.xml, ignoring."); } forrestPropertiesStringURI = projectHome + SystemUtils.FILE_SEPARATOR + "forrest.properties";
String strPluginList = filteringProperties .getProperty("project.required.plugins"); if (strPluginList != null) { StringTokenizer st = new StringTokenizer(strPluginList, ","); while (st.hasMoreTokens()) { forrestPropertiesStringURI = ForrestConfUtils.getPluginDir(st .nextToken().trim()); try { forrestPropertiesStringUR...
public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti...
filteringProperties = loadAntPropertiesFromURI(filteringProperties, forrestPropertiesStringURI);
try { forrestPropertiesStringURI = contextHome + SystemUtils.FILE_SEPARATOR + "default.forrest.properties.xml";
public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti...
String defaultForrestPropertiesStringURI = contextHome + SystemUtils.FILE_SEPARATOR + "default-forrest.properties";
filteringProperties = loadXMLPropertiesFromURI(filteringProperties, forrestPropertiesStringURI); } catch (FileNotFoundException e) { if (debugging()) debug("Unable to find default.forrest.properties.xml, ignoring."); }
public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti...
filteringProperties = loadAntPropertiesFromURI(filteringProperties, defaultForrestPropertiesStringURI);
forrestPropertiesStringURI = projectHome + SystemUtils.FILE_SEPARATOR + "forrest.properties";
public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti...
loadSystemProperties(filteringProperties); ForrestConfUtils.aliasSkinProperties(filteringProperties); if (debugging()) debug("Loaded project forrest.properties:" + filteringProperties); }
filteringProperties = loadAntPropertiesFromURI(filteringProperties, forrestPropertiesStringURI); String defaultForrestPropertiesStringURI = contextHome + SystemUtils.FILE_SEPARATOR + "default-forrest.properties"; filteringProperties = loadAntPropertiesFromURI(filteringProperties, defaultForrestPropertiesStringURI); ...
public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti...
Source source = null; InputStream in = null; try { if (debugging()) debug("Searching for forrest.properties.xml in" + source.getURI()); source = m_resolver.resolveURI(propertiesStringURI);
Source source = null; InputStream in = null; try { if (debugging()) debug("Searching for forrest.properties.xml in" + source.getURI());
private AntProperties loadXMLPropertiesFromURI( AntProperties precedingProperties, String propertiesStringURI) throws MalformedURLException, IOException, ParserConfigurationException, SAXException { Source source = null; InputStream in = null; try { ...
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(source.getURI()); NodeList nl = document.getElementsByTagName("property"); if(nl != null && nl.getLength() > 0) { for(int i = 0 ; i < nl.getLength();i++) { El...
source = m_resolver.resolveURI(propertiesStringURI);
private AntProperties loadXMLPropertiesFromURI( AntProperties precedingProperties, String propertiesStringURI) throws MalformedURLException, IOException, ParserConfigurationException, SAXException { Source source = null; InputStream in = null; try { ...
if (debugging()) debug("Loaded:" + propertiesStringURI + filteringProperties.toString()); } finally { if (source != null) { m_resolver.release(source); } if (in != null) { try { in.close(); } catch (IOException e) {} } } return filteringProperties; }
DocumentBuilderFactory factory = DocumentBuilderFactory .newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(source.getURI()); NodeList nl = document.getElementsByTagName("property"); if (nl != null && nl.getLength() > 0) { for (int i = 0; i < nl.getLength(); i++) {...
private AntProperties loadXMLPropertiesFromURI( AntProperties precedingProperties, String propertiesStringURI) throws MalformedURLException, IOException, ParserConfigurationException, SAXException { Source source = null; InputStream in = null; try { ...
log = CSMART.createLogger(this.getClass().getName());
public void setupSubscriptions() { log = CSMART.createLogger(this.getClass().getName()); // Is this necessary? // This asset, in this plugin, is only used to be the place // control tasks are allocated to Asset prototype = theLDMF.createPrototype(AbstractAsset.class, "Statistics"); dummyAsset = the...
* * DOMSource source = new DOMSource(node); StreamResult result = new * StreamResult(System.out); * contract.getContractTransformer().transform(source, result);
private void contractProcessingEnd() throws SAXException { try { contract.setContractResultData(); Document node = (Document) contract.getContractResultData() .getNode(); Document root = this.rootNode.getOwnerDocument(); /* * debug co...
String[] xpath = DOMUtil.buildPathArray(path); Node xpathNode = DOMUtil.getFirstNodeFromPath(rootNode, xpath, false);
Node xpathNode =DOMUtil.getSingleNode(rootNode,path,this.processor);
private void contractProcessingEnd() throws SAXException { try { contract.setContractResultData(); Document node = (Document) contract.getContractResultData() .getNode(); Document root = this.rootNode.getOwnerDocument(); /* * debug co...
if (node.hasChildNodes()) { Node toMove = root.importNode(contentChild, true); xpathNode.appendChild(toMove); }
appendChildToResultIterator(root, finalContent, xpathNode);
private void contractProcessingEnd() throws SAXException { try { contract.setContractResultData(); Document node = (Document) contract.getContractResultData() .getNode(); Document root = this.rootNode.getOwnerDocument(); /* * debug co...
if (!this.insideProperties & this.includeNodes)
if (!this.insideProperties & this.includeNodes&this.insideStructurer&this.allowMarkup) super.endElement(uri, name, raw); if (!this.insideProperties & this.includeNodes&!this.insideStructurer)
public void endElement(String uri, String name, String raw) throws SAXException { if (getLogger().isDebugEnabled()) { getLogger().debug("Ending element: " + raw); } // Are we inside of properties? If so we need to record the elements. if (this.insideProperties) { ...
path = raw;
path = name;
private void hookProcessingStart(String name, String raw, Attributes attr) throws DOMException, SAXException { /* create a DOM node from the current sax event */ Element currentElement = dispatcher.getDocument().createElement(name); dispatcherHelper.setAttributesDOM(attr, currentElem...
String tempPath = path + "/" + name;
private void hookProcessingStart(String name, String raw, Attributes attr) throws DOMException, SAXException { /* create a DOM node from the current sax event */ Element currentElement = dispatcher.getDocument().createElement(name); dispatcherHelper.setAttributesDOM(attr, currentElem...
String[] xpath = DOMUtil.buildPathArray(path); xpathNode = DOMUtil .getFirstNodeFromPath(rootNode, xpath, false);
xpathNode =DOMUtil.getSingleNode(rootNode,path,this.processor);
private void hookProcessingStart(String name, String raw, Attributes attr) throws DOMException, SAXException { /* create a DOM node from the current sax event */ Element currentElement = dispatcher.getDocument().createElement(name); dispatcherHelper.setAttributesDOM(attr, currentElem...
path = path + "/" + name;
path = tempPath;
private void hookProcessingStart(String name, String raw, Attributes attr) throws DOMException, SAXException { /* create a DOM node from the current sax event */ Element currentElement = dispatcher.getDocument().createElement(name); dispatcherHelper.setAttributesDOM(attr, currentElem...
this.hooksXSL=parameters.getParameter(HOOKS_TRANSFORMER_PARAMETER,null); if (this.hooksXSL.equals("")||this.hooksXSL==null){ String error = "dispatcherError:\n" + "You have to set the \"hooksTransformer\" parameter in the sitemap!"; getLogger().error(error); throw new ProcessingException(error); }
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { super.setup(resolver, objectModel, src, par); this.processor = null; this.dispatcherHelper = null; this.contract = null; ...
if (!this.insideProperties & this.includeNodes)
if (!this.insideProperties & this.includeNodes&this.insideStructurer&this.allowMarkup) super.startElement(uri, name, raw, attr); if (!this.insideProperties & this.includeNodes&!this.insideStructurer)
public void startElement(String uri, String name, String raw, Attributes attr) throws SAXException { // Process start element event // Are we inside of properties? If so we need to record the elements. if (this.insideProperties & this.includeNodes) { try { t...
XMLUtils.valueOf(new IncludeXMLConsumer(super.xmlConsumer), this.rootNode); this.recording = false; this.insideStructurer=false;
try { DOMSource stylesheet = new DOMSource(dispatcherHelper.getDocument(this.hooksXSL)); Transformer transformer = dispatcherHelper.createTransformer(stylesheet); DOMSource source = new DOMSource(this.rootNode.getFirstChild().getFirstChild()); DOMResult result = new DOMResult(); transformer.transform(source, result); X...
private void structurerProcessingEnd(String raw) throws SAXException { if (this.recording) { XMLUtils.valueOf(new IncludeXMLConsumer(super.xmlConsumer), this.rootNode); this.recording = false; this.insideStructurer=false; } if (getLogger().isD...
this.insideStructurer=true;
private void structurerProcessingStart(Attributes attr) throws SAXException { for (int i = 0; i < attr.getLength(); i++) { String localName = attr.getLocalName(i); String value = attr.getValue(i); if (localName.equals(STRUCTURER_FORMAT_ATTRIBUTE)) { currentForm...
log_.info("Port" +
log_.debug("Port" +
private SerialPort openSerialPort(String portName) throws PortInUseException, IOException { Enumeration portList = CommPortIdentifier.getPortIdentifiers(); // find the requested port while (portList.hasMoreElements()) { CommPortIdentifier portId = (CommPortIdentifie...
log_.info("<< " + row);
log_.debug("<< " + row);
private String readOneRowOfData(String find) throws IOException { StringBuffer buffer = new StringBuffer(256); int ch; while (true) { ch = serialIs_.read(); if ( ch == '\r' ) { continue; } ...
log_.info(">> " + row);
log_.debug(">> " + row);
public void send(String row) throws IOException { // TODO: Remove \r\n from log log_.info(">> " + row); serialOs_.write(row.getBytes()); if (echo_) { String echo = readOneRowOfData(null); } }
configuration.getAttribute("src"), super.m_manager);
src, super.m_manager);
public void build(Configuration configuration) throws ConfigurationException { super.build(configuration); // get the selector m_type = configuration.getAttribute("type",m_ln.getDefaultAction()); try { m_varResolver = VariableResolverFactory.getResol...
if (address == null) throw new IllegalArgumentException ("Address may not be null"); if (port < 1 || port > 65535) throw new IllegalArgumentException ("Port number is illegal"); SecurityManager s = System.getSecurityManager(); if (s != null) s.checkAccept(address.getHostName (), port); impl.connect (address, port); ...
public void connect(InetAddress address, int port) throws SocketException { //impl.connect(address, port); }
SecurityManager s = System.getSecurityManager(); if (s != null) s.checkAccept (p.getAddress().getHostName (), p.getPort ());
public synchronized void receive(DatagramPacket p) throws IOException { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkAccept (p.getAddress().getHostName (), p.getPort ()); if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); if (ch != ...
SecurityManager s = System.getSecurityManager(); if (s != null && isConnected ()) s.checkAccept (p.getAddress().getHostName (), p.getPort ());
public synchronized void receive(DatagramPacket p) throws IOException { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkAccept (p.getAddress().getHostName (), p.getPort ()); if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); if (ch != ...
if (s != null)
if (s != null && !isConnected ())
public void send(DatagramPacket p) throws IOException { // JDK1.2: Don't do security checks if socket is connected; see jdk1.2 api. SecurityManager s = System.getSecurityManager(); if (s != null) { InetAddress addr = p.getAddress(); if (addr.isMulticastAddress()) s.checkMulticast...
} if (isConnected ()) { if (p.getAddress () != null && (remoteAddress != p.getAddress () || remotePort != p.getPort ())) throw new IllegalArgumentException ( "DatagramPacket address does not match remote address" );
public void send(DatagramPacket p) throws IOException { // JDK1.2: Don't do security checks if socket is connected; see jdk1.2 api. SecurityManager s = System.getSecurityManager(); if (s != null) { InetAddress addr = p.getAddress(); if (addr.isMulticastAddress()) s.checkMulticast...
if (aContext != null && aContext.request() != null) { if (ERXApplication.requestHandlingLog.isInfoEnabled()) { ERXApplication.requestHandlingLog.info(aContext.request()); } }
public void appendToResponse(WOResponse aResponse, WOContext aContext) { messageEncoding().setEncodingToResponse(aResponse); super.appendToResponse(aResponse, aContext); }
log.info("will terminate, sessionId is "+sessionID());
public void terminate() { // WOFIX: 5.1.2 // work around a bug in WO 5.1.2 where the sessions EC will keep a lock on the SEC// defaultEditingContext().setSharedEditingContext(null);// if (_observer != null) // NSNotificationCenter.defaultCenter().removeObserver(_observer);// ...
File ivyTempFile = File.createTempFile("ivy", "xml");
ivyTempFile = File.createTempFile("ivy", "xml");
public ResolvedModuleRevision parse( ResolvedResource ivyRef, DependencyDescriptor dd, ResolveData data ) throws ParseException { ModuleRevisionId mrid = dd.getDependencyRevisionId(); ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance().getParser(ivyRef.get...
Message.debug("\t"+getName()+": downloading "+ivyRef.getResource());
Message.debug("\t"+getName()+": downloading "+ivyRef.getResource()+" to "+ivyTempFile);
public ResolvedModuleRevision parse( ResolvedResource ivyRef, DependencyDescriptor dd, ResolveData data ) throws ParseException { ModuleRevisionId mrid = dd.getDependencyRevisionId(); ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance().getParser(ivyRef.get...
Message.warn("problem while downloading ivy file: "+ivyRef.getResource()+": "+ex.getMessage());
Message.warn("problem while downloading ivy file: "+ivyRef.getResource()+" to "+ivyTempFile+": "+ex.getMessage());
public ResolvedModuleRevision parse( ResolvedResource ivyRef, DependencyDescriptor dd, ResolveData data ) throws ParseException { ModuleRevisionId mrid = dd.getDependencyRevisionId(); ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance().getParser(ivyRef.get...
EventListenerList listeners = getEventListenerList(); EventListener[] modListeners = listeners.getListeners(ModificationListener.class); for (int i = 0; i < modListeners.length; i++) if (modListeners[i].equals(l)) return;
public void addModificationListener(ModificationListener l) { getEventListenerList().add(ModificationListener.class, l); }
((SocietyBase)result).saveToDatabase();
public BaseComponent copy(BaseComponent result) { result = super.copy(result); // Try to get the PROP_SUPPLIES and PROP_INITIALIZER properties // reset to have the new society name in them if (result instanceof ABCSociety) ((ABCSociety)result).changeSociety(); ((SocietyBase)result).saveToDatabase(...
assert("Test isValueSet()", ccp.isValueSet());
assertTrue("Test isValueSet()", ccp.isValueSet());
public void testValueSet() { ccp.setValue(new Integer(34)); assert("Test isValueSet()", ccp.isValueSet()); } public static Test suite() { return new TestSuite(ConfigurableComponentPropertyTest.class); }
public static Test suite() { return new TestSuite(ConfigurableComponentPropertyTest.class); }
public void testValueSet() { ccp.setValue(new Integer(34)); assert("Test isValueSet()", ccp.isValueSet()); } public static Test suite() { return new TestSuite(ConfigurableComponentPropertyTest.class); }
System.out.println("setPersistenceManager:" + manager);
public void setPersistenceManager( Object manager){ persistenceManager = manager; }
String onChangeString = "childSwapped(window.document.forms[0]." + childSelectName + ".options[selectedIndex].value,"+selectedChildId+");";
String onChangeString = "childSwapped("+parentsChildrenId + "," +"window.document." + formName() + "." + childSelectName + ".options[selectedIndex].value," +parentSelectName+"," +selectedParentId+"," +selectedChildId+");";
public String childPopUpString() { String onChangeString = "childSwapped(window.document.forms[0]." + childSelectName + ".options[selectedIndex].value,"+selectedChildId+");"; StringBuffer returnString = selectHeader(childSelectName, onChangeString, selectedChild(), childPopUpStringForAll()); St...
returnString.append("<script>setSelectToArrayOfEntities(window.document.forms[0]." + childSelectName + ",allChildren(),childPopUpStringForAll)</script>\n");
String children = "allChildren("+parentsChildrenId+")"; if(selectedParent() != null) { children = "getParentEntityForId(" + selectedParent().hashCode() + ").children()"; } returnString.append("<script language=\"JavaScript\">\nsetSelectToArrayOfEntities(window.document." + formName() + "." + childSelectName + "," + chi...
public String hiddenFormElementStrings() { StringBuffer returnString; returnString = new StringBuffer(500); if (selectedParent() != null) { returnString.append("<input type=\"hidden\" name=\""+selectedParentId+"\" value=\"" + selectedParent().hashCode() + "\">\n"); } else { ...
String onChangeString = "parentSwapped(window.document.forms[0]." + parentSelectName + ".options[selectedIndex].value,window.document.forms[0]." + childSelectName +"," + selectedParentId + "," + selectedChildId +");";
String onChangeString = "parentSwapped("+parentsChildrenId+",window.document." + formName() + "." + parentSelectName + ".options[selectedIndex].value,window.document."+ formName() + "." + childSelectName +"," + selectedParentId + "," + selectedChildId +");";
public String parentPopUpString() { String onChangeString = "parentSwapped(window.document.forms[0]." + parentSelectName + ".options[selectedIndex].value,window.document.forms[0]." + childSelectName +"," + selectedParentId + "," + selectedChildId +");"; StringBuffer returnString = selectHeader(parentS...
returnString.append("var parentschildren = new Array(");
returnString.append("var "+parentsChildrenId+" = new Array(");
public String parentschildrenArrayCreationString() { // here's an example of the string this method should return: //var parentschildren = new Array(new Entity("dogs","1",new Array(new Entity("poodle","4",null,false),new Entity("puli","5",null,true),new Entity("greyhound","5",null,false)),false), new ...
returnString.append("new Entity(");
returnString.append("\n\tnew Entity(");
public String parentschildrenArrayCreationString() { // here's an example of the string this method should return: //var parentschildren = new Array(new Entity("dogs","1",new Array(new Entity("poodle","4",null,false),new Entity("puli","5",null,true),new Entity("greyhound","5",null,false)),false), new ...
returnString.append(" new Entity(");
returnString.append("\n\t\t new Entity(");
public String parentschildrenArrayCreationString() { // here's an example of the string this method should return: //var parentschildren = new Array(new Entity("dogs","1",new Array(new Entity("poodle","4",null,false),new Entity("puli","5",null,true),new Entity("greyhound","5",null,false)),false), new ...
parentsChildrenId = "parents_children_" + elementID;
protected void updateVarNames() { String elementID = context().elementID(); elementID = ERXStringUtilities.replaceStringByStringInString(".", "_", elementID); parentSelectName = "parent_" + elementID; childSelectName = "child_" + elementID; selectedParentId = "selected_parent_" + ...
}
public byte[] getEncoded() { return null; }
return null;
return "PKCS#8";
public String getFormat() { return null; }
return "GnuDSAPrivateKey: x=" + x.toString(16) + " p=" + p.toString(16) + " q=" + q.toString(16) + " g=" + g.toString(16);
return "GnuDSAPrivateKey: x=" + (x != null ? x.toString(16) : "null") + " p=" + (p != null ? p.toString(16) : "null") + " q=" + (q != null ? q.toString(16) : "null") + " g=" + (g != null ? g.toString(16) : "null");
public String toString() { return "GnuDSAPrivateKey: x=" + x.toString(16) + " p=" + p.toString(16) + " q=" + q.toString(16) + " g=" + g.toString(16); }
public void setErrorMessage(String message) { errorMessage = message; }
public void setErrorMessage(String message) { errorMessage = message == null ? "" : message; }
public void setErrorMessage(String message) { errorMessage = message; }
this.addr = addr; this.port = port; }
this.addr = addr; this.port = port; try { this.hostname = addr.getHostName (); } catch (UnknownHostException e) { this.hostname = ""; } }
public InetSocketAddress(InetAddress addr, int port) throws IllegalArgumentException { if (port < 0 || port > 65535) throw new IllegalArgumentException(); this.addr = addr; this.port = port; }
{ return addr.getHostName(); }
{ return hostname; }
public final String getHostName() { return addr.getHostName(); }
{ return "SA:"+addr+":"+port; }
{ return addr + ":" + port; }
public String toString() { return "SA:"+addr+":"+port; }
if ("artifact".equals(qName) && "art51B".equals(attributes.getValue("name"))) {
if ("revision".equals(qName) && "2.0".equals(attributes.getValue("name"))) {
public void startElement(String uri,String localName,String qName,org.xml.sax.Attributes attributes) throws SAXException { if ("artifact".equals(qName) && "art51B".equals(attributes.getValue("name"))) { found[0] = true; } }
assetData.setAssetClass("Org");
assetData.setAssetClass(propAssetClass.getValue().toString());
private ComponentData addAssetData(ComponentData data) { AgentAssetData assetData = new AgentAssetData((AgentComponentData)data); assetData.setType(AgentAssetData.ORG); assetData.setAssetClass("Org"); assetData.setUniqueID("UTC/RTOrg"); if(propRelations != null ) { for(int i=0; i < p...