code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30 values | license stringclasses 15 values | size int64 3 1.01M |
|---|---|---|---|---|---|
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title>105年第十四任總統副總統及第九屆立法委員選舉</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../css/style2.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/ftiens4.js"></script>
<script type="text/javascript" src="../js/ua.js"></script>
<script type="text/javascript" src="../js/func.js"></script>
<script type="text/javascript" src="../js/treeP1.js"></script>
<script type="text/javascript" src="../js/refresh.js"></script>
</head>
<body id="main-body">
<div id="main-header">
<div id="main-top">
<a class="main-top-logo" href="#">中央選舉委員會</a>
<ul class="main-top-list">
<li class="main-top-item"><a class="main-top-link main-top-link-home" href="../index.html">回首頁</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-cec" href="http://2016.cec.gov.tw">中選會網站</a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-english" href="../../en/index.html">English</a></li>
</ul>
</div>
</div>
<div id="main-wrap">
<div id="main-banner">
<div class="slideshow">
<img src="../img/main_bg_1.jpg" width="1024" height="300" alt="background" title="background">
</div>
<div class="main-deco"></div>
<div class="main-title"></div>
<a class="main-pvpe main-pvpe-current" href="../IDX/indexP1.html">總統副總統選舉</a>
<a class="main-le" href="../IDX/indexT.html">立法委員選舉</a>
</div>
<div id="main-container">
<div id="main-content">
<table width="1024" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<div id="divMenu">
<table border="0">
<tr>
<td><a style="text-decoration:none;color:silver" href="http://www.treemenu.net/" target=_blank></a></td>
</tr>
</table>
<span class="TreeviewSpanArea">
<script>initializeDocument()</script>
<noscript>請開啟Javascript功能</noscript>
</span>
</div>
</td>
<td width="796" valign="top">
<div id="divContent">
<!-- 修改區塊 -->
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td><img src="../images/search.png" alt="候選人得票數" title="候選人得票數"> <b>總統副總統選舉 候選人在 高雄市 內門區得票數 </b></td>
</tr>
<tr valign="bottom">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td class="fontNumber"> <img src="../images/nav.gif" alt="候選組數" title="候選組數"> <img src="../images/nav.gif" alt="候選組數" title="候選組數"> 候選組數:3 <img src="../images/nav.gif" alt="應選組數" title="應選組數"> <img src="../images/nav.gif" alt="應選組數" title="應選組數"> 應選組數:1</td>
<td align="right">
<select name="selector_order" class="selectC" tabindex="1" id="orderBy" onChange="changeOrder();">
<option value="n">依號次排序</option>
<option value="s">依得票排序</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tableT">
<tr class="trHeaderT">
<td>註記</td>
<td>號次</td>
<td><table><tr><td>總統</td><td rowspan=2> 候選人姓名</td></tr><td>副總統</td></table></td>
<td>性別</td>
<td>得票數</td>
<td>得票率%</td>
<td>登記方式</td>
</tr>
<tr class="trT">
<td> </td>
<td>1</td>
<td>朱立倫<br>王如玄</td>
<td>男<br>女</td>
<td class="tdAlignRight">2,162</td>
<td class="tdAlignRight">25.5707</td>
<td>中國國民黨 推薦</td>
</tr>
<tr class="trT">
<td> </td>
<td>2</td>
<td>蔡英文<br>陳建仁</td>
<td>女<br>男</td>
<td class="tdAlignRight">5,440</td>
<td class="tdAlignRight">64.3406</td>
<td>民主進步黨 推薦</td>
</tr>
<tr class="trT">
<td> </td>
<td>3</td>
<td>宋楚瑜<br>徐欣瑩</td>
<td>男<br>女</td>
<td class="tdAlignRight">853</td>
<td class="tdAlignRight">10.0887</td>
<td>親民黨 推薦</td>
</tr>
<tr class="trFooterT">
<td colspan="7" align="right">投開票所數 已送/應送: 18/18 </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td valign="top" class="fontNote">
<table>
<tr>
<td>註記說明:</td>
<td align="center">◎</td>
<td>自然當選</td>
</tr>
<tr>
<td></td>
<td align="center">?</td>
<td>同票待抽籤</td>
</tr>
</table>
</td>
<td valign="top" class="fontTimer"><img src="../images/clock2.png" alt="Sat, 16 Jan 2016 19:03:11 +0800" title="Sat, 16 Jan 2016 19:03:11 +0800"> 資料更新時間: 01/16 19:03:06 <br>(網頁每3分鐘自動更新一次)</td>
</tr>
<tr>
<td colspan="3" class="fontNote"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 修改區塊 -->
</div>
</td>
</tr>
</table>
</div>
<div class="main-footer"></div>
<div id="divFooter" align=center>[中央選舉委員會] </div>
<!--main-content-->
</div><!--main-container-->
</div><!--END main-wrap-->
<script>setOrder();</script>
<script>setMenuScrollPosY();</script>
</body>
</html>
| gugod/vote-watch-2016 | data/president/n600000600000000/20160116110532/page.html | HTML | cc0-1.0 | 6,575 |
jsonp({"cep":"24720450","logradouro":"Rua Gomes Teixeira","bairro":"Laranjal","cidade":"S\u00e3o Gon\u00e7alo","uf":"RJ","estado":"Rio de Janeiro"});
| lfreneda/cepdb | api/v1/24720450.jsonp.js | JavaScript | cc0-1.0 | 150 |
jsonp({"cep":"13210800","logradouro":"Avenida Doutor Adoniro Ladeira","bairro":"Vila Nova Jundiain\u00f3polis","cidade":"Jundia\u00ed","uf":"SP","estado":"S\u00e3o Paulo"});
| lfreneda/cepdb | api/v1/13210800.jsonp.js | JavaScript | cc0-1.0 | 174 |
jsonp({"cep":"31015230","logradouro":"Rua Monte Carmelo","bairro":"Floresta","cidade":"Belo Horizonte","uf":"MG","estado":"Minas Gerais"});
| lfreneda/cepdb | api/v1/31015230.jsonp.js | JavaScript | cc0-1.0 | 140 |
jsonp({"cep":"77006444","logradouro":"Quadra 404 Norte Alameda 20","bairro":"Plano Diretor Norte","cidade":"Palmas","uf":"TO","estado":"Tocantins"});
| lfreneda/cepdb | api/v1/77006444.jsonp.js | JavaScript | cc0-1.0 | 150 |
jsonp({"cep":"60734842","logradouro":"Rua Jos\u00e9 Paix\u00e3o de Lima","bairro":"Canindezinho","cidade":"Fortaleza","uf":"CE","estado":"Cear\u00e1"});
| lfreneda/cepdb | api/v1/60734842.jsonp.js | JavaScript | cc0-1.0 | 153 |
# Gavin Andresen: A Significant Fraction of Bitcoin Users on a Separate Chain Creates Massive Potential for Confusion and Hacks
> You are proposing a non-backwards-compatible change, which would mean a "hard" blockchain split. Everybody agrees that is a bad idea. The confusion and potential for hacks if a significant fraction of bitcoin users were on a separate chain is massive; you gloss over all of that in your proposal.
https://bitcointalk.org/index.php?topic=62181.msg725876#msg725876
| g4p/quotes | consensus/gavinandresen/contentious_hardforks_are_confusing_and_risky.md | Markdown | cc0-1.0 | 495 |
import React, {Component} from 'react';
import {render} from 'react-dom';
import {Router, Route} from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory'
import {App} from './App';
import NoMatch from './pages/NoMatch'
export default() => {
return (
<Router history={createBrowserHistory()}>
<Route name="home" path="/" component={App}>
</Route>
<Route path="*" component={NoMatch}/>
</Router>
)
}
| cannap/learning-react-client | src/router.js | JavaScript | cc0-1.0 | 491 |
/*
* File: maincode.c
* Author: klnla
*
* Created on June 10, 2021, 2:42 PM
*/
/* 1. condicion START
2. enviar direccion slave
3. esperar Ack
4. enviar dato
5. esperar Ack
6. condicion STOP*/
#include <xc.h>
#include "cabecera.h"
#define _XTAL_FREQ 48000000UL
unsigned char cuenta = 0;
void mssp_conf(void){
SSPCON1bits.SSPEN = 1; //habilitar el MSSP
SSPCON1bits.SSPM = 0b1000; //MSSP en modo i2c maestro
SSPADD = 119; //datarate 100k
}
void pcf8574_write(unsigned char direccion, unsigned char dato){
SSPCON2bits.SEN = 1;
while(SSPCON2bits.SEN == 1); //(1)cond.Start
SSPBUF = direccion; //(2)slaveaddr+Wr
while(SSPSTATbits.BF == 1);
while(SSPSTATbits.R_nW == 1); //(3)ACK
SSPBUF = dato; //(4)datasend
while(SSPSTATbits.BF == 1);
while(SSPSTATbits.R_nW == 1); //(5)ACK
SSPCON2bits.PEN = 1;
while(SSPCON2bits.PEN == 1); //(6)cond.Stop
}
void main(void) {
mssp_conf();
while(1){
pcf8574_write(0x40, cuenta);
cuenta++;
__delay_ms(100);
}
}
| tocache/picomones | UPC Microcontroladores 2021-1/Semana 12/20211_ls5a_pcf8574_x3.X/maincode.c | C | cc0-1.0 | 1,124 |
jsonp({"cep":"29196166","logradouro":"Rua Afonso L\u00facio Bobbio","bairro":"Jacupemba","cidade":"Aracruz","uf":"ES","estado":"Esp\u00edrito Santo"});
| lfreneda/cepdb | api/v1/29196166.jsonp.js | JavaScript | cc0-1.0 | 152 |
<!--
Automatically generated HTML file from DocOnce source
(https://github.com/hplgit/doconce/)
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Computational Physics Lectures: Statistical physics and the Ising Model">
<title>Computational Physics Lectures: Statistical physics and the Ising Model</title>
<!-- Bootstrap style: bootstrap -->
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<!-- not necessary
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
-->
<style type="text/css">
/* Add scrollbar to dropdown menus in bootstrap navigation bar */
.dropdown-menu {
height: auto;
max-height: 400px;
overflow-x: hidden;
}
/* Adds an invisible element before each target to offset for the navigation
bar */
.anchor::before {
content:"";
display:block;
height:50px; /* fixed header height for style bootstrap */
margin:-50px 0 0; /* negative fixed header height */
}
</style>
<script src="https://sagecell.sagemath.org/static/jquery.min.js"></script>
<script src="https://sagecell.sagemath.org/embedded_sagecell.js"></script>
<link rel="stylesheet" type="text/css" href="https://sagecell.sagemath.org/static/sagecell_embed.css">
<script>
$(function () {
// Make the div with id 'mycell' a Sage cell
sagecell.makeSagecell({inputLocation: '#mycell',
template: sagecell.templates.minimal,
evalButtonText: 'Activate'});
// Make *any* div with class 'compute' a Sage cell
sagecell.makeSagecell({inputLocation: 'div.compute',
evalButtonText: 'Evaluate'});
});
</script>
</head>
<!-- tocinfo
{'highest level': 2,
'sections': [('Ensembles', 2, None, '___sec0'),
('Famous Ensembles', 2, None, '___sec1'),
('Canonical Ensemble', 2, None, '___sec2'),
('The partition function is a normalization constant',
2,
None,
'___sec3'),
('Helmoltz free energy, what does it mean?', 2, None, '___sec4'),
('Thermodynamical quantities', 2, None, '___sec5'),
('Thermodynamical quantities, the energy in the canonical '
'ensemble',
2,
None,
'___sec6'),
('Energy and specific heat in the canonical ensemble',
2,
None,
'___sec7'),
('Magnetic moments and susceptibility in the canonical ensemble',
2,
None,
'___sec8'),
('Our model, the Ising model in one and two dimensions',
2,
None,
'___sec9'),
('Boltzmann distribution', 2, None, '___sec10'),
('Energy for a specific configuration', 2, None, '___sec11'),
('Configurations', 2, None, '___sec12'),
('Boundary conditions, free ends', 2, None, '___sec13'),
('Free ends and the energy', 2, None, '___sec14'),
('Free ends and energy', 2, None, '___sec15'),
('Periodic boundary conditions', 2, None, '___sec16'),
('Energy with PBC', 2, None, '___sec17'),
('Simple code for PBC', 2, None, '___sec18'),
('Summing up', 2, None, '___sec19'),
('Reorganizing', 2, None, '___sec20'),
('Our model, the Ising model in one and two dimensions',
2,
None,
'___sec21'),
('Ising model in one and two dimensions', 2, None, '___sec22'),
('List of configurations with energies and magnetic moment',
2,
None,
'___sec23'),
('Phase Transitions and Critical Phenomena', 2, None, '___sec24'),
('Phase Transitions and Critical Phenomena, correlation length',
2,
None,
'___sec25'),
('Classification of phase transitions', 2, None, '___sec26'),
('Second-order phase Transitions', 2, None, '___sec27'),
('Phase Transitions and Critical Phenomena', 2, None, '___sec28'),
('Eherenfest definition of phase Transitions',
2,
None,
'___sec29'),
('Phase Transitions and Critical Phenomena', 2, None, '___sec30'),
('The Ising Model and Phase Transitions', 2, None, '___sec31'),
('The Ising Model and Phase Transitions, mean magnetization',
2,
None,
'___sec32'),
('The Ising Model and Phase Transitions, correlation length',
2,
None,
'___sec33'),
('The Ising Model and Phase Transitions, critical behavior',
2,
None,
'___sec34'),
('The Ising Model and Phase Transitions, critical temperature',
2,
None,
'___sec35'),
('The Ising Model and Phase Transitions, correlation length',
2,
None,
'___sec36'),
('The Metropolis Algorithm and the Two-dimensional Ising Model',
2,
None,
'___sec37'),
('The Metropolis Algorithm and the Two-dimensional Ising Model',
2,
None,
'___sec38'),
('The Metropolis Algorithm and the Two-dimensional Ising Model, '
'practical issues',
2,
None,
'___sec39'),
('Five possible energy differences', 2, None, '___sec40'),
('"The Metropolis Algorithm and the Two-dimensional Ising Model, '
'elements of '
'program":"https://github.com/CompPhysics/ComputationalPhysics/blob/master/doc/Programs/ParallelizationMPI/MPIising.cpp"',
2,
None,
'___sec41'),
('Coding energy differences', 2, None, '___sec42'),
('Efficient expression for energy differences',
2,
None,
'___sec43'),
('Final energy difference', 2, None, '___sec44'),
('Change in magnetization', 2, None, '___sec45'),
('A small note', 2, None, '___sec46'),
('Initialization', 2, None, '___sec47'),
('"The Metropolis Algorithm and the Two-dimensional Ising Model, '
'elements of '
'program":"https://github.com/CompPhysics/ComputationalPhysics/blob/master/doc/Programs/ParallelizationMPI/IsingModel.cpp"',
2,
None,
'___sec48'),
('Two-dimensional Ising Model, energy per spin and specific heat',
2,
None,
'___sec49'),
('Two-dimensional Ising Model and analysis of spin values',
2,
None,
'___sec50')]}
end of tocinfo -->
<body>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
equationNumbers: { autoNumber: "none" },
extensions: ["AMSmath.js", "AMSsymbols.js", "autobold.js", "color.js"]
}
});
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<!-- Bootstrap navigation bar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="statphys-bs.html">Computational Physics Lectures: Statistical physics and the Ising Model</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Contents <b class="caret"></b></a>
<ul class="dropdown-menu">
<!-- navigation toc: --> <li><a href="._statphys-bs001.html#___sec0" style="font-size: 80%;">Ensembles</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs002.html#___sec1" style="font-size: 80%;">Famous Ensembles</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs003.html#___sec2" style="font-size: 80%;">Canonical Ensemble</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs004.html#___sec3" style="font-size: 80%;">The partition function is a normalization constant</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs005.html#___sec4" style="font-size: 80%;">Helmoltz free energy, what does it mean?</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs006.html#___sec5" style="font-size: 80%;">Thermodynamical quantities</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs007.html#___sec6" style="font-size: 80%;">Thermodynamical quantities, the energy in the canonical ensemble</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs008.html#___sec7" style="font-size: 80%;">Energy and specific heat in the canonical ensemble</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs009.html#___sec8" style="font-size: 80%;">Magnetic moments and susceptibility in the canonical ensemble</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs010.html#___sec9" style="font-size: 80%;">Our model, the Ising model in one and two dimensions</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs011.html#___sec10" style="font-size: 80%;">Boltzmann distribution</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs012.html#___sec11" style="font-size: 80%;">Energy for a specific configuration</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs013.html#___sec12" style="font-size: 80%;">Configurations</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs014.html#___sec13" style="font-size: 80%;">Boundary conditions, free ends</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs015.html#___sec14" style="font-size: 80%;">Free ends and the energy</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs016.html#___sec15" style="font-size: 80%;">Free ends and energy</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs017.html#___sec16" style="font-size: 80%;">Periodic boundary conditions</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs018.html#___sec17" style="font-size: 80%;">Energy with PBC</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs019.html#___sec18" style="font-size: 80%;">Simple code for PBC</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs020.html#___sec19" style="font-size: 80%;">Summing up</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs021.html#___sec20" style="font-size: 80%;">Reorganizing</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs022.html#___sec21" style="font-size: 80%;">Our model, the Ising model in one and two dimensions</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs023.html#___sec22" style="font-size: 80%;">Ising model in one and two dimensions</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs024.html#___sec23" style="font-size: 80%;">List of configurations with energies and magnetic moment</a></li>
<!-- navigation toc: --> <li><a href="#___sec24" style="font-size: 80%;">Phase Transitions and Critical Phenomena</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs026.html#___sec25" style="font-size: 80%;">Phase Transitions and Critical Phenomena, correlation length</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs027.html#___sec26" style="font-size: 80%;">Classification of phase transitions</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs028.html#___sec27" style="font-size: 80%;">Second-order phase Transitions</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs029.html#___sec28" style="font-size: 80%;">Phase Transitions and Critical Phenomena</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs030.html#___sec29" style="font-size: 80%;">Eherenfest definition of phase Transitions</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs031.html#___sec30" style="font-size: 80%;">Phase Transitions and Critical Phenomena</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs032.html#___sec31" style="font-size: 80%;">The Ising Model and Phase Transitions</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs033.html#___sec32" style="font-size: 80%;">The Ising Model and Phase Transitions, mean magnetization</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs034.html#___sec33" style="font-size: 80%;">The Ising Model and Phase Transitions, correlation length</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs035.html#___sec34" style="font-size: 80%;">The Ising Model and Phase Transitions, critical behavior</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs036.html#___sec35" style="font-size: 80%;">The Ising Model and Phase Transitions, critical temperature</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs037.html#___sec36" style="font-size: 80%;">The Ising Model and Phase Transitions, correlation length</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs038.html#___sec37" style="font-size: 80%;">The Metropolis Algorithm and the Two-dimensional Ising Model</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs039.html#___sec38" style="font-size: 80%;">The Metropolis Algorithm and the Two-dimensional Ising Model</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs040.html#___sec39" style="font-size: 80%;">The Metropolis Algorithm and the Two-dimensional Ising Model, practical issues</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs041.html#___sec40" style="font-size: 80%;">Five possible energy differences</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs042.html#___sec41" style="font-size: 80%;">"The Metropolis Algorithm and the Two-dimensional Ising Model, elements of program":"https://github.com/CompPhysics/ComputationalPhysics/blob/master/doc/Programs/ParallelizationMPI/MPIising.cpp"</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs043.html#___sec42" style="font-size: 80%;">Coding energy differences</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs044.html#___sec43" style="font-size: 80%;">Efficient expression for energy differences</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs045.html#___sec44" style="font-size: 80%;">Final energy difference</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs046.html#___sec45" style="font-size: 80%;">Change in magnetization</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs047.html#___sec46" style="font-size: 80%;">A small note</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs048.html#___sec47" style="font-size: 80%;">Initialization</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs049.html#___sec48" style="font-size: 80%;">"The Metropolis Algorithm and the Two-dimensional Ising Model, elements of program":"https://github.com/CompPhysics/ComputationalPhysics/blob/master/doc/Programs/ParallelizationMPI/IsingModel.cpp"</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs050.html#___sec49" style="font-size: 80%;">Two-dimensional Ising Model, energy per spin and specific heat</a></li>
<!-- navigation toc: --> <li><a href="._statphys-bs051.html#___sec50" style="font-size: 80%;">Two-dimensional Ising Model and analysis of spin values</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div> <!-- end of navigation bar -->
<div class="container">
<p> </p><p> </p><p> </p> <!-- add vertical space -->
<a name="part0025"></a>
<!-- !split -->
<h2 id="___sec24" class="anchor">Phase Transitions and Critical Phenomena </h2>
<p>
A phase transition is marked by abrupt macroscopic changes as external
parameters are changed, such as an increase of temperature. The point
where a phase transition takes place is called a critical point.
<p>
We distinguish normally between two types of phase transitions;
first-order transitions and second-order transitions. An important
quantity in studies of phase transitions is the so-called correlation
length \( \xi \) and various correlations functions like spin-spin
correlations. For the Ising model we shall show below that the
correlation length is related to the spin-correlation function, which
again defines the magnetic susceptibility. The spin-correlation
function is nothing but the covariance and expresses the degree of
correlation between spins.
<p>
<p>
<!-- navigation buttons at the bottom of the page -->
<ul class="pagination">
<li><a href="._statphys-bs024.html">«</a></li>
<li><a href="._statphys-bs000.html">1</a></li>
<li><a href="">...</a></li>
<li><a href="._statphys-bs017.html">18</a></li>
<li><a href="._statphys-bs018.html">19</a></li>
<li><a href="._statphys-bs019.html">20</a></li>
<li><a href="._statphys-bs020.html">21</a></li>
<li><a href="._statphys-bs021.html">22</a></li>
<li><a href="._statphys-bs022.html">23</a></li>
<li><a href="._statphys-bs023.html">24</a></li>
<li><a href="._statphys-bs024.html">25</a></li>
<li class="active"><a href="._statphys-bs025.html">26</a></li>
<li><a href="._statphys-bs026.html">27</a></li>
<li><a href="._statphys-bs027.html">28</a></li>
<li><a href="._statphys-bs028.html">29</a></li>
<li><a href="._statphys-bs029.html">30</a></li>
<li><a href="._statphys-bs030.html">31</a></li>
<li><a href="._statphys-bs031.html">32</a></li>
<li><a href="._statphys-bs032.html">33</a></li>
<li><a href="._statphys-bs033.html">34</a></li>
<li><a href="._statphys-bs034.html">35</a></li>
<li><a href="">...</a></li>
<li><a href="._statphys-bs051.html">52</a></li>
<li><a href="._statphys-bs026.html">»</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
</div> <!-- end container -->
<!-- include javascript, jQuery *first* -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<!-- Bootstrap footer
<footer>
<a href="http://..."><img width="250" align=right src="http://..."></a>
</footer>
-->
<center style="font-size:80%">
<!-- copyright only on the titlepage -->
</center>
</body>
</html>
| CompPhysics/ComputationalPhysics | doc/pub/statphys/html/._statphys-bs025.html | HTML | cc0-1.0 | 19,254 |
#!/usr/bin/env python
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
window = Gtk.Window()
window.set_default_size(200, 200)
window.connect("destroy", Gtk.main_quit)
overlay = Gtk.Overlay()
window.add(overlay)
textview = Gtk.TextView()
textview.set_wrap_mode(Gtk.WrapMode.WORD_CHAR)
textbuffer = textview.get_buffer()
textbuffer.set_text("Welcome to the PyGObject Tutorial\n\nThis guide aims to provide an introduction to using Python and GTK+.\n\nIt includes many sample code files and exercises for building your knowledge of the language.", -1)
overlay.add(textview)
button = Gtk.Button(label="Overlayed Button")
button.set_valign(Gtk.Align.CENTER)
button.set_halign(Gtk.Align.CENTER)
overlay.add_overlay(button)
overlay.show_all()
window.show_all()
Gtk.main()
| Programmica/python-gtk3-tutorial | _examples/overlay.py | Python | cc0-1.0 | 798 |
/*
* Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
* Copyright (C) 2006-2008, Shawn O. Pearce <spearce@spearce.org>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distribution License v1.0 which
* accompanies this distribution, is reproduced below, and is
* available at http://www.eclipse.org/org/documents/edl-v10.php
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* - Neither the name of the Eclipse Foundation, Inc. nor the
* names of its contributors may be used to endorse or promote
* products derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.jboss.forge.jgit.storage.file;
import java.io.IOException;
import java.security.MessageDigest;
import java.util.zip.DataFormatException;
import java.util.zip.Inflater;
import org.jboss.forge.jgit.storage.file.PackFile;
import org.jboss.forge.jgit.storage.pack.PackOutputStream;
/**
* A window of data currently stored within a cache.
* <p>
* All bytes in the window can be assumed to be "immediately available", that is
* they are very likely already in memory, unless the operating system's memory
* is very low and has paged part of this process out to disk. Therefore copying
* bytes from a window is very inexpensive.
* </p>
*/
abstract class ByteWindow {
protected final PackFile pack;
protected final long start;
protected final long end;
protected ByteWindow(final PackFile p, final long s, final int n) {
pack = p;
start = s;
end = start + n;
}
final int size() {
return (int) (end - start);
}
final boolean contains(final PackFile neededFile, final long neededPos) {
return pack == neededFile && start <= neededPos && neededPos < end;
}
/**
* Copy bytes from the window to a caller supplied buffer.
*
* @param pos
* offset within the file to start copying from.
* @param dstbuf
* destination buffer to copy into.
* @param dstoff
* offset within <code>dstbuf</code> to start copying into.
* @param cnt
* number of bytes to copy. This value may exceed the number of
* bytes remaining in the window starting at offset
* <code>pos</code>.
* @return number of bytes actually copied; this may be less than
* <code>cnt</code> if <code>cnt</code> exceeded the number of
* bytes available.
*/
final int copy(long pos, byte[] dstbuf, int dstoff, int cnt) {
return copy((int) (pos - start), dstbuf, dstoff, cnt);
}
/**
* Copy bytes from the window to a caller supplied buffer.
*
* @param pos
* offset within the window to start copying from.
* @param dstbuf
* destination buffer to copy into.
* @param dstoff
* offset within <code>dstbuf</code> to start copying into.
* @param cnt
* number of bytes to copy. This value may exceed the number of
* bytes remaining in the window starting at offset
* <code>pos</code>.
* @return number of bytes actually copied; this may be less than
* <code>cnt</code> if <code>cnt</code> exceeded the number of
* bytes available.
*/
protected abstract int copy(int pos, byte[] dstbuf, int dstoff, int cnt);
abstract void write(PackOutputStream out, long pos, int cnt,
MessageDigest md) throws IOException;
final int setInput(long pos, Inflater inf) throws DataFormatException {
return setInput((int) (pos - start), inf);
}
protected abstract int setInput(int pos, Inflater inf)
throws DataFormatException;
}
| forge/plugin-undo | src/main/jgit/org/jboss/forge/jgit/storage/file/ByteWindow.java | Java | epl-1.0 | 4,971 |
package org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.activity;
import fr.inria.diverse.melange.adapters.EObjectAdapter;
import java.util.Collection;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.FunctionScenarioMTAdaptersFactory;
import org.polarsys.capella.common.data.activity.ActivityExchange;
@SuppressWarnings("all")
public class ActivityExchangeAdapter extends EObjectAdapter<ActivityExchange> implements org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityExchange {
private FunctionScenarioMTAdaptersFactory adaptersFactory;
public ActivityExchangeAdapter() {
super(org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.FunctionScenarioMTAdaptersFactory.getInstance());
adaptersFactory = org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.FunctionScenarioMTAdaptersFactory.getInstance();
}
@Override
public String getId() {
return adaptee.getId();
}
@Override
public void setId(final String o) {
adaptee.setId(o);
}
@Override
public String getSid() {
return adaptee.getSid();
}
@Override
public void setSid(final String o) {
adaptee.setSid(o);
}
@Override
public String getName() {
return adaptee.getName();
}
@Override
public void setName(final String o) {
adaptee.setName(o);
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.emde.ElementExtension> */Object ownedExtensions_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.emde.ElementExtension> */Object getOwnedExtensions() {
if (ownedExtensions_ == null)
ownedExtensions_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getOwnedExtensions(), adaptersFactory, eResource);
return ownedExtensions_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractConstraint> */Object constraints_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractConstraint> */Object getConstraints() {
if (constraints_ == null)
constraints_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getConstraints(), adaptersFactory, eResource);
return constraints_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractConstraint> */Object ownedConstraints_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractConstraint> */Object getOwnedConstraints() {
if (ownedConstraints_ == null)
ownedConstraints_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getOwnedConstraints(), adaptersFactory, eResource);
return ownedConstraints_;
}
@Override
public org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractInformationFlow getRealizedFlow() {
return () adaptersFactory.createAdapter(adaptee.getRealizedFlow(), eResource);
}
@Override
public void setRealizedFlow(final org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractInformationFlow o) {
if (o != null)
adaptee.setRealizedFlow(((org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.modellingcore.AbstractInformationFlowAdapter) o).getAdaptee());
else adaptee.setRealizedFlow(null);
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractRelationship> */Object realizations_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractRelationship> */Object getRealizations() {
if (realizations_ == null)
realizations_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getRealizations(), adaptersFactory, eResource);
return realizations_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractExchangeItem> */Object convoyedInformations_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractExchangeItem> */Object getConvoyedInformations() {
if (convoyedInformations_ == null)
convoyedInformations_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getConvoyedInformations(), adaptersFactory, eResource);
return convoyedInformations_;
}
@Override
public org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.InformationsExchanger getSource() {
return () adaptersFactory.createAdapter(adaptee.getSource(), eResource);
}
@Override
public void setSource(final org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.InformationsExchanger o) {
if (o != null)
adaptee.setSource(((org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.modellingcore.InformationsExchangerAdapter) o).getAdaptee());
else adaptee.setSource(null);
}
@Override
public org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.InformationsExchanger getTarget() {
return () adaptersFactory.createAdapter(adaptee.getTarget(), eResource);
}
@Override
public void setTarget(final org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.InformationsExchanger o) {
if (o != null)
adaptee.setTarget(((org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.modellingcore.InformationsExchangerAdapter) o).getAdaptee());
else adaptee.setTarget(null);
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityEdge> */Object realizingActivityFlows_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityEdge> */Object getRealizingActivityFlows() {
if (realizingActivityFlows_ == null)
realizingActivityFlows_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getRealizingActivityFlows(), adaptersFactory, eResource);
return realizingActivityFlows_;
}
@Override
public void destroy() {
adaptee.destroy();
}
@Override
public String getFullLabel() {
return adaptee.getFullLabel();
}
@Override
public String getLabel() {
return adaptee.getLabel();
}
@Override
public boolean hasUnnamedLabel() {
return adaptee.hasUnnamedLabel();
}
protected final static String ID_EDEFAULT = null;
protected final static String SID_EDEFAULT = null;
protected final static String NAME_EDEFAULT = null;
@Override
public EClass eClass() {
return org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.eINSTANCE.getActivityExchange();
}
@Override
public Object eGet(final int featureID, final boolean resolve, final boolean coreType) {
switch (featureID) {
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__OWNED_EXTENSIONS:
return getOwnedExtensions();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__ID:
return getId();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__SID:
return getSid();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__CONSTRAINTS:
return getConstraints();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__OWNED_CONSTRAINTS:
return getOwnedConstraints();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__NAME:
return getName();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__REALIZED_FLOW:
return getRealizedFlow();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__REALIZATIONS:
return getRealizations();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__CONVOYED_INFORMATIONS:
return getConvoyedInformations();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__SOURCE:
return getSource();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__TARGET:
return getTarget();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__REALIZING_ACTIVITY_FLOWS:
return getRealizingActivityFlows();
}
return super.eGet(featureID, resolve, coreType);
}
@Override
public boolean eIsSet(final int featureID) {
switch (featureID) {
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__OWNED_EXTENSIONS:
return getOwnedExtensions() != null && !getOwnedExtensions().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__ID:
return getId() != ID_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__SID:
return getSid() != SID_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__CONSTRAINTS:
return getConstraints() != null && !getConstraints().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__OWNED_CONSTRAINTS:
return getOwnedConstraints() != null && !getOwnedConstraints().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__NAME:
return getName() != NAME_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__REALIZED_FLOW:
return getRealizedFlow() != null;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__REALIZATIONS:
return getRealizations() != null && !getRealizations().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__CONVOYED_INFORMATIONS:
return getConvoyedInformations() != null && !getConvoyedInformations().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__SOURCE:
return getSource() != null;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__TARGET:
return getTarget() != null;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__REALIZING_ACTIVITY_FLOWS:
return getRealizingActivityFlows() != null && !getRealizingActivityFlows().isEmpty();
}
return super.eIsSet(featureID);
}
@Override
public void eSet(final int featureID, final Object newValue) {
switch (featureID) {
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__OWNED_EXTENSIONS:
getOwnedExtensions().clear();
getOwnedExtensions().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__ID:
setId(
(java.lang.String)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__SID:
setSid(
(java.lang.String)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__OWNED_CONSTRAINTS:
getOwnedConstraints().clear();
getOwnedConstraints().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__NAME:
setName(
(java.lang.String)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__REALIZED_FLOW:
setRealizedFlow(
(org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractInformationFlow)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__REALIZATIONS:
getRealizations().clear();
getRealizations().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__CONVOYED_INFORMATIONS:
getConvoyedInformations().clear();
getConvoyedInformations().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__SOURCE:
setSource(
(org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.InformationsExchanger)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.activity.ActivityPackage.ACTIVITY_EXCHANGE__TARGET:
setTarget(
(org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.InformationsExchanger)
newValue);
return;
}
super.eSet(featureID, newValue);
}
}
| smadelenat/CapellaModeAutomata | Semantic/Scenario/org.gemoc.scenario.xdsml/src-gen/org/gemoc/scenario/xdsml/functionscenario/adapters/functionscenariomt/activity/ActivityExchangeAdapter.java | Java | epl-1.0 | 13,068 |
package ch.elexis.core.findings.fhir.model.service;
import java.util.Optional;
import javax.persistence.EntityManager;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.service.event.EventAdmin;
import org.slf4j.LoggerFactory;
import ch.elexis.core.common.ElexisEvent;
import ch.elexis.core.common.ElexisEventTopics;
import ch.elexis.core.constants.StringConstants;
import ch.elexis.core.jpa.entities.EntityWithId;
import ch.elexis.core.jpa.model.adapter.AbstractIdModelAdapter;
import ch.elexis.core.jpa.model.adapter.AbstractModelService;
import ch.elexis.core.model.Identifiable;
import ch.elexis.core.services.IElexisEntityManager;
import ch.elexis.core.services.IModelService;
import ch.elexis.core.services.IQuery;
import ch.elexis.core.services.IStoreToStringContribution;
@Component(property = IModelService.SERVICEMODELNAME + "=ch.elexis.core.findings.model")
public class FindingsModelService extends AbstractModelService
implements IModelService, IStoreToStringContribution {
@Reference(cardinality = ReferenceCardinality.MANDATORY, target = "(id=default)")
private IElexisEntityManager entityManager;
@Override
protected EntityManager getEntityManager(boolean managed){
return (EntityManager) entityManager.getEntityManager(managed);
}
@Override
protected void closeEntityManager(EntityManager entityManager){
this.entityManager.closeEntityManager(entityManager);
}
@Reference
private EventAdmin eventAdmin;
@Override
protected EventAdmin getEventAdmin(){
return eventAdmin;
}
@Activate
public void activate(){
adapterFactory = FindingsModelAdapterFactory.getInstance();
}
@Override
public Optional<String> storeToString(Identifiable identifiable){
String classKey = null;
Optional<EntityWithId> dbObject = getDbObject(identifiable);
if (dbObject.isPresent()) {
classKey = ElexisTypeMap.getKeyForObject(dbObject.get());
if (classKey != null) {
return Optional.of(classKey + StringConstants.DOUBLECOLON + identifiable.getId());
}
}
return Optional.empty();
}
@Override
public Optional<Identifiable> loadFromString(String storeToString){
if (storeToString == null) {
LoggerFactory.getLogger(getClass()).warn("StoreToString is null");
return Optional.empty();
}
if (storeToString.startsWith("ch.elexis.core.findings.fhir")) {
String[] split = splitIntoTypeAndId(storeToString);
// map string to classname
String className = split[0];
String id = split[1];
Class<? extends EntityWithId> clazz = ElexisTypeMap.get(className);
if (clazz != null) {
EntityManager em = (EntityManager) entityManager.getEntityManager();
EntityWithId dbObject = em.find(clazz, id);
return Optional
.ofNullable(adapterFactory.getModelAdapter(dbObject, null, false).orElse(null));
}
}
return Optional.empty();
}
@Override
protected ElexisEvent getCreateEvent(Identifiable identifiable){
ElexisEvent ee = new ElexisEvent();
ee.setTopic(ElexisEventTopics.PERSISTENCE_EVENT_CREATE);
if (identifiable instanceof AbstractIdModelAdapter<?>) {
EntityWithId dbObject = ((AbstractIdModelAdapter<?>) identifiable).getEntity();
ee.getProperties().put(ElexisEventTopics.PROPKEY_ID, dbObject.getId());
ee.getProperties().put(ElexisEventTopics.PROPKEY_CLASS,
ElexisTypeMap.getKeyForObject(dbObject));
}
return ee;
}
@Override
public <T> IQuery<T> getQuery(Class<T> clazz, boolean refreshCache, boolean includeDeleted){
return new FindingsQuery<>(clazz, refreshCache,
(EntityManager) entityManager.getEntityManager(), includeDeleted);
}
/**
* Wrap the entity in a new ModelAdapter matching the provided type clazz. If entity is null,
* null is returned.
*
* @param entity
* @param clazz
* @return
*/
@SuppressWarnings("unchecked")
public static <T> T getAdapter(EntityWithId entity, Class<T> clazz){
if (entity != null) {
Optional<Identifiable> adapter =
FindingsModelAdapterFactory.getInstance().getModelAdapter(entity, clazz, true);
return (T) adapter.orElse(null);
}
return null;
}
/**
* Get the entity Object from a ModelAdapter instance.
*
* @param adapter
* @param clazz
* @return
*/
@SuppressWarnings("unchecked")
public static <T extends EntityWithId> T getDBObject(Object adapter, Class<T> clazz){
return ((AbstractIdModelAdapter<T>) adapter).getEntity();
}
@Override
public void clearCache(){
entityManager.clearCache();
}
@Override
public Class<?> getEntityForType(String type){
return ElexisTypeMap.get(type);
}
@Override
public String getTypeForEntity(Object entityInstance){
return ElexisTypeMap.getKeyForObject((EntityWithId) entityInstance);
}
@Override
public String getTypeForModel(Class<?> interfaze){
Class<? extends EntityWithId> entityClass = adapterFactory.getEntityClass(interfaze);
if (entityClass != null) {
try {
return getTypeForEntity(entityClass.newInstance());
} catch (InstantiationException | IllegalAccessException e) {
LoggerFactory.getLogger(getClass())
.error("Error getting type for model [" + interfaze + "]", e);
}
}
return null;
}
}
| elexis/elexis-3-core | bundles/ch.elexis.core.findings.fhir.model/src/ch/elexis/core/findings/fhir/model/service/FindingsModelService.java | Java | epl-1.0 | 5,335 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: CRichTextEditorRTE Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<link type="text/css" rel="stylesheet" href="../css/common.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="../css/sdl.css" media="screen"/>
<!--[if IE]>
<link href="../css/iefix.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
</head>
<body class="kernelguide">
<?php include_once (CURRENT_SKIN_PATH.'/sdl_header.html'); ?>
<div id="sdl_container">
<div id="leftMenu">
<div id="expandcontractdiv">
<a id="collapseTree" href="javascript:tree.collapseAll()">
Collapse all
</a>
<a id="index" href="index.html">
Symbian^3 Product Developer Library
</a>
</div>
<iframe style="border:none" height="800" width="300" src="index-toc.html"></iframe>
<div id="treeDiv1">
 
</div>
<script type="text/javascript">
var currentIconMode = 0;
YAHOO.util.Event.onDOMReady(buildTree, this,true);
</script>
</div>
<div id="sdl_content">
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>CRichTextEditorRTE Class Reference</h1><!-- doxytag: class="CRichTextEditorRTE" -->
<p><a href="class_c_rich_text_editor_r_t_e-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb4d9474022c8185a47d4b48eeafa36d"></a><!-- doxytag: member="CRichTextEditorRTE::OfferKeyEventL" ref="abb4d9474022c8185a47d4b48eeafa36d" args="(const TKeyEvent &aKeyEvent, TEventCode aType)" -->
TKeyResponse </td><td class="memItemRight" valign="bottom"><b>OfferKeyEventL</b> (const TKeyEvent &aKeyEvent, TEventCode aType)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#a5a57f8dee12cf629be85b72d6c398608">AddCarriageReturnL</a> (TInt pos)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#a55419e53857c052199a26977966eca71">AddTextL</a> (const TDesC &aText)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#af51a90c13c4f3e57a4e18f54029e3410">SetTextUnderlineOn</a> (TBool aUnderlineOn)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#a70426200693750d151de3d131da11cdc">DrawTextWithoutCarriageL</a> (const TDesC &aText)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#a316eeab83bf529ab9fdeec9afa670952">DrawLineL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#acff56dfc81d8c60fc20dba36b4b153a5">ClearScreenL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb4d9474022c8185a47d4b48eeafa36d"></a><!-- doxytag: member="CRichTextEditorRTE::OfferKeyEventL" ref="abb4d9474022c8185a47d4b48eeafa36d" args="(const TKeyEvent &aKeyEvent, TEventCode aType)" -->
TKeyResponse </td><td class="memItemRight" valign="bottom"><b>OfferKeyEventL</b> (const TKeyEvent &aKeyEvent, TEventCode aType)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71a851743a10d738d25082895ae0458e"></a><!-- doxytag: member="CRichTextEditorRTE::AddCarriageReturnL" ref="a71a851743a10d738d25082895ae0458e" args="()" -->
void </td><td class="memItemRight" valign="bottom"><b>AddCarriageReturnL</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a55419e53857c052199a26977966eca71"></a><!-- doxytag: member="CRichTextEditorRTE::AddTextL" ref="a55419e53857c052199a26977966eca71" args="(const TDesC &aText)" -->
void </td><td class="memItemRight" valign="bottom"><b>AddTextL</b> (const TDesC &aText)</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#a8485f9c132993b4586536724a8ad1d99">NewL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#af6b32a535f84a829fd49160d70e91614">NewLC</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#aba44d99d192b4fdd2e9540bebee50b9e">NewL</a> (const CCoeControl &aView)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_rich_text_editor_r_t_e.html#ae6ee8012092e261bcf4c88e3d1b9c735">NewLC</a> (const CCoeControl &aView)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> Editor that prints text. </p>
<p>Definition at line <a class="el" href="_bluetooth_p_m_p_example_richtexteditorrte_8h_source.html#l00022">22</a> of file <a class="el" href="_bluetooth_p_m_p_example_richtexteditorrte_8h_source.html">BluetoothPMPExampleRichtexteditorrte.h</a>.</p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a8485f9c132993b4586536724a8ad1d99"></a><!-- doxytag: member="CRichTextEditorRTE::NewL" ref="a8485f9c132993b4586536724a8ad1d99" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> * CRichTextEditorRTE::NewL </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a <a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Instance of <a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a>. </dd></dl>
<p>Definition at line <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html#l00158">158</a> of file <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html">BluetoothPMPExampleRichTextEditorRTE.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="af6b32a535f84a829fd49160d70e91614"></a><!-- doxytag: member="CRichTextEditorRTE::NewLC" ref="af6b32a535f84a829fd49160d70e91614" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> * CRichTextEditorRTE::NewLC </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a <a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Instance of <a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a>. </dd></dl>
<p>Definition at line <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html#l00170">170</a> of file <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html">BluetoothPMPExampleRichTextEditorRTE.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a5a57f8dee12cf629be85b72d6c398608"></a><!-- doxytag: member="CRichTextEditorRTE::AddCarriageReturnL" ref="a5a57f8dee12cf629be85b72d6c398608" args="(TInt pos)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRichTextEditorRTE::AddCarriageReturnL </td>
<td>(</td>
<td class="paramtype">TInt </td>
<td class="paramname"> <em>pos</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add one carriage return to the spesified position. </p>
<p>Definition at line <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html#l00050">50</a> of file <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html">BluetoothPMPExampleRichTextEditorRTE.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a55419e53857c052199a26977966eca71"></a><!-- doxytag: member="CRichTextEditorRTE::AddTextL" ref="a55419e53857c052199a26977966eca71" args="(const TDesC &aText)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRichTextEditorRTE::AddTextL </td>
<td>(</td>
<td class="paramtype">const TDesC & </td>
<td class="paramname"> <em>aText</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Print text on the screen. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>aText</em> </td><td>text to be displayed </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html#l00068">68</a> of file <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html">BluetoothPMPExampleRichTextEditorRTE.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="af51a90c13c4f3e57a4e18f54029e3410"></a><!-- doxytag: member="CRichTextEditorRTE::SetTextUnderlineOn" ref="af51a90c13c4f3e57a4e18f54029e3410" args="(TBool aUnderlineOn)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRichTextEditorRTE::SetTextUnderlineOn </td>
<td>(</td>
<td class="paramtype">TBool </td>
<td class="paramname"> <em>aUnderlineOn</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set text undeline on. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>aUnderlineOn</em> </td><td>ETrue if underline is used, EFalse otherwise. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html#l00129">129</a> of file <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html">BluetoothPMPExampleRichTextEditorRTE.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a70426200693750d151de3d131da11cdc"></a><!-- doxytag: member="CRichTextEditorRTE::DrawTextWithoutCarriageL" ref="a70426200693750d151de3d131da11cdc" args="(const TDesC &aText)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRichTextEditorRTE::DrawTextWithoutCarriageL </td>
<td>(</td>
<td class="paramtype">const TDesC & </td>
<td class="paramname"> <em>aText</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Print text on the screen. No Carriage return at the end. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>aText</em> </td><td>text to be displayed </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html#l00107">107</a> of file <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html">BluetoothPMPExampleRichTextEditorRTE.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a316eeab83bf529ab9fdeec9afa670952"></a><!-- doxytag: member="CRichTextEditorRTE::DrawLineL" ref="a316eeab83bf529ab9fdeec9afa670952" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRichTextEditorRTE::DrawLineL </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draw a line that separates log events </p>
<p>Definition at line <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html#l00147">147</a> of file <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html">BluetoothPMPExampleRichTextEditorRTE.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="acff56dfc81d8c60fc20dba36b4b153a5"></a><!-- doxytag: member="CRichTextEditorRTE::ClearScreenL" ref="acff56dfc81d8c60fc20dba36b4b153a5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void CRichTextEditorRTE::ClearScreenL </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Clears the screen from log text </p>
<p>Definition at line <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html#l00212">212</a> of file <a class="el" href="_bluetooth_p_m_p_example_rich_text_editor_r_t_e_8cpp_source.html">BluetoothPMPExampleRichTextEditorRTE.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="aba44d99d192b4fdd2e9540bebee50b9e"></a><!-- doxytag: member="CRichTextEditorRTE::NewL" ref="aba44d99d192b4fdd2e9540bebee50b9e" args="(const CCoeControl &aView)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> * CRichTextEditorRTE::NewL </td>
<td>(</td>
<td class="paramtype">const CCoeControl & </td>
<td class="paramname"> <em>aView</em></td>
<td> ) </td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="class_c_rich_text_editor_r_t_e.html#a8485f9c132993b4586536724a8ad1d99">NewL()</a></p>
<p>discussion Create a <a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> object, which will draw itself to aRect </p>
<p>Definition at line <a class="el" href="richtexteditorrte_8cpp_source.html#l00075">75</a> of file <a class="el" href="richtexteditorrte_8cpp_source.html">richtexteditorrte.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="ae6ee8012092e261bcf4c88e3d1b9c735"></a><!-- doxytag: member="CRichTextEditorRTE::NewLC" ref="ae6ee8012092e261bcf4c88e3d1b9c735" args="(const CCoeControl &aView)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_c_rich_text_editor_r_t_e.html">CRichTextEditorRTE</a> * CRichTextEditorRTE::NewLC </td>
<td>(</td>
<td class="paramtype">const CCoeControl & </td>
<td class="paramname"> <em>aView</em></td>
<td> ) </td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p><a class="el" href="class_c_rich_text_editor_r_t_e.html#af6b32a535f84a829fd49160d70e91614">NewLC()</a> </p>
<p>Definition at line <a class="el" href="richtexteditorrte_8cpp_source.html#l00082">82</a> of file <a class="el" href="richtexteditorrte_8cpp_source.html">richtexteditorrte.cpp</a>.</p>
</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
<p class="copyright">Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).<br /> All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the <a href=" http://www.eclipse.org/legal/epl-v10.html"> Eclipse Public License
v1.0</a>.</p>
</div>
</div>
<?php include_once (CURRENT_SKIN_PATH.'/sdl_footer.html'); ?>
</body>
</html>
| warlordh/fork_Symbian | sdk/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_rich_text_editor_r_t_e.html | HTML | epl-1.0 | 17,657 |
/*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.protocol.bgp.parser.impl.message.update.extended.communities;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.protocol.bgp.parser.BGPDocumentedException;
import org.opendaylight.protocol.bgp.parser.BGPParsingException;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.extended.community.ExtendedCommunity;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.extended.community.extended.community.RouteOriginIpv4Case;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.extended.community.extended.community.RouteOriginIpv4CaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.extended.community.extended.community.route.origin.ipv4._case.RouteOriginIpv4Builder;
public class RouteOriginIpv4EcHandlerTest {
private static final byte[] INPUT = {
12, 51, 2, 5, 0x15, 0x2d
};
@Test
public void testHandler() throws BGPDocumentedException, BGPParsingException {
final RouteOriginIpv4EcHandler handler = new RouteOriginIpv4EcHandler();
final RouteOriginIpv4Case expected = new RouteOriginIpv4CaseBuilder().setRouteOriginIpv4(
new RouteOriginIpv4Builder()
.setGlobalAdministrator(new Ipv4Address("12.51.2.5"))
.setLocalAdministrator(5421)
.build()).build();
final ExtendedCommunity exComm = handler.parseExtendedCommunity(Unpooled.copiedBuffer(INPUT));
Assert.assertEquals(expected, exComm);
final ByteBuf output = Unpooled.buffer(INPUT.length);
handler.serializeExtendedCommunity(expected, output);
Assert.assertArrayEquals(INPUT, output.array());
}
}
| inocybe/odl-bgpcep | bgp/parser-impl/src/test/java/org/opendaylight/protocol/bgp/parser/impl/message/update/extended/communities/RouteOriginIpv4EcHandlerTest.java | Java | epl-1.0 | 2,313 |
/*******************************************************************************
* Copyright (c) 2008 itemis AG (http://www.itemis.eu) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.xtext.util;
import java.io.IOException;
import java.io.Writer;
/**
* Used to remove the timestamp from generated antlr parsers and lexers to
* prevent noise in cvs.
* @author Sebastian Zarnekow - Initial contribution and API
*/
public class TailWriter extends Writer {
private final Writer delegate;
private int suppressLineCount;
public TailWriter(Writer delegate, int suppressLineCount) {
this.delegate = delegate;
this.suppressLineCount = suppressLineCount;
}
@Override
public void close() throws IOException {
delegate.close();
}
@Override
public void flush() throws IOException {
delegate.flush();
}
/**
* Filter everything until we found the first NL character.
*/
@Override
public void write(final char[] cbuf, final int off, final int len) throws IOException {
int offset = off;
int length = len;
while (suppressLineCount > 0 && length > 0) {
length = -1;
for (int i = 0; i < len && suppressLineCount > 0; i++) {
if (cbuf[off + i] == '\n') {
offset = off + i + 1;
length = len - i - 1;
suppressLineCount--;
}
}
if (length <= 0)
return;
}
delegate.write(cbuf, offset, length);
}
}
| miklossy/xtext-core | org.eclipse.xtext.util/src/org/eclipse/xtext/util/TailWriter.java | Java | epl-1.0 | 1,674 |
/*
* Copyright (c) 2015-2018 Red Hat, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
*/
'use strict';
let ListStacks = function() {
this.listElement = $('.stacks-list-content');
// header buttons
this.addStackButtonElement = this.listElement.$('.che-list-add-button');
this.importButtonElement = this.listElement.$('.che-list-import-button');
// stacks list
this.listItemElements = this.listElement.$$('.che-list-item');
this.splitStackItemByCell = (elem) => {
return {
title: elem.$('.stack-item-name'),
description: elem.$('.stack-item-description'),
components: elem.$('.stack-item-description'),
actions: elem.$('.stack-item-actions')
};
};
this.getListItemElementByName = (name) => {
return this.listItemElements.filter((elem, index) => {
return elem.element(by.cssContainingText('.stack-item-name', name)).isPresent().then(isPresent => isPresent);
}).first();
};
};
module.exports = new ListStacks();
| sleshchenko/che | dashboard/e2e/stacks/list-stacks/list-stack.po.js | JavaScript | epl-1.0 | 1,256 |
/*
* Copyright (C) 2006, 2007 Dennis Hunziker, Ueli Kistler
* Copyright (C) 2007 Reto Schuettel, Robin Stocker
*
* IFS Institute for Software, HSR Rapperswil, Switzerland
*
*/
package org.python.pydev.refactoring.ast.visitors.context;
import org.python.pydev.editor.codecompletion.revisited.visitors.AbstractVisitor;
import org.python.pydev.parser.jython.SimpleNode;
import org.python.pydev.parser.jython.ast.Attribute;
import org.python.pydev.parser.jython.ast.ClassDef;
import org.python.pydev.parser.jython.ast.Import;
import org.python.pydev.parser.jython.ast.ImportFrom;
import org.python.pydev.parser.jython.ast.Module;
import org.python.pydev.parser.jython.ast.Name;
import org.python.pydev.parser.jython.ast.NameTok;
import org.python.pydev.parser.jython.ast.factory.NodeHelper;
import org.python.pydev.refactoring.ast.adapters.AbstractScopeNode;
import org.python.pydev.refactoring.ast.adapters.ModuleAdapter;
import org.python.pydev.refactoring.ast.adapters.SimpleAdapter;
/**
* Looks for all variables in a defined scope
*
*/
public class ScopeVariablesVisitor extends AbstractContextVisitor<SimpleAdapter> {
public ScopeVariablesVisitor(ModuleAdapter module, AbstractScopeNode<?> parent) {
super(module, parent);
}
@Override
public void visit(SimpleNode node) throws Exception {
if (nodeHelper.isClassDef(node)) {
return;
}
if (nodeHelper.isFunctionDef(node)) {
return;
}
super.visit(node);
}
@Override
public void traverse(SimpleNode node) throws Exception {
if (nodeHelper.isClassDef(node)) {
return;
}
if (nodeHelper.isFunctionDef(node)) {
return;
}
super.traverse(node);
}
@Override
public Object visitImport(Import node) throws Exception {
registerInContext(node);
return null;
}
@Override
public Object visitImportFrom(ImportFrom node) throws Exception {
if (AbstractVisitor.isWildImport(node)) {
throw new RuntimeException("Cannot handle wild imports.");
}
registerInContext(node);
return null;
}
@Override
protected SimpleAdapter createAdapter(AbstractScopeNode<?> parent, SimpleNode node) {
return new SimpleAdapter(this.moduleAdapter, parent, node, moduleAdapter.getAdapterPrefs());
}
@Override
public Object visitAttribute(Attribute node) throws Exception {
visit(node.value); // could be a local variable if not self
return null;
}
@Override
public Object visitClassDef(ClassDef node) throws Exception {
visit(node.body);
return null;
}
@Override
public Object visitModule(Module node) throws Exception {
visit(node.body);
return null;
}
@Override
public Object visitName(Name node) throws Exception {
if (node.id.compareTo(NodeHelper.KEYWORD_SELF) == 0) {
return null;
}
registerInContext(node);
return null;
}
@Override
public Object visitNameTok(NameTok node) throws Exception {
if (node.ctx != NameTok.FunctionName) {
registerInContext(node);
}
return null;
}
}
| smkr/pyclipse | plugins/org.python.pydev.refactoring/src/org/python/pydev/refactoring/ast/visitors/context/ScopeVariablesVisitor.java | Java | epl-1.0 | 3,281 |
<?php
namespace Topxia\Service\Product\Impl;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Topxia\Service\Common\BaseService;
use Topxia\Service\Product\MaterialService;
use Topxia\Common\ArrayToolkit;
class MaterialServiceImpl extends BaseService implements MaterialService
{
public function uploadMaterial($material)
{
if (!ArrayToolkit::requireds($material, array('productId', 'fileId'))) {
throw $this->createServiceException('参数缺失,上传失败!');
}
$product = $this->getProductService()->getProduct($material['productId']);
if (empty($product)) {
throw $this->createServiceException('产品不存在,上传资料失败!');
}
$fields = array(
'productId' => $material['productId'],
'lessonId' => empty($material['lessonId']) ? 0 : $material['lessonId'],
'description' => empty($material['description']) ? '' : $material['description'],
'userId' => $this->getCurrentUser()->id,
'createdTime' => time(),
);
if (empty($material['fileId'])) {
if (empty($material['link'])) {
throw $this->createServiceException('资料链接地址不能为空,添加资料失败!');
}
$fields['fileId'] = 0;
$fields['link'] = $material['link'];
$fields['title'] = empty($material['description']) ? $material['link'] : $material['description'];
} else {
$fields['fileId'] = (int) $material['fileId'];
$file = $this->getUploadFileService()->getFile($material['fileId']);
if (empty($file)) {
throw $this->createServiceException('文件不存在,上传资料失败!');
}
$fields['link'] = '';
$fields['title'] = $file['filename'];
$fields['fileSize'] = $file['size'];
}
$material = $this->getMaterialDao()->addMaterial($fields);
$this->getProductService()->increaseLessonMaterialCount($fields['lessonId']);
return $material;
}
public function deleteMaterial($productId, $materialId)
{
$material = $this->getMaterialDao()->getMaterial($materialId);
if (empty($material) or $material['productId'] != $productId) {
throw $this->createNotFoundException('产品资料不存在,删除失败。');
}
$this->getMaterialDao()->deleteMaterial($materialId);
if($material['lessonId']){
$count = $this->getMaterialDao()->getLessonMaterialCount($productId,$material['lessonId']);
$this->getProductService()->resetLessonMaterialCount($material['lessonId'], $count);
}
}
public function deleteMaterialsByLessonId($lessonId)
{
return $this->getMaterialDao()->deleteMaterialsByLessonId($lessonId);
}
public function deleteMaterialsByProductId($productId)
{
return $this->getMaterialDao()->deleteMaterialsByProductId($productId);
}
public function getMaterial($productId, $materialId)
{
$material = $this->getMaterialDao()->getMaterial($materialId);
if (empty($material) or $material['productId'] != $productId) {
return null;
}
return $material;
}
public function findProductMaterials($productId, $start, $limit)
{
return $this->getMaterialDao()->findMaterialsByProductId($productId, $start, $limit);
}
public function findLessonMaterials($lessonId, $start, $limit)
{
return $this->getMaterialDao()->findMaterialsByLessonId($lessonId, $start, $limit);
}
public function getMaterialCount($productId)
{
return $this->getMaterialDao()->getMaterialCountByProductId($productId);
}
private function getMaterialDao()
{
return $this->createDao('Product.ProductMaterialDao');
}
private function getProductService()
{
return $this->createService('Product.ProductService');
}
private function getFileService()
{
return $this->createService('Content.FileService');
}
private function getUploadFileService()
{
return $this->createService('File.UploadFileService');
}
} | Can2DO-fzgd/ishare | src/Topxia/Service/Product/Impl/MaterialServiceImpl.php | PHP | epl-1.0 | 4,007 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>CloudScale Environment</title>
</head>
<body>
<h1>CloudScale Environment</h1>
<h2>Table of Contents</h2>
Please enter your text here.
</body>
</html> | CloudScale-Project/Environment | plugins/eu.cloudscaleproject.env.help/html/index.html | HTML | epl-1.0 | 310 |
/*******************************************************************************
* Copyright (c) 2007-2008, G. Weirich and Elexis
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* G. Weirich - initial implementation
*
*******************************************************************************/
package ch.berchtold.emanuel.privatrechnung.data;
import java.io.File;
import java.io.FileReader;
import java.util.List;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.swt.widgets.Composite;
import au.com.bytecode.opencsv.CSVReader;
import ch.berchtold.emanuel.privatrechnung.model.IPrivatLeistung;
import ch.berchtold.emanuel.privatrechnung.model.PrivatModelServiceHolder;
import ch.elexis.core.data.util.ResultAdapter;
import ch.elexis.core.importer.div.importers.ExcelWrapper;
import ch.elexis.core.services.IQuery;
import ch.elexis.core.services.IQuery.COMPARATOR;
import ch.elexis.core.ui.util.ImporterPage;
import ch.elexis.core.ui.util.Log;
import ch.elexis.core.ui.util.SWTHelper;
import ch.rgw.tools.ExHandler;
import ch.rgw.tools.Result;
import ch.rgw.tools.TimeTool;
/**
* A class to import codes from an external source to this code system. the external source must be
* an CSV or Excel(tm) file with the fields:
* parentCode,codeID,codeName,cost,price,time,validFrom,validUntil,factor
* <ul>
* <li>parentCode: If this code system is organized as tree: codeID of the parent or 'NIL' if this
* is a top level code. If this code system is a flat list, parentCode is always 'NIL'</li>
* <li>codeID: The (within this code system unique) identification of the code. e.g. 10.00.01 for al
* Tarmed-style system</li>
* <li>codeName: the human understandable name of the code</li>
* <li>cost: the internal cost of this service (what do we have to pay for it), in cents/Rp</li>
* <li>price: the external cost of this service (what have cliebnts to pay us for it), in cents/Rp</li>
* <li>time: the average time needed (in minutes) for this service
* <li>validFrom: the date as YYYYMMDD when this code with this price starts being valid</li>
* <li>validUntil: the date as YYYYMMDD when the validity of this entry expires</li>
* <li>factor: a multiplicator to apply to the price before calculating the end-user-price.
* Sometimes referred to as "Taxpunktwert"</li>
* </ul>
*
* Please note: the codeID needs not to be a unique key. instead we might have several entries with
* the same codeID, but different validity-dates and prices/factors. At a given date however, only
* one ellement of each code should be valid.
*
*
* This Importer will be displayed, when the user selects "Import" from the Details-View of the
* codes of this plugin
*/
public class Importer extends ImporterPage {
/**
* Create the page that will let the user select a file to import. For simplicity, we use the
* default FileBasedImporter of our superclass.
*/
@Override
public Composite createPage(final Composite parent){
FileBasedImporter fbi = new FileBasedImporter(parent, this);
fbi.setFilter(new String[] {
"*.csv", "*.xls", "*"
}, new String[] {
"Character Separated Values", "Microsoft Excel 97", "All Files"
});
fbi.setLayoutData(SWTHelper.getFillGridData(1, true, 1, true));
return fbi;
}
/**
* The import process starts when the user has selected a file and clicked "OK". Warning: We can
* not read fields of the page created in createPage here! (The page is already disposed when
* doImport is called). If we have to transfer field values between createPage and doImport, we
* must override collect(). Our file based importer saves the user input in results[0]
*/
@Override
public IStatus doImport(final IProgressMonitor monitor) throws Exception{
// PersistentObject.getConnection().exec("DROP TABLE " + Leistung.TABLENAME + ";");
// Leistung.createTable();
File file = new File(results[0]);
if (!file.canRead()) {
log.log("Can't read " + results[0], Log.ERRORS);
return new Status(Status.ERROR, PreferenceConstants.PLUGIN_ID, "Can't read "
+ results[0]);
}
Result<String> res;
if (results[0].endsWith(".xls")) {
res = importExcel(file.getAbsolutePath(), monitor);
;
} else if (results[0].endsWith(".csv")) {
res = importCSV(file.getAbsolutePath(), monitor);
} else {
return new Status(Status.ERROR, PreferenceConstants.PLUGIN_ID,
"Unsupported file format");
}
if (res.isOK()) {
}
return ResultAdapter.getResultAsStatus(res);
}
/**
* return a description to display in the message area of the import dialog
*/
@Override
public String getDescription(){
return "Import aus CSV und Excel";
}
/**
* return a title to display in the title bar of the import dialog
*/
@Override
public String getTitle(){
return "Privatleistungen Berchtold";
}
private Result<String> importExcel(final String file, final IProgressMonitor mon){
ExcelWrapper xl = new ExcelWrapper();
if (!xl.load(file, 0)) {
return new Result<String>(Result.SEVERITY.ERROR, 1, "Bad file format", file, true);
}
xl.setFieldTypes(new Class[] {
String.class, String.class, String.class, Integer.class, Integer.class, Integer.class,
TimeTool.class, TimeTool.class, Double.class
});
for (int i = xl.getFirstRow(); i <= xl.getLastRow(); i++) {
List<String> row = xl.getRow(i);
importLine(row.toArray(new String[0]));
}
return new Result<String>("OK");
}
private Result<String> importCSV(final String file, final IProgressMonitor mon){
try {
CSVReader cr = new CSVReader(new FileReader(file));
String[] line;
while ((line = cr.readNext()) != null) {
importLine(line);
}
return new Result<String>("OK");
} catch (Exception ex) {
ExHandler.handle(ex);
return new Result<String>(Result.SEVERITY.ERROR, 1, "Could not read " + file,
ex.getMessage(), true);
}
}
// parentCode 0,codeID 1,codeName 2,cost 3,price 4 ,time 5, validFrom
// 6,validUntil 7,factor 8
private void importLine(final String[] line){
if (line.length == 8) {
if (line[6].equals("")) {
line[6] = TimeTool.BEGINNING_OF_UNIX_EPOCH;
}
if (line[7].equals("")) {
line[7] = TimeTool.END_OF_UNIX_EPOCH;
}
IQuery<IPrivatLeistung> query =
PrivatModelServiceHolder.get().getQuery(IPrivatLeistung.class);
query.and("shortname", COMPARATOR.EQUALS, line[1]);
List<IPrivatLeistung> res = query.execute();
IPrivatLeistung lst;
if (res.size() > 0) {
lst = res.get(0);
// lst.set(new String[] {
// "parent", "Name", "Kosten", "Preis", "Zeit", "DatumVon", "DatumBis"
// }, line[0], line[2], line[3], line[4], line[5], line[6], line[7]);
} else {
lst = PrivatModelServiceHolder.get().create(IPrivatLeistung.class);
// new Leistung(null, line[0], line[2], line[1], line[3], line[4], line[5], line[6],
// line[7]);
}
lst.setParent(line[0]);
lst.setCode(line[1]);
lst.setText(line[2]);
lst.setCost(line[3]);
lst.setPrice(line[4]);
lst.setTime(line[5]);
lst.setValidFrom(line[6]);
lst.setValidTo(line[7]);
PrivatModelServiceHolder.get().save(lst);
}
}
}
| DavidGutknecht/elexis-3-base | bundles/ch.berchtold.privatrechnung/src/ch/berchtold/emanuel/privatrechnung/data/Importer.java | Java | epl-1.0 | 7,426 |
/**
*/
package de.cooperateproject.eabridge.eaobjectmodel;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Method</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getReturnType <em>Return Type</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getParameters <em>Parameters</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#isAbstract <em>Abstract</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getBehaviour <em>Behaviour</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getCode <em>Code</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsConst <em>Is Const</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsLeaf <em>Is Leaf</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsPure <em>Is Pure</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsQuery <em>Is Query</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsRoot <em>Is Root</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsStatic <em>Is Static</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsSynchronized <em>Is Synchronized</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getMethodGUID <em>Method GUID</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getMethodID <em>Method ID</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getName <em>Name</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getNotes <em>Notes</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getParent <em>Parent</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getPosition <em>Position</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getReturnIsArray <em>Return Is Array</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getStateFlags <em>State Flags</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getStereotype <em>Stereotype</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getStyle <em>Style</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getStyleEx <em>Style Ex</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getThrows <em>Throws</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getVisibility <em>Visibility</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getConcurrency <em>Concurrency</em>}</li>
* <li>{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getGenOption <em>Gen Option</em>}</li>
* </ul>
*
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod()
* @model
* @generated
*/
public interface Method extends EObject {
/**
* Returns the value of the '<em><b>Return Type</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Return Type</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Return Type</em>' containment reference.
* @see #setReturnType(TypeReference)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_ReturnType()
* @model containment="true"
* @generated
*/
TypeReference getReturnType();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getReturnType <em>Return Type</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Return Type</em>' containment reference.
* @see #getReturnType()
* @generated
*/
void setReturnType(TypeReference value);
/**
* Returns the value of the '<em><b>Parameters</b></em>' containment reference list.
* The list contents are of type {@link de.cooperateproject.eabridge.eaobjectmodel.Methodparameter}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parameters</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parameters</em>' containment reference list.
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Parameters()
* @model containment="true"
* @generated
*/
EList<Methodparameter> getParameters();
/**
* Returns the value of the '<em><b>Abstract</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Abstract</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Abstract</em>' attribute.
* @see #setAbstract(boolean)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Abstract()
* @model unique="false"
* @generated
*/
boolean isAbstract();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#isAbstract <em>Abstract</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Abstract</em>' attribute.
* @see #isAbstract()
* @generated
*/
void setAbstract(boolean value);
/**
* Returns the value of the '<em><b>Behaviour</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Behaviour</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Behaviour</em>' attribute.
* @see #setBehaviour(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Behaviour()
* @model unique="false"
* @generated
*/
String getBehaviour();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getBehaviour <em>Behaviour</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Behaviour</em>' attribute.
* @see #getBehaviour()
* @generated
*/
void setBehaviour(String value);
/**
* Returns the value of the '<em><b>Code</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Code</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Code</em>' attribute.
* @see #setCode(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Code()
* @model unique="false"
* @generated
*/
String getCode();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getCode <em>Code</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Code</em>' attribute.
* @see #getCode()
* @generated
*/
void setCode(String value);
/**
* Returns the value of the '<em><b>Is Const</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Is Const</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Is Const</em>' attribute.
* @see #setIsConst(Boolean)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_IsConst()
* @model unique="false"
* @generated
*/
Boolean getIsConst();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsConst <em>Is Const</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Const</em>' attribute.
* @see #getIsConst()
* @generated
*/
void setIsConst(Boolean value);
/**
* Returns the value of the '<em><b>Is Leaf</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Is Leaf</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Is Leaf</em>' attribute.
* @see #setIsLeaf(Boolean)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_IsLeaf()
* @model unique="false"
* @generated
*/
Boolean getIsLeaf();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsLeaf <em>Is Leaf</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Leaf</em>' attribute.
* @see #getIsLeaf()
* @generated
*/
void setIsLeaf(Boolean value);
/**
* Returns the value of the '<em><b>Is Pure</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Is Pure</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Is Pure</em>' attribute.
* @see #setIsPure(Boolean)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_IsPure()
* @model unique="false"
* @generated
*/
Boolean getIsPure();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsPure <em>Is Pure</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Pure</em>' attribute.
* @see #getIsPure()
* @generated
*/
void setIsPure(Boolean value);
/**
* Returns the value of the '<em><b>Is Query</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Is Query</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Is Query</em>' attribute.
* @see #setIsQuery(Boolean)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_IsQuery()
* @model unique="false"
* @generated
*/
Boolean getIsQuery();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsQuery <em>Is Query</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Query</em>' attribute.
* @see #getIsQuery()
* @generated
*/
void setIsQuery(Boolean value);
/**
* Returns the value of the '<em><b>Is Root</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Is Root</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Is Root</em>' attribute.
* @see #setIsRoot(Boolean)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_IsRoot()
* @model unique="false"
* @generated
*/
Boolean getIsRoot();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsRoot <em>Is Root</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Root</em>' attribute.
* @see #getIsRoot()
* @generated
*/
void setIsRoot(Boolean value);
/**
* Returns the value of the '<em><b>Is Static</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Is Static</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Is Static</em>' attribute.
* @see #setIsStatic(Boolean)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_IsStatic()
* @model unique="false"
* @generated
*/
Boolean getIsStatic();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsStatic <em>Is Static</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Static</em>' attribute.
* @see #getIsStatic()
* @generated
*/
void setIsStatic(Boolean value);
/**
* Returns the value of the '<em><b>Is Synchronized</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Is Synchronized</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Is Synchronized</em>' attribute.
* @see #setIsSynchronized(Boolean)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_IsSynchronized()
* @model unique="false"
* @generated
*/
Boolean getIsSynchronized();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getIsSynchronized <em>Is Synchronized</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Synchronized</em>' attribute.
* @see #getIsSynchronized()
* @generated
*/
void setIsSynchronized(Boolean value);
/**
* Returns the value of the '<em><b>Method GUID</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Method GUID</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Method GUID</em>' attribute.
* @see #setMethodGUID(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_MethodGUID()
* @model unique="false"
* @generated
*/
String getMethodGUID();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getMethodGUID <em>Method GUID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Method GUID</em>' attribute.
* @see #getMethodGUID()
* @generated
*/
void setMethodGUID(String value);
/**
* Returns the value of the '<em><b>Method ID</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Method ID</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Method ID</em>' attribute.
* @see #setMethodID(Long)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_MethodID()
* @model unique="false"
* @generated
*/
Long getMethodID();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getMethodID <em>Method ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Method ID</em>' attribute.
* @see #getMethodID()
* @generated
*/
void setMethodID(Long value);
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Name()
* @model unique="false"
* @generated
*/
String getName();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
/**
* Returns the value of the '<em><b>Notes</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Notes</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Notes</em>' attribute.
* @see #setNotes(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Notes()
* @model unique="false"
* @generated
*/
String getNotes();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getNotes <em>Notes</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Notes</em>' attribute.
* @see #getNotes()
* @generated
*/
void setNotes(String value);
/**
* Returns the value of the '<em><b>Parent</b></em>' container reference.
* It is bidirectional and its opposite is '{@link de.cooperateproject.eabridge.eaobjectmodel.Element#getMethods <em>Methods</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Parent</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Parent</em>' container reference.
* @see #setParent(Element)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Parent()
* @see de.cooperateproject.eabridge.eaobjectmodel.Element#getMethods
* @model opposite="Methods" transient="false"
* @generated
*/
Element getParent();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getParent <em>Parent</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parent</em>' container reference.
* @see #getParent()
* @generated
*/
void setParent(Element value);
/**
* Returns the value of the '<em><b>Return Is Array</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Return Is Array</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Return Is Array</em>' attribute.
* @see #setReturnIsArray(Boolean)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_ReturnIsArray()
* @model unique="false"
* @generated
*/
Boolean getReturnIsArray();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getReturnIsArray <em>Return Is Array</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Return Is Array</em>' attribute.
* @see #getReturnIsArray()
* @generated
*/
void setReturnIsArray(Boolean value);
/**
* Returns the value of the '<em><b>State Flags</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>State Flags</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>State Flags</em>' attribute.
* @see #setStateFlags(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_StateFlags()
* @model unique="false"
* @generated
*/
String getStateFlags();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getStateFlags <em>State Flags</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>State Flags</em>' attribute.
* @see #getStateFlags()
* @generated
*/
void setStateFlags(String value);
/**
* Returns the value of the '<em><b>Stereotype</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Stereotype</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Stereotype</em>' attribute.
* @see #setStereotype(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Stereotype()
* @model unique="false"
* @generated
*/
String getStereotype();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getStereotype <em>Stereotype</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Stereotype</em>' attribute.
* @see #getStereotype()
* @generated
*/
void setStereotype(String value);
/**
* Returns the value of the '<em><b>Style</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Style</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Style</em>' attribute.
* @see #setStyle(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Style()
* @model unique="false"
* @generated
*/
String getStyle();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getStyle <em>Style</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Style</em>' attribute.
* @see #getStyle()
* @generated
*/
void setStyle(String value);
/**
* Returns the value of the '<em><b>Style Ex</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Style Ex</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Style Ex</em>' attribute.
* @see #setStyleEx(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_StyleEx()
* @model unique="false"
* @generated
*/
String getStyleEx();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getStyleEx <em>Style Ex</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Style Ex</em>' attribute.
* @see #getStyleEx()
* @generated
*/
void setStyleEx(String value);
/**
* Returns the value of the '<em><b>Throws</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Throws</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Throws</em>' attribute.
* @see #setThrows(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Throws()
* @model unique="false"
* @generated
*/
String getThrows();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getThrows <em>Throws</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Throws</em>' attribute.
* @see #getThrows()
* @generated
*/
void setThrows(String value);
/**
* Returns the value of the '<em><b>Visibility</b></em>' attribute.
* The literals are from the enumeration {@link de.cooperateproject.eabridge.eaobjectmodel.Scope}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Visibility</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Visibility</em>' attribute.
* @see de.cooperateproject.eabridge.eaobjectmodel.Scope
* @see #setVisibility(Scope)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Visibility()
* @model unique="false"
* @generated
*/
Scope getVisibility();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getVisibility <em>Visibility</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Visibility</em>' attribute.
* @see de.cooperateproject.eabridge.eaobjectmodel.Scope
* @see #getVisibility()
* @generated
*/
void setVisibility(Scope value);
/**
* Returns the value of the '<em><b>Concurrency</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Concurrency</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Concurrency</em>' attribute.
* @see #setConcurrency(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Concurrency()
* @model unique="false"
* @generated
*/
String getConcurrency();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getConcurrency <em>Concurrency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Concurrency</em>' attribute.
* @see #getConcurrency()
* @generated
*/
void setConcurrency(String value);
/**
* Returns the value of the '<em><b>Gen Option</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Gen Option</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Gen Option</em>' attribute.
* @see #setGenOption(String)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_GenOption()
* @model unique="false"
* @generated
*/
String getGenOption();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getGenOption <em>Gen Option</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Gen Option</em>' attribute.
* @see #getGenOption()
* @generated
*/
void setGenOption(String value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model kind="operation"
* annotation="http://www.eclipse.org/emf/2002/GenModel body='<%java.util.List%><Methodparameter> orderedParameters = new <%java.util.ArrayList%><>(getParameters());\r\norderedParameters.sort((p1, p2) -> (int) (p1.getPosition() - p2.getPosition()));\r\nreturn <%org.eclipse.emf.common.util.ECollections%>.unmodifiableEList(orderedParameters);'"
* @generated
*/
EList<Methodparameter> getParametersOrdered();
/**
* Returns the value of the '<em><b>Position</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Position</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Position</em>' attribute.
* @see #setPosition(long)
* @see de.cooperateproject.eabridge.eaobjectmodel.EaobjectmodelPackage#getMethod_Position()
* @model
* @generated
*/
long getPosition();
/**
* Sets the value of the '{@link de.cooperateproject.eabridge.eaobjectmodel.Method#getPosition <em>Position</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Position</em>' attribute.
* @see #getPosition()
* @generated
*/
void setPosition(long value);
} // Method
| Cooperate-Project/EnterpriseArchitectBridge | bundles/de.cooperateproject.eabridge.eaobjectmodel/src-gen/de/cooperateproject/eabridge/eaobjectmodel/Method.java | Java | epl-1.0 | 29,297 |
/*******************************************************************************
* Portions created by Sebastian Thomschke are copyright (c) 2005-2011 Sebastian
* Thomschke.
*
* All Rights Reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Sebastian Thomschke - initial implementation.
*******************************************************************************/
package net.sf.oval.constraint;
import net.sf.oval.Validator;
import net.sf.oval.configuration.annotation.AbstractAnnotationCheck;
import net.sf.oval.configuration.annotation.ConstraintAnnotationSettings;
import net.sf.oval.context.OValContext;
import net.sf.oval.exception.FieldNotFoundException;
import net.sf.oval.exception.InvokingMethodFailedException;
import net.sf.oval.exception.MethodNotFoundException;
import net.sf.oval.internal.ContextCache;
import net.sf.oval.internal.util.ReflectionUtils;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @author Sebastian Thomschke
*/
public final class EqualToFieldCheck extends AbstractAnnotationCheck<EqualToField>
{
private static final long serialVersionUID = 1L;
private boolean useGetter;
private String fieldName;
private Class< ? > declaringClass;
/**
* {@inheritDoc}
*/
@Override
public void configure(final EqualToField constraintAnnotation)
{
super.configure(constraintAnnotation);
setFieldName(constraintAnnotation.value());
setDeclaringClass(constraintAnnotation.declaringClass());
setUseGetter(constraintAnnotation.useGetter());
}
/**
* Returns value object {@code ConstraintAnnotationSettings} containing the basic settings of the constraint annotations
*
* @param constraintAnnotation Annotation from which the settings will be extracted
*
* @return Value object {@code ConstraintAnnotationSettings}.
*/
protected ConstraintAnnotationSettings getSettings(final EqualToField constraintAnnotation) {
ConstraintAnnotationSettings settings = new ConstraintAnnotationSettings.Builder()
.message(constraintAnnotation.message())
.appliesTo(constraintAnnotation.appliesTo())
.errorCode(constraintAnnotation.errorCode())
.severity(constraintAnnotation.severity())
.profiles(constraintAnnotation.profiles())
.target(constraintAnnotation.target())
.when(constraintAnnotation.when())
.build();
return settings;
}
/**
* {@inheritDoc}
*/
@Override
protected Map<String, String> createMessageVariables()
{
final Map<String, String> messageVariables = new LinkedHashMap<>(2);
messageVariables.put("fieldName", fieldName);
messageVariables.put("declaringClass", declaringClass == null || declaringClass == Void.class ? null
: declaringClass.getName());
messageVariables.put("useGetter", Boolean.toString(useGetter));
return messageVariables;
}
/**
* @return the declaringClass
*/
public Class< ? > getDeclaringClass()
{
return declaringClass;
}
/**
* @return the fieldName
*/
public String getFieldName()
{
return fieldName;
}
/**
* {@inheritDoc}
*/
public boolean isSatisfied(final Object validatedObject, final Object valueToValidate, final OValContext context,
final Validator validator)
{
if (valueToValidate == null) return true;
final Class< ? > clazz = validatedObject.getClass();
final Object valueToCompare;
if (useGetter)
{
final Method getter = ReflectionUtils.getGetterRecursive(clazz, fieldName);
if (getter == null)
throw new MethodNotFoundException("Getter for field <" + fieldName + "> not found in class <" + clazz
+ "> or it's super classes.");
try
{
valueToCompare = getter.invoke(validatedObject);
}
catch (final Exception ex)
{
throw new InvokingMethodFailedException(getter.getName(), validatedObject,
ContextCache.getMethodReturnValueContext(getter), ex);
}
}
else
{
final Field field = ReflectionUtils.getFieldRecursive(clazz, fieldName);
if (field == null)
throw new FieldNotFoundException("Field <" + fieldName + "> not found in class <" + clazz
+ "> or it's super classes.");
valueToCompare = ReflectionUtils.getFieldValue(field, validatedObject);
}
if (valueToCompare == null) return false;
return valueToValidate.equals(valueToCompare);
}
/**
* @return the useGetter
*/
public boolean isUseGetter()
{
return useGetter;
}
/**
* @param declaringClass the declaringClass to set
*/
public void setDeclaringClass(final Class< ? > declaringClass)
{
this.declaringClass = declaringClass == Void.class ? null : declaringClass;
requireMessageVariablesRecreation();
}
/**
* @param fieldName the fieldName to set
*/
public void setFieldName(final String fieldName)
{
this.fieldName = fieldName;
requireMessageVariablesRecreation();
}
/**
* @param useGetter the useGetter to set
*/
public void setUseGetter(final boolean useGetter)
{
this.useGetter = useGetter;
requireMessageVariablesRecreation();
}
}
| msche/oval | src/main/java/net/sf/oval/constraint/EqualToFieldCheck.java | Java | epl-1.0 | 5,349 |
# LC27-Slow-R
Linear Combination Scoring (Lift: 2, Drag: 7). Slow Velocity, Run2: 3,000,000 generations.
### Run Constants
| V-Infinity (V∞) | Density (ρ) | angle-of-attack (AOT) |
|-----------------|-------------|----------------------|
|30 m/s | 0.7708kg/m^3| 2.1 degrees |
### Wing Characteristics
| Span | Root-Chord | Min-Lift |
|--------|------------|----------|
| 11.24m | 2.67 | 27585N |
### Highest Scoring Individual
**Standard NACA:** (NACA: 3.18, 6.529754831)
**Generation:** 346790
| Lift | Drag | Cl-2D |CL-3D |CD-Induced |Score|
|--------------|------------ |---------------|------------|--------------|-----|
| 19667.06498N | 2809.586391N| 0.7193545374 |2.405569335 |0.3436534569 |19667.02523|

## Progress Over Time




**Number of Successful Generations:** 14

### Raw Data
```SQL
Run 2: Slow Speed | V-infity: 30 m/s | p = 0.7708kg/m^3 | a = 2.1
:thickness , 19.46 , :generation , 346790 , :positon-camber , 6.529754830954737 , :CD-Induced , 0.3436534568603507 , :Lift , 19667.06498339088 , :corrected-thickness , 0.1946 , :score , 19667.025229136365 , :cl-2D , 0.71935453738453 , :Drag , 2809.586391092199 , :corrected-position-camber , 0.6529754830954737 , :corrected-max-camber , 0.0318 , :max-camber , 3.18 , :CL-3D , 2.4055693354964145 ,
:thickness , 9.88 , :generation , 52200 , :positon-camber , 2.7538679844999012 , :CD-Induced , 0.3436592144008121 , :Lift , 19667.229732858494 , :corrected-thickness , 0.09880000000000001 , :score , 19667.025227090227 , :cl-2D , 0.719358941263749 , :Drag , 2809.633462660966 , :corrected-position-camber , 0.27538679844999014 , :corrected-max-camber , 0.0473 , :max-camber , 4.73 , :CL-3D , 2.4055894867628935 ,
:thickness , 4.81 , :generation , 22599 , :positon-camber , 2.4421052327850084 , :CD-Induced , 0.3436115989924588 , :Lift , 19665.867197568263 , :corrected-thickness , 0.0481 , :score , 19667.025161029625 , :cl-2D , 0.719322519653794 , :Drag , 2809.2441763009856 , :corrected-position-camber , 0.24421052327850085 , :corrected-max-camber , 0.0483 , :max-camber , 4.83 , :CL-3D , 2.4054228287935686 ,
:thickness , 3.6299999999999994 , :generation , 16059 , :positon-camber , 3.4963469703531462 , :CD-Induced , 0.34359730320975596 , :Lift , 19665.458099200856 , :corrected-thickness , 0.03629999999999999 , :score , 19667.02510434291 , :cl-2D , 0.7193115841416808 , :Drag , 2809.127299151258 , :corrected-position-camber , 0.34963469703531463 , :corrected-max-camber , 0.044800000000000006 , :max-camber , 4.48 , :CL-3D , 2.4053727900873016 ,
:thickness , 12.6 , :generation , 11214 , :positon-camber , 8.467598044279168 , :CD-Induced , 0.3438773673276625 , :Lift , 19673.47106566 , :corrected-thickness , 0.126 , :score , 19667.02311660401 , :cl-2D , 0.7195257768609816 , :Drag , 2811.417002102284 , :corrected-position-camber , 0.8467598044279168 , :corrected-max-camber , 0.0202 , :max-camber , 2.02 , :CL-3D , 2.406352892935223 ,
:thickness , 5.09 , :generation , 10855 , :positon-camber , 1.060408098824562 , :CD-Induced , 0.3439136155529018 , :Lift , 19674.507931831486 , :corrected-thickness , 0.0509 , :score , 19667.022382276846 , :cl-2D , 0.7195534930864211 , :Drag , 2811.7133544837325 , :corrected-position-camber , 0.1060408098824562 , :corrected-max-camber , 0.052000000000000005 , :max-camber , 5.2 , :CL-3D , 2.406479716814091 ,
:thickness , 7.46 , :generation , 664 , :positon-camber , 7.29679745526304 , :CD-Induced , 0.34327686209680447 , :Lift , 19656.2858921724 , :corrected-thickness , 0.0746 , :score , 19667.019364915493 , :cl-2D , 0.7190664040357324 , :Drag , 2806.507488489901 , :corrected-position-camber , 0.729679745526304 , :corrected-max-camber , 0.0276 , :max-camber , 2.76 , :CL-3D , 2.4042508951840658 ,
:thickness , 5.27 , :generation , 197 , :positon-camber , 7.9927209359784435 , :CD-Induced , 0.3458885794147347 , :Lift , 19730.918634409343 , :corrected-thickness , 0.0527 , :score , 19666.81765500661 , :cl-2D , 0.7210613942918518 , :Drag , 2827.8599448302966 , :corrected-position-camber , 0.7992720935978443 , :corrected-max-camber , 0.0235 , :max-camber , 2.35 , :CL-3D , 2.4133795697626477 ,
:thickness , 9.710000000000003 , :generation , 30 , :positon-camber , 7.621878794466884 , :CD-Induced , 0.304176329425631 , :Lift , 18502.98947314334 , :corrected-thickness , 0.09710000000000002 , :score , 19598.12923576447 , :cl-2D , 0.68823790906933 , :Drag , 2486.8356729317447 , :corrected-position-camber , 0.7621878794466884 , :corrected-max-camber , 0.0241 , :max-camber , 2.41 , :CL-3D , 2.263185896278683 ,
:thickness , 18.610000000000003 , :generation , 23 , :positon-camber , 7.706092639898845 , :CD-Induced , 0.4184127240298516 , :Lift , 21701.094385100383 , :corrected-thickness , 0.18610000000000004 , :score , 19456.65089539165 , :cl-2D , 0.7737256982912006 , :Drag , 3420.791124972731 , :corrected-position-camber , 0.7706092639898845 , :corrected-max-camber , 0.027999999999999997 , :max-camber , 2.8 , :CL-3D , 2.654360843552279 ,
:thickness , 27.76 , :generation , 8 , :positon-camber , 4.69 , :CD-Induced , 0.61652418232798 , :Lift , 26342.334018083508 , :corrected-thickness , 0.2776 , :score , 17401.31666844641 , :cl-2D , 0.8977895818708845 , :Drag , 5040.478766817229 , :corrected-position-camber , 0.46900000000000003 , :corrected-max-camber , 0.054900000000000004 , :max-camber , 5.49 , :CL-3D , 3.2220522478987683 ,
:thickness , 28.31 , :generation , 5 , :positon-camber , 6.2 , :CD-Induced , 0.14938074811766638 , :Lift , 12966.61181286468 , :corrected-thickness , 0.28309999999999996 , :score , 17384.242783636946 , :cl-2D , 0.5402463016942767 , :Drag , 1221.2829774417733 , :corrected-position-camber , 0.62 , :corrected-max-camber , 0.0212 , :max-camber , 2.12 , :CL-3D , 1.5860060354025889 ,
:thickness , 31.13 , :generation , 3 , :positon-camber , 5.43 , :CD-Induced , 0.14294335301140587 , :Lift , 12684.14438105086 , :corrected-thickness , 0.31129999999999997 , :score , 17187.71662146427 , :cl-2D , 0.5326957312978333 , :Drag , 1168.653162948207 , :corrected-position-camber , 0.5429999999999999 , :corrected-max-camber , 0.0229 , :max-camber , 2.29 , :CL-3D , 1.5514561423289863 ,
:thickness , 24.49 , :generation , 1 , :positon-camber , 5.65 , :CD-Induced , 0.005277602256851369 , :Lift , 2437.235653884777 , :corrected-thickness , 0.24489999999999998 , :score , 4572.436934836392 , :cl-2D , 0.258788027342095 , :Drag , 43.147767561880336 , :corrected-position-camber , 0.5650000000000001 , :corrected-max-camber , 0.0021 , :max-camber , 0.21 , :CL-3D , 0.29810952256043843 ,
```
| morrislenny/hydrofoil | results/LC27/LC27-Slow-R2.md | Markdown | epl-1.0 | 7,561 |
package org.eclipse.xtext.parser.terminalrules;
/**
* Initialization support for running Xtext languages
* without equinox extension registry
*/
public class Bug317840TestLanguageStandaloneSetup extends Bug317840TestLanguageStandaloneSetupGenerated{
public static void doSetup() {
new Bug317840TestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
}
| miklossy/xtext-core | org.eclipse.xtext.tests/src/org/eclipse/xtext/parser/terminalrules/Bug317840TestLanguageStandaloneSetup.java | Java | epl-1.0 | 378 |
# DEPRECATED acceptance-test-infra
:warning: **WARNING** This project is deprecated because the Test-Editor Team decided to cut off the RCP functionality for the sake of the Test-Editor-Web in October 2018 :warning:
The main repository for the project Test-Editor-Web can be found under https://github.com/test-editor/test-editor-web
Repo that contains the configuration of vagrant and scripts to setup and execute acceptance tests againnst the AUT:
| test-editor/acceptance-test-infra | README.md | Markdown | epl-1.0 | 454 |
<?php /* Smarty version Smarty-3.1.19, created on 2015-03-20 11:21:35
compiled from "D:\wamp\www\www.lesnee.com\admin\themes\default\template\helpers\list\list_action_default.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2506550bf4af722c01-71776360%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'e7410e2be8a109751c05fe6c0f7293b6b86a63cd' =>
array (
0 => 'D:\\wamp\\www\\www.lesnee.com\\admin\\themes\\default\\template\\helpers\\list\\list_action_default.tpl',
1 => 1425640160,
2 => 'file',
),
),
'nocache_hash' => '2506550bf4af722c01-71776360',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
'name' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_550bf4af9d81c3_57332628',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_550bf4af9d81c3_57332628')) {function content_550bf4af9d81c3_57332628($_smarty_tpl) {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
"<?php if (isset($_smarty_tpl->tpl_vars['name']->value)) {?> name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
"<?php }?> class="default">
<i class="icon-asterisk"></i> <?php echo $_smarty_tpl->tpl_vars['action']->value;?>
</a><?php }} ?>
| signorino/lesnee | cache/smarty/compile/e7/41/0e/e7410e2be8a109751c05fe6c0f7293b6b86a63cd.file.list_action_default.tpl.php | PHP | epl-1.0 | 1,545 |
package testnewsfeed
import (
"time"
"testing"
"github.com/go-redis/redis"
sw "../go"
)
type MockErrorWrapper struct {
t *testing.T
}
func (lw MockErrorWrapper) LogError(err error, format string, status int) {
lw.t.Errorf(format, err)
}
var InboundCounter = 0
type MockCassandraWrapper struct {
}
func (cw MockCassandraWrapper) AddInbound(i sw.Inbound) {
InboundCounter++
}
func (cw MockCassandraWrapper) AddOutbound(o sw.Outbound) {
}
type MockRedisWrapper struct {
SetCounter int64
}
func (rw MockRedisWrapper) Get(key string) (string, error) {
return "", redis.Nil
}
func (rw MockRedisWrapper) Set(key string, value string, ttl time.Duration) {
rw.SetCounter++
}
func (rw MockRedisWrapper) Close() {
}
type MockMySqlWrapper struct {
Friends []sw.Friend
}
func (mw MockMySqlWrapper) Close() {
}
func (mw MockMySqlWrapper) FetchFriends(id string)([]sw.Friend, error) {
return mw.Friends, nil
}
func AddFriend(results []sw.Friend, id int64, from int64, to int64) ([]sw.Friend) {
f := sw.Friend{
Id: id,
From: sw.ToLink(from),
To: sw.ToLink(to),
}
results = append(results, f)
return results
}
func TestAddOutboundInner(t *testing.T) {
ew := MockErrorWrapper{
t: t,
}
cw := MockCassandraWrapper{
}
rw := MockRedisWrapper{
SetCounter: 0,
}
ob := sw.Outbound {
From: sw.ToLink(1),
Occurred: time.Now(),
Subject: "test subject",
Story: "test story",
}
var results []sw.Friend
results = AddFriend(results, 1, 1, 2)
results = AddFriend(results, 2, 1, 3)
results = AddFriend(results, 3, 1, 4)
mw := MockMySqlWrapper{
Friends: results,
}
sw.AddOutboundInner(ob, ew, cw, rw, mw)
if InboundCounter != 3 {
t.Errorf("expected 3 inbound but got %d instead", InboundCounter)
}
}
| gengstrand/clojure-news-feed | server/feed9/test/api_outbound_test.go | GO | epl-1.0 | 1,876 |
# WoT Surveys #
## Build & Run ##
```sh
$ cd WoT_Surveys
$ ./sbt
> container:start
> browse
```
If `browse` doesn't launch your browser, manually open [http://localhost:8080/](http://localhost:8080/) in your browser.
| OOPMan/wotsurveys | README.md | Markdown | epl-1.0 | 220 |
fp-oo-exercises
===============
Solutions to exercises from the book Functional Programming for the Object-Oriented Programmer https://leanpub.com/fp-oo
$ lein test | wtfleming/fp-oo-exercises | README.md | Markdown | epl-1.0 | 166 |
/**
* Eclipse Public License - v 1.0
*
* THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
* OF THE
* PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
*
* 1. DEFINITIONS
*
* "Contribution" means:
*
* a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
* b) in the case of each subsequent Contributor:
* i) changes to the Program, and
* ii) additions to the Program;
* where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution
* 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf.
* Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program
* under their own license agreement, and (ii) are not derivative works of the Program.
* "Contributor" means any person or entity that distributes the Program.
*
* "Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone
* or when combined with the Program.
*
* "Program" means the Contributions distributed in accordance with this Agreement.
*
* "Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
*
* 2. GRANT OF RIGHTS
*
* a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license
* to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor,
* if any, and such derivative works, in source code and object code form.
* b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license
* under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source
* code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the
* Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The
* patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
* c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided
* by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor
* disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise.
* As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other
* intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the
* Program, it is Recipient's responsibility to acquire that license before distributing the Program.
* d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright
* license set forth in this Agreement.
* 3. REQUIREMENTS
*
* A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
*
* a) it complies with the terms and conditions of this Agreement; and
* b) its license agreement:
* i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions
* of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
* ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and
* consequential damages, such as lost profits;
* iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
* iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner
* on or through a medium customarily used for software exchange.
* When the Program is made available in source code form:
*
* a) it must be made available under this Agreement; and
* b) a copy of this Agreement must be included with each copy of the Program.
* Contributors may not remove or alter any copyright notices contained within the Program.
*
* Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients
* to identify the originator of the Contribution.
*
* 4. COMMERCIAL DISTRIBUTION
*
* Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this
* license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering
* should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in
* a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor
* ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions
* brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in
* connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or
* Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly
* notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the
* Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim
* at its own expense.
*
* For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial
* Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims
* and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend
* claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay
* any damages as a result, the Commercial Contributor must pay those damages.
*
* 5. NO WARRANTY
*
* EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS
* FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and
* assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program
* errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
*
* 6. DISCLAIMER OF LIABILITY
*
* EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION
* OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*
* 7. GENERAL
*
* If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the
* remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum
* extent necessary to make such provision valid and enforceable.
*
* If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program
* itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's
* rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
*
* All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this
* Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights
* under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However,
* Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
*
* Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may
* only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this
* Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the
* initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate
* entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be
* distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is
* published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in
* Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement,
* whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
*
* This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to
* this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights
* to a jury trial in any resulting litigation.
*/
package com.runescape.server.revised.actor.entity;
public enum BehaviorType {
AGGRESIVE, PASSIVE, ASSERTIVE;
} | RodriguesJ/Atem | src/com/runescape/server/revised/actor/entity/BehaviorType.java | Java | epl-1.0 | 11,742 |
/**
* Copyright (c) 2010-2021 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.openhab.binding.teleinfo.internal.dto.cbemm.evoicc;
import org.openhab.binding.teleinfo.internal.dto.common.FrameEjpOption;
/**
* The {@link FrameCbemmEvolutionIccEjpOption} class defines a CBEMM Evolution ICC Teleinfo frame with EJP option.
*
* @author Nicolas SIBERIL - Initial contribution
*/
public class FrameCbemmEvolutionIccEjpOption extends FrameCbemmEvolutionIcc implements FrameEjpOption {
private static final long serialVersionUID = -5053572570767309239L;
private int ejphpm;
private int ejphn;
private Integer pejp;
public FrameCbemmEvolutionIccEjpOption() {
// default constructor
}
@Override
public int getEjphpm() {
return ejphpm;
}
@Override
public int getEjphn() {
return ejphn;
}
@Override
public Integer getPejp() {
return pejp;
}
@Override
public void setEjphpm(int ejphpm) {
this.ejphpm = ejphpm;
}
@Override
public void setEjphn(int ejphn) {
this.ejphn = ejphn;
}
@Override
public void setPejp(Integer pejp) {
this.pejp = pejp;
}
}
| MikeJMajor/openhab2-addons-dlinksmarthome | bundles/org.openhab.binding.teleinfo/src/main/java/org/openhab/binding/teleinfo/internal/dto/cbemm/evoicc/FrameCbemmEvolutionIccEjpOption.java | Java | epl-1.0 | 1,515 |
@extends('admin')
@section('content')
@if(Session::has('message'))
<div class="alert alert-block alert-success">
<button type="button" class="close" data-dismiss="alert">
<i class="icon-remove"></i>
</button>
<h2>{{ Session::get('message') }}</h2>
</div>
@endif
<div class="table-responsive">
<table id="sample-table-2" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th class="center">
<label>
<input type="checkbox" class="ace" />
<span class="lbl"></span>
</label>
</th>
<th>ID</th>
<th>Name</th>
<th class="hidden-480"><i class="icon-time bigger-110 hidden-480"></i>Created</th>
<th><i class="icon-time bigger-110 hidden-480"></i>Updated</th>
<th class="hidden-480">Status</th>
<th>Options</th>
</tr>
</thead>
<tbody>
@foreach($companies as $company)
<tr>
<td class="center">
<label>
<input type="checkbox" class="ace" />
<span class="lbl"></span>
</label>
</td>
<td>
{{$company->id}}
</td>
<td>{{$company->name}}</td>
<td class="hidden-480">{{$company->created_at}}</td>
<td>{{$company->updated_at}}</td>
<td class="hidden-480">
@if($company->active == true)
<span class="label label-sm label-info arrowed arrowed-righ">
active
</span>
@else
<span class="label label-sm label-danger arrowed arrowed-righ">
not active
</span>
@endif
</td>
<td>
<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
<a class="blue" href="/companies/{{$company->id}}">
<i class="icon-zoom-in bigger-130"></i>
</a>
<a class="green" href="/admin/companies/{{$company->id}}/edit">
<i class="icon-pencil bigger-130"></i>
</a>
<a class="red" href="/admin/companies/{{$company->id}}/destroy">
<i class="icon-trash bigger-130"></i>
</a>
</div>
<div class="visible-xs visible-sm hidden-md hidden-lg">
<div class="inline position-relative">
<button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
<i class="icon-caret-down icon-only bigger-120"></i>
</button>
<ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
<li>
<a href="#" class="tooltip-info" data-rel="tooltip" title="View">
<span class="blue">
<i class="icon-zoom-in bigger-120"></i>
</span>
</a>
</li>
<li>
<a href="#" class="tooltip-success" data-rel="tooltip" title="Edit">
<span class="green">
<i class="icon-edit bigger-120"></i>
</span>
</a>
</li>
<li>
<a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
<span class="red">
<i class="icon-trash bigger-120"></i>
</span>
</a>
</li>
</ul>
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<script src="assets/js/jquery.dataTables.min.js"></script>
<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript">
jQuery(function($) {
$('.companies_menu').addClass('active open');
$('.companies_menu_all').addClass('active');
var oTable1 = $('#sample-table-2').dataTable( {
"aoColumns": [
{ "bSortable": false },
null, null,null, null, null,
{ "bSortable": false }
] } );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
})
</script>
@endsection | bunsha/french | resources/views/companies/showAll.blade.php | PHP | epl-1.0 | 6,673 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Uses of Class org.apache.commons.cli.BasicParser (Apache Commons CLI 1.3 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.apache.commons.cli.BasicParser (Apache Commons CLI 1.3 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../org/apache/commons/cli/package-summary.html">Package</a></li>
<li><a href="../../../../../org/apache/commons/cli/BasicParser.html" title="class in org.apache.commons.cli">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/cli/class-use/BasicParser.html" target="_top">Frames</a></li>
<li><a href="BasicParser.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.apache.commons.cli.BasicParser" class="title">Uses of Class<br>org.apache.commons.cli.BasicParser</h2>
</div>
<div class="classUseContainer">No usage of org.apache.commons.cli.BasicParser</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../org/apache/commons/cli/package-summary.html">Package</a></li>
<li><a href="../../../../../org/apache/commons/cli/BasicParser.html" title="class in org.apache.commons.cli">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/cli/class-use/BasicParser.html" target="_top">Frames</a></li>
<li><a href="BasicParser.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>
| eliericha/atlanalyser | fr.tpt.atlanalyser.lib/lib/commons-cli-1.3/apidocs/org/apache/commons/cli/class-use/BasicParser.html | HTML | epl-1.0 | 4,478 |
/*******************************************************************************
* Copyright (c) 1998, 2012 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Oracle - initial API and implementation from Oracle TopLink
******************************************************************************/
package org.eclipse.persistence.testing.oxm.mappings.directtofield.typeattribute;
import org.eclipse.persistence.testing.oxm.mappings.XMLMappingTestCases;
public class TypeAttributeCustomAddTestCases extends XMLMappingTestCases {
private final static String XML_RESOURCE = "org/eclipse/persistence/testing/oxm/mappings/directtofield/typeattribute/TypeAttributeCustomAdd.xml";
private final static Integer CONTROL_ID = new Integer(123);
private final static String CONTROL_FIRST_NAME = "Jane";
private final static String CONTROL_LAST_NAME = "Doe";
public TypeAttributeCustomAddTestCases(String name) throws Exception {
super(name);
setControlDocument(XML_RESOURCE);
setProject(new TypeAttributeCustomAddProject());
}
protected Object getControlObject() {
Employee employee = new Employee();
employee.setIdentifier(CONTROL_ID);
employee.setFirstName(CONTROL_FIRST_NAME);
employee.setLastName(CONTROL_LAST_NAME);
return employee;
}
}
| bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/mappings/directtofield/typeattribute/TypeAttributeCustomAddTestCases.java | Java | epl-1.0 | 1,799 |
package com.example.util;
import java.io.IOException;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
public class HttpUtil {
// 基础URL
public static final String BASE_URL = "http://192.168.1.101:8080/WebRoot/";
// 获得Get请求对象request
public static HttpGet getHttpGet(String url) {
HttpGet request = new HttpGet(url);
return request;
}
// 获得Post请求对象request
public static HttpPost getHttpPost(String url) {
HttpPost request = new HttpPost(url);
return request;
}
// 根据请求获得响应对象response
public static HttpResponse getHttpResponse(HttpGet request)
throws ClientProtocolException, IOException {
HttpResponse response = new DefaultHttpClient().execute(request);
return response;
}
// 根据请求获得响应对象response
public static HttpResponse getHttpResponse(HttpPost request)
throws ClientProtocolException, IOException {
HttpResponse response = new DefaultHttpClient().execute(request);
return response;
}
// 发送Post请求,获得响应查询结果
public static String queryStringForPost(String url) {
// 根据url获得HttpPost对象
HttpPost request = HttpUtil.getHttpPost(url);
String result = null;
try {
// 获得响应对象
HttpResponse response = HttpUtil.getHttpResponse(request);
// 判断是否请求成功
if (response.getStatusLine().getStatusCode() == 200) {
// 获得响应
result = EntityUtils.toString(response.getEntity());
return result;
}
} catch (ClientProtocolException e) {
e.printStackTrace();
result = "网络异常!";
return result;
} catch (IOException e) {
e.printStackTrace();
result = "网络异常!";
return result;
}
return null;
}
// 获得响应查询结果
public static String queryStringForPost(HttpPost request) {
String result = null;
try {
// 获得响应对象
HttpResponse response = HttpUtil.getHttpResponse(request);
// 判断是否请求成功
if (response.getStatusLine().getStatusCode() == 200) {
// 获得响应
result = EntityUtils.toString(response.getEntity());
return result;
}
} catch (ClientProtocolException e) {
e.printStackTrace();
result = "网络异常!";
return result;
} catch (IOException e) {
e.printStackTrace();
result = "网络异常!";
return result;
}
return null;
}
// 发送Get请求,获得响应查询结果
public static String queryStringForGet(String url) {
// 获得HttpGet对象
HttpGet request = HttpUtil.getHttpGet(url);
String result = null;
try {
// 获得响应对象
HttpResponse response = HttpUtil.getHttpResponse(request);
// 判断是否请求成功
if (response.getStatusLine().getStatusCode() == 200) {
// 获得响应
result = EntityUtils.toString(response.getEntity());
return result;
}
} catch (ClientProtocolException e) {
e.printStackTrace();
result = "网络异常!";
return result;
} catch (IOException e) {
e.printStackTrace();
result = "网络异常!";
return result;
}
return null;
}
} | PaiGaVR/Orders | src/com/example/util/HttpUtil.java | Java | epl-1.0 | 3,433 |
package org.eclipse.jet.compiled;
import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;
public class _jet_main_0 implements JET2Template {
private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
private static final String _jetns_ws = "org.eclipse.jet.workspaceTags"; //$NON-NLS-1$
public _jet_main_0() {
super();
}
private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
private static final TagInfo _td_c_setVariable_8_1 = new TagInfo("c:setVariable", //$NON-NLS-1$
8, 1,
new String[] {
"select", //$NON-NLS-1$
"var", //$NON-NLS-1$
},
new String[] {
"/*", //$NON-NLS-1$
"root", //$NON-NLS-1$
} );
private static final TagInfo _td_c_if_10_1 = new TagInfo("c:if", //$NON-NLS-1$
10, 1,
new String[] {
"test", //$NON-NLS-1$
},
new String[] {
"boolean($root/maximumResponseTime) = false", //$NON-NLS-1$
} );
private static final TagInfo _td_c_log_11_2 = new TagInfo("c:log", //$NON-NLS-1$
11, 2,
new String[] {
"severity", //$NON-NLS-1$
},
new String[] {
"error", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_16_1 = new TagInfo("c:set", //$NON-NLS-1$
16, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"mqmdExpiry", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_16_41 = new TagInfo("c:get", //$NON-NLS-1$
16, 41,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/maximumResponseTime", //$NON-NLS-1$
} );
private static final TagInfo _td_c_choose_17_1 = new TagInfo("c:choose", //$NON-NLS-1$
17, 1,
new String[] {
},
new String[] {
} );
private static final TagInfo _td_c_when_18_2 = new TagInfo("c:when", //$NON-NLS-1$
18, 2,
new String[] {
"test", //$NON-NLS-1$
},
new String[] {
"$root/maximumResponseTime = 'MQEI_UNLIMITED'", //$NON-NLS-1$
} );
private static final TagInfo _td_c_when_19_2 = new TagInfo("c:when", //$NON-NLS-1$
19, 2,
new String[] {
"test", //$NON-NLS-1$
},
new String[] {
"$root/maximumResponseTime > 0", //$NON-NLS-1$
} );
private static final TagInfo _td_c_if_20_3 = new TagInfo("c:if", //$NON-NLS-1$
20, 3,
new String[] {
"test", //$NON-NLS-1$
},
new String[] {
"$root/maximumResponseTime > 9999999999", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_21_4 = new TagInfo("c:set", //$NON-NLS-1$
21, 4,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"mqmdExpiry", //$NON-NLS-1$
} );
private static final TagInfo _td_c_otherwise_24_1 = new TagInfo("c:otherwise", //$NON-NLS-1$
24, 1,
new String[] {
},
new String[] {
} );
private static final TagInfo _td_c_log_25_2 = new TagInfo("c:log", //$NON-NLS-1$
25, 2,
new String[] {
"severity", //$NON-NLS-1$
},
new String[] {
"error", //$NON-NLS-1$
} );
private static final TagInfo _td_c_if_33_1 = new TagInfo("c:if", //$NON-NLS-1$
33, 1,
new String[] {
"test", //$NON-NLS-1$
},
new String[] {
"boolean($isMessageSetValid) = false", //$NON-NLS-1$
} );
private static final TagInfo _td_c_log_34_2 = new TagInfo("c:log", //$NON-NLS-1$
34, 2,
new String[] {
"severity", //$NON-NLS-1$
},
new String[] {
"error", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_41_1 = new TagInfo("c:set", //$NON-NLS-1$
41, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"projectname", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_41_42 = new TagInfo("c:get", //$NON-NLS-1$
41, 42,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/instanceName", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_42_1 = new TagInfo("c:set", //$NON-NLS-1$
42, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"patternName", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_42_42 = new TagInfo("c:get", //$NON-NLS-1$
42, 42,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"namespace-uri($root)", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_43_1 = new TagInfo("c:set", //$NON-NLS-1$
43, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"patternVersion", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_46_1 = new TagInfo("c:set", //$NON-NLS-1$
46, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"request", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_46_38 = new TagInfo("c:get", //$NON-NLS-1$
46, 38,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowPrefix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_46_79 = new TagInfo("c:get", //$NON-NLS-1$
46, 79,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowSuffix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_47_1 = new TagInfo("c:set", //$NON-NLS-1$
47, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"requestprocessor", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_47_47 = new TagInfo("c:get", //$NON-NLS-1$
47, 47,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowPrefix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_47_97 = new TagInfo("c:get", //$NON-NLS-1$
47, 97,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowSuffix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_48_1 = new TagInfo("c:set", //$NON-NLS-1$
48, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"response", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_48_39 = new TagInfo("c:get", //$NON-NLS-1$
48, 39,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowPrefix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_48_81 = new TagInfo("c:get", //$NON-NLS-1$
48, 81,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowSuffix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_49_1 = new TagInfo("c:set", //$NON-NLS-1$
49, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"responseprocessor", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_49_48 = new TagInfo("c:get", //$NON-NLS-1$
49, 48,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowPrefix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_49_99 = new TagInfo("c:get", //$NON-NLS-1$
49, 99,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowSuffix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_50_1 = new TagInfo("c:set", //$NON-NLS-1$
50, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"error", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_50_36 = new TagInfo("c:get", //$NON-NLS-1$
50, 36,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowPrefix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_50_75 = new TagInfo("c:get", //$NON-NLS-1$
50, 75,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowSuffix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_set_51_1 = new TagInfo("c:set", //$NON-NLS-1$
51, 1,
new String[] {
"select", //$NON-NLS-1$
"name", //$NON-NLS-1$
},
new String[] {
"$root", //$NON-NLS-1$
"log", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_51_34 = new TagInfo("c:get", //$NON-NLS-1$
51, 34,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowPrefix", //$NON-NLS-1$
} );
private static final TagInfo _td_c_get_51_71 = new TagInfo("c:get", //$NON-NLS-1$
51, 71,
new String[] {
"select", //$NON-NLS-1$
},
new String[] {
"$root/flowSuffix", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_project_55_1 = new TagInfo("ws:project", //$NON-NLS-1$
55, 1,
new String[] {
"name", //$NON-NLS-1$
},
new String[] {
"{$root/instanceName}", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_56_2 = new TagInfo("ws:file", //$NON-NLS-1$
56, 2,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$patternConfigurationFolderName}/{$root/instanceName}_summary.html", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/summary.html.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_copyFile_58_2 = new TagInfo("ws:copyFile", //$NON-NLS-1$
58, 2,
new String[] {
"src", //$NON-NLS-1$
"srcContext", //$NON-NLS-1$
"target", //$NON-NLS-1$
},
new String[] {
"css/summary.css", //$NON-NLS-1$
"transform", //$NON-NLS-1$
"{$patternConfigurationFolderName}/summary.css", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_folder_61_2 = new TagInfo("ws:folder", //$NON-NLS-1$
61, 2,
new String[] {
"path", //$NON-NLS-1$
},
new String[] {
"{$patternConfigurationFolderName}/icons", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_copyFile_62_3 = new TagInfo("ws:copyFile", //$NON-NLS-1$
62, 3,
new String[] {
"src", //$NON-NLS-1$
"binary", //$NON-NLS-1$
"srcContext", //$NON-NLS-1$
"target", //$NON-NLS-1$
},
new String[] {
"icons/header-gradient.gif", //$NON-NLS-1$
"true", //$NON-NLS-1$
"transform", //$NON-NLS-1$
"header-gradient.gif", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_copyFile_64_3 = new TagInfo("ws:copyFile", //$NON-NLS-1$
64, 3,
new String[] {
"src", //$NON-NLS-1$
"binary", //$NON-NLS-1$
"srcContext", //$NON-NLS-1$
"target", //$NON-NLS-1$
},
new String[] {
"icons/section.gif", //$NON-NLS-1$
"true", //$NON-NLS-1$
"transform", //$NON-NLS-1$
"section.gif", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_copyFile_66_3 = new TagInfo("ws:copyFile", //$NON-NLS-1$
66, 3,
new String[] {
"src", //$NON-NLS-1$
"binary", //$NON-NLS-1$
"srcContext", //$NON-NLS-1$
"target", //$NON-NLS-1$
},
new String[] {
"icons/summary-title.gif", //$NON-NLS-1$
"true", //$NON-NLS-1$
"transform", //$NON-NLS-1$
"summary-title.gif", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_copyFile_68_3 = new TagInfo("ws:copyFile", //$NON-NLS-1$
68, 3,
new String[] {
"src", //$NON-NLS-1$
"binary", //$NON-NLS-1$
"srcContext", //$NON-NLS-1$
"target", //$NON-NLS-1$
},
new String[] {
"icons/title-gradient.gif", //$NON-NLS-1$
"true", //$NON-NLS-1$
"transform", //$NON-NLS-1$
"title-gradient.gif", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_project_73_1 = new TagInfo("ws:project", //$NON-NLS-1$
73, 1,
new String[] {
"name", //$NON-NLS-1$
},
new String[] {
"{$root/@projectname}", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_74_2 = new TagInfo("ws:file", //$NON-NLS-1$
74, 2,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
".project", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/project.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_75_5 = new TagInfo("ws:file", //$NON-NLS-1$
75, 5,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$root/@brokerSchema2}Error.esql", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/Error.esql.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_76_4 = new TagInfo("ws:file", //$NON-NLS-1$
76, 4,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$root/@brokerSchema2}{$root/@error}.subflow", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/Error.subflow.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_c_if_78_2 = new TagInfo("c:if", //$NON-NLS-1$
78, 2,
new String[] {
"test", //$NON-NLS-1$
},
new String[] {
"$root/loggingRequired = 'true'", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_79_3 = new TagInfo("ws:file", //$NON-NLS-1$
79, 3,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$root/@brokerSchema2}Log.esql", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/Log.esql.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_80_5 = new TagInfo("ws:file", //$NON-NLS-1$
80, 5,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$root/@brokerSchema2}{$root/@log}.subflow", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/Log.subflow.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_83_2 = new TagInfo("ws:file", //$NON-NLS-1$
83, 2,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$root/@brokerSchema2}{$root/@request}.msgflow", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/Request.msgflow.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_84_2 = new TagInfo("ws:file", //$NON-NLS-1$
84, 2,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$root/@brokerSchema2}{$root/@requestprocessor}.subflow", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/RequestProcessor.subflow.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_85_2 = new TagInfo("ws:file", //$NON-NLS-1$
85, 2,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$root/@brokerSchema2}{$root/@response}.msgflow", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/Response.msgflow.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_86_2 = new TagInfo("ws:file", //$NON-NLS-1$
86, 2,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$root/@brokerSchema2}{$root/@responseprocessor}.subflow", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/ResponseProcessor.subflow.jet", //$NON-NLS-1$
} );
private static final TagInfo _td_ws_file_87_2 = new TagInfo("ws:file", //$NON-NLS-1$
87, 2,
new String[] {
"encoding", //$NON-NLS-1$
"path", //$NON-NLS-1$
"replace", //$NON-NLS-1$
"template", //$NON-NLS-1$
},
new String[] {
"UTF-8", //$NON-NLS-1$
"{$root/@brokerSchema2}Intermediary.esql", //$NON-NLS-1$
"true", //$NON-NLS-1$
"mbi/mrrc/synchmq/templates/root/Intermediary.esql.jet", //$NON-NLS-1$
} );
public void generate(final JET2Context context, final JET2Writer __out) {
JET2Writer out = __out;
com.ibm.etools.mft.pattern.mbi.plugin.PatternPlugin pattern = com.ibm.etools.mft.pattern.mbi.plugin.PatternPlugin.getInstance();
com.ibm.etools.mft.pattern.mbi.mrrc.synchmq.PatternMessages messages = new com.ibm.etools.mft.pattern.mbi.mrrc.synchmq.PatternMessages();
out.write(NL);
// Define variables the root element in the model
RuntimeTagElement _jettag_c_setVariable_8_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "setVariable", "c:setVariable", _td_c_setVariable_8_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_setVariable_8_1.setRuntimeParent(null);
_jettag_c_setVariable_8_1.setTagInfo(_td_c_setVariable_8_1);
_jettag_c_setVariable_8_1.doStart(context, out);
_jettag_c_setVariable_8_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_if_10_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "if", "c:if", _td_c_if_10_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_if_10_1.setRuntimeParent(null);
_jettag_c_if_10_1.setTagInfo(_td_c_if_10_1);
_jettag_c_if_10_1.doStart(context, out);
while (_jettag_c_if_10_1.okToProcessBody()) {
RuntimeTagElement _jettag_c_log_11_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "log", "c:log", _td_c_log_11_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_log_11_2.setRuntimeParent(_jettag_c_if_10_1);
_jettag_c_log_11_2.setTagInfo(_td_c_log_11_2);
_jettag_c_log_11_2.doStart(context, out);
JET2Writer _jettag_c_log_11_2_saved_out = out;
while (_jettag_c_log_11_2.okToProcessBody()) {
out = out.newNestedContentWriter();
out.write("\t "); //$NON-NLS-1$
out.write( pattern.getString("com.ibm.etools.mft.pattern.mbi.mrrc.synchmq.jet.1") );
out.write(NL);
_jettag_c_log_11_2.handleBodyContent(out);
}
out = _jettag_c_log_11_2_saved_out;
_jettag_c_log_11_2.doEnd();
if (true) return;
_jettag_c_if_10_1.handleBodyContent(out);
}
_jettag_c_if_10_1.doEnd();
RuntimeTagElement _jettag_c_set_16_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_16_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_16_1.setRuntimeParent(null);
_jettag_c_set_16_1.setTagInfo(_td_c_set_16_1);
_jettag_c_set_16_1.doStart(context, out);
JET2Writer _jettag_c_set_16_1_saved_out = out;
while (_jettag_c_set_16_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_get_16_41 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_16_41); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_16_41.setRuntimeParent(_jettag_c_set_16_1);
_jettag_c_get_16_41.setTagInfo(_td_c_get_16_41);
_jettag_c_get_16_41.doStart(context, out);
_jettag_c_get_16_41.doEnd();
_jettag_c_set_16_1.handleBodyContent(out);
}
out = _jettag_c_set_16_1_saved_out;
_jettag_c_set_16_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_choose_17_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_17_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_choose_17_1.setRuntimeParent(null);
_jettag_c_choose_17_1.setTagInfo(_td_c_choose_17_1);
_jettag_c_choose_17_1.doStart(context, out);
JET2Writer _jettag_c_choose_17_1_saved_out = out;
while (_jettag_c_choose_17_1.okToProcessBody()) {
out = out.newNestedContentWriter();
out.write("\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_c_when_18_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_18_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_when_18_2.setRuntimeParent(_jettag_c_choose_17_1);
_jettag_c_when_18_2.setTagInfo(_td_c_when_18_2);
_jettag_c_when_18_2.doStart(context, out);
JET2Writer _jettag_c_when_18_2_saved_out = out;
while (_jettag_c_when_18_2.okToProcessBody()) {
out = out.newNestedContentWriter();
_jettag_c_when_18_2.handleBodyContent(out);
}
out = _jettag_c_when_18_2_saved_out;
_jettag_c_when_18_2.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_when_19_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_19_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_when_19_2.setRuntimeParent(_jettag_c_choose_17_1);
_jettag_c_when_19_2.setTagInfo(_td_c_when_19_2);
_jettag_c_when_19_2.doStart(context, out);
JET2Writer _jettag_c_when_19_2_saved_out = out;
while (_jettag_c_when_19_2.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_if_20_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "if", "c:if", _td_c_if_20_3); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_if_20_3.setRuntimeParent(_jettag_c_when_19_2);
_jettag_c_if_20_3.setTagInfo(_td_c_if_20_3);
_jettag_c_if_20_3.doStart(context, out);
while (_jettag_c_if_20_3.okToProcessBody()) {
out.write("\t\t\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_c_set_21_4 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_21_4); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_21_4.setRuntimeParent(_jettag_c_if_20_3);
_jettag_c_set_21_4.setTagInfo(_td_c_set_21_4);
_jettag_c_set_21_4.doStart(context, out);
JET2Writer _jettag_c_set_21_4_saved_out = out;
while (_jettag_c_set_21_4.okToProcessBody()) {
out = out.newNestedContentWriter();
out.write("999999999"); //$NON-NLS-1$
_jettag_c_set_21_4.handleBodyContent(out);
}
out = _jettag_c_set_21_4_saved_out;
_jettag_c_set_21_4.doEnd();
out.write(NL);
_jettag_c_if_20_3.handleBodyContent(out);
}
_jettag_c_if_20_3.doEnd();
_jettag_c_when_19_2.handleBodyContent(out);
}
out = _jettag_c_when_19_2_saved_out;
_jettag_c_when_19_2.doEnd();
RuntimeTagElement _jettag_c_otherwise_24_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_24_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_otherwise_24_1.setRuntimeParent(_jettag_c_choose_17_1);
_jettag_c_otherwise_24_1.setTagInfo(_td_c_otherwise_24_1);
_jettag_c_otherwise_24_1.doStart(context, out);
JET2Writer _jettag_c_otherwise_24_1_saved_out = out;
while (_jettag_c_otherwise_24_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_log_25_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "log", "c:log", _td_c_log_25_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_log_25_2.setRuntimeParent(_jettag_c_otherwise_24_1);
_jettag_c_log_25_2.setTagInfo(_td_c_log_25_2);
_jettag_c_log_25_2.doStart(context, out);
JET2Writer _jettag_c_log_25_2_saved_out = out;
while (_jettag_c_log_25_2.okToProcessBody()) {
out = out.newNestedContentWriter();
out.write("\t "); //$NON-NLS-1$
out.write( pattern.getString("com.ibm.etools.mft.pattern.mbi.mrrc.synchmq.jet.2") );
out.write(NL);
_jettag_c_log_25_2.handleBodyContent(out);
}
out = _jettag_c_log_25_2_saved_out;
_jettag_c_log_25_2.doEnd();
if (true) return;
_jettag_c_otherwise_24_1.handleBodyContent(out);
}
out = _jettag_c_otherwise_24_1_saved_out;
_jettag_c_otherwise_24_1.doEnd();
_jettag_c_choose_17_1.handleBodyContent(out);
}
out = _jettag_c_choose_17_1_saved_out;
_jettag_c_choose_17_1.doEnd();
out.write(NL);
com.ibm.etools.mft.pattern.mbi.plugin.PatternUtility.checkMessageSetIsValidOrEmpty(context, "$root/responseMessageSet", "isMessageSetValid");
RuntimeTagElement _jettag_c_if_33_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "if", "c:if", _td_c_if_33_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_if_33_1.setRuntimeParent(null);
_jettag_c_if_33_1.setTagInfo(_td_c_if_33_1);
_jettag_c_if_33_1.doStart(context, out);
while (_jettag_c_if_33_1.okToProcessBody()) {
RuntimeTagElement _jettag_c_log_34_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "log", "c:log", _td_c_log_34_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_log_34_2.setRuntimeParent(_jettag_c_if_33_1);
_jettag_c_log_34_2.setTagInfo(_td_c_log_34_2);
_jettag_c_log_34_2.doStart(context, out);
JET2Writer _jettag_c_log_34_2_saved_out = out;
while (_jettag_c_log_34_2.okToProcessBody()) {
out = out.newNestedContentWriter();
out.write("\t "); //$NON-NLS-1$
out.write( pattern.getString("com.ibm.etools.mft.pattern.mbi.mrrc.synchmq.jet.3") );
out.write(NL);
_jettag_c_log_34_2.handleBodyContent(out);
}
out = _jettag_c_log_34_2_saved_out;
_jettag_c_log_34_2.doEnd();
if (true) return;
_jettag_c_if_33_1.handleBodyContent(out);
}
_jettag_c_if_33_1.doEnd();
out.write(NL);
// Set top level pattern characteristics
RuntimeTagElement _jettag_c_set_41_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_41_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_41_1.setRuntimeParent(null);
_jettag_c_set_41_1.setTagInfo(_td_c_set_41_1);
_jettag_c_set_41_1.doStart(context, out);
JET2Writer _jettag_c_set_41_1_saved_out = out;
while (_jettag_c_set_41_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_get_41_42 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_41_42); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_41_42.setRuntimeParent(_jettag_c_set_41_1);
_jettag_c_get_41_42.setTagInfo(_td_c_get_41_42);
_jettag_c_get_41_42.doStart(context, out);
_jettag_c_get_41_42.doEnd();
out.write("_Flows"); //$NON-NLS-1$
_jettag_c_set_41_1.handleBodyContent(out);
}
out = _jettag_c_set_41_1_saved_out;
_jettag_c_set_41_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_set_42_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_42_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_42_1.setRuntimeParent(null);
_jettag_c_set_42_1.setTagInfo(_td_c_set_42_1);
_jettag_c_set_42_1.doStart(context, out);
JET2Writer _jettag_c_set_42_1_saved_out = out;
while (_jettag_c_set_42_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_get_42_42 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_42_42); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_42_42.setRuntimeParent(_jettag_c_set_42_1);
_jettag_c_get_42_42.setTagInfo(_td_c_get_42_42);
_jettag_c_get_42_42.doStart(context, out);
_jettag_c_get_42_42.doEnd();
_jettag_c_set_42_1.handleBodyContent(out);
}
out = _jettag_c_set_42_1_saved_out;
_jettag_c_set_42_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_set_43_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_43_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_43_1.setRuntimeParent(null);
_jettag_c_set_43_1.setTagInfo(_td_c_set_43_1);
_jettag_c_set_43_1.doStart(context, out);
JET2Writer _jettag_c_set_43_1_saved_out = out;
while (_jettag_c_set_43_1.okToProcessBody()) {
out = out.newNestedContentWriter();
out.write("1.0"); //$NON-NLS-1$
_jettag_c_set_43_1.handleBodyContent(out);
}
out = _jettag_c_set_43_1_saved_out;
_jettag_c_set_43_1.doEnd();
out.write(NL);
out.write(NL);
// Make a name for each message flow
RuntimeTagElement _jettag_c_set_46_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_46_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_46_1.setRuntimeParent(null);
_jettag_c_set_46_1.setTagInfo(_td_c_set_46_1);
_jettag_c_set_46_1.doStart(context, out);
JET2Writer _jettag_c_set_46_1_saved_out = out;
while (_jettag_c_set_46_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_get_46_38 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_46_38); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_46_38.setRuntimeParent(_jettag_c_set_46_1);
_jettag_c_get_46_38.setTagInfo(_td_c_get_46_38);
_jettag_c_get_46_38.doStart(context, out);
_jettag_c_get_46_38.doEnd();
out.write("Request"); //$NON-NLS-1$
RuntimeTagElement _jettag_c_get_46_79 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_46_79); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_46_79.setRuntimeParent(_jettag_c_set_46_1);
_jettag_c_get_46_79.setTagInfo(_td_c_get_46_79);
_jettag_c_get_46_79.doStart(context, out);
_jettag_c_get_46_79.doEnd();
_jettag_c_set_46_1.handleBodyContent(out);
}
out = _jettag_c_set_46_1_saved_out;
_jettag_c_set_46_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_set_47_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_47_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_47_1.setRuntimeParent(null);
_jettag_c_set_47_1.setTagInfo(_td_c_set_47_1);
_jettag_c_set_47_1.doStart(context, out);
JET2Writer _jettag_c_set_47_1_saved_out = out;
while (_jettag_c_set_47_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_get_47_47 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_47_47); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_47_47.setRuntimeParent(_jettag_c_set_47_1);
_jettag_c_get_47_47.setTagInfo(_td_c_get_47_47);
_jettag_c_get_47_47.doStart(context, out);
_jettag_c_get_47_47.doEnd();
out.write("RequestProcessor"); //$NON-NLS-1$
RuntimeTagElement _jettag_c_get_47_97 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_47_97); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_47_97.setRuntimeParent(_jettag_c_set_47_1);
_jettag_c_get_47_97.setTagInfo(_td_c_get_47_97);
_jettag_c_get_47_97.doStart(context, out);
_jettag_c_get_47_97.doEnd();
_jettag_c_set_47_1.handleBodyContent(out);
}
out = _jettag_c_set_47_1_saved_out;
_jettag_c_set_47_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_set_48_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_48_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_48_1.setRuntimeParent(null);
_jettag_c_set_48_1.setTagInfo(_td_c_set_48_1);
_jettag_c_set_48_1.doStart(context, out);
JET2Writer _jettag_c_set_48_1_saved_out = out;
while (_jettag_c_set_48_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_get_48_39 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_48_39); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_48_39.setRuntimeParent(_jettag_c_set_48_1);
_jettag_c_get_48_39.setTagInfo(_td_c_get_48_39);
_jettag_c_get_48_39.doStart(context, out);
_jettag_c_get_48_39.doEnd();
out.write("Response"); //$NON-NLS-1$
RuntimeTagElement _jettag_c_get_48_81 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_48_81); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_48_81.setRuntimeParent(_jettag_c_set_48_1);
_jettag_c_get_48_81.setTagInfo(_td_c_get_48_81);
_jettag_c_get_48_81.doStart(context, out);
_jettag_c_get_48_81.doEnd();
_jettag_c_set_48_1.handleBodyContent(out);
}
out = _jettag_c_set_48_1_saved_out;
_jettag_c_set_48_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_set_49_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_49_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_49_1.setRuntimeParent(null);
_jettag_c_set_49_1.setTagInfo(_td_c_set_49_1);
_jettag_c_set_49_1.doStart(context, out);
JET2Writer _jettag_c_set_49_1_saved_out = out;
while (_jettag_c_set_49_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_get_49_48 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_49_48); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_49_48.setRuntimeParent(_jettag_c_set_49_1);
_jettag_c_get_49_48.setTagInfo(_td_c_get_49_48);
_jettag_c_get_49_48.doStart(context, out);
_jettag_c_get_49_48.doEnd();
out.write("ResponseProcessor"); //$NON-NLS-1$
RuntimeTagElement _jettag_c_get_49_99 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_49_99); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_49_99.setRuntimeParent(_jettag_c_set_49_1);
_jettag_c_get_49_99.setTagInfo(_td_c_get_49_99);
_jettag_c_get_49_99.doStart(context, out);
_jettag_c_get_49_99.doEnd();
_jettag_c_set_49_1.handleBodyContent(out);
}
out = _jettag_c_set_49_1_saved_out;
_jettag_c_set_49_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_set_50_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_50_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_50_1.setRuntimeParent(null);
_jettag_c_set_50_1.setTagInfo(_td_c_set_50_1);
_jettag_c_set_50_1.doStart(context, out);
JET2Writer _jettag_c_set_50_1_saved_out = out;
while (_jettag_c_set_50_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_get_50_36 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_50_36); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_50_36.setRuntimeParent(_jettag_c_set_50_1);
_jettag_c_get_50_36.setTagInfo(_td_c_get_50_36);
_jettag_c_get_50_36.doStart(context, out);
_jettag_c_get_50_36.doEnd();
out.write("Error"); //$NON-NLS-1$
RuntimeTagElement _jettag_c_get_50_75 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_50_75); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_50_75.setRuntimeParent(_jettag_c_set_50_1);
_jettag_c_get_50_75.setTagInfo(_td_c_get_50_75);
_jettag_c_get_50_75.doStart(context, out);
_jettag_c_get_50_75.doEnd();
_jettag_c_set_50_1.handleBodyContent(out);
}
out = _jettag_c_set_50_1_saved_out;
_jettag_c_set_50_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_c_set_51_1 = context.getTagFactory().createRuntimeTag(_jetns_c, "set", "c:set", _td_c_set_51_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_set_51_1.setRuntimeParent(null);
_jettag_c_set_51_1.setTagInfo(_td_c_set_51_1);
_jettag_c_set_51_1.doStart(context, out);
JET2Writer _jettag_c_set_51_1_saved_out = out;
while (_jettag_c_set_51_1.okToProcessBody()) {
out = out.newNestedContentWriter();
RuntimeTagElement _jettag_c_get_51_34 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_51_34); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_51_34.setRuntimeParent(_jettag_c_set_51_1);
_jettag_c_get_51_34.setTagInfo(_td_c_get_51_34);
_jettag_c_get_51_34.doStart(context, out);
_jettag_c_get_51_34.doEnd();
out.write("Log"); //$NON-NLS-1$
RuntimeTagElement _jettag_c_get_51_71 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_51_71); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_get_51_71.setRuntimeParent(_jettag_c_set_51_1);
_jettag_c_get_51_71.setTagInfo(_td_c_get_51_71);
_jettag_c_get_51_71.doStart(context, out);
_jettag_c_get_51_71.doEnd();
_jettag_c_set_51_1.handleBodyContent(out);
}
out = _jettag_c_set_51_1_saved_out;
_jettag_c_set_51_1.doEnd();
out.write(NL);
out.write(NL);
com.ibm.etools.mft.pattern.mbi.plugin.PatternUtility.getPatternConfigurationFolderName(context, "patternConfigurationFolderName");
out.write(NL);
RuntimeTagElement _jettag_ws_project_55_1 = context.getTagFactory().createRuntimeTag(_jetns_ws, "project", "ws:project", _td_ws_project_55_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_project_55_1.setRuntimeParent(null);
_jettag_ws_project_55_1.setTagInfo(_td_ws_project_55_1);
_jettag_ws_project_55_1.doStart(context, out);
while (_jettag_ws_project_55_1.okToProcessBody()) {
out.write("\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_56_2 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_56_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_56_2.setRuntimeParent(_jettag_ws_project_55_1);
_jettag_ws_file_56_2.setTagInfo(_td_ws_file_56_2);
_jettag_ws_file_56_2.doStart(context, out);
_jettag_ws_file_56_2.doEnd();
out.write(NL);
out.write("\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_copyFile_58_2 = context.getTagFactory().createRuntimeTag(_jetns_ws, "copyFile", "ws:copyFile", _td_ws_copyFile_58_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_copyFile_58_2.setRuntimeParent(_jettag_ws_project_55_1);
_jettag_ws_copyFile_58_2.setTagInfo(_td_ws_copyFile_58_2);
_jettag_ws_copyFile_58_2.doStart(context, out);
_jettag_ws_copyFile_58_2.doEnd();
out.write(NL);
out.write(NL);
RuntimeTagElement _jettag_ws_folder_61_2 = context.getTagFactory().createRuntimeTag(_jetns_ws, "folder", "ws:folder", _td_ws_folder_61_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_folder_61_2.setRuntimeParent(_jettag_ws_project_55_1);
_jettag_ws_folder_61_2.setTagInfo(_td_ws_folder_61_2);
_jettag_ws_folder_61_2.doStart(context, out);
while (_jettag_ws_folder_61_2.okToProcessBody()) {
out.write("\t\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_copyFile_62_3 = context.getTagFactory().createRuntimeTag(_jetns_ws, "copyFile", "ws:copyFile", _td_ws_copyFile_62_3); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_copyFile_62_3.setRuntimeParent(_jettag_ws_folder_61_2);
_jettag_ws_copyFile_62_3.setTagInfo(_td_ws_copyFile_62_3);
_jettag_ws_copyFile_62_3.doStart(context, out);
_jettag_ws_copyFile_62_3.doEnd();
out.write(NL);
out.write("\t\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_copyFile_64_3 = context.getTagFactory().createRuntimeTag(_jetns_ws, "copyFile", "ws:copyFile", _td_ws_copyFile_64_3); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_copyFile_64_3.setRuntimeParent(_jettag_ws_folder_61_2);
_jettag_ws_copyFile_64_3.setTagInfo(_td_ws_copyFile_64_3);
_jettag_ws_copyFile_64_3.doStart(context, out);
_jettag_ws_copyFile_64_3.doEnd();
out.write(NL);
out.write("\t\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_copyFile_66_3 = context.getTagFactory().createRuntimeTag(_jetns_ws, "copyFile", "ws:copyFile", _td_ws_copyFile_66_3); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_copyFile_66_3.setRuntimeParent(_jettag_ws_folder_61_2);
_jettag_ws_copyFile_66_3.setTagInfo(_td_ws_copyFile_66_3);
_jettag_ws_copyFile_66_3.doStart(context, out);
_jettag_ws_copyFile_66_3.doEnd();
out.write(NL);
out.write("\t\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_copyFile_68_3 = context.getTagFactory().createRuntimeTag(_jetns_ws, "copyFile", "ws:copyFile", _td_ws_copyFile_68_3); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_copyFile_68_3.setRuntimeParent(_jettag_ws_folder_61_2);
_jettag_ws_copyFile_68_3.setTagInfo(_td_ws_copyFile_68_3);
_jettag_ws_copyFile_68_3.doStart(context, out);
_jettag_ws_copyFile_68_3.doEnd();
out.write(NL);
_jettag_ws_folder_61_2.handleBodyContent(out);
}
_jettag_ws_folder_61_2.doEnd();
_jettag_ws_project_55_1.handleBodyContent(out);
}
_jettag_ws_project_55_1.doEnd();
out.write(NL);
RuntimeTagElement _jettag_ws_project_73_1 = context.getTagFactory().createRuntimeTag(_jetns_ws, "project", "ws:project", _td_ws_project_73_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_project_73_1.setRuntimeParent(null);
_jettag_ws_project_73_1.setTagInfo(_td_ws_project_73_1);
_jettag_ws_project_73_1.doStart(context, out);
while (_jettag_ws_project_73_1.okToProcessBody()) {
out.write("\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_74_2 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_74_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_74_2.setRuntimeParent(_jettag_ws_project_73_1);
_jettag_ws_file_74_2.setTagInfo(_td_ws_file_74_2);
_jettag_ws_file_74_2.doStart(context, out);
_jettag_ws_file_74_2.doEnd();
out.write(NL);
out.write("\t \t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_75_5 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_75_5); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_75_5.setRuntimeParent(_jettag_ws_project_73_1);
_jettag_ws_file_75_5.setTagInfo(_td_ws_file_75_5);
_jettag_ws_file_75_5.doStart(context, out);
_jettag_ws_file_75_5.doEnd();
out.write(NL);
out.write(" \t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_76_4 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_76_4); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_76_4.setRuntimeParent(_jettag_ws_project_73_1);
_jettag_ws_file_76_4.setTagInfo(_td_ws_file_76_4);
_jettag_ws_file_76_4.doStart(context, out);
_jettag_ws_file_76_4.doEnd();
out.write(NL);
out.write(NL);
RuntimeTagElement _jettag_c_if_78_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "if", "c:if", _td_c_if_78_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_c_if_78_2.setRuntimeParent(_jettag_ws_project_73_1);
_jettag_c_if_78_2.setTagInfo(_td_c_if_78_2);
_jettag_c_if_78_2.doStart(context, out);
while (_jettag_c_if_78_2.okToProcessBody()) {
out.write("\t\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_79_3 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_79_3); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_79_3.setRuntimeParent(_jettag_c_if_78_2);
_jettag_ws_file_79_3.setTagInfo(_td_ws_file_79_3);
_jettag_ws_file_79_3.doStart(context, out);
_jettag_ws_file_79_3.doEnd();
out.write(" "); //$NON-NLS-1$
out.write(NL);
out.write("\t \t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_80_5 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_80_5); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_80_5.setRuntimeParent(_jettag_c_if_78_2);
_jettag_ws_file_80_5.setTagInfo(_td_ws_file_80_5);
_jettag_ws_file_80_5.doStart(context, out);
_jettag_ws_file_80_5.doEnd();
out.write(NL);
_jettag_c_if_78_2.handleBodyContent(out);
}
_jettag_c_if_78_2.doEnd();
out.write(NL);
out.write("\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_83_2 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_83_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_83_2.setRuntimeParent(_jettag_ws_project_73_1);
_jettag_ws_file_83_2.setTagInfo(_td_ws_file_83_2);
_jettag_ws_file_83_2.doStart(context, out);
_jettag_ws_file_83_2.doEnd();
out.write(NL);
out.write("\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_84_2 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_84_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_84_2.setRuntimeParent(_jettag_ws_project_73_1);
_jettag_ws_file_84_2.setTagInfo(_td_ws_file_84_2);
_jettag_ws_file_84_2.doStart(context, out);
_jettag_ws_file_84_2.doEnd();
out.write(NL);
out.write("\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_85_2 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_85_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_85_2.setRuntimeParent(_jettag_ws_project_73_1);
_jettag_ws_file_85_2.setTagInfo(_td_ws_file_85_2);
_jettag_ws_file_85_2.doStart(context, out);
_jettag_ws_file_85_2.doEnd();
out.write(NL);
out.write("\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_86_2 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_86_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_86_2.setRuntimeParent(_jettag_ws_project_73_1);
_jettag_ws_file_86_2.setTagInfo(_td_ws_file_86_2);
_jettag_ws_file_86_2.doStart(context, out);
_jettag_ws_file_86_2.doEnd();
out.write(NL);
out.write("\t"); //$NON-NLS-1$
RuntimeTagElement _jettag_ws_file_87_2 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_87_2); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_ws_file_87_2.setRuntimeParent(_jettag_ws_project_73_1);
_jettag_ws_file_87_2.setTagInfo(_td_ws_file_87_2);
_jettag_ws_file_87_2.doStart(context, out);
_jettag_ws_file_87_2.doEnd();
out.write(NL);
_jettag_ws_project_73_1.handleBodyContent(out);
}
_jettag_ws_project_73_1.doEnd();
}
}
| ot4i/message-splitter-mq-oneway-xml-pattern | src/com.ibm.etools.mft.pattern.mbi/jet2java/org/eclipse/jet/compiled/_jet_main_0.java | Java | epl-1.0 | 55,172 |
// This library is distributed in the hope that it will be useful but without
// any warranty; without even the implied warranty of merchantability or
// fitness for a particular purpose.
// The use and distribution terms for this software are covered by the Eclipse
// Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which
// can be found in the file epl-v10.html at the root of this distribution.
// By using this software in any fashion, you are agreeing to be bound by the
// terms of this license. You must not remove this notice, or any other, from
// this software.
// Copyright (c) 2013-2016, Ken Leung. All rights reserved.
#pragma once
//////////////////////////////////////////////////////////////////////////////
#include "x2d/XScene.h"
NS_BEGIN(@@APPID@@)
//////////////////////////////////////////////////////////////////////////////
//
struct CC_DLL Splash : public f::XScene {
__decl_create_scene(Splash)
__decl_deco_ui()
};
NS_END
| llnek/fusilli | etc/sample/p/Splash.h | C | epl-1.0 | 992 |
/*
* Sonatype Nexus (TM) Open Source Version
* Copyright (c) 2008-present Sonatype, Inc.
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
* which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
* of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
* Eclipse Foundation. All other trademarks are the property of their respective owners.
*/
package org.sonatype.nexus.security.user;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Validate user existence.
*
* @since 3.0
*/
@Target({FIELD, METHOD, PARAMETER, ANNOTATION_TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = UserExistsValidator.class)
public @interface UserExists
{
String message() default "Missing user";
Class<?>[] groups() default { };
Class<? extends Payload>[] payload() default { };
}
| sonatype/nexus-public | components/nexus-security/src/main/java/org/sonatype/nexus/security/user/UserExists.java | Java | epl-1.0 | 1,605 |
// Copyright (c) 1996-99 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted, provided that the above copyright notice
// and this paragraph appear in all copies. This software program and
// documentation are copyrighted by The Regents of the University of
// California. The software program and documentation are supplied "AS
// IS", without any accompanying services from The Regents. The Regents
// does not warrant that the operation of the program will be
// uninterrupted or error-free. The end-user understands that the program
// was developed for research purposes and is advised not to rely
// exclusively on the program for any reason. IN NO EVENT SHALL THE
// UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
// SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,
// ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
// THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
// PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
package org.argouml.uml.ui;
import java.util.Collection;
import javax.swing.JPopupMenu;
import org.argouml.model.uml.UmlFactory;
import ru.novosoft.uml.foundation.core.MAttribute;
import ru.novosoft.uml.foundation.core.MClassifier;
/**
* This class implements a list model for the attributes of a classifier.
* Used with a UMLList to display a list of attributes. Since attributes
* may be mixed with other model elements in the features of a classifier,
* this class implements a cache of attributes that are keep synchronized
* with the features of the current classifier.
*
* @author Curt Arnold
* @see UMLModelElementListModel
* @see UMLList
*/
public class UMLAttributesListModel extends UMLModelElementCachedListModel {
final private static String _nullLabel = "null";
private java.util.List _attributes;
/**
* Creates a new attribute list model
* @param container the container (typically a PropPanelClass or PropPanelInterface)
* that provides access to the target classifier.
* @param property a string that specifies the name of an event that should force a refresh
* of the list model. A null value will cause all events to trigger a refresh.
* @param showNone if true, an element labelled "none" will be shown where there are
* no actual entries in the list.
*/
public UMLAttributesListModel(UMLUserInterfaceContainer container,String property,boolean showNone) {
super(container,property,showNone);
}
/**
* Called to indicate that the cache of attributes may have become invalid.
*/
protected void resetCache() {
_attributes = null;
}
/**
* Called to determine if a particular feauture of the underlying collection
* should be in the cached list of model elements.
* @param obj object to be considered.
* @return true if object is appropriate for this list.
*/
public boolean isProperClass(Object obj) {
return obj instanceof MAttribute;
}
/**
* returns the raw underlying collection from the current target
* of the container.
*
* @return underlying collection.
*/
public Collection getRawCollection() {
Collection raw = null;
Object target = getTarget();
if(target instanceof MClassifier) {
raw = ((MClassifier) target).getFeatures();
}
return raw;
}
/**
* returns the cache of model elements, rebuilding the cache if invalidated.
* @return cache of model elements
*/
protected java.util.List getCache() {
if(_attributes == null) {
_attributes = buildCache();
}
return _attributes;
}
/**
* Adds a new attribute, updating both the cache and underlying collection
* and navigating to new attribute. Called by "Add" popup menu item.
* @param index position of new attribute (zero-based) but only refers
* to the index position in the particular list box, not the collection.
* @author Phil Sager July 18, 2001
* Modified: Dec 06, 2001 - thn
*/
public void add(int index){
Object target = getTarget();
if(target instanceof MClassifier) {
MClassifier classifier = (MClassifier) target;
Collection oldFeatures = classifier.getFeatures();
MAttribute newAttr = UmlFactory.getFactory().getCore().buildAttribute(classifier);
classifier.setFeatures(addElement(oldFeatures, index, newAttr,
_attributes.isEmpty()?null:_attributes.get(index)));
fireContentsChanged(this,index-1,index);
navigateTo(newAttr);
}
} // ...end of add()...
/**
* Deletes a specific attribute from both the cache and underlying
* collection.
* @param index position of attribute to be deleted.
*/
public void delete(int index) {
Object target = getTarget();
if(target instanceof MClassifier && _attributes != null) {
Object attribute = _attributes.get(index);
if(attribute != null) {
if(_attributes != null) {
_attributes.remove(index);
}
((MClassifier) target).removeFeature((MAttribute) attribute);
resetSize();
fireIntervalRemoved(this,index,index);
}
}
}
/**
* Moves attribute up in the underlying collection.
* @param index element to move up
*/
public void moveUp(int index) {
Object target = getTarget();
if(target instanceof MClassifier) {
MClassifier classifier = (MClassifier) target;
Collection oldFeatures = classifier.getFeatures();
classifier.setFeatures(swap(oldFeatures,index-1,_attributes.get(index-1),_attributes.get(index)));
fireContentsChanged(this,index-1,index);
}
}
/**
* Moves an attribute down in the underlying collection.
* @param index element to move down.
*/
public void moveDown(int index) {
Object target = getTarget();
if(target instanceof MClassifier) {
MClassifier classifier = (MClassifier) target;
Collection oldFeatures = classifier.getFeatures();
classifier.setFeatures(swap(oldFeatures,index,_attributes.get(index),_attributes.get(index+1)));
fireContentsChanged(this,index,index+1);
}
}
/**
* This method builds a context (pop-up) menu for the list.
*
* @param popup popup menu
* @param index index of selected list item
* @return "true" if popup menu should be displayed
*/
public boolean buildPopup(JPopupMenu popup,int index) {
UMLUserInterfaceContainer container = getContainer();
UMLListMenuItem open = new UMLListMenuItem(container.localize("Open"),this,"open",index);
UMLListMenuItem delete = new UMLListMenuItem(container.localize("Delete"),this,"delete",index);
if(getModelElementSize() <= 0) {
open.setEnabled(false);
delete.setEnabled(false);
}
popup.add(open);
UMLListMenuItem add =new UMLListMenuItem(container.localize("New"),this,"add",index);
if(_upper >= 0 && getModelElementSize() >= _upper) {
add.setEnabled(false);
}
popup.add(add);
popup.add(delete);
/*
UMLListMenuItem moveUp = new UMLListMenuItem(container.localize("Move Up"),this,"moveUp",index);
if(index == 0) moveUp.setEnabled(false);
popup.add(moveUp);
UMLListMenuItem moveDown = new UMLListMenuItem(container.localize("Move Down"),this,"moveDown",index);
if(index == getSize()-1) moveDown.setEnabled(false);
popup.add(moveDown);
*/
return true;
}
}
| argocasegeo/argocasegeo | src/org/argouml/uml/ui/UMLAttributesListModel.java | Java | epl-1.0 | 8,775 |
# airpair-clj-spark-introduction
## Usage
Setup the following environment variables in your shell with your *own* values:
```
set -x DUCK_AUTH_TOKEN InWgapQLxFQhCXFt7hST
set -x APP_CONSUMER_KEY TQD9cjDFrA
set -x APP_CONSUMER_SECRET 3H05OVI80mFbQ6xO8FmH
set -x USER_ACCESS_TOKEN 12343123-tViU5KEmN3Xzu
set -x USER_ACCESS_TOKEN_SECRET eFLd7g3pnjFJEBAXK5sLincV
```
Mine the twitter data by running:
```
lein mine
```
Run the few manipulations and posting to Ducksboard:
```
lein run
```
## License
Copyright © 2014 Sébastien Arnaud
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.
| arnaudsj/airpair-clj-spark-introduction | README.md | Markdown | epl-1.0 | 642 |
/*************************************************************************
*** FORTE Library Element
***
*** This file was generated using the 4DIAC FORTE Export Filter V1.0.x!
***
*** Name: CTRL_TPID
*** Description: Composite Function Block Type
*** Version:
*** 0.0: 2016-02-08/EQUEROL - UJI_ESID -
*************************************************************************/
#include "CTRL_TPID.h"
#ifdef FORTE_ENABLE_GENERATED_SOURCE_CPP
#include "CTRL_TPID_gen.cpp"
#endif
DEFINE_FIRMWARE_FB(FORTE_CTRL_TPID, g_nStringIdCTRL_TPID)
const CStringDictionary::TStringId FORTE_CTRL_TPID::scm_anDataInputNames[] = {g_nStringIdT, g_nStringIdYref, g_nStringIdYm, g_nStringIdU_MAX, g_nStringIdU_MIN, g_nStringIdKP, g_nStringIdTD, g_nStringIdTI, g_nStringIdN, g_nStringIdBP, g_nStringIdBD};
const CStringDictionary::TStringId FORTE_CTRL_TPID::scm_anDataInputTypeIds[] = {g_nStringIdTIME, g_nStringIdREAL, g_nStringIdREAL, g_nStringIdREAL, g_nStringIdREAL, g_nStringIdREAL, g_nStringIdREAL, g_nStringIdREAL, g_nStringIdREAL, g_nStringIdREAL, g_nStringIdREAL};
const CStringDictionary::TStringId FORTE_CTRL_TPID::scm_anDataOutputNames[] = {g_nStringIdQO, g_nStringIdStatus, g_nStringIdu};
const CStringDictionary::TStringId FORTE_CTRL_TPID::scm_anDataOutputTypeIds[] = {g_nStringIdBOOL, g_nStringIdSTRING, g_nStringIdREAL};
const TForteInt16 FORTE_CTRL_TPID::scm_anEIWithIndexes[] = {0, 12};
const TDataIOID FORTE_CTRL_TPID::scm_anEIWith[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 255};
const CStringDictionary::TStringId FORTE_CTRL_TPID::scm_anEventInputNames[] = {g_nStringIdINIT, g_nStringIdStop};
const TDataIOID FORTE_CTRL_TPID::scm_anEOWith[] = {0, 1, 255, 2, 255};
const TForteInt16 FORTE_CTRL_TPID::scm_anEOWithIndexes[] = {0, 3, -1};
const CStringDictionary::TStringId FORTE_CTRL_TPID::scm_anEventOutputNames[] = {g_nStringIdINITO, g_nStringIdIND};
const SFBInterfaceSpec FORTE_CTRL_TPID::scm_stFBInterfaceSpec = {
2, scm_anEventInputNames, scm_anEIWith, scm_anEIWithIndexes,
2, scm_anEventOutputNames, scm_anEOWith, scm_anEOWithIndexes, 11, scm_anDataInputNames, scm_anDataInputTypeIds,
3, scm_anDataOutputNames, scm_anDataOutputTypeIds,
0, 0
};
const SCFB_FBInstanceData FORTE_CTRL_TPID::scm_astInternalFBs[] = {
{g_nStringIdE_CYCLE, g_nStringIdE_CYCLE},
{g_nStringIdF_TIME_TO_REAL, g_nStringIdF_TIME_TO_REAL},
{g_nStringIdCTRL_TPID_ALG, g_nStringIdCTRL_TPID_ALG},
};
const SCFB_FBConnectionData FORTE_CTRL_TPID::scm_astEventConnections[] = {
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdStop), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdE_CYCLE, g_nStringIdSTOP), 0},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdINIT), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdF_TIME_TO_REAL, g_nStringIdREQ), 1},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdE_CYCLE, g_nStringIdEO), 0, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdREQ), 2},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdINITO), 2, GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdINITO), -1},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdEO), 2, GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdIND), -1},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdF_TIME_TO_REAL, g_nStringIdCNF), 1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdINIT), 2},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdStart), 2, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdE_CYCLE, g_nStringIdSTART), 0},
};
const SCFB_FBFannedOutConnectionData FORTE_CTRL_TPID::scm_astFannedOutEventConnections[] = {
{0, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdStop), 2},
};
const SCFB_FBConnectionData FORTE_CTRL_TPID::scm_astDataConnections[] = {
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdT), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdE_CYCLE, g_nStringIdDT), 0},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdYref), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdyref), 2},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdF_TIME_TO_REAL, g_nStringIdOUT), 1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdT), 2},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdYm), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdym), 2},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdU_MAX), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdU_MAX), 2},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdU_MIN), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdU_MIN), 2},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdKP), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdKP), 2},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdTD), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdTD), 2},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdTI), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdTI), 2},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdN), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdN), 2},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdBP), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdBP), 2},
{GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdBD), -1, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdBD), 2},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdu), 2, GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdu), -1},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdStatus), 2, GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdStatus), -1},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdCTRL_TPID_ALG, g_nStringIdQO), 2, GENERATE_CONNECTION_PORT_ID_1_ARG(g_nStringIdQO), -1},
};
const SCFB_FBFannedOutConnectionData FORTE_CTRL_TPID::scm_astFannedOutDataConnections[] = {
{0, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdF_TIME_TO_REAL, g_nStringIdIN), 1},
};
const SCFB_FBNData FORTE_CTRL_TPID::scm_stFBNData = {
3, scm_astInternalFBs,
7, scm_astEventConnections,
1, scm_astFannedOutEventConnections,
15, scm_astDataConnections,
1, scm_astFannedOutDataConnections,
0, 0
};
| EstebanQuerol/Black_FORTE | src/modules/ESID_AUTO_FBs/Controllers/CTRL_TPID.cpp | C++ | epl-1.0 | 6,344 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="copyright" content="(C) Copyright 2010"/>
<meta name="DC.rights.owner" content="(C) Copyright 2010"/>
<meta name="DC.Type" content="cxxFile"/>
<meta name="DC.Title" content="api_ext_msg.h"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="GUID-A13D0BFA-F8D4-361B-9C95-0EC1FAD2190B"/>
<title>api_ext_msg.h</title>
<link type="text/css" rel="stylesheet" href="css/common.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="css/sdl.css" media="screen"/>
<!--[if IE]>
<link href="css/iefix.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
<meta name="keywords" content="api"/><link rel="stylesheet" type="text/css" href="cxxref.css"/></head>
<body class="cxxref" id="GUID-A13D0BFA-F8D4-361B-9C95-0EC1FAD2190B"><a name="GUID-A13D0BFA-F8D4-361B-9C95-0EC1FAD2190B"><!-- --></a>
<?php include_once (CURRENT_SKIN_PATH.'/sdl_header.html'); ?>
<div id="sdl_container">
<div id="leftMenu">
<div id="expandcontractdiv">
<a id="collapseTree" href="javascript:tree.collapseAll()">Collapse all</a>
<a id="index" href="index.html">Symbian^3 Product Developer Library</a>
</div>
<iframe style="border:none" height="800" width="300" src="index-toc.html"></iframe>
<div id="treeDiv1"> </div>
<script type="text/javascript">
var currentIconMode = 0; window.name="id2437088 id2437096 id2578593 id2611716 id2446904 id2446909 ";
YAHOO.util.Event.onDOMReady(buildTree, this,true);
</script>
</div>
<div id="sdl_content">
<div class="breadcrumb"><a href="index.html" title="Symbian^3 Product Developer Library">Symbian^3 Product Developer Library</a> ></div>
<h1 class="topictitle1">api_ext_msg.h File Reference</h1>
<div class="nested1" id="GUID-228AD305-F4F0-3C58-A652-4DDF856F0162"><a name="GUID-228AD305-F4F0-3C58-A652-4DDF856F0162"><!-- --></a>
<h2 class="topictitle2">Typedef TSubSessionUniqueId</h2>
<table class="signature"><tr><td>typedef
<a href="GUID-1CDF9B91-DBA5-323C-A7D6-E8690345FAF2.html">Den::TSubSessionUniqueId</a>
</td><td>TSubSessionUniqueId</td></tr></table><div class="section"></div>
</div>
<p class="copyright">Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).<br /> All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the <a href=" http://www.eclipse.org/legal/epl-v10.html"> Eclipse Public License
v1.0</a>.</p>
</div>
</div>
<?php include_once (CURRENT_SKIN_PATH.'/sdl_footer.html'); ?>
</body>
</html> | warlordh/fork_Symbian | pdk/GUID-A13D0BFA-F8D4-361B-9C95-0EC1FAD2190B.html | HTML | epl-1.0 | 2,800 |
/* $Id: memory.c,v 1.4 2011/01/25 16:30:49 ellson Exp $ $Revision: 1.4 $ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
#include "geometry.h"
#include "render.h"
typedef struct freenode {
struct freenode *nextfree;
} Freenode;
typedef struct freeblock {
struct freeblock *next;
struct freenode *nodes;
} Freeblock;
#include "mem.h"
#include <stdlib.h>
#include <stdio.h>
static int gcd(int y, int x)
{
while (x != y) {
if (y < x)
x = x - y;
else
y = y - x;
}
return x;
}
#define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y)))
void freeinit(Freelist * fl, int size)
{
fl->head = NULL;
fl->nodesize = LCM(size, sizeof(Freenode));
if (fl->blocklist != NULL) {
Freeblock *bp, *np;
bp = fl->blocklist;
while (bp != NULL) {
np = bp->next;
free(bp->nodes);
free(bp);
bp = np;
}
}
fl->blocklist = NULL;
}
void *getfree(Freelist * fl)
{
int i;
Freenode *t;
Freeblock *mem;
if (fl->head == NULL) {
int size = fl->nodesize;
char *cp;
mem = GNEW(Freeblock);
mem->nodes = gmalloc(sqrt_nsites * size);
cp = (char *) (mem->nodes);
for (i = 0; i < sqrt_nsites; i++) {
makefree(cp + i * size, fl);
}
mem->next = fl->blocklist;
fl->blocklist = mem;
}
t = fl->head;
fl->head = t->nextfree;
return ((void *) t);
}
void makefree(void *curr, Freelist * fl)
{
((Freenode *) curr)->nextfree = fl->head;
fl->head = (Freenode *) curr;
}
| tomgr/graphviz-cmake | lib/neatogen/memory.c | C | epl-1.0 | 1,986 |
/*******************************************************************************
* Copyright (c) 2016 Florian Zoubek.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Florian Zoubek - initial API and implementation
*******************************************************************************/
package at.bitandart.zoubek.mervin.review.explorer;
import java.util.Comparator;
import org.eclipse.emf.compare.DifferenceKind;
/**
* A {@link Comparator} that compares {@link Object}s based on the given
* {@link IDifferenceCounter}.
*
* @author Florian Zoubek
*
*/
public class DiffCounterComparator implements Comparator<Object> {
private IDifferenceCounter diffCounter;
private DifferenceKind kind;
/**
* creates a new {@link DiffCounterComparator} that compares based on the
* number of differences of two objects.
*
* @param diffCounter
* the {@link IDifferenceCounter} that provides the difference
* count for the objects to compare.
*/
public DiffCounterComparator(IDifferenceCounter diffCounter) {
this.diffCounter = diffCounter;
}
/**
*
* creates a new {@link DiffCounterComparator} that compares based on the
* number of differences of the given kind of two objects.
*
* @param diffCounter
* the {@link IDifferenceCounter} that provides the difference
* count for the objects to compare.
* @param kind
* the difference kind to restrict the comparison to, pass null
* for no restriction.
*/
public DiffCounterComparator(IDifferenceCounter diffCounter, DifferenceKind kind) {
this.diffCounter = diffCounter;
this.kind = kind;
}
@Override
public int compare(Object o1, Object o2) {
int diff = 0;
if (kind != null) {
diff = diffCounter.getDiffCount(o1, kind) - diffCounter.getDiffCount(o2, kind);
} else {
diff = diffCounter.getDiffCount(o1) - diffCounter.getDiffCount(o2);
}
return diff;
}
}
| theArchonius/mervin | plugins/at.bitandart.zoubek.mervin/src/at/bitandart/zoubek/mervin/review/explorer/DiffCounterComparator.java | Java | epl-1.0 | 2,173 |
/*********************************************************************
* Copyright (c) 2019 Red Hat, Inc.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
import { injectable, inject } from 'inversify';
import { CLASSES } from '../../inversify.types';
import { DriverHelper } from '../../utils/DriverHelper';
import { TestConstants } from '../../TestConstants';
import { By } from 'selenium-webdriver';
import { Logger } from '../../utils/Logger';
@injectable()
export class RightToolbar {
constructor(@inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper) { }
async waitToolbar(timeout: number = TestConstants.TS_SELENIUM_DEFAULT_TIMEOUT) {
Logger.debug('RightToolbar.waitToolbar');
await this.driverHelper.waitVisibility(By.css('div.theia-app-right'), timeout);
}
async clickOnToolIcon(iconTitle: string, timeout: number = TestConstants.TS_SELENIUM_DEFAULT_TIMEOUT) {
Logger.debug(`RightToolbar.clickOnToolIcon "${iconTitle}"`);
const toolIconLocator: By = By.css(`div.theia-app-right .p-TabBar-content li[title='${iconTitle}']`);
await this.driverHelper.waitAndClick(toolIconLocator, timeout);
}
}
| davidfestal/che | e2e/pageobjects/ide/RightToolbar.ts | TypeScript | epl-1.0 | 1,438 |
"""Tests to ensure that the html5lib tree builder generates good trees."""
import warnings
try:
from bs4.builder import HTML5TreeBuilder
HTML5LIB_PRESENT = True
except ImportError, e:
HTML5LIB_PRESENT = False
from bs4.element import SoupStrainer
from bs4.testing import (
HTML5TreeBuilderSmokeTest,
SoupTest,
skipIf,
)
@skipIf(
not HTML5LIB_PRESENT,
"html5lib seems not to be present, not testing its tree builder.")
class HTML5LibBuilderSmokeTest(SoupTest, HTML5TreeBuilderSmokeTest):
"""See ``HTML5TreeBuilderSmokeTest``."""
@property
def default_builder(self):
return HTML5TreeBuilder
def test_soupstrainer(self):
# The html5lib tree builder does not support SoupStrainers.
strainer = SoupStrainer("b")
markup = "<p>A <b>bold</b> statement.</p>"
with warnings.catch_warnings(record=True) as w:
soup = self.soup(markup, parse_only=strainer)
self.assertEqual(
soup.decode(), self.document_for(markup))
self.assertTrue(
"the html5lib tree builder doesn't support parse_only" in
str(w[0].message))
def test_correctly_nested_tables(self):
"""html5lib inserts <tbody> tags where other parsers don't."""
markup = ('<table id="1">'
'<tr>'
"<td>Here's another table:"
'<table id="2">'
'<tr><td>foo</td></tr>'
'</table></td>')
self.assertSoupEquals(
markup,
'<table id="1"><tbody><tr><td>Here\'s another table:'
'<table id="2"><tbody><tr><td>foo</td></tr></tbody></table>'
'</td></tr></tbody></table>')
self.assertSoupEquals(
"<table><thead><tr><td>Foo</td></tr></thead>"
"<tbody><tr><td>Bar</td></tr></tbody>"
"<tfoot><tr><td>Baz</td></tr></tfoot></table>")
def test_xml_declaration_followed_by_doctype(self):
markup = '''<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>foo</p>
</body>
</html>'''
soup = self.soup(markup)
# Verify that we can reach the <p> tag; this means the tree is connected.
self.assertEqual(b"<p>foo</p>", soup.p.encode())
def test_reparented_markup(self):
markup = '<p><em>foo</p>\n<p>bar<a></a></em></p>'
soup = self.soup(markup)
self.assertEqual(u"<body><p><em>foo</em></p><em>\n</em><p><em>bar<a></a></em></p></body>", soup.body.decode())
self.assertEqual(2, len(soup.find_all('p')))
def test_reparented_markup_ends_with_whitespace(self):
markup = '<p><em>foo</p>\n<p>bar<a></a></em></p>\n'
soup = self.soup(markup)
self.assertEqual(u"<body><p><em>foo</em></p><em>\n</em><p><em>bar<a></a></em></p>\n</body>", soup.body.decode())
self.assertEqual(2, len(soup.find_all('p')))
def test_reparented_markup_containing_identical_whitespace_nodes(self):
"""Verify that we keep the two whitespace nodes in this
document distinct when reparenting the adjacent <tbody> tags.
"""
markup = '<table> <tbody><tbody><ims></tbody> </table>'
soup = self.soup(markup)
space1, space2 = soup.find_all(string=' ')
tbody1, tbody2 = soup.find_all('tbody')
assert space1.next_element is tbody1
assert tbody2.next_element is space2
def test_reparented_markup_containing_children(self):
markup = '<div><a>aftermath<p><noscript>target</noscript>aftermath</a></p></div>'
soup = self.soup(markup)
noscript = soup.noscript
self.assertEqual("target", noscript.next_element)
target = soup.find(string='target')
# The 'aftermath' string was duplicated; we want the second one.
final_aftermath = soup.find_all(string='aftermath')[-1]
# The <noscript> tag was moved beneath a copy of the <a> tag,
# but the 'target' string within is still connected to the
# (second) 'aftermath' string.
self.assertEqual(final_aftermath, target.next_element)
self.assertEqual(target, final_aftermath.previous_element)
def test_processing_instruction(self):
"""Processing instructions become comments."""
markup = b"""<?PITarget PIContent?>"""
soup = self.soup(markup)
assert str(soup).startswith("<!--?PITarget PIContent?-->")
def test_cloned_multivalue_node(self):
markup = b"""<a class="my_class"><p></a>"""
soup = self.soup(markup)
a1, a2 = soup.find_all('a')
self.assertEqual(a1, a2)
assert a1 is not a2
def test_foster_parenting(self):
markup = b"""<table><td></tbody>A"""
soup = self.soup(markup)
self.assertEqual(u"<body>A<table><tbody><tr><td></td></tr></tbody></table></body>", soup.body.decode())
def test_extraction(self):
"""
Test that extraction does not destroy the tree.
https://bugs.launchpad.net/beautifulsoup/+bug/1782928
"""
markup = """
<html><head></head>
<style>
</style><script></script><body><p>hello</p></body></html>
"""
soup = self.soup(markup)
[s.extract() for s in soup('script')]
[s.extract() for s in soup('style')]
self.assertEqual(len(soup.find_all("p")), 1)
def test_empty_comment(self):
"""
Test that empty comment does not break structure.
https://bugs.launchpad.net/beautifulsoup/+bug/1806598
"""
markup = """
<html>
<body>
<form>
<!----><input type="text">
</form>
</body>
</html>
"""
soup = self.soup(markup)
inputs = []
for form in soup.find_all('form'):
inputs.extend(form.find_all('input'))
self.assertEqual(len(inputs), 1)
def test_tracking_line_numbers(self):
# The html.parser TreeBuilder keeps track of line number and
# position of each element.
markup = "\n <p>\n\n<sourceline>\n<b>text</b></sourceline><sourcepos></p>"
soup = self.soup(markup)
self.assertEqual(2, soup.p.sourceline)
self.assertEqual(5, soup.p.sourcepos)
self.assertEqual("sourceline", soup.p.find('sourceline').name)
# You can deactivate this behavior.
soup = self.soup(markup, store_line_numbers=False)
self.assertEqual("sourceline", soup.p.sourceline.name)
self.assertEqual("sourcepos", soup.p.sourcepos.name)
| listyque/TACTIC-Handler | thlib/side/bs42/tests/test_html5lib.py | Python | epl-1.0 | 6,494 |
Pikaman
=======
Pikaman
| zachcac/Pikaman | README.md | Markdown | epl-1.0 | 25 |
# Unit Generator Compositions
## Goal
I intend to learn all of the SuperCollider Unit generators. Learning about SuperCollider and digital signal processing is not the primary goal of this excercise however. A practical knowlege of SuperCollider and digital signal processing will be very beneficial, but I really hope to acheive a strong set of material on which to base larger compositions and also work on focus. I feel somewhat contradicting, because I still want to work on my music notation program, and I will, but jumping back and forth on a whim won't be an option. Useless distractions will be off limits. The aim is to acheive one composition per day. That will definately slip. Some days no work will be possible. I hope that other days I'll be able to get more than one complete. I don't want to rush anything though. If the focus of a composition is more interesting then it will get more time.
This is also going to be an opourtunity to work on writing and explanation. Everything should be well commented and all choices and inputs should be explained.
| srmullen/sounds | src/sounds/ugen_comps/README.md | Markdown | epl-1.0 | 1,072 |
package com.redhat.ceylon.eclipse.core.model;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.IClassFile;
import org.eclipse.jdt.core.IJavaElement;
import com.redhat.ceylon.model.typechecker.model.Declaration;
import com.redhat.ceylon.model.typechecker.model.Package;
import com.redhat.ceylon.eclipse.core.typechecker.ExternalPhasedUnit;
/*
* Created inside the JDTModelLoader.getCompiledUnit() function if the unit is a ceylon one
*/
public class CeylonBinaryUnit extends CeylonUnit implements IJavaModelAware {
IClassFile classFileElement;
CeylonToJavaMatcher ceylonToJavaMatcher;
public CeylonBinaryUnit(IClassFile typeRoot, String fileName, String relativePath, String fullPath, Package pkg) {
super();
this.classFileElement = typeRoot;
ceylonToJavaMatcher = new CeylonToJavaMatcher(typeRoot);
setFilename(fileName);
setRelativePath(relativePath);
setFullPath(fullPath);
setPackage(pkg);
}
/*
* Might be null if no source is linked to this ModelLoader-originating unit
*
* (non-Javadoc)
* @see com.redhat.ceylon.eclipse.core.model.CeylonUnit#getPhasedUnit()
*/
@Override
public ExternalPhasedUnit getPhasedUnit() {
return (ExternalPhasedUnit) super.getPhasedUnit();
}
public IClassFile getTypeRoot() {
return classFileElement;
}
public IProject getProject() {
if (getTypeRoot() != null) {
return (IProject) getTypeRoot().getJavaProject().getProject();
}
return null;
}
@Override
protected ExternalPhasedUnit setPhasedUnitIfNecessary() {
ExternalPhasedUnit phasedUnit = null;
if (phasedUnitRef != null) {
phasedUnit = (ExternalPhasedUnit) phasedUnitRef.get();
}
if (phasedUnit == null) {
try {
JDTModule module = getModule();
if (module.getArtifact() != null) {
String binaryUnitRelativePath = getFullPath().replace(module.getArtifact().getPath() + "!/", "");
String sourceUnitRelativePath = module.toSourceUnitRelativePath(binaryUnitRelativePath);
if (sourceUnitRelativePath != null) {
phasedUnit = (ExternalPhasedUnit) module.getPhasedUnitFromRelativePath(sourceUnitRelativePath);
}
}
} catch(Exception e) {
e.printStackTrace();
}
}
return phasedUnit != null ? createPhasedUnitRef(phasedUnit) : null;
}
@Override
public String getSourceFileName() {
String sourceRelativePath = getSourceRelativePath();
if (sourceRelativePath == null) {
return null;
}
String[] pathElements = sourceRelativePath.split("/");
return pathElements[pathElements.length-1];
}
@Override
public String getSourceRelativePath() {
return getModule().toSourceUnitRelativePath(getRelativePath());
}
@Override
public String getSourceFullPath() {
String sourceArchivePath = getModule().getSourceArchivePath();
if (sourceArchivePath == null) {
return null;
}
return sourceArchivePath + "!/" + getSourceRelativePath();
}
@Override
public String getCeylonSourceRelativePath() {
return getModule().getCeylonDeclarationFile(getSourceRelativePath());
}
@Override
public String getCeylonSourceFullPath() {
String sourceArchivePath = getModule().getSourceArchivePath();
if (sourceArchivePath == null) {
return null;
}
return sourceArchivePath + "!/" + getCeylonSourceRelativePath();
}
@Override
public IJavaElement toJavaElement(Declaration ceylonDeclaration, IProgressMonitor monitor) {
return ceylonToJavaMatcher.searchInClass(ceylonDeclaration, monitor);
}
@Override
public IJavaElement toJavaElement(Declaration ceylonDeclaration) {
return ceylonToJavaMatcher.searchInClass(ceylonDeclaration, null);
}
@Override
public String getCeylonFileName() {
String ceylonSourceRelativePath = getCeylonSourceRelativePath();
if (ceylonSourceRelativePath == null || ceylonSourceRelativePath.isEmpty()) {
return null;
}
String[] splitedPath = ceylonSourceRelativePath.split("/");
return splitedPath[splitedPath.length-1];
}
}
| rohitmohan96/ceylon-ide-eclipse | plugins/com.redhat.ceylon.eclipse.ui/src/com/redhat/ceylon/eclipse/core/model/CeylonBinaryUnit.java | Java | epl-1.0 | 4,602 |
/**
*
*/
package com.googlecode.pennybank.swing.view.category;
import javax.swing.JComboBox;
import com.googlecode.pennybank.App;
import com.googlecode.pennybank.model.category.entity.Category;
import com.googlecode.pennybank.swing.controller.category.CategoryComboBoxListener;
import com.googlecode.pennybank.swing.view.util.MessageManager;
/**
* Combo box extension which allow an user to pick up between the existing
* categories, choose a non-categorized option, or create a new one
*
* @author spenap
*/
@SuppressWarnings("serial")
public class CategoriesComboBox extends JComboBox {
/**
* Creates a combo box populated with the existing categories, following the
* conventions of a pop up menu.
*/
public CategoriesComboBox() {
this.putClientProperty("JComboBox.isPopDown", Boolean.FALSE);
updateModel();
addActionListener(new CategoryComboBoxListener(this));
}
/**
* Updates the combo box contents
*/
public void updateModel() {
this.removeAllItems();
this.addItem(MessageManager.getMessage("Category.Uncategorized"));
for (Category category : App.getCategories()) {
this.addItem(category.getName());
}
this.addItem(MessageManager.getMessage("Category.New"));
}
}
| spenap/pennybank | src/main/java/com/googlecode/pennybank/swing/view/category/CategoriesComboBox.java | Java | epl-1.0 | 1,220 |
package de.ptb.epics.eve.editor;
import org.apache.log4j.Logger;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.ISelectionListener;
import org.eclipse.ui.IWorkbenchPart;
/**
*
*
* @author Marcus Michalsky
* @since 1.1
*/
public class SelectionTracker implements ISelectionListener {
private static Logger logger =
Logger.getLogger(SelectionTracker.class.getName());
/**
* {@inheritDoc}
*/
@Override
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
logger.debug("selection changed. Part: " + part.getTitle() +
" Selected Item: " + selection.toString());
}
} | eveCSS/eveCSS | bundles/de.ptb.epics.eve.editor/src/de/ptb/epics/eve/editor/SelectionTracker.java | Java | epl-1.0 | 633 |
package com.onexy.pss.service.impl;
import java.util.List;
import com.onexy.pss.domain.Employee;
import com.onexy.pss.service.IEmployeeService;
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements
IEmployeeService {
@Override
public boolean findByName(String name) {
String hql = "select count(o) from Employee o where o.name = ?";
List<Long> result = baseDao.findByHql(hql, name);
if (result.get(0).intValue() > 0) {
logger.info("用户名已存在");
return false;
}
logger.info("用户名不存在");
return true;
}
@Override
public Employee findForLogin(String username, String password) {
String hql = "select o from Employee o where o.name=? and o.password=?";
List<Employee> list = baseDao.findByHql(hql, username, password);
if (list.size()>0) {
return list.get(0);
}
return null;
}
@Override
public List<String> getAllResourceMethods() {
return baseDao.findByHql("select o.method from Resource o");
}
@Override
public List<String> findMethodsByLoginUser(Long id) {
String hql = "select distinct res.method from Employee o join o.roles r join r.resources res where o.id = ?";
return baseDao.findByHql(hql, id);
}
@Override
public List<Employee> findBuerysByDeptName(String deptName) {
String hql = "select e from Employee e where e.department.name=?";
return baseDao.findByHql(hql, deptName);
}
@Override
public List<Employee> findKeepersByDeptName(String deptName) {
String hql = "select e from Employee e where e.department.name=?";
return baseDao.findByHql(hql, deptName);
}
}
| OneXY/pss | src/main/java/com/onexy/pss/service/impl/EmployeeServiceImpl.java | Java | epl-1.0 | 1,588 |
org.eclipse.papyrus.training.library.hyperlink
=======================================
This plugin show how to contribute a hyperlink rule
[](https://gitpitch.com/bmaggi/library-training?p=org.eclipse.papyrus.training.library.hyperlink)
This example will provide an hyperlink contribution that will allow to *jump* from a book to its borrower
(Hyperlink allows to redirect the user when double clicking on an element in a diagram)
## How to code:
- create the plug-in
- contribute to the following extension point *org.eclipse.papyrus.infra.hyperlink.hyperlinkContributor* in [plugin.xml](plugin.xml)
- add the reference to the contributor *org.eclipse.papyrus.training.library.hyperlink.BookToBorrowerHyperlinkContributor*
(the class that will implements the hyperlink)
- create the class *org.eclipse.papyrus.training.library.hyperlink.BookToBorrowerHyperlinkContributor* that should implments *org.eclipse.papyrus.infra.hyperlink.service.HyperlinkContributor*
- the *meaningful* code is in ```List<HyperLinkObject> getHyperlinks(Object object)``` method
- there are 4 implementations of HyperLinkObject that should be used to wrap the target element:
- HyperLinkDocument: wrap a file reference
- HyperLinkWeb: wrap a web hyperlink
- HyperLinkEditor: wrap a specific diagram/table (:warning: needs to be confirmed)
- HyperLinkSpecificObject: wrap an EObject
- use the last one for referring the borrower (and copy/paste the code from [BookToBorrowerHyperlinkContributor] (src/org/eclipse/papyrus/training/library/hyperlink/BookToBorrowerHyperlinkContributor.java))
## How to test
Create a diagram with a borrower and a book
Link the borrower to the book with a borrowing link
Double click on the book
=> the hyperlink should redirect you on the borrower
| bmaggi/library-training | org.eclipse.papyrus.training.library.hyperlink/README.md | Markdown | epl-1.0 | 1,845 |
# play-with-cheshire
A Clojure library designed to ... well, that part is up to you.
## Usage
FIXME
## License
Copyright © 2013 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.
| simon-katz/nomis-play-with-cheshire | README.md | Markdown | epl-1.0 | 244 |
/**
* Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.eclipse.smarthome.binding.digitalstrom.internal.digitalSTROMLibary.digitalSTROMStructure;
/**
* Copyright (c) 2010-2014, openHAB.org and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
import java.util.List;
/**
* @author Alexander Betker
* @since 1.3.0
*/
public interface DetailedGroupInfo extends Group {
public List<String> getDeviceList();
}
| maieralex/smarthome | extensions/binding/org.eclipse.smarthome.binding.digitalstrom/src/main/java/org/eclipse/smarthome/binding/digitalstrom/internal/digitalSTROMLibary/digitalSTROMStructure/DetailedGroupInfo.java | Java | epl-1.0 | 910 |
using EAAddInBase.MDGBuilder;
using System;
using System.Collections.Generic;
using Color = System.Drawing.Color;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EAAddInBase.Utils;
namespace ADMentor.ADTechnology
{
public static class SolutionSpace
{
public sealed class OptionState : Enumeration
{
public static readonly OptionState Eligible = new OptionState("Eligible", Color.LightYellow);
public static readonly OptionState Tentative = new OptionState("Tentative", Color.Khaki);
public static readonly OptionState Chosen = new OptionState("Chosen", Color.LightGreen);
public static readonly OptionState Neglected = new OptionState("Neglected", Color.LightGray);
public static readonly OptionState Challenged = new OptionState("Challenged", Color.Khaki);
public static readonly IEnumerable<OptionState> AllStates = new OptionState[] {
Eligible, Tentative, Chosen, Neglected, Challenged
};
private OptionState(String name, Color color)
: base(name)
{
Color = color;
}
public Color Color { get; private set; }
}
public static readonly TaggedValueDefinition OptionStateTag = new TaggedValueDefinition(
name: "Option State",
description: "Option State",
type: TaggedValueTypes.Enum(values: OptionState.AllStates).WithDefaultValue(OptionState.Eligible));
public static readonly ElementStereotype OptionOccurrence = new ElementStereotype(
name: "adOptionOccurrence",
displayName: "Option Occurrence",
type: ElementType.Object,
icon: new Icon("ADMentor.ADTechnology.OptionOccurrence.bmp"),
shapeScript: String.Format(@"
shape main{{
h_align = ""center"";
v_align = ""center"";
{0}
roundrect(0,0,100,100,30,30);
println(""(#TAG:{1}#)"");
if(HasProperty(""name"", """")){{
if(HasProperty(""classifier.name"", """")){{
}} else {{
Println(""#classifier.name#"");
}}
}}else{{
Print(""#name#"");
}}
}}",
GenerateFillColors(OptionStateTag.Name, OptionState.AllStates.ToDictionary(ds => ds.Name, ds => ds.Color)),
OptionStateTag.Name),
width: 100,
height: 70,
taggedValues: new TaggedValueDefinition[]{
OptionStateTag
});
public sealed class ProblemOccurrenceState : Enumeration
{
public static readonly ProblemOccurrenceState Open = new ProblemOccurrenceState("Open", Color.LightSalmon);
public static readonly ProblemOccurrenceState PartiallySolved = new ProblemOccurrenceState("Partially Solved", Color.SandyBrown);
public static readonly ProblemOccurrenceState Solved = new ProblemOccurrenceState("Solved", Color.LightGreen);
public static readonly ProblemOccurrenceState NotApplicable = new ProblemOccurrenceState("Not Applicable", Color.LightGray);
public static readonly IEnumerable<ProblemOccurrenceState> AllStates = new ProblemOccurrenceState[] {
Open, PartiallySolved, Solved, NotApplicable
};
private ProblemOccurrenceState(String name, Color color)
: base(name)
{
Color = color;
}
public Color Color { get; private set; }
}
public static readonly TaggedValueDefinition ProblemOccurrenceStateTag = new TaggedValueDefinition(
name: "Problem State",
description: "Problem State",
type: TaggedValueTypes.Enum(values: ProblemOccurrenceState.AllStates).WithDefaultValue(ProblemOccurrenceState.Open));
public static readonly ElementStereotype ProblemOccurrence = new ElementStereotype(
name: "adProblemOccurrence",
displayName: "Problem Occurrence",
type: ElementType.Object,
icon: new Icon("ADMentor.ADTechnology.ProblemOccurrence.bmp"),
shapeScript: String.Format(@"
shape main{{
h_align = ""center"";
v_align = ""center"";
{0}
StartPath();
MoveTo(50,0);
LineTo(100,50);
LineTo(50,100);
LineTo(0,50);
EndPath();
FillAndStrokePath();
println(""(#TAG:{1}#)"");
if(HasProperty(""name"", """")){{
if(HasProperty(""classifier.name"", """")){{
}} else {{
Println(""#classifier.name#"");
}}
}}else{{
Print(""#name#"");
}}
}}",
GenerateFillColors(ProblemOccurrenceStateTag.Name, ProblemOccurrenceState.AllStates.ToDictionary(ds => ds.Name, ds => ds.Color)),
ProblemOccurrenceStateTag.Name),
width: 100,
height: 70,
taggedValues: new[]{
ProblemOccurrenceStateTag,
Common.DueDate,
Common.RevisionDate,
Common.DecisionDate
});
private static String GenerateFillColors(String tagName, IDictionary<String, Color> valueColors)
{
return (from p in valueColors
select String.Format(@"if(HasTag(""{0}"", ""{1}"")) {{ SetFillColor({2}, {3}, {4}); }}",
tagName, p.Key, p.Value.R, p.Value.G, p.Value.B)).Join("\n");
}
public static readonly PackageStereotype SolutionSpacePackage = new PackageStereotype(
name: "adSolutionSpace",
displayName: "Solution Space Package",
taggedValues: new[]{
Common.IntellectualPropertyRights
});
}
}
| IFS-HSR/ADMentor | ADMentor/ADTechnology/SolutionSpace.cs | C# | epl-1.0 | 6,283 |
/*******************************************************************************
* Copyright 2012 Google Inc. All Rights Reserved.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package com.google.gdt.eclipse.suite.update;
import com.google.gdt.eclipse.core.update.internal.core.FeatureUpdateChecker;
import com.google.gdt.eclipse.suite.update.FeatureUpdateCheckersMap.UpdateSiteToken;
import java.util.EnumMap;
import java.util.Map;
/**
* A map from {@link UpdateSiteToken} to {@link FeatureUpdateChecker}. This is
* used to determine which FeatureUpdateChecker is to be used if the update site
* URL has the token given by UpdateSiteToken. FeatureUpdateChecker is used to
* scan the downloaded contents from the update site to determine if an update
* is available. The class is created so that we don't have to write
* EnumMap<UpdateSiteToken, FeatureUpdateChecker> again and again.
*/
public class FeatureUpdateCheckersMap
extends EnumMap<UpdateSiteToken, FeatureUpdateChecker> {
/**
* The token is a unique substring in the update site URL which will decide if
* the update site is for the GWT SDK.
*/
public enum UpdateSiteToken {
// TODO(deepanshu): Add a build time flag that will choose tokens based on the build being from
// trunk or release branch.
GWT_SDK("gwt");
private final String token;
private UpdateSiteToken(String token) {
this.token = token;
}
public String getToken() {
return token;
}
}
public FeatureUpdateCheckersMap(Class<UpdateSiteToken> keyType) {
super(keyType);
}
public FeatureUpdateCheckersMap(EnumMap<UpdateSiteToken, ? extends FeatureUpdateChecker> m) {
super(m);
}
public FeatureUpdateCheckersMap(Map<UpdateSiteToken, ? extends FeatureUpdateChecker> m) {
super(m);
}
}
| gwt-plugins/gwt-eclipse-plugin | plugins/com.gwtplugins.gdt.eclipse.suite.update/src/com/google/gdt/eclipse/suite/update/FeatureUpdateCheckersMap.java | Java | epl-1.0 | 2,420 |
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="(C) Copyright 2010" />
<meta name="DC.rights.owner" content="(C) Copyright 2010" />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="LibpThread Example - Using P.I.P.S OECORE" />
<meta name="DC.Relation" scheme="URI" content="GUID-3EB1C34E-584E-595D-A339-DE170A96AEBC.html" />
<meta name="DC.Relation" scheme="URI" content="index.html" />
<meta name="DC.Relation" scheme="URI" content="GUID-32E29020-1956-461A-B79A-1492E06049E7.html" />
<meta name="DC.Relation" scheme="URI" content="GUID-5072BE46-B1B4-5C3A-BF55-BEA7443E7657.html" />
<meta name="DC.Relation" scheme="URI" content="GUID-E2DE2C6F-E071-5E88-96F1-D71DDED84609.html" />
<meta name="DC.Relation" scheme="URI" content="GUID-D79380CF-22B5-5865-9366-44118E8ECA2E.html" />
<meta name="DC.Relation" scheme="URI" content="GUID-3EB1C34E-584E-595D-A339-DE170A96AEBC.html" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="GUID-092C18D4-A525-5562-9BF6-41435E400290" />
<meta name="DC.Language" content="en" />
<link rel="stylesheet" type="text/css" href="commonltr.css" />
<title>
LibpThread Example - Using P.I.P.S OECORE
</title>
<link type="text/css" rel="stylesheet" href="css/common.css" media="screen"/>
<link type="text/css" rel="stylesheet" href="css/sdl.css" media="screen"/>
<!--[if IE]>
<link href="css/iefix.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="nokiacxxref.css" />
</head>
<body id="GUID-092C18D4-A525-5562-9BF6-41435E400290">
<a name="GUID-092C18D4-A525-5562-9BF6-41435E400290">
<!-- -->
</a>
<?php include_once (CURRENT_SKIN_PATH.'/sdl_header.html'); ?>
<div id="sdl_container">
<div id="leftMenu">
<div id="expandcontractdiv">
<a id="collapseTree" href="javascript:tree.collapseAll()">
Collapse all
</a>
<a id="index" href="index.html">
Symbian^3 Application Developer Library
</a>
</div>
<iframe style="border:none" height="800" width="300" src="index-toc.html"></iframe>
<div id="treeDiv1">
 
</div>
<script type="text/javascript">
var currentIconMode = 0; window.name="id2470542 id2682564 id2682464 id2682433 id2682164 ";
YAHOO.util.Event.onDOMReady(buildTree, this,true);
</script>
</div>
<div id="sdl_content">
<div class="breadcrumb">
<a href="index.html" title="Symbian^3 Application Developer Library">
Symbian^3 Application Developer Library
</a>
>
<a href="GUID-32E29020-1956-461A-B79A-1492E06049E7.html" title="The Symbian Guide describes the architecture and functionality of the platform, and provides guides on using its APIs.">
Symbian Guide
</a>
>
<a href="GUID-5072BE46-B1B4-5C3A-BF55-BEA7443E7657.html">
Generic OS Services Guide
</a>
>
<a href="GUID-E2DE2C6F-E071-5E88-96F1-D71DDED84609.html">
Generic Open Libraries
</a>
>
<a href="GUID-D79380CF-22B5-5865-9366-44118E8ECA2E.html">
Open Environment Core (P.I.P.S.)
</a>
>
<a href="GUID-3EB1C34E-584E-595D-A339-DE170A96AEBC.html">
P.I.P.S. Examples
</a>
>
</div>
<h1 class="topictitle1">
LibpThread Example - Using P.I.P.S OECORE
</h1>
<div>
<p>
This example application shows, using a P.I.P.S. (P.I.P.S. Is POSIX
on the Symbian platform) program, the use of the LibpThread library
to demonstrate simple multi-threading and synchronisation.
</p>
<p>
The purpose is to create a basic multithreading example showing
the usage of the LibpThread APIs. This example also shows how multi-threading
is used to achieve concurrency in tasks and sharing of resources.
</p>
<div class="section" id="GUID-092C18D4-A525-5562-9BF6-41435E400290__GUID-026FD8D6-6C4A-5958-B289-775D4AE1E756-GENID-1-10-1-13-1-1-5-1-3-1-11-1-7-1-2-3">
<a name="GUID-092C18D4-A525-5562-9BF6-41435E400290__GUID-026FD8D6-6C4A-5958-B289-775D4AE1E756-GENID-1-10-1-13-1-1-5-1-3-1-11-1-7-1-2-3">
<!-- -->
</a>
<h2 class="sectiontitle">
Download
</h2>
<p>
Click on the following link to download the example:
<a href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-84e8baf2-57f1-4255-aeb8-a6ed0ed2145e.zip" target="_blank">
LibpThreadExample.zip
</a>
</p>
<p>
Click:
<a href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-84e8baf2-57f1-4255-aeb8-a6ed0ed2145e.html">
browse
</a>
to view the example code.
</p>
</div>
<div class="section" id="GUID-092C18D4-A525-5562-9BF6-41435E400290__GUID-7E7C4564-B10E-41F9-8A9D-D8A6C5E9C51C-GENID-1-10-1-13-1-1-5-1-3-1-11-1-7-1-2-4">
<a name="GUID-092C18D4-A525-5562-9BF6-41435E400290__GUID-7E7C4564-B10E-41F9-8A9D-D8A6C5E9C51C-GENID-1-10-1-13-1-1-5-1-3-1-11-1-7-1-2-4">
<!-- -->
</a>
<h2 class="sectiontitle">
Description
</h2>
<p>
The following sections provide more information about the steps
that the example performs.
</p>
<p>
<strong>
Thread Synchronisation
</strong>
</p>
<p>
The example creates three threads named ThreadOne, ThreadTwo
and ThreadThree. The threads write "One", "Two" and "Three" five times
in a text file. The text file, located in
<span class="filepath">
epoc32\winscw\c\newfile.txt
</span>
, is used as a shared resource for all three threads. A mutex is
used to ensure that first ThreadOne writes in the file, then ThreadTwo
and then ThreadThree. If the mutex is not used all the threads can
simultaneously write in the file. This can be seen by commenting out
<samp class="codeph">
pthread_mutex_lock
</samp>
and
<samp class="codeph">
pthread_mutex_unlock
</samp>
in the code.
</p>
</div>
<div class="section" id="GUID-092C18D4-A525-5562-9BF6-41435E400290__GUID-236CB272-E196-4A61-B627-ACFFC4B37AA1">
<a name="GUID-092C18D4-A525-5562-9BF6-41435E400290__GUID-236CB272-E196-4A61-B627-ACFFC4B37AA1">
<!-- -->
</a>
<h2 class="sectiontitle">
Related
APIs
</h2>
<p>
pthread_mutex_lock(pthread_mutex_t *)
</p>
<p>
pthread_mutex_unlock(pthread_mutex_t *)
</p>
<p>
pthread_join(pthread_t,void **)
</p>
<p>
<a href="GUID-889CB456-6980-3B92-9350-0C6C8C9AC435.html">
<span class="apiname">
pthread_mutex_t
</span>
</a>
</p>
</div>
<div class="section" id="GUID-092C18D4-A525-5562-9BF6-41435E400290__GUID-67A72761-1D92-46D1-B1C9-7455978BDE4E-GENID-1-10-1-13-1-1-5-1-3-1-11-1-7-1-2-6">
<a name="GUID-092C18D4-A525-5562-9BF6-41435E400290__GUID-67A72761-1D92-46D1-B1C9-7455978BDE4E-GENID-1-10-1-13-1-1-5-1-3-1-11-1-7-1-2-6">
<!-- -->
</a>
<h2 class="sectiontitle">
Build
</h2>
<p>
The Symbian build process describes how to build this example
application.
</p>
<p>
The example builds an executable
called
<span class="filepath">
LibpThreadExample.exe
</span>
in the standard
locations.
</p>
<p>
To run the example, start
<span class="filepath">
LibpThreadExample.exe
</span>
from the file system or from your IDE. After launching the executable,
depending on the emulator you are using, you may need to navigate
away from the application launcher or shell screen to view the console.
</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink">
<strong>
Parent topic:
</strong>
<a href="GUID-3EB1C34E-584E-595D-A339-DE170A96AEBC.html">
P.I.P.S. Examples
</a>
</div>
</div>
</div>
<p class="copyright">Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).<br /> All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the <a href=" http://www.eclipse.org/legal/epl-v10.html"> Eclipse Public License
v1.0</a>.</p>
</div>
</div>
<?php include_once (CURRENT_SKIN_PATH.'/sdl_footer.html'); ?>
</body>
</html> | warlordh/fork_Symbian | sdk/GUID-092C18D4-A525-5562-9BF6-41435E400290.html | HTML | epl-1.0 | 8,642 |
.small-text
{
font-size: 10px;
} | dustinconrad/bracketolojy | resources/public/css/bracket.css | CSS | epl-1.0 | 36 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="ja">
<head>
<!-- Generated by javadoc (1.8.0_05) on Mon Nov 02 17:11:51 JST 2015 -->
<title>stview.analyzer NXKw</title>
<meta name="date" content="2015-11-02">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="stview.analyzer \u30AF\u30E9\u30B9\u968E\u5C64";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>uEUÌJavaScriptª³øÉÈÁĢܷB</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="irQ[VENðXLbv">irQ[VENðXLbv</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="irQ[V">
<li><a href="../../overview-summary.html">Tv</a></li>
<li><a href="package-summary.html">pbP[W</a></li>
<li>NX</li>
<li>gp</li>
<li class="navBarCell1Rev">Kwc[</li>
<li><a href="../../deprecated-list.html">ñ§</a></li>
<li><a href="../../index-files/index-1.html">õø</a></li>
<li><a href="../../help-doc.html">wv</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../stview/package-tree.html">O</a></li>
<li><a href="../../stview/filtering/package-tree.html"></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?stview/analyzer/package-tree.html" target="_top">t[</a></li>
<li><a href="package-tree.html" target="_top">t[ȵ</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">·×ÄÌNX</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 class="title">pbP[Wstview.analyzerÌKw</h1>
<span class="packageHierarchyLabel">pbP[WKw:</span>
<ul class="horizontal">
<li><a href="../../overview-tree.html">·×ÄÌpbP[W</a></li>
</ul>
</div>
<div class="contentContainer">
<h2 title="NXKw">NXKw</h2>
<ul>
<li type="circle">java.lang.Object
<ul>
<li type="circle">stview.analyzer.<a href="../../stview/analyzer/ASTParser.html" title="stview.analyzeràÌNX"><span class="typeNameLink">ASTParser</span></a></li>
<li type="circle">org.eclipse.core.commands.common.EventManager
<ul>
<li type="circle">org.eclipse.jface.action.AbstractAction (implements org.eclipse.jface.action.IAction)
<ul>
<li type="circle">org.eclipse.jface.action.Action
<ul>
<li type="circle">stview.analyzer.<a href="../../stview/analyzer/Builder.html" title="stview.analyzeràÌNX"><span class="typeNameLink">Builder</span></a> (implements org.eclipse.jface.viewers.ITreeContentProvider)</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="irQ[VENðXLbv">irQ[VENðXLbv</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="irQ[V">
<li><a href="../../overview-summary.html">Tv</a></li>
<li><a href="package-summary.html">pbP[W</a></li>
<li>NX</li>
<li>gp</li>
<li class="navBarCell1Rev">Kwc[</li>
<li><a href="../../deprecated-list.html">ñ§</a></li>
<li><a href="../../index-files/index-1.html">õø</a></li>
<li><a href="../../help-doc.html">wv</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../stview/package-tree.html">O</a></li>
<li><a href="../../stview/filtering/package-tree.html"></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?stview/analyzer/package-tree.html" target="_top">t[</a></li>
<li><a href="package-tree.html" target="_top">t[ȵ</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">·×ÄÌNX</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| K-scope/STView | javadoc/stview/analyzer/package-tree.html | HTML | epl-1.0 | 5,077 |
// Compiled by ClojureScript 0.0-2311
goog.provide('antares.repl');
goog.require('cljs.core');
goog.require('weasel.repl');
goog.require('weasel.repl');
console.log("WEASEL REPL ACTIVATED");
weasel.repl.connect.call(null,"ws://localhost:9001",new cljs.core.Keyword(null,"verbose","verbose",1694226060),true);
//# sourceMappingURL=repl.js.map | AlwaysBCoding/Antares | resources/public/javascripts/cljscompiler/antares/repl.js | JavaScript | epl-1.0 | 342 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_55) on Thu Jun 12 19:18:54 EDT 2014 -->
<title>Uses of Class com.runescape.revised.pool.AbstractObjectPool</title>
<meta name="date" content="2014-06-12">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class com.runescape.revised.pool.AbstractObjectPool";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/runescape/revised/pool/class-use/AbstractObjectPool.html" target="_top">Frames</a></li>
<li><a href="AbstractObjectPool.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class com.runescape.revised.pool.AbstractObjectPool" class="title">Uses of Class<br>com.runescape.revised.pool.AbstractObjectPool</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#com.runescape.revised.actor.entity.character.player.login.game">com.runescape.revised.actor.entity.character.player.login.game</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#com.runescape.revised.pool.impl">com.runescape.revised.pool.impl</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="com.runescape.revised.actor.entity.character.player.login.game">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a> in <a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/package-summary.html">com.runescape.revised.actor.entity.character.player.login.game</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/package-summary.html">com.runescape.revised.actor.entity.character.player.login.game</a> that return <a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/net/io/connection/Connection.html" title="class in com.runescape.revised.net.io.connection">Connection</a>></code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#getConnectionPool()">getConnectionPool</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/content/dialogue/Dialogue.html" title="class in com.runescape.revised.content.dialogue">Dialogue</a><<a href="../../../../../com/runescape/revised/content/dialogue/DialogueType.html" title="enum in com.runescape.revised.content.dialogue">DialogueType</a>>></code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#getDialoguePool()">getDialoguePool</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/event/AbstractEvent.html" title="class in com.runescape.revised.event">AbstractEvent</a>></code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#getEventPool()">getEventPool</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/actor/entity/AbstractEntity.html" title="class in com.runescape.revised.actor.entity">AbstractEntity</a><<a href="../../../../../com/runescape/revised/actor/entity/EntityState.html" title="enum in com.runescape.revised.actor.entity">EntityState</a>>></code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#getLocalEntityPool()">getLocalEntityPool</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/net/packets/AbstractPacket.html" title="class in com.runescape.revised.net.packets">AbstractPacket</a>></code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#getPacketPool()">getPacketPool</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/content/quest/AbstractQuest.html" title="class in com.runescape.revised.content.quest">AbstractQuest</a><?,?>></code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#getQuestPool()">getQuestPool</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/actor/entity/character/update/impl/AbstractUpdate.html" title="class in com.runescape.revised.actor.entity.character.update.impl">AbstractUpdate</a>></code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#getUpdatePool()">getUpdatePool</a></strong>()</code> </td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/package-summary.html">com.runescape.revised.actor.entity.character.player.login.game</a> with parameters of type <a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#setConnectionPool(com.runescape.revised.pool.AbstractObjectPool)">setConnectionPool</a></strong>(<a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/net/io/connection/Connection.html" title="class in com.runescape.revised.net.io.connection">Connection</a>> connectionPool)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#setDialoguePool(com.runescape.revised.pool.AbstractObjectPool)">setDialoguePool</a></strong>(<a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/content/dialogue/Dialogue.html" title="class in com.runescape.revised.content.dialogue">Dialogue</a><<a href="../../../../../com/runescape/revised/content/dialogue/DialogueType.html" title="enum in com.runescape.revised.content.dialogue">DialogueType</a>>> dialoguePool)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#setEventPool(com.runescape.revised.pool.AbstractObjectPool)">setEventPool</a></strong>(<a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/event/AbstractEvent.html" title="class in com.runescape.revised.event">AbstractEvent</a>> eventPool)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#setLocalEntityPool(com.runescape.revised.pool.AbstractObjectPool)">setLocalEntityPool</a></strong>(<a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/actor/entity/AbstractEntity.html" title="class in com.runescape.revised.actor.entity">AbstractEntity</a><<a href="../../../../../com/runescape/revised/actor/entity/EntityState.html" title="enum in com.runescape.revised.actor.entity">EntityState</a>>> localEntityPool)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#setPacketPool(com.runescape.revised.pool.AbstractObjectPool)">setPacketPool</a></strong>(<a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/net/packets/AbstractPacket.html" title="class in com.runescape.revised.net.packets">AbstractPacket</a>> packetPool)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#setQuestPool(com.runescape.revised.pool.AbstractObjectPool)">setQuestPool</a></strong>(<a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/content/quest/AbstractQuest.html" title="class in com.runescape.revised.content.quest">AbstractQuest</a><?,?>> questPool)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="strong">GamePlayer.</span><code><strong><a href="../../../../../com/runescape/revised/actor/entity/character/player/login/game/GamePlayer.html#setUpdatePool(com.runescape.revised.pool.AbstractObjectPool)">setUpdatePool</a></strong>(<a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a><<a href="../../../../../com/runescape/revised/actor/entity/character/update/impl/AbstractUpdate.html" title="class in com.runescape.revised.actor.entity.character.update.impl">AbstractUpdate</a>> updatePool)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="com.runescape.revised.pool.impl">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a> in <a href="../../../../../com/runescape/revised/pool/impl/package-summary.html">com.runescape.revised.pool.impl</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subclasses, and an explanation">
<caption><span>Subclasses of <a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">AbstractObjectPool</a> in <a href="../../../../../com/runescape/revised/pool/impl/package-summary.html">com.runescape.revised.pool.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/ConnectionPool.html" title="class in com.runescape.revised.pool.impl">ConnectionPool</a><C extends <a href="../../../../../com/runescape/revised/net/io/connection/Connection.html" title="class in com.runescape.revised.net.io.connection">Connection</a>></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/DialoguePool.html" title="class in com.runescape.revised.pool.impl">DialoguePool</a><D extends <a href="../../../../../com/runescape/revised/content/dialogue/Dialogue.html" title="class in com.runescape.revised.content.dialogue">Dialogue</a><<a href="../../../../../com/runescape/revised/content/dialogue/DialogueType.html" title="enum in com.runescape.revised.content.dialogue">DialogueType</a>>></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/EntityPool.html" title="class in com.runescape.revised.pool.impl">EntityPool</a><E extends <a href="../../../../../com/runescape/revised/actor/entity/AbstractEntity.html" title="class in com.runescape.revised.actor.entity">AbstractEntity</a><<a href="../../../../../com/runescape/revised/actor/entity/EntityState.html" title="enum in com.runescape.revised.actor.entity">EntityState</a>>></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/EventPool.html" title="class in com.runescape.revised.pool.impl">EventPool</a><E extends <a href="../../../../../com/runescape/revised/event/AbstractEvent.html" title="class in com.runescape.revised.event">AbstractEvent</a>></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/MessagePool.html" title="class in com.runescape.revised.pool.impl">MessagePool</a><M extends <a href="../../../../../com/runescape/revised/actor/message/Message.html" title="class in com.runescape.revised.actor.message">Message</a><<a href="../../../../../com/runescape/revised/actor/message/MessageStage.html" title="enum in com.runescape.revised.actor.message">MessageStage</a>>></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/PacketPool.html" title="class in com.runescape.revised.pool.impl">PacketPool</a><P extends <a href="../../../../../com/runescape/revised/net/packets/AbstractPacket.html" title="class in com.runescape.revised.net.packets">AbstractPacket</a>></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/QuestPool.html" title="class in com.runescape.revised.pool.impl">QuestPool</a><Q extends <a href="../../../../../com/runescape/revised/content/quest/AbstractQuest.html" title="class in com.runescape.revised.content.quest">AbstractQuest</a><?,?>></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/RegionPool.html" title="class in com.runescape.revised.pool.impl">RegionPool</a><R extends <a href="../../../../../com/runescape/revised/actor/location/region/Region.html" title="class in com.runescape.revised.actor.location.region">Region</a>></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/SystemPool.html" title="class in com.runescape.revised.pool.impl">SystemPool</a><S extends <a href="../../../../../com/runescape/revised/system/AbstractSystem.html" title="class in com.runescape.revised.system">AbstractSystem</a>></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../../com/runescape/revised/pool/impl/UpdatePool.html" title="class in com.runescape.revised.pool.impl">UpdatePool</a><U extends <a href="../../../../../com/runescape/revised/actor/entity/character/update/impl/AbstractUpdate.html" title="class in com.runescape.revised.actor.entity.character.update.impl">AbstractUpdate</a>></strong></code> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../com/runescape/revised/pool/AbstractObjectPool.html" title="class in com.runescape.revised.pool">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/runescape/revised/pool/class-use/AbstractObjectPool.html" target="_top">Frames</a></li>
<li><a href="AbstractObjectPool.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| RodriguesJ/Atem | doc/com/runescape/revised/pool/class-use/AbstractObjectPool.html | HTML | epl-1.0 | 22,580 |
# Fizzbuzz in Clojure
Functional programming's renaissance is entering full swing, with languages like Haskell, Erlang and Scala becoming more and more popular.
We spent a day at Makers Academy working with Clojure and exploring the differences between object-oriented and functional programming, as part of our "learn *n* languages in *n* days" week that also saw us working with metaprogramming in Ruby and learning Io.
Here, I implement FizzBuzz in Clojure.
## Testing
Download the repo. From the root directory, execute
`$ lein test`
to see the tests run.
| henryaj/clojure-clutz | README.md | Markdown | epl-1.0 | 568 |
/*******************************************************************************
"FreePastry" Peer-to-Peer Application Development Substrate
Copyright 2002-2007, Rice University. Copyright 2006-2007, Max Planck Institute
for Software Systems. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Rice University (RICE), Max Planck Institute for Software
Systems (MPI-SWS) nor the names of its contributors may be used to endorse or
promote products derived from this software without specific prior written
permission.
This software is provided by RICE, MPI-SWS and the contributors on an "as is"
basis, without any representations or warranties of any kind, express or implied
including, but not limited to, representations or warranties of
non-infringement, merchantability or fitness for a particular purpose. In no
event shall RICE, MPI-SWS or contributors be liable for any direct, indirect,
incidental, special, exemplary, or consequential damages (including, but not
limited to, procurement of substitute goods or services; loss of use, data, or
profits; or business interruption) however caused and on any theory of
liability, whether in contract, strict liability, or tort (including negligence
or otherwise) arising in any way out of the use of this software, even if
advised of the possibility of such damage.
*******************************************************************************/
package rice.persistence;
import java.util.*;
/*
* @(#) Catalog.java
*
* @author Ansley Post
* @author Alan Mislove
*
* @version $Id: Catalog.java 4654 2009-01-08 16:33:07Z jeffh $
*/
import java.io.*;
import rice.*;
import rice.p2p.commonapi.*;
/**
* This interface is the abstraction of something which holds objects
* which are available for lookup. This interface does not, however,
* specify how the objects are inserted, and makes NO guarantees as to
* whether objects available at a given point in time will be available
* at a later time.
*
* Implementations of the Catalog interface are designed to be interfaces
* which specify how objects are inserted and stored, and are designed to
* include a cache and persistent storage interface.
*/
@SuppressWarnings("unchecked")
public interface Catalog {
/**
* Returns whether or not an object is present in the location <code>id</code>.
*
* @param id The id of the object in question.
* @return Whether or not an object is present at id.
*/
public boolean exists(Id id);
/**
* Returns the object identified by the given id, or <code>null</code> if
* there is no corresponding object (through receiveResult on c).
*
* @param id The id of the object in question.
* @param c The command to run once the operation is complete
*/
public void getObject(Id id, Continuation c);
/**
* Returns the metadata associated with the provided object, or null if
* no metadata exists. The metadata must be stored in memory, so this
* operation is guaranteed to be fast and non-blocking.
*
* The metadata returned from this method must *NOT* be mutated in any way,
* as the actual reference to the internal object is returned. Mutating
* this metadata may make the internal indices incorrect, resulting
* in undefined behavior. Changing the metadata should be done by creating
* a new metadata object and calling setMetadata().
*
* @param id The id for which the metadata is needed
* @return The metadata, or null if none exists
*/
public Serializable getMetadata(Id id);
/**
* Updates the metadata stored under the given key to be the provided
* value. As this may require a disk access, the requestor must
* also provide a continuation to return the result to.
*
* @param id The id for the metadata
* @param metadata The metadata to store
* @param c The command to run once the operation is complete
*/
public void setMetadata(Id id, Serializable metadata, Continuation command);
/**
* Renames the given object to the new id. This method is potentially faster
* than store/cache and unstore/uncache.
*
* @param oldId The id of the object in question.
* @param newId The new id of the object in question.
* @param c The command to run once the operation is complete
*/
public void rename(Id oldId, Id newId, Continuation c);
/**
* Return the objects identified by the given range of ids. The IdSet
* returned contains the Ids of the stored objects. The range is
* partially inclusive, the lower range is inclusive, and the upper
* exclusive.
*
* NOTE: This method blocks so if the behavior of this method changes and
* no longer stored in memory, this method may be deprecated.
*
* @param range The range to query
* @return The idset containing the keys
*/
public IdSet scan(IdRange range);
/**
* Return all objects currently stored by this catalog
*
* NOTE: This method blocks so if the behavior of this method changes and
* no longer stored in memory, this method may be deprecated.
*
* @return The idset containing the keys
*/
public IdSet scan();
/**
* Returns a map which contains keys mapping ids to the associated
* metadata.
*
* @param range The range to query
* @return The map containing the keys
*/
public SortedMap scanMetadata(IdRange range);
/**
* Returns a map which contains keys mapping ids to the associated
* metadata.
*
* @return The treemap mapping ids to metadata
*/
public SortedMap scanMetadata();
/**
* Returns the submapping of ids which have metadata less than the provided
* value.
*
* @param value The maximal metadata value
* @return The submapping
*/
public SortedMap scanMetadataValuesHead(Object value);
/**
* Returns the submapping of ids which have metadata null
*
* @return The submapping
*/
public SortedMap scanMetadataValuesNull();
/**
* Returns the number of Ids currently stored in the catalog
*
* @return The number of ids in the catalog
*/
public int getSize();
/**
* Returns the total size of the stored data in bytes.
*
* @return The total storage size
*/
public long getTotalSize();
/**
* Method which is used to erase all data stored in the Catalog.
* Use this method with care!
*
* @param c The command to run once done
*/
public void flush(Continuation c);
}
| michele-loreti/jResp | core/org.cmg.jresp.pastry/pastry-2.1/src/rice/persistence/Catalog.java | Java | epl-1.0 | 6,949 |
/*
*******************************************************************************
* Copyright (c) 2014 Whizzo Software, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************
*/
package com.whizzosoftware.hobson.api.plugin;
import com.whizzosoftware.hobson.api.device.proxy.HobsonDeviceProxy;
import com.whizzosoftware.hobson.api.hub.HubContext;
import com.whizzosoftware.hobson.api.image.ImageInputStream;
import com.whizzosoftware.hobson.api.property.PropertyContainer;
import com.whizzosoftware.hobson.api.variable.DeviceVariableContext;
import com.whizzosoftware.hobson.api.variable.DeviceVariableState;
import com.whizzosoftware.hobson.api.variable.GlobalVariable;
import com.whizzosoftware.hobson.api.variable.GlobalVariableContext;
import io.netty.util.concurrent.Future;
import java.io.File;
import java.util.Collection;
import java.util.Map;
/**
* An interface for managing Hobson plugin functions.
*
* Note that this interface differentiates between local plugins (i.e. plugins installed on the hub) and remote
* plugins (i.e. plugins available from a remote repository).
*
* @author Dan Noguerol
* @since hobson-hub-api 0.1.6
*/
public interface PluginManager {
/**
* Add a remote repository.
*
* @param uri the URI of the repository
*/
void addRemoteRepository(String uri);
/**
* Returns a File for a plugin's data directory.
*
* @param ctx the context of the plugin
*
* @return a File instance
*/
File getDataDirectory(PluginContext ctx);
/**
* Returns a File for a named file located in a plugin's data directory.
*
* @param ctx the context of the plugin requesting the file
* @param filename the name of the data file
*
* @return a File instance (or null if not found)
*/
File getDataFile(PluginContext ctx, String filename);
/**
* Returns a global variable.
*
* @param gvctx the variable context
*
* @return a GlobalVariable instance
*/
GlobalVariable getGlobalVariable(GlobalVariableContext gvctx);
/**
* Returns all global variables published by a plugin.
*
* @param pctx the plugin context
*
* @return a Collection of GlobalVariable instances
*/
Collection<GlobalVariable> getGlobalVariables(PluginContext pctx);
/**
* Retrieves a specific plugin.
*
* @param ctx the context of the target plugin
*
* @return a HobsonPlugin instance (or null if not found)
*/
HobsonLocalPluginDescriptor getLocalPlugin(PluginContext ctx);
/**
* Returns the plugin level configuration.
*
* @param ctx the context of the target plugin
*
* @return a Dictionary (or null if there is no configuration)
*/
PropertyContainer getLocalPluginConfiguration(PluginContext ctx);
/**
* Returns the last check in time of a plugin's device.
*
* @param ctx the plugin context
* @param deviceId the device ID
*
* @return the last check in time (or null if the device has never checked in)
*/
Long getLocalPluginDeviceLastCheckin(PluginContext ctx, String deviceId);
/**
* Returns information about a plugin device variable.
*
* @param ctx the variable context
*
* @return a DeviceVariableState instance
*/
DeviceVariableState getLocalPluginDeviceVariable(DeviceVariableContext ctx);
/**
* Returns a plugin's icon.
*
* @param ctx the context of the target plugin
*
* @return an ImageInputStream (or null if the plugin has no icon and no default was found)
*/
ImageInputStream getLocalPluginIcon(PluginContext ctx);
/**
* Returns information about all local plugins installed on the hub.
*
* @param ctx the hub context
*
* @return a Collection of HobsonLocalPluginDescriptor instances
*/
Collection<HobsonLocalPluginDescriptor> getLocalPlugins(HubContext ctx);
/**
* Retrieves descriptor for a remotely available plugin.
*
* @param ctx the context of the plugin
* @param version the plugin version
* @return a PluginDescriptor instance
*/
HobsonPluginDescriptor getRemotePlugin(PluginContext ctx, String version);
/**
* Retrieve descriptors for all remotely available plugins.
*
* @param ctx the context of the target hub
*
* @return a PluginList
*/
Collection<HobsonPluginDescriptor> getRemotePlugins(HubContext ctx);
/**
* Retrieve the latest version of available remote plugins.
*
* @param ctx the hub context
*
* @return a Map of plugin ID to version string
*/
Map<String,String> getRemotePluginVersions(HubContext ctx);
/**
* Returns the remote repositories that have been enabled.
*
* @return a Collection of String URIs
*/
Collection<String> getRemoteRepositories();
/**
* Indicates whether a plugin has published a device variable.
*
* @param ctx the device variable context
*
* @return a boolean
*/
boolean hasLocalPluginDeviceVariable(DeviceVariableContext ctx);
/**
* Installs a specific version of a remote plugin.
*
* @param ctx the context of the target plugin
* @param pluginVersion the plugin version to install
*/
void installRemotePlugin(PluginContext ctx, String pluginVersion);
/**
* Reloads the specified plugin.
*
* @param ctx the context of the target plugin
*/
void reloadLocalPlugin(PluginContext ctx);
/**
* Removes a remote repository.
*
* @param uri the URI of the repository to remove
*/
void removeRemoteRepository(String uri);
/**
* Sets the plugin level configuration.
* @param ctx the context of the target plugin
* @param config the plugin configuration
*/
void setLocalPluginConfiguration(PluginContext ctx, Map<String,Object> config);
/**
* Sets an individual plugin level configuration property.
*
* @param ctx the context of the target hub
* @param name the configuration property name
* @param value the configuration property value
*/
void setLocalPluginConfigurationProperty(PluginContext ctx, String name, Object value);
/**
* Starts a plugin device.
*
* @param device the device proxy
* @param name the device's name
* @param config the device's configuration
* @param runnable a Runnable to execute after the device has started.
*
* @return a Future that indicates when the device has finished starting
*/
Future startPluginDevice(final HobsonDeviceProxy device, String name, final Map<String,Object> config, final Runnable runnable);
}
| whizzosoftware/hobson-hub-api | src/main/java/com/whizzosoftware/hobson/api/plugin/PluginManager.java | Java | epl-1.0 | 7,080 |
<!--
Copyright (c) 2000-2017 Ericsson Telecom AB
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="en-us">
<title>derefers</title>
</head>
<body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
<table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
<tr>
<td width=105 height=40><a href="https://projects.eclipse.org/projects/tools.titan"><img src="../images/titan_transparent.gif" border=0 width=105 height=40 align="left" alt="Titan"></a></td>
</tr>
</table>
<table border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
<td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
<td><a alt="previous" href="default.html"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
<td><a alt="next" href="disconnect.html"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
</tr>
</table>
<p><br clear="all">
</p>
<hr>
<h1>derefers</h1>
<hr align="left" width="75%">
<p>This function is used to start a behavior function referred by a behavior type variable that refers to a behavior name (reference for function name, altstep name or testcase name).</p>
<hr align="left" width="50%">
<p>Related keyword:</p>
<ul>
<li><b><font face="Courier New" size="4" color="#003258"> <a href="type.html">type</a></font></b></li>
</ul>
<hr align="left" width="50%">
<div align="center">
<center>
<table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
<tr>
<td width="100%">
<h3 align="center">
<font face="Courier New" color="#003258" size="5"><b>derefers (</b></font>
<i>reference_var</i>
<font face="Courier New" color="#003258" size="5"><b>) (</b></font>
<i>arguments</i>
<font face="Courier New" color="#003258" size="5"><b> ) </b></font></h3>
</td>
</tr>
</table>
</center>
</div>
<ul>
<li>
<p>The <font face="Courier New" color="#003258" size="4"><b>reference_var</b></font> denotes a behavior type variable that refers to a function, an altstep or a testcase.</p>
</li>
<li>
<p>The <font face="Courier New" color="#003258" size="4"><b>arguments</b></font> denotes the argument list of the function, see <a href="function.html"><b>function</b></a>.</p>
</li>
<li>
<p>Details and examples can be found under <a href="type.html#behavior_type"><b>behavior_type</b></a>.</p>
</li>
</ul>
<hr align="left" width="50%">
</body>
</html>
| BotondBaranyi/titan.core | help/info/derefers.html | HTML | epl-1.0 | 2,872 |
/**
* Copyright (c) 2010-2015, openHAB.org and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.openhab.binding.maxcube.internal.message;
import org.apache.commons.codec.binary.Base64;
import org.openhab.binding.maxcube.internal.Utils;
import org.slf4j.Logger;
/**
* Command to be send via the MAX!Cube protocol.
*
* @author Andreas Heil (info@aheil.de)
* @author Marcel Verpaalen
* @since 1.4.0
*/
public class S_Command {
private String baseString = "000440000000";
private boolean[] bits = null;
private String rfAddress = null;
private int roomId = -1;
/**
* Creates a new instance of the MAX! protocol S command.
*
* @param rfAddress
* the RF address the command is for
* @param roomId
* the room ID the RF address is mapped to
* @param setpointTemperature
* the desired setpoint temperature for the device.
*/
public S_Command(String rfAddress, int roomId, ThermostatModeType mode, double setpointTemperature) {
this.rfAddress = rfAddress;
this.roomId = roomId;
// Temperature setpoint, Temp uses 6 bits (bit 0:5),
// 20 deg C = bits 101000 = dec 40/2 = 20 deg C,
// you need 8 bits to send so add the 2 bits below (sample 10101000 = hex A8)
// bit 0,1 = 00 = Auto weekprog (no temp is needed)
int setpointValue = (int) (setpointTemperature * 2);
bits = Utils.getBits(setpointValue);
// default to perm setting
// AB => bit mapping
// 01 = Permanent
// 10 = Temporarily
if (mode.equals(ThermostatModeType.MANUAL)){
bits[7] = false; // A (MSB)
bits[6] = true; // B
} else if (mode.equals(ThermostatModeType.BOOST)){
bits[7] = true; // A (MSB)
bits[6] = true; // B
} else
{
bits[7] = false ; // A (MSB)
bits[6] = false; // B
}
}
/**
* Creates a new instance of the MAX! protocol S command.
*
* @param rfAddress
* the RF address the command is for
* @param roomId
* the room ID the RF address is mapped to
* @param mode
* the desired mode for the device.
*/
public S_Command(String rfAddress, int roomId, ThermostatModeType mode) {
this.rfAddress = rfAddress;
this.roomId = roomId;
// default to perm setting
// AB => bit mapping
// 01 = Permanent
// 10 = Temporarily
switch (mode) {
case VACATION:
case MANUAL:
//not implemented
break;
case AUTOMATIC:
bits = Utils.getBits(0);
break;
case BOOST:
bits = Utils.getBits(255);
break;
default:
// no further modes supported
}
}
/**
* Returns the Base64 encoded command string to be sent via the MAX!
* protocol.
*
* @return the string representing the command
*/
public String getCommandString() {
String commandString = baseString + rfAddress + Utils.toHex(roomId) + Utils.toHex(bits);
String encodedString = Base64.encodeBase64String(Utils.hexStringToByteArray(commandString));
return "s:" + encodedString;
}
} | mattnl/openhab | bundles/binding/org.openhab.binding.maxcube/src/main/java/org/openhab/binding/maxcube/internal/message/S_Command.java | Java | epl-1.0 | 3,160 |
/**
* Copyright (c) 2014-2018 committers of YAKINDU and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* committers of YAKINDU - initial API and implementation
*/
package org.yakindu.sct.generator.c.test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
/**
* Suite of all test cases that are specific to the C code generator and which are not defined by the
* set of cross target language tests.
*
* @author terfloth
*/
@RunWith(Suite.class)
@SuiteClasses({
ActiveBeforeInit.class,
OperationsWithoutBracesCustom.class,
InternalEventLifeCycleTest_Naming.class,
PedanticNoLocalEventsTest.class,
VariadicOperations.class,
StateNumTest.class,
TracingTest.class,
InEventQueueTest.class
})
public class AllCSpecificTests {
}
| Yakindu/statecharts | test-plugins/org.yakindu.sct.generator.c.test/src/org/yakindu/sct/generator/c/test/AllCSpecificTests.java | Java | epl-1.0 | 1,030 |
//
// Copyright (c) 2004 Digital Design. All rights reserved.
//
// Author: Vadim Skipin (skipin@digdes.com)
//
using System;
namespace DocsVision.Security
{
[Flags]
public enum AccessMask : uint
{
None = 0x00000000,
// Specific rights
SpecificAll = 0x0000FFFF,
// Standard rights
StandardDelete = 0x00010000,
StandardReadControl = 0x00020000,
StandardWriteDAC = 0x00040000,
StandardWriteOwner = 0x00080000,
StandardRequired = 0x000F0000,
StandardSynchronize = 0x00100000,
StandardAll = 0x001F0000,
// AccessSystemAcl access type
AccessSystemSecurity = 0x01000000,
// MaximumAllowed access type
MaximumAllowed = 0x02000000,
// Generic rights
GenericAll = 0x10000000,
GenericExecute = 0x20000000,
GenericWrite = 0x40000000,
GenericRead = 0x80000000,
SpecificMask = 0x0000FFFF,
StandardMask = 0x00FF0000,
SpecialMask = 0x0F000000,
GenericMask = 0xF0000000,
}
} | vadimskipin/DVRemoting | src/Security/AccessMask.cs | C# | epl-1.0 | 918 |
/*
* Copyright (c) 2012-2018 Red Hat, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
*/
package org.eclipse.che.ide.ext.git.client.branch;
import static com.google.gwt.event.dom.client.KeyCodes.KEY_BACKSPACE;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.KeyDownEvent;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.UIObject;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import elemental.dom.Element;
import elemental.html.TableCellElement;
import elemental.html.TableElement;
import java.util.List;
import java.util.stream.Collectors;
import javax.validation.constraints.NotNull;
import org.eclipse.che.api.git.shared.Branch;
import org.eclipse.che.ide.FontAwesome;
import org.eclipse.che.ide.ext.git.client.GitLocalizationConstant;
import org.eclipse.che.ide.ext.git.client.GitResources;
import org.eclipse.che.ide.ui.list.FilterableSimpleList;
import org.eclipse.che.ide.ui.list.SimpleList;
import org.eclipse.che.ide.ui.window.Window;
import org.eclipse.che.ide.util.dom.Elements;
import org.vectomatic.dom.svg.ui.SVGResource;
/**
* The implementation of {@link BranchView}.
*
* @author Andrey Plotnikov
* @author Igor Vinokur
*/
@Singleton
public class BranchViewImpl extends Window implements BranchView {
interface BranchViewImplUiBinder extends UiBinder<Widget, BranchViewImpl> {}
private static BranchViewImplUiBinder ourUiBinder = GWT.create(BranchViewImplUiBinder.class);
Button btnClose;
Button btnRename;
Button btnDelete;
Button btnCreate;
Button btnCheckout;
@UiField ScrollPanel branchesPanel;
@UiField ListBox localRemoteFilter;
@UiField Label searchFilterLabel;
@UiField Label searchFilterIcon;
@UiField(provided = true)
final GitResources res;
@UiField(provided = true)
final GitLocalizationConstant locale;
private FilterableSimpleList<Branch> branchesList;
private ActionDelegate delegate;
@Inject
protected BranchViewImpl(
GitResources resources,
GitLocalizationConstant locale,
org.eclipse.che.ide.Resources coreRes) {
this.res = resources;
this.locale = locale;
this.ensureDebugId("git-branches-window");
setTitle(locale.branchTitle());
setWidget(ourUiBinder.createAndBindUi(this));
searchFilterIcon.getElement().setInnerHTML(FontAwesome.SEARCH);
TableElement branchElement = Elements.createTableElement();
branchElement.setAttribute("style", "width: 100%");
SimpleList.ListEventDelegate<Branch> listBranchesDelegate =
new SimpleList.ListEventDelegate<Branch>() {
public void onListItemClicked(Element itemElement, Branch itemData) {
branchesList.getSelectionModel().setSelectedItem(itemData);
delegate.onBranchSelected(itemData);
}
public void onListItemDoubleClicked(Element listItemBase, Branch itemData) {}
};
SimpleList.ListItemRenderer<Branch> listBranchesRenderer =
new SimpleList.ListItemRenderer<Branch>() {
@Override
public void render(Element itemElement, Branch itemData) {
TableCellElement label = Elements.createTDElement();
SafeHtmlBuilder sb = new SafeHtmlBuilder();
sb.appendHtmlConstant("<table><tr><td>");
sb.appendHtmlConstant(
"<div id=\""
+ UIObject.DEBUG_ID_PREFIX
+ "git-branches-"
+ itemData.getDisplayName()
+ "\">");
sb.appendEscaped(itemData.getDisplayName());
sb.appendHtmlConstant("</td>");
if (itemData.isActive()) {
SVGResource icon = res.currentBranch();
sb.appendHtmlConstant("<td><img src=\"" + icon.getSafeUri().asString() + "\"></td>");
}
sb.appendHtmlConstant("</tr></table>");
label.setInnerHTML(sb.toSafeHtml().asString());
itemElement.appendChild(label);
}
@Override
public Element createElement() {
return Elements.createTRElement();
}
};
branchesList =
FilterableSimpleList.create(
(SimpleList.View) branchElement,
coreRes.defaultSimpleListCss(),
listBranchesRenderer,
listBranchesDelegate,
this::onFilterChanged);
this.branchesPanel.add(branchesList);
this.localRemoteFilter.addItem("All", "all");
this.localRemoteFilter.addItem("Local", "local");
this.localRemoteFilter.addItem("Remote", "remote");
createButtons();
}
private void onFilterChanged(String filter) {
if (branchesList.getSelectionModel().getSelectedItem() == null) {
delegate.onBranchUnselected();
}
delegate.onSearchFilterChanged(filter);
}
@UiHandler("localRemoteFilter")
public void onLocalRemoteFilterChanged(ChangeEvent event) {
delegate.onLocalRemoteFilterChanged();
}
private void createButtons() {
btnClose =
createButton(locale.buttonClose(), "git-branches-close", event -> delegate.onClose());
addButtonToFooter(btnClose);
btnRename =
createButton(
locale.buttonRename(), "git-branches-rename", event -> delegate.onRenameClicked());
addButtonToFooter(btnRename);
btnDelete =
createButton(
locale.buttonDelete(), "git-branches-delete", event -> delegate.onDeleteClicked());
addButtonToFooter(btnDelete);
btnCreate =
createButton(
locale.buttonCreate(), "git-branches-create", event -> delegate.onCreateClicked());
addButtonToFooter(btnCreate);
btnCheckout =
createButton(
locale.buttonCheckout(),
"git-branches-checkout",
event -> delegate.onCheckoutClicked());
addButtonToFooter(btnCheckout);
}
@Override
protected void onKeyDownEvent(KeyDownEvent event) {
if (event.getNativeEvent().getKeyCode() == KEY_BACKSPACE) {
branchesList.removeLastCharacter();
}
}
@Override
protected void onKeyPressEvent(KeyPressEvent event) {
branchesList.addCharacterToFilter(String.valueOf(event.getCharCode()));
}
@Override
protected void onEscapeKey() {
if (branchesList.getFilter().isEmpty()) {
super.onEscapeKey();
} else {
branchesList.resetFilter();
}
}
@Override
protected void onEnterClicked() {
if (isWidgetFocused(btnClose)) {
delegate.onClose();
return;
}
if (isWidgetFocused(btnRename)) {
delegate.onRenameClicked();
return;
}
if (isWidgetFocused(btnDelete)) {
delegate.onDeleteClicked();
return;
}
if (isWidgetFocused(btnCreate)) {
delegate.onCreateClicked();
return;
}
if (isWidgetFocused(btnCheckout)) {
delegate.onCheckoutClicked();
}
}
@Override
public void setDelegate(ActionDelegate delegate) {
this.delegate = delegate;
}
@Override
public void setBranches(@NotNull List<Branch> branches) {
branchesList.render(
branches.stream().collect(Collectors.toMap(Branch::getDisplayName, branch -> branch)));
if (branchesList.getSelectionModel().getSelectedItem() == null) {
delegate.onBranchUnselected();
}
}
@Override
public void setEnableDeleteButton(boolean enabled) {
btnDelete.setEnabled(enabled);
}
@Override
public void setEnableCheckoutButton(boolean enabled) {
btnCheckout.setEnabled(enabled);
}
@Override
public void setEnableRenameButton(boolean enabled) {
btnRename.setEnabled(enabled);
}
@Override
public String getFilterValue() {
return localRemoteFilter.getSelectedValue();
}
@Override
public void closeDialogIfShowing() {
if (super.isShowing()) {
this.hide();
delegate.onClose();
}
}
@Override
public void showDialogIfClosed() {
if (!super.isShowing()) {
this.show(btnCreate);
}
}
@Override
public void setTextToSearchFilterLabel(String filter) {
searchFilterLabel.setText(filter.isEmpty() ? locale.branchSearchFilterLabel() : filter);
}
@Override
public void clearSearchFilter() {
branchesList.clearFilter();
}
@Override
public void setFocus() {
super.focus();
}
@Override
public void onClose() {
closeDialogIfShowing();
}
}
| sleshchenko/che | plugins/plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/branch/BranchViewImpl.java | Java | epl-1.0 | 9,107 |
/*******************************************************************************
* Copyright (c) 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*
*******************************************************************************/
package org.eclipse.jdt.internal.compiler.ast;
/**
* Just a marker class to represent statements that can occur in a module declaration
*
*/
public abstract class ModuleStatement extends ASTNode {
public int declarationEnd;
public int declarationSourceStart;
public int declarationSourceEnd;
}
| elucash/eclipse-oxygen | org.eclipse.jdt.core/src/org/eclipse/jdt/internal/compiler/ast/ModuleStatement.java | Java | epl-1.0 | 846 |
/*******************************************************************************
* Copyright (c) 2012, 2014 Pivotal Software, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Pivotal Software, Inc. - initial API and implementation
*******************************************************************************/
package org.springsource.ide.eclipse.gradle.ui.actions;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.jface.action.IAction;
import org.springsource.ide.eclipse.gradle.core.GradleProject;
import org.springsource.ide.eclipse.gradle.core.util.ErrorHandler;
import org.springsource.ide.eclipse.gradle.core.util.GradleRunnable;
import org.springsource.ide.eclipse.gradle.core.util.JobUtil;
/**
* Action that causes the projects source folders to be reconfigured.
*
* @author Kris De Volder
*/
public class RefreshSourceFoldersAction extends RefreshAction {
public RefreshSourceFoldersAction() {
}
public void run(IAction action) {
final GradleProject project = getGradleProject();
if (project!=null) {
JobUtil.schedule(new GradleRunnable("Refresh "+project.getName()) {
@Override
public void doit(IProgressMonitor monitor) throws OperationCanceledException, CoreException {
ErrorHandler eh = ErrorHandler.forRefreshSourceFolders();
project.invalidateGradleModel();
project.refreshSourceFolders(eh, monitor);
eh.rethrowAsCore();
}
});
}
}
}
| oxmcvusd/eclipse-integration-gradle | org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/actions/RefreshSourceFoldersAction.java | Java | epl-1.0 | 1,765 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.activemq.command;
import org.apache.activemq.state.CommandVisitor;
/**
* Used to start and stop transports as well as terminating clients.
*
* @openwire:marshaller code="17"
*
*/
public class ConsumerControl extends BaseCommand {
public static final byte DATA_STRUCTURE_TYPE = CommandTypes.CONSUMER_CONTROL;
protected ConsumerId consumerId;
protected boolean close;
protected boolean stop;
protected boolean start;
protected boolean flush;
protected int prefetch;
protected ActiveMQDestination destination;
/**
* @openwire:property version=6
* @return Returns the destination.
*/
public ActiveMQDestination getDestination() {
return destination;
}
public void setDestination(ActiveMQDestination destination) {
this.destination = destination;
}
public byte getDataStructureType() {
return DATA_STRUCTURE_TYPE;
}
public Response visit(CommandVisitor visitor) throws Exception {
return visitor.processConsumerControl(this);
}
/**
* @openwire:property version=1
* @return Returns the close.
*/
public boolean isClose() {
return close;
}
/**
* @param close The close to set.
*/
public void setClose(boolean close) {
this.close = close;
}
/**
* @openwire:property version=1
* @return Returns the consumerId.
*/
public ConsumerId getConsumerId() {
return consumerId;
}
/**
* @param consumerId The consumerId to set.
*/
public void setConsumerId(ConsumerId consumerId) {
this.consumerId = consumerId;
}
/**
* @openwire:property version=1
* @return Returns the prefetch.
*/
public int getPrefetch() {
return prefetch;
}
/**
* @param prefetch The prefetch to set.
*/
public void setPrefetch(int prefetch) {
this.prefetch = prefetch;
}
/**
* @openwire:property version=2
* @return the flush
*/
public boolean isFlush() {
return this.flush;
}
/**
* @param flush the flush to set
*/
public void setFlush(boolean flush) {
this.flush = flush;
}
/**
* @openwire:property version=2
* @return the start
*/
public boolean isStart() {
return this.start;
}
/**
* @param start the start to set
*/
public void setStart(boolean start) {
this.start = start;
}
/**
* @openwire:property version=2
* @return the stop
*/
public boolean isStop() {
return this.stop;
}
/**
* @param stop the stop to set
*/
public void setStop(boolean stop) {
this.stop = stop;
}
}
| Mark-Booth/daq-eclipse | uk.ac.diamond.org.apache.activemq/org/apache/activemq/command/ConsumerControl.java | Java | epl-1.0 | 3,588 |
/*******************************************************************************
* Copyright (c) 2013-2015 UAH Space Research Group.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* MICOBS SRG Team - Initial API and implementation
******************************************************************************/
package es.uah.aut.srg.micobs.mclev.mclevslib;
import es.uah.aut.srg.micobs.common.MStringParameter;
/**
* A representation of a string attribute of a service library whose default
* value is defined depending on the different supported platforms.
*
* @see es.uah.aut.srg.micobs.mclev.mclevslib.mclevslibPackage#getMStringParamSLSPSwitch()
* @model
* @generated
*/
public interface MStringParamSLSPSwitch extends MStringParameter, MParameterSLSPSwitch {
} | parraman/micobs | mclev/es.uah.aut.srg.micobs.mclev/src/es/uah/aut/srg/micobs/mclev/mclevslib/MStringParamSLSPSwitch.java | Java | epl-1.0 | 1,002 |
/**
* Copyright (c) 2011 - 2015, Lunifera GmbH (Gross Enzersdorf), Loetz KG (Heidelberg)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.lunifera.ecview.semantic.uimodel;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Ui Field</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.lunifera.ecview.semantic.uimodel.UiField#getValidators <em>Validators</em>}</li>
* </ul>
* </p>
*
* @see org.lunifera.ecview.semantic.uimodel.UiModelPackage#getUiField()
* @model interface="true" abstract="true"
* @generated
*/
public interface UiField extends UiEmbeddable {
/**
* Returns the value of the '<em><b>Validators</b></em>' containment reference list.
* The list contents are of type {@link org.lunifera.ecview.semantic.uimodel.UiValidator}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Validators</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Validators</em>' containment reference list.
* @see org.lunifera.ecview.semantic.uimodel.UiModelPackage#getUiField_Validators()
* @model containment="true" resolveProxies="true"
* @generated
*/
EList<UiValidator> getValidators();
} // UiField
| lunifera/lunifera-ecview-addons | org.lunifera.ecview.semantic.uimodel/src/org/lunifera/ecview/semantic/uimodel/UiField.java | Java | epl-1.0 | 1,676 |
/*
* Copyright (c) 2016. Fengguo (Hugo) Wei and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Detailed contributors are listed in the CONTRIBUTOR.md
*/
package org.argus.cit.intellij.jawa.lang.psi.api.toplevel
import com.intellij.psi.PsiElement
import com.intellij.psi.impl.source.PsiFileImpl
import com.intellij.psi.stubs.StubElement
import org.argus.cit.intellij.jawa.JavaArrayFactoryUtil
import org.argus.cit.intellij.jawa.lang.psi.stubs.JawaStubElementTypes
import org.argus.cit.intellij.jawa.lang.psi.{JawaClassOrInterfaceDeclaration, JawaPsiElement}
import org.argus.jawa.core.util._
/**
* @author <a href="mailto:fgwei521@gmail.com">Fengguo Wei</a>
*/
trait JawaToplevelElement extends JawaPsiElement {
def typeDefinitions: Seq[JawaClassOrInterfaceDeclaration] = {
val buff: MList[JawaClassOrInterfaceDeclaration] = mlistEmpty[JawaClassOrInterfaceDeclaration]
buff ++= immediateTypeDefinitions
buff
}
def typeDefinitionsArray: Array[JawaClassOrInterfaceDeclaration] = {
val buff: MList[JawaClassOrInterfaceDeclaration] = mlistEmpty[JawaClassOrInterfaceDeclaration]
buff ++= immediateTypeDefinitions
buff.toArray
}
def immediateTypeDefinitions: Seq[JawaClassOrInterfaceDeclaration] = {
val stub: StubElement[_ <: PsiElement] = this match {
case file: PsiFileImpl => file.getStub
case _ => null
}
if (stub != null) {
stub.getChildrenByType[JawaClassOrInterfaceDeclaration](JawaStubElementTypes.CLASS, JavaArrayFactoryUtil.JawaClassOrInterfaceDeclarationFactory)
} else findChildrenByClassJawa(classOf[JawaClassOrInterfaceDeclaration]).toSeq
}
}
| arguslab/argus-cit-intellij | src/main/scala/org/argus/cit/intellij/jawa/lang/psi/api/toplevel/JawaToplevelElement.scala | Scala | epl-1.0 | 1,845 |
/*******************************************************************************
* Copyright (c) 2019, 2021 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package com.ibm.ws.microprofile.reactive.messaging.fat.suite;
import org.junit.ClassRule;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import com.ibm.ws.microprofile.reactive.messaging.fat.kafka.containers.KafkaTlsContainer;
import com.ibm.ws.microprofile.reactive.messaging.fat.kafka.tls.KafkaTlsTest;
import componenttest.containers.ExternalTestServiceDockerClientStrategy;
/**
* Suite for tests which run against a TLS enabled kafka broker
*/
@RunWith(Suite.class)
@SuiteClasses({ KafkaTlsTest.class,
})
public class TlsTests {
//Required to ensure we calculate the correct strategy each run even when
//switching between local and remote docker hosts.
static {
ExternalTestServiceDockerClientStrategy.setupTestcontainers();
}
@ClassRule
public static KafkaTlsContainer kafkaContainer = new KafkaTlsContainer();
}
| kgibm/open-liberty | dev/com.ibm.ws.microprofile.reactive.messaging_fat/fat/src/com/ibm/ws/microprofile/reactive/messaging/fat/suite/TlsTests.java | Java | epl-1.0 | 1,464 |
/*-
*******************************************************************************
* Copyright (c) 2015 Diamond Light Source Ltd.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* This file was auto-generated from the NXDL XML definition.
* Generated at: 2015-09-29T13:43:53.722+01:00
*******************************************************************************/
package org.eclipse.dawnsci.nexus.impl;
import org.eclipse.dawnsci.analysis.api.dataset.IDataset;
import org.eclipse.dawnsci.analysis.dataset.impl.Dataset;
import org.eclipse.dawnsci.nexus.*;
/**
* This is the description of the general shape and size of a
* component, which may be made up of ``numobj`` separate
* elements - it is used by the :ref:`NXgeometry` class
*
* @version 1.0
*/
public class NXshapeImpl extends NXobjectImpl implements NXshape {
private static final long serialVersionUID = 1L; // no state in this class, so always compatible
public static final String NX_SHAPE = "shape";
public static final String NX_SIZE = "size";
public static final String NX_DIRECTION = "direction";
protected NXshapeImpl(long oid) {
super(oid);
}
@Override
public Class<? extends NXobject> getNXclass() {
return NXshape.class;
}
@Override
public NXbaseClass getNXbaseClass() {
return NXbaseClass.NX_SHAPE;
}
@Override
public IDataset getShape() {
return getDataset(NX_SHAPE);
}
public void setShape(IDataset shape) {
setDataset(NX_SHAPE, shape);
}
@Override
public IDataset getSize() {
return getDataset(NX_SIZE);
}
public void setSize(IDataset size) {
setDataset(NX_SIZE, size);
}
@Override
public IDataset getDirection() {
return getDataset(NX_DIRECTION);
}
public void setDirection(IDataset direction) {
setDataset(NX_DIRECTION, direction);
}
}
| willrogers/dawnsci | org.eclipse.dawnsci.nexus/src/org/eclipse/dawnsci/nexus/impl/NXshapeImpl.java | Java | epl-1.0 | 1,992 |
package eu.mondo.sam.core.publishers;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import eu.mondo.sam.core.results.BenchmarkResult;
import eu.mondo.sam.core.results.formatters.FormatException;
import eu.mondo.sam.core.results.formatters.ResultFormatter;
public class FilePublisher implements Publisher {
protected FilenameFactory factory;
protected ResultFormatter formatter;
protected String resultPath;
protected String extension;
private FilePublisher(Builder builder) {
this.factory = builder.factory;
this.formatter = builder.formatter;
this.resultPath = builder.resultPath;
this.extension = builder.extension;
}
@Override
public void publish(final BenchmarkResult benchmarkResult) throws IOException {
String filePath = getFullname();
String formattedResult;
try {
formattedResult = formatter.format(benchmarkResult);
} catch (FormatException e) {
throw new IOException(e);
}
File dir = new File(resultPath);
dir.mkdir();
File file = new File(filePath);
FileUtils.writeStringToFile(file, formattedResult, "UTF-8");
}
public String getExtension() {
return extension;
}
public void setExtension(String extension) {
this.extension = extension;
}
public String getResultPath() {
return resultPath;
}
public void setResultPath(String resultPath) {
this.resultPath = resultPath;
}
public String getFullname() {
// add some validation
return resultPath + factory.getFilename() + "." + extension;
}
public static class Builder {
private FilenameFactory factory;
private ResultFormatter formatter;
private String resultPath;
private String resultPathDefault = "../results/";
private String extension;
private String extensionDefault = "json";
public Builder filenameFactory(final FilenameFactory filenameFactory) {
this.factory = filenameFactory;
return this;
}
public Builder formatter(final ResultFormatter formatter) {
this.formatter = formatter;
return this;
}
public Builder resultPath(final String resultPath) {
this.resultPath = resultPath;
return this;
}
public Builder extension(final String extension) {
this.extension = extension;
return this;
}
public FilePublisher build() {
if (factory == null) {
throw new IllegalStateException("FilenameFactory is not initialized!");
}
if (formatter == null) {
throw new IllegalStateException("Formatter is not initialized!");
}
if (resultPath == null || resultPath.isEmpty()) {
// log warning
resultPath = resultPathDefault;
}
if (extension == null || extension.isEmpty()) {
// log warning
extension = extensionDefault;
}
return new FilePublisher(this);
}
}
}
| FTSRG/mondo-sam | eu.mondo.sam.core/src/main/java/eu/mondo/sam/core/publishers/FilePublisher.java | Java | epl-1.0 | 2,745 |
package com.genuitec.piplug.tools.ui.views;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerComparator;
import com.genuitec.piplug.tools.model.PiPlugExtension;
public class ExtensionNameComparator extends ViewerComparator {
@Override
public int compare(Viewer viewer, Object e1, Object e2) {
PiPlugExtension a1 = (PiPlugExtension) e1;
PiPlugExtension a2 = (PiPlugExtension) e2;
return a1.compareTo(a2);
}
}
| Genuitec/piplug | com.genuitec.piplug.tools.ui/src/com/genuitec/piplug/tools/ui/views/ExtensionNameComparator.java | Java | epl-1.0 | 472 |
#!/bin/sh
######################################################################
#
# @file pivy.sh
#
# @brief Version and build information for pivy.
#
# @version $Rev$ $Date$
#
# Copyright © 2012-2017, Tech-X Corporation, Boulder, CO.
# See LICENSE file (EclipseLicense.txt) for conditions of use.
#
######################################################################
######################################################################
#
# Version
#
######################################################################
PIVY_BLDRVERSION=${PIVY_BLDRVERSION:-"1.5.0"}
if $COIN_USE_REPO; then
PIVY_NAME=pivy
else
PIVY_NAME=Pivy
fi
######################################################################
#
# Builds, deps, mask, auxdata, paths, builds of other packages
#
######################################################################
# Pivy is installed with Coin, so it is built the way Coin is built
PIVY_BUILDS=${PIVY_BUILDS:-"$FORPYTHON_SHARED_BUILD"}
PIVY_BUILD=${PIVY_BUILD:-"$FORPYTHON_SHARED_BUILD"}
PIVY_DEPS=coin
PIVY_UMASK=002
PIVY_REPO_URL=https://bitbucket.org/Coin3D/pivy
PIVY_UPSTREAM_URL=https://bitbucket.org/Coin3D/pivy
######################################################################
#
# Launch pivy builds.
#
######################################################################
#
# Get pivy using hg.
#
getPivy() {
techo "Updating pivy from the repo."
updateRepo pivy
}
buildPivy() {
if $COIN_USE_REPO; then
# Try to get pivy from repo
if ! (cd $PROJECT_DIR; getPivy); then
echo "WARNING: Problem in getting pivy."
fi
# If no subdir, done.
if ! test -d $PROJECT_DIR/pivy; then
techo "WARNING: pivy not found. Not building."
return 1
fi
# Get version, patch, and preconfig
getVersion pivy
# Patch if present
local patchfile=$BILDER_DIR/patches/pivy.patch
if test -e $patchfile; then
PIVY_PATCH="$patchfile"
cmd="(cd $PROJECT_DIR/pivy; patch -p1 <$patchfile)"
techo "$cmd"
eval "$cmd"
fi
# rm -f $PROJECT_DIR/pivy/*-pivy-preconfig.txt
if ! bilderPreconfig -p : pivy; then
return
fi
else
# Build from tarball
if ! bilderUnpack Pivy; then
return 1
fi
fi
# Get configure args
local PIVY_ADDL_ARGS=
local BASE_CC=`basename "$CC"`
local BASE_CXX=`basename "$CXX"`
local PIVY_COMPILERS=
case `uname` in
CYGWIN*)
PIVY_ADDL_ARGS="$PIVY_ADDL_ARGS --with-msvcrt=/md"
PIVY_COMPILERS="CC='' CXX=''"
;;
Darwin)
PIVY_ADDL_ARGS="$PIVY_ADDL_ARGS --without-framework"
PIVY_COMPILERS="CC='$BASE_CC' CXX='$BASE_CXX'"
;;
*)
PIVY_COMPILERS="CC='$BASE_CC' CXX='$BASE_CXX'"
;;
esac
local PIVY_CFLAGS="$PYC_CFLAGS"
local PIVY_CXXFLAGS="$PYC_CXXFLAGS"
if [[ "$BASE_CC" =~ gcc ]]; then
PIVY_CFLAGS="$PIVY_CFLAGS -fpermissive"
PIVY_CXXFLAGS="$PIVY_CXXFLAGS -fpermissive"
fi
trimvar PIVY_CFLAGS ' '
trimvar PIVY_CXXFLAGS ' '
local otherargsvar=`genbashvar PIVY_${PIVY_BUILD}`_OTHER_ARGS
local otherargsval=`deref ${otherargsvar}`
# Set env
local PIVY_QTDIR=$QT_PYCSH_DIR
PIVY_QTDIR=${PIVY_QTDIR:-"$QT_SERSH_DIR"}
local PIVY_ENV="QTDIR=$PIVY_QTDIR"
case `uname` in
CYGWIN*) ;;
*)
if test -d $BLDR_INSTALL_DIR/${COIN_NAME}-sersh/bin; then
local COIN_BINDIR=`(cd $BLDR_INSTALL_DIR/${COIN_NAME}-sersh/bin; pwd -P)`
PIVY_ENV="$PIVY_ENV PATH=$COIN_BINDIR:'$PATH'"
fi
;;
esac
PIVY_ENV="$PIVY_ENV $PIVY_COMPILERS"
trimvar PIVY_ENV ' '
# Configure and build
# if bilderConfig -p $COIN_NAME-$COIN_BLDRVERSION-pycsh $PIVY_NAME pycsh "CFLAGS='$PIVY_CFLAGS' CXXFLAGS='$PIVY_CXXFLAGS' $PIVY_ADDL_ARGS $otherargsval" "" "$PIVY_ENV"; then
bilderDuBuild $PIVY_NAME pycsh "" "$PIVY_ENV"
}
######################################################################
#
# Test pivy
#
######################################################################
testPivy() {
techo "Not testing pivy."
}
######################################################################
#
# Install pivy
#
######################################################################
installPivy() {
for bld in `echo pycshS | tr ',' ' '`; do
bilderInstall -m make -L $PIVY_NAME $bld
done
}
| Tech-XCorp/bilder | packages/pivy.sh | Shell | epl-1.0 | 4,266 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.solr.client.solrj.io.eval;
import java.io.IOException;
import java.util.Locale;
import org.apache.solr.client.solrj.io.stream.expr.StreamExpression;
import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionParameter;
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
public class ConversionEvaluator extends RecursiveNumericEvaluator implements OneValueWorker {
protected static final long serialVersionUID = 1L;
private interface Converter {
public double convert(double value);
}
enum LENGTH_CONSTANT {MILES, YARDS, FEET, INCHES, MILLIMETERS, CENTIMETERS, METERS, KILOMETERS};
private LENGTH_CONSTANT from;
private LENGTH_CONSTANT to;
private Converter converter;
public ConversionEvaluator(StreamExpression expression, StreamFactory factory) throws IOException{
super(expression, factory);
if(3 != containedEvaluators.size()){
throw new IOException(String.format(Locale.ROOT,"Invalid expression %s - expecting exactly 3 parameters but found %d", super.toExpression(constructingFactory), containedEvaluators.size()));
}
if(containedEvaluators.subList(0, 2).stream().anyMatch(item -> !(item instanceof RawValueEvaluator) && !(item instanceof FieldValueEvaluator))){
throw new IOException(String.format(Locale.ROOT,"Invalid expression %s - first two parameters must be strings", super.toExpression(constructingFactory)));
}
String fromString = containedEvaluators.get(0).toExpression(factory).toString().toUpperCase(Locale.ROOT);
String toString = containedEvaluators.get(1).toExpression(factory).toString().toUpperCase(Locale.ROOT);
try {
from = LENGTH_CONSTANT.valueOf(fromString);
to = LENGTH_CONSTANT.valueOf(toString);
this.converter = constructConverter(from, to);
} catch (IllegalArgumentException e) {
throw new IOException(String.format(Locale.ROOT,"Invalid expression %s - '%s' and '%s' are not both valid conversion types", super.toExpression(constructingFactory), fromString, toString));
}
// Remove evaluators 0 and 1 because we don't actually want those used
containedEvaluators = containedEvaluators.subList(2, 3);
}
@Override
public Object doWork(Object value) throws IOException{
if(null == value){
return null;
}
return converter.convert(((Number)value).doubleValue());
}
private Converter constructConverter(LENGTH_CONSTANT from, LENGTH_CONSTANT to) throws IOException {
switch(from) {
case INCHES:
switch(to) {
case MILLIMETERS:
return (double value) -> value * 25.4;
case CENTIMETERS:
return (double value) -> value * 2.54;
case METERS:
return (double value) -> value * 0.0254;
default:
throw new EvaluatorException(String.format(Locale.ROOT, "No conversion available from %s to %s", from, to));
}
case FEET:
switch(to) {
case METERS:
return (double value) -> value * .30;
default:
throw new EvaluatorException(String.format(Locale.ROOT, "No conversion available from %s to %s", from, to));
}
case YARDS:
switch(to) {
case METERS:
return (double value) -> value * .91;
case KILOMETERS:
return (double value) -> value * 0.00091;
default:
throw new EvaluatorException(String.format(Locale.ROOT, "No conversion available from %s to %s", from, to));
}
case MILES:
switch(to) {
case KILOMETERS:
return (double value) -> value * 1.61;
default:
throw new EvaluatorException(String.format(Locale.ROOT, "No conversion available from %s to %s", from, to));
}
case MILLIMETERS:
switch (to) {
case INCHES:
return (double value) -> value * 0.039;
default:
throw new EvaluatorException(String.format(Locale.ROOT, "No conversion available from %s to %s", from, to));
}
case CENTIMETERS:
switch(to) {
case INCHES:
return (double value) -> value * 0.39;
default:
throw new EvaluatorException(String.format(Locale.ROOT, "No conversion available from %s to %s", from, to));
}
case METERS:
switch(to) {
case FEET:
return (double value) -> value * 3.28;
default:
throw new EvaluatorException(String.format(Locale.ROOT, "No conversion available from %s to %s", from, to));
}
case KILOMETERS:
switch(to) {
case MILES:
return (double value) -> value * 0.62;
case FEET:
return (double value) -> value * 3280.8;
default:
throw new EvaluatorException(String.format(Locale.ROOT, "No conversion available from %s to %s", from, to));
}
default:
throw new EvaluatorException(String.format(Locale.ROOT, "No conversion available from %s to %s", from, to));
}
}
@Override
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException {
StreamExpression expression = new StreamExpression(factory.getFunctionName(getClass()));
expression.addParameter(from.toString().toLowerCase(Locale.ROOT));
expression.addParameter(to.toString().toLowerCase(Locale.ROOT));
for(StreamEvaluator evaluator : containedEvaluators){
expression.addParameter(evaluator.toExpression(factory));
}
return expression;
}
}
| DavidGutknecht/elexis-3-base | bundles/org.apache.solr/src/org/apache/solr/client/solrj/io/eval/ConversionEvaluator.java | Java | epl-1.0 | 6,450 |
# Introduction to crudo
TODO: write [great documentation](http://jacobian.org/writing/what-to-write/)
| wkf/crudo | doc/intro.md | Markdown | epl-1.0 | 103 |
/*
* Sonatype Nexus (TM) Open Source Version
* Copyright (c) 2008-present Sonatype, Inc.
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
* which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
* of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
* Eclipse Foundation. All other trademarks are the property of their respective owners.
*/
package org.sonatype.nexus.common.guice;
import com.google.inject.AbstractModule;
import com.google.inject.Key;
import com.google.inject.ProvisionException;
import com.google.inject.TypeLiteral;
import com.google.inject.matcher.Matchers;
import com.google.inject.name.Names;
import com.google.inject.spi.TypeConverter;
import org.eclipse.sisu.inject.TypeArguments;
/**
* Support for {@link TypeConverter} implementations.
*
* @since 3.0
*/
public abstract class TypeConverterSupport<T>
extends AbstractModule
implements TypeConverter
{
private boolean bound;
@Override
public void configure() {
if (!bound) {
// Explicitly bind module instance under a specific sub-type (not Module as Guice forbids that)
bind(Key.get(TypeConverterSupport.class, Names.named(getClass().getName()))).toInstance(this);
bound = true;
}
// make sure we pick up the right super type argument, i.e. Foo from TypeConverterSupport<Foo>
final TypeLiteral<?> superType = TypeLiteral.get(getClass()).getSupertype(TypeConverterSupport.class);
convertToTypes(Matchers.only(TypeArguments.get(superType, 0)), this);
}
public Object convert(final String value, final TypeLiteral<?> toType) {
try {
return doConvert(value, toType);
}
catch (Exception e) {
throw new ProvisionException(String.format("Unable to convert value: %s due to: %s", value, e)); //NON-NLS
}
}
protected abstract Object doConvert(String value, TypeLiteral<?> toType) throws Exception;
}
| sonatype/nexus-public | components/nexus-common/src/main/java/org/sonatype/nexus/common/guice/TypeConverterSupport.java | Java | epl-1.0 | 2,304 |
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.protocol.pcep.parser.object;
import static com.google.common.base.Preconditions.checkArgument;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.util.List;
import org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser;
import org.opendaylight.protocol.pcep.spi.ObjectUtil;
import org.opendaylight.protocol.pcep.spi.PCEPDeserializerException;
import org.opendaylight.protocol.pcep.spi.PCEPErrors;
import org.opendaylight.protocol.pcep.spi.TlvRegistry;
import org.opendaylight.protocol.pcep.spi.VendorInformationTlvRegistry;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Object;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.ObjectHeader;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Tlv;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcep.error.object.ErrorObject;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcep.error.object.ErrorObjectBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcep.error.object.error.object.Tlvs;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcep.error.object.error.object.TlvsBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.req.missing.tlv.ReqMissing;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.vendor.information.tlvs.VendorInformationTlv;
import org.opendaylight.yangtools.yang.common.netty.ByteBufUtils;
/**
* Parser for {@link ErrorObject}.
*/
public final class PCEPErrorObjectParser extends AbstractObjectWithTlvsParser<ErrorObjectBuilder> {
private static final int CLASS = 13;
private static final int TYPE = 1;
private static final int FLAGS_F_LENGTH = 1;
private static final int RESERVED = 1;
public PCEPErrorObjectParser(final TlvRegistry tlvReg, final VendorInformationTlvRegistry viTlvReg) {
super(tlvReg, viTlvReg, CLASS, TYPE);
}
@Override
public ErrorObject parseObject(final ObjectHeader header, final ByteBuf bytes) throws PCEPDeserializerException {
checkArgument(bytes != null && bytes.isReadable(), "Array of bytes is mandatory. Can't be null or empty.");
bytes.skipBytes(FLAGS_F_LENGTH + RESERVED);
final ErrorObjectBuilder builder = new ErrorObjectBuilder()
.setIgnore(header.getIgnore())
.setProcessingRule(header.getProcessingRule())
.setType(ByteBufUtils.readUint8(bytes))
.setValue(ByteBufUtils.readUint8(bytes));
parseTlvs(builder, bytes.slice());
return builder.build();
}
@Override
public void addTlv(final ErrorObjectBuilder builder, final Tlv tlv) {
if (tlv instanceof ReqMissing
&& PCEPErrors.SYNC_PATH_COMP_REQ_MISSING.getErrorType().equals(builder.getType())) {
builder.setTlvs(new TlvsBuilder().setReqMissing((ReqMissing) tlv).build());
}
}
@Override
public void serializeObject(final Object object, final ByteBuf buffer) {
checkArgument(object instanceof ErrorObject, "Wrong instance of PCEPObject. Passed %s. Needed ErrorObject.",
object.getClass());
final ErrorObject errObj = (ErrorObject) object;
final ByteBuf body = Unpooled.buffer();
body.writeZero(FLAGS_F_LENGTH + RESERVED);
ByteBufUtils.writeMandatory(body, errObj.getType(), "Type");
ByteBufUtils.writeMandatory(body, errObj.getValue(), "Value");
serializeTlvs(errObj.getTlvs(), body);
ObjectUtil.formatSubobject(TYPE, CLASS, object.getProcessingRule(), object.getIgnore(), body, buffer);
}
public void serializeTlvs(final Tlvs tlvs, final ByteBuf body) {
if (tlvs != null) {
if (tlvs.getReqMissing() != null) {
serializeTlv(tlvs.getReqMissing(), body);
}
serializeVendorInformationTlvs(tlvs.getVendorInformationTlv(), body);
}
}
@Override
protected void addVendorInformationTlvs(final ErrorObjectBuilder builder, final List<VendorInformationTlv> tlvs) {
if (!tlvs.isEmpty()) {
builder.setTlvs(new TlvsBuilder(builder.getTlvs()).setVendorInformationTlv(tlvs).build());
}
}
}
| opendaylight/bgpcep | pcep/base-parser/src/main/java/org/opendaylight/protocol/pcep/parser/object/PCEPErrorObjectParser.java | Java | epl-1.0 | 4,833 |
/*****************************************************************************
* Copyright (c) 2012 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the CeCILL-C Free Software License v1.0
* which accompanies this distribution, and is available at
* http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html
*
* Contributors:
* Saadia DHOUIB (CEA LIST) - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.robotml.diagram.interfacedef.preferences;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.papyrus.robotml.diagram.interfacedef.edit.part.InterfaceDefEditPart;
public class CommentPreferencePage extends InterfaceDefNodePreferencePage {
public static String prefKey = InterfaceDefEditPart.DIAGRAM_ID + "_Comment";
public CommentPreferencePage() {
super();
setPreferenceKey(InterfaceDefEditPart.DIAGRAM_ID + "_Comment"); //$NON-NLS-1$
}
public static void initDefaults(IPreferenceStore store) {
}
}
| RobotML/RobotML-SDK-Juno | plugins/robotml/org.eclipse.papyrus.robotml.diagram.interfacedef/src-gen/org/eclipse/papyrus/robotml/diagram/interfacedef/preferences/CommentPreferencePage.java | Java | epl-1.0 | 1,123 |
/**
* Copyright (c) 2010-2014, openHAB.org and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.openhab.binding.sonos.internal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.joda.time.DateTime;
import org.joda.time.Duration;
import org.joda.time.Period;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.PeriodFormatter;
import org.joda.time.format.PeriodFormatterBuilder;
import org.openhab.binding.sonos.SonosCommandType;
import org.openhab.binding.sonos.internal.SonosBinding.SonosZonePlayerState;
import org.openhab.io.net.http.HttpUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.teleal.cling.UpnpService;
import org.teleal.cling.controlpoint.ActionCallback;
import org.teleal.cling.controlpoint.SubscriptionCallback;
import org.teleal.cling.model.action.ActionArgumentValue;
import org.teleal.cling.model.action.ActionException;
import org.teleal.cling.model.action.ActionInvocation;
import org.teleal.cling.model.gena.CancelReason;
import org.teleal.cling.model.gena.GENASubscription;
import org.teleal.cling.model.message.UpnpResponse;
import org.teleal.cling.model.meta.Action;
import org.teleal.cling.model.meta.RemoteDevice;
import org.teleal.cling.model.meta.Service;
import org.teleal.cling.model.meta.StateVariable;
import org.teleal.cling.model.meta.StateVariableTypeDetails;
import org.teleal.cling.model.state.StateVariableValue;
import org.teleal.cling.model.types.Datatype;
import org.teleal.cling.model.types.InvalidValueException;
import org.teleal.cling.model.types.UDAServiceId;
import org.teleal.cling.model.types.UDN;
import org.teleal.cling.model.types.UnsignedIntegerFourBytes;
import org.xml.sax.SAXException;
/**
* Internal data structure which carries the connection details of one Sonos player
* (there could be several)
*
* @author Karel Goderis
* @since 1.1.0
*
*/
class SonosZonePlayer {
private static Logger logger = LoggerFactory.getLogger(SonosZonePlayer.class);
protected final int interval = 600;
private boolean isConfigured = false;
/** the default socket timeout when requesting an url */
private static final int SO_TIMEOUT = 5000;
private RemoteDevice device = null;
private UDN udn;
private String id;
private DateTime lastOPMLQuery;
private SonosZonePlayerState savedState = null;
static protected UpnpService upnpService;
protected SonosBinding sonosBinding;
private Map<String, StateVariableValue> stateMap = Collections.synchronizedMap(new HashMap<String,StateVariableValue>());
/**
* @return the stateMap
*/
public Map<String, StateVariableValue> getStateMap() {
return stateMap;
}
public boolean isConfigured() {
return isConfigured;
}
SonosZonePlayer(String id, SonosBinding binding) {
if( binding != null) {
this.id = id;
sonosBinding = binding;
}
}
private void enableGENASubscriptions(){
if(device!=null && isConfigured()) {
// Create a GENA subscription of each service for this device, if supported by the device
List<SonosCommandType> subscriptionCommands = SonosCommandType.getSubscriptions();
List<String> addedSubscriptions = new ArrayList<String>();
for(SonosCommandType c : subscriptionCommands){
Service service = device.findService(new UDAServiceId(c.getService()));
if(service != null && !addedSubscriptions.contains(c.getService())) {
SonosPlayerSubscriptionCallback callback = new SonosPlayerSubscriptionCallback(service,interval);
addedSubscriptions.add(c.getService());
upnpService.getControlPoint().execute(callback);
}
}
}
}
protected boolean isUpdatedValue(String valueName,StateVariableValue newValue) {
if(newValue != null && valueName != null) {
StateVariableValue oldValue = stateMap.get(valueName);
if(newValue.getValue()== null) {
// we will *not* store an empty value, thank you.
return false;
} else {
if(oldValue == null) {
// there was nothing stored before
return true;
} else {
if (oldValue.getValue() == null) {
// something was defined, but no value present
return true;
} else {
if(newValue.getValue().equals(oldValue.getValue())) {
return false;
} else {
return true;
}
}
}
}
}
return false;
}
protected void processStateVariableValue(String valueName,StateVariableValue newValue) {
if(newValue!=null && isUpdatedValue(valueName,newValue)) {
Map<String, StateVariableValue> mapToProcess = new HashMap<String, StateVariableValue>();
mapToProcess.put(valueName,newValue);
stateMap.putAll(mapToProcess);
sonosBinding.processVariableMap(device,mapToProcess);
}
}
/**
* @return the device
*/
public RemoteDevice getDevice() {
return device;
}
/**
* @param device the device to set
*/
public void setDevice(RemoteDevice device) {
this.device = device;
if(upnpService !=null && device!=null) {
isConfigured = true;
enableGENASubscriptions();
}
}
public class SonosPlayerSubscriptionCallback extends SubscriptionCallback {
public SonosPlayerSubscriptionCallback(Service service) {
super(service);
}
public SonosPlayerSubscriptionCallback(Service service,
int requestedDurationSeconds) {
super(service, requestedDurationSeconds);
}
@Override
public void established(GENASubscription sub) {
}
@Override
protected void failed(GENASubscription subscription,
UpnpResponse responseStatus,
Exception exception,
String defaultMsg) {
}
public void eventReceived(GENASubscription sub) {
// get the device linked to this service linked to this subscription
Map<String, StateVariableValue> values = sub.getCurrentValues();
Map<String, StateVariableValue> mapToProcess = new HashMap<String, StateVariableValue>();
Map<String, StateVariableValue> parsedValues = null;
// now, lets deal with the specials - some UPNP responses require some XML parsing
// or we need to update our internal data structure
// or are things we want to store for further reference
for(String stateVariable : values.keySet()){
if(stateVariable.equals("LastChange") && service.getServiceType().getType().equals("AVTransport")){
try {
parsedValues = SonosXMLParser.getAVTransportFromXML(values.get(stateVariable).toString());
for(String someValue : parsedValues.keySet()) {
// logger.debug("Lastchange parsed into {}:{}",someValue,parsedValues.get(someValue));
if(isUpdatedValue(someValue,parsedValues.get(someValue))){
mapToProcess.put(someValue,parsedValues.get(someValue));
}
}
} catch (SAXException e) {
logger.error("Could not parse AVTransport from String {}",values.get(stateVariable).toString());
}
} else if(stateVariable.equals("LastChange") && service.getServiceType().getType().equals("RenderingControl")){
try {
parsedValues = SonosXMLParser.getRenderingControlFromXML(values.get(stateVariable).toString());
for(String someValue : parsedValues.keySet()) {
if(isUpdatedValue(someValue,parsedValues.get(someValue))){
mapToProcess.put(someValue,parsedValues.get(someValue));
}
}
} catch (SAXException e) {
logger.error("Could not parse RenderingControl from String {}",values.get(stateVariable).toString());
}
} else if(isUpdatedValue(stateVariable,values.get(stateVariable))){
mapToProcess.put(stateVariable, values.get(stateVariable));
}
}
if(isConfigured) {
stateMap.putAll(mapToProcess);
sonosBinding.processVariableMap(device,mapToProcess);
}
}
public void eventsMissed(GENASubscription sub, int numberOfMissedEvents) {
logger.warn("Missed events: " + numberOfMissedEvents);
}
@Override
protected void ended(GENASubscription subscription,
CancelReason reason, UpnpResponse responseStatus) {
if(device!=null && isConfigured()) {
//rebooting the GENA subscription
Service service = subscription.getService();
SonosPlayerSubscriptionCallback callback = new SonosPlayerSubscriptionCallback(service,interval);
upnpService.getControlPoint().execute(callback);
}
}
}
public void setService(UpnpService service) {
if(upnpService == null) {
upnpService = service;
}
if(upnpService !=null && device!=null) {
isConfigured = true;
enableGENASubscriptions();
}
}
public String getModel() {
if(device!=null) {
return device.getDetails().getModelDetails().getModelNumber();
} else {
return "Unknown";
}
}
/**
* @return the udn
*/
public UDN getUdn() {
return udn;
}
/**
* @param udn the udn to set
*/
public void setUdn(UDN udn) {
this.udn = udn;
}
public String getId() {
return id;
}
@Override
public String toString() {
return "Sonos [udn=" + udn + ", device=" + device +"]";
}
public boolean play() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("Play");
ActionInvocation invocation = new ActionInvocation(action);
invocation.setInput("Speed", "1");
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public boolean playRadio(String station){
if(isConfigured()) {
List<SonosEntry> stations = getFavoriteRadios();
SonosEntry theEntry = null;
// search for the appropriate radio based on its name (title)
for(SonosEntry someStation : stations){
if(someStation.getTitle().equals(station)){
theEntry = someStation;
break;
}
}
// set the URI of the group coordinator
if(theEntry != null) {
SonosZonePlayer coordinator = sonosBinding.getCoordinatorForZonePlayer(this);
coordinator.setCurrentURI(theEntry);
coordinator.play();
return true;
}
else {
return false;
}
} else {
return false;
}
}
public boolean playPlayList(String playlist){
if(isConfigured()) {
List<SonosEntry> playlists = getPlayLists();
SonosEntry theEntry = null;
// search for the appropriate play list based on its name (title)
for(SonosEntry somePlaylist : playlists){
if(somePlaylist.getTitle().equals(playlist)){
theEntry = somePlaylist;
break;
}
}
// set the URI of the group coordinator
if(theEntry != null) {
SonosZonePlayer coordinator = sonosBinding.getCoordinatorForZonePlayer(this);
//coordinator.setCurrentURI(theEntry);
coordinator.addURIToQueue(theEntry);
if(stateMap != null && isConfigured()) {
StateVariableValue firstTrackNumberEnqueued = stateMap.get("FirstTrackNumberEnqueued");
if(firstTrackNumberEnqueued!=null) {
coordinator.seek("TRACK_NR", firstTrackNumberEnqueued.getValue().toString());
}
}
coordinator.play();
return true;
}
else {
return false;
}
} else {
return false;
}
}
public boolean stop() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("Stop");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public boolean pause() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("Pause");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public boolean next() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("Next");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public boolean previous() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("Previous");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public String getZoneName() {
if(stateMap != null && isConfigured()) {
StateVariableValue value = stateMap.get("ZoneName");
if(value != null) {
return value.getValue().toString();
}
}
return null;
}
public String getZoneGroupID() {
if(stateMap != null && isConfigured()) {
StateVariableValue value = stateMap.get("LocalGroupUUID");
if(value != null) {
return value.getValue().toString();
}
}
return null;
}
public boolean isGroupCoordinator() {
if(stateMap != null && isConfigured()) {
StateVariableValue value = stateMap.get("GroupCoordinatorIsLocal");
if(value != null) {
return (Boolean) value.getValue();
}
}
return false;
}
public SonosZonePlayer getCoordinator(){
return sonosBinding.getCoordinatorForZonePlayer(this);
}
public boolean isCoordinator() {
return this.equals(getCoordinator());
}
public boolean addMember(SonosZonePlayer newMember) {
if(newMember != null && isConfigured()) {
SonosEntry entry = new SonosEntry("", "", "", "", "", "", "", "x-rincon:"+udn.getIdentifierString());
return newMember.setCurrentURI(entry);
} else {
return false;
}
}
public boolean removeMember(SonosZonePlayer oldMember){
if(oldMember != null && isConfigured()) {
oldMember.becomeStandAlonePlayer();
SonosEntry entry = new SonosEntry("", "", "", "", "", "", "", "x-rincon-queue:"+oldMember.getUdn().getIdentifierString()+"#0");
return oldMember.setCurrentURI(entry);
} else {
return false;
}
}
public boolean becomeStandAlonePlayer() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("BecomeCoordinatorOfStandaloneGroup");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public boolean setMute(String string) {
if(string != null && isConfigured()) {
Service service = device.findService(new UDAServiceId("RenderingControl"));
Action action = service.getAction("SetMute");
ActionInvocation invocation = new ActionInvocation(action);
try {
invocation.setInput("Channel", "Master");
if(string.equals("ON") || string.equals("OPEN") || string.equals("UP") ) {
invocation.setInput("DesiredMute", "True");
} else
if(string.equals("OFF") || string.equals("CLOSED") || string.equals("DOWN") ) {
invocation.setInput("DesiredMute", "False");
} else {
return false;
}
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public String getMute(){
if(stateMap != null && isConfigured()) {
StateVariableValue value = stateMap.get("MuteMaster");
if(value != null) {
return value.getValue().toString();
}
}
return null;
}
public boolean setVolume(String value) {
if(value != null && isConfigured()) {
Service service = device.findService(new UDAServiceId("RenderingControl"));
Action action = service.getAction("SetVolume");
ActionInvocation invocation = new ActionInvocation(action);
try {
String newValue = value;
if(value.equals("INCREASE")) {
int i = Integer.valueOf(this.getVolume());
newValue = String.valueOf(Math.min(100, i+1));
} else if (value.equals("DECREASE")) {
int i = Integer.valueOf(this.getVolume());
newValue = String.valueOf(Math.max(0, i-1));
} else if (value.equals("ON")) {
newValue = "100";
} else if (value.equals("OFF")) {
newValue = "0";
} else {
newValue = value;
}
invocation.setInput("Channel", "Master");
invocation.setInput("DesiredVolume",newValue);
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public String getVolume() {
if(stateMap != null && isConfigured()) {
StateVariableValue value = stateMap.get("VolumeMaster");
if(value != null) {
return value.getValue().toString();
}
}
return null;
}
public boolean updateTime() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AlarmClock"));
Action action = service.getAction("GetTimeNow");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public String getTime() {
if(isConfigured()) {
updateTime();
if(stateMap != null) {
StateVariableValue value = stateMap.get("CurrentLocalTime");
if(value != null) {
return value.getValue().toString();
}
}
}
return null;
}
protected void executeActionInvocation(ActionInvocation invocation) {
if(invocation != null) {
new ActionCallback.Default(invocation, upnpService.getControlPoint()).run();
ActionException anException = invocation.getFailure();
if(anException!= null && anException.getMessage()!=null) {
logger.warn(anException.getMessage());
}
Map<String, ActionArgumentValue> result = invocation.getOutputMap();
Map<String, StateVariableValue> mapToProcess = new HashMap<String, StateVariableValue>();
if(result != null) {
// only process the variables that have changed value
for(String variable : result.keySet()) {
ActionArgumentValue newArgument = result.get(variable);
StateVariable newVariable = new StateVariable(variable,new StateVariableTypeDetails(newArgument.getDatatype()));
StateVariableValue newValue = new StateVariableValue(newVariable, newArgument.getValue());
if(isUpdatedValue(variable,newValue)) {
mapToProcess.put(variable, newValue);
}
}
stateMap.putAll(mapToProcess);
sonosBinding.processVariableMap(device,mapToProcess);
}
}
}
public boolean updateRunningAlarmProperties() {
if(stateMap != null && isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("GetRunningAlarmProperties");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
// for this property we would like to "compile" a more friendly variable.
// this newly created "variable" is also store in the stateMap
StateVariableValue alarmID = stateMap.get("AlarmID");
StateVariableValue groupID = stateMap.get("GroupID");
StateVariableValue loggedStartTime = stateMap.get("LoggedStartTime");
String newStringValue = null;
if(alarmID != null && loggedStartTime != null) {
newStringValue = alarmID.getValue() + " - " + loggedStartTime.getValue();
} else {
newStringValue = "No running alarm";
}
StateVariable newVariable = new StateVariable("RunningAlarmProperties",new StateVariableTypeDetails(Datatype.Builtin.STRING.getDatatype()));
StateVariableValue newValue = new StateVariableValue(newVariable, newStringValue);
processStateVariableValue(newVariable.getName(),newValue);
return true;
} else {
return false;
}
}
public String getRunningAlarmProperties() {
if(isConfigured()) {
updateRunningAlarmProperties();
if(stateMap != null) {
StateVariableValue value = stateMap.get("RunningAlarmProperties");
if(value != null) {
return value.getValue().toString();
}
}
}
return null;
}
public boolean updateZoneInfo() {
if(stateMap != null && isConfigured()) {
Service service = device.findService(new UDAServiceId("DeviceProperties"));
Action action = service.getAction("GetZoneInfo");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
Service anotherservice = device.findService(new UDAServiceId("DeviceProperties"));
Action anotheraction = service.getAction("GetZoneAttributes");
ActionInvocation anotherinvocation = new ActionInvocation(anotheraction);
executeActionInvocation(anotherinvocation);
// anotherservice = device.findService(new UDAServiceId("ZoneGroupTopology"));
// anotheraction = service.getAction("GetZoneGroupState");
// anotherinvocation = new ActionInvocation(anotheraction);
// executeActionInvocation(anotherinvocation);
return true;
} else {
return false;
}
}
public String getMACAddress() {
if(isConfigured()) {
updateZoneInfo();
if(stateMap != null) {
StateVariableValue value = stateMap.get("MACAddress");
if(value != null) {
return value.getValue().toString();
}
}
}
return null;
}
public boolean setLed(String string) {
if(string != null && isConfigured()) {
Service service = device.findService(new UDAServiceId("DeviceProperties"));
Action action = service.getAction("SetLEDState");
ActionInvocation invocation = new ActionInvocation(action);
try {
if(string.equals("ON") || string.equals("OPEN") || string.equals("UP") ) {
invocation.setInput("DesiredLEDState", "On");
} else
if(string.equals("OFF") || string.equals("CLOSED") || string.equals("DOWN") ) {
invocation.setInput("DesiredLEDState", "Off");
} else {
return false;
}
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public boolean updateLed() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("DeviceProperties"));
Action action = service.getAction("GetLEDState");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
return true;
}
else {
return false;
}
}
public boolean getLed() {
if(isConfigured()) {
updateLed();
if(stateMap != null) {
StateVariableValue variable = stateMap.get("CurrentLEDState");
if(variable != null) {
return variable.getValue().equals("On") ? true : false;
}
}
}
return false;
}
public String getCurrentZoneName() {
if(isConfigured()) {
updateCurrentZoneName();
if(stateMap != null) {
StateVariableValue variable = stateMap.get("CurrentZoneName");
if(variable != null) {
return variable.getValue().toString();
}
}
}
return null;
}
public boolean updateCurrentZoneName() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("DeviceProperties"));
Action action = service.getAction("GetZoneAttributes");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
return true;
}
else {
return false;
}
}
public boolean updatePosition() {
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("GetPositionInfo");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
return true;
}
else {
return false;
}
}
public String getPosition() {
if(stateMap != null && isConfigured()) {
updatePosition();
if(stateMap != null) {
StateVariableValue variable = stateMap.get("RelTime");
if(variable != null) {
return variable.getValue().toString();
}
}
}
return null;
}
public boolean setPosition(String relTime) {
return seek("REL_TIME",relTime);
}
public boolean setPositionTrack(long tracknr) {
return seek("TRACK_NR",Long.toString(tracknr));
}
protected boolean seek(String unit, String target) {
if(isConfigured() && unit != null && target != null) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("Seek");
ActionInvocation invocation = new ActionInvocation(action);
try {
invocation.setInput("InstanceID","0");
invocation.setInput("Unit", unit);
invocation.setInput("Target", target);
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
}
return false;
}
public Boolean isLineInConnected() {
if(stateMap != null && isConfigured()) {
StateVariableValue statusLineIn = stateMap.get("LineInConnected");
if(statusLineIn != null) {
return (Boolean) statusLineIn.getValue();
}
}
return null;
}
public Boolean isAlarmRunning() {
if(stateMap != null && isConfigured()) {
StateVariableValue status = stateMap.get("AlarmRunning");
if(status!=null) {
return status.getValue().equals("1") ? true : false;
}
}
return null;
}
public String getTransportState() {
if(stateMap != null && isConfigured()) {
StateVariableValue status = stateMap.get("TransportState");
if(status != null) {
return status.getValue().toString();
}
}
return null;
}
public boolean addURIToQueue(String URI, String meta,int desiredFirstTrack, boolean enqueueAsNext) {
if(isConfigured() && URI != null && meta != null) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("AddURIToQueue");
ActionInvocation invocation = new ActionInvocation(action);
try {
invocation.setInput("InstanceID","0");
invocation.setInput("EnqueuedURI",URI);
invocation.setInput("EnqueuedURIMetaData",meta);
invocation.setInput("DesiredFirstTrackNumberEnqueued",new UnsignedIntegerFourBytes(desiredFirstTrack));
invocation.setInput("EnqueueAsNext",enqueueAsNext);
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
}
return false;
}
public String getCurrentURI(){
updateMediaInfo();
if(stateMap != null && isConfigured()) {
StateVariableValue status = stateMap.get("CurrentURI");
if(status != null) {
return status.getValue().toString();
}
}
return null;
}
public long getCurrenTrackNr() {
if(stateMap != null && isConfigured()) {
updatePosition();
if(stateMap != null) {
StateVariableValue variable = stateMap.get("Track");
if(variable != null) {
return ((UnsignedIntegerFourBytes)variable.getValue()).getValue();
}
}
}
return (long) -1;
}
public boolean updateMediaInfo(){
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("GetMediaInfo");
ActionInvocation invocation = new ActionInvocation(action);
try {
invocation.setInput("InstanceID","0");
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
}
return false;
}
public boolean addURIToQueue(SonosEntry newEntry) {
return addURIToQueue(newEntry.getRes(),SonosXMLParser.compileMetadataString(newEntry),1,true);
}
public boolean setCurrentURI(String URI, String URIMetaData ) {
if(URI != null && URIMetaData != null && isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("SetAVTransportURI");
ActionInvocation invocation = new ActionInvocation(action);
try {
invocation.setInput("InstanceID","0");
invocation.setInput("CurrentURI",URI);
invocation.setInput("CurrentURIMetaData", URIMetaData);
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
public boolean setCurrentURI(SonosEntry newEntry) {
return setCurrentURI(newEntry.getRes(),SonosXMLParser.compileMetadataString(newEntry));
}
public boolean updateCurrentURIFormatted() {
if(stateMap != null && isConfigured()) {
String currentURI = null;
SonosMetaData currentURIMetaData = null;
SonosMetaData currentTrack = null;
if(!isGroupCoordinator()) {
currentURI = getCoordinator().getCurrentURI();
currentURIMetaData = getCoordinator().getCurrentURIMetadata();
currentTrack = getCoordinator().getTrackMetadata();
} else {
currentURI = getCurrentURI();
currentURIMetaData = getCurrentURIMetadata();
currentTrack = getTrackMetadata();
}
if(currentURI != null) {
String resultString = null;
String artist = null;
String album = null;
String title = null;
if(currentURI.contains("x-sonosapi-stream")) {
//TODO: Get partner ID for openhab.org
String stationID = StringUtils.substringBetween(currentURI, ":s", "?sid");
StateVariable newVariable = new StateVariable("StationID",new StateVariableTypeDetails(Datatype.Builtin.STRING.getDatatype()));
StateVariableValue newValue = new StateVariableValue(newVariable, stationID);
if(this.isUpdatedValue("StationID", newValue) || lastOPMLQuery ==null || lastOPMLQuery.plusMinutes(1).isBeforeNow()) {
processStateVariableValue(newVariable.getName(),newValue);
String url = "http://opml.radiotime.com/Describe.ashx?c=nowplaying&id=" + stationID + "&partnerId=IAeIhU42&serial=" + getMACAddress();
String response = HttpUtil.executeUrl("GET", url, SO_TIMEOUT);
//logger.debug("RadioTime Response: {}",response);
lastOPMLQuery = DateTime.now();
List<String> fields = null;
try {
fields = SonosXMLParser.getRadioTimeFromXML(response);
} catch (SAXException e) {
logger.error("Could not parse RadioTime from String {}",response);
}
resultString = new String();
if(fields != null && fields.size()>1) {
Iterator<String> listIterator = fields.listIterator();
while(listIterator.hasNext()){
String field = listIterator.next();
resultString = resultString + field;
if(listIterator.hasNext()) {
resultString = resultString + " - ";
}
}
}
} else {
resultString = stateMap.get("CurrentURIFormatted").getValue().toString();
title = stateMap.get("CurrentTitle").getValue().toString();
}
} else {
if(currentTrack != null) {
if(!currentTrack.getTitle().contains("x-sonosapi-stream")) {
if (currentTrack.getAlbumArtist().equals("")) {
resultString = currentTrack.getCreator() + " - " + currentTrack.getAlbum() + " - " + currentTrack.getTitle();
artist = currentTrack.getCreator();
} else {
resultString = currentTrack.getAlbumArtist() + " - " + currentTrack.getAlbum() + " - " + currentTrack.getTitle();
artist = currentTrack.getAlbumArtist();
}
album = currentTrack.getAlbum();
title = currentTrack.getTitle();
}
} else {
resultString = "";
}
}
StateVariable newVariable = new StateVariable("CurrentURIFormatted",new StateVariableTypeDetails(Datatype.Builtin.STRING.getDatatype()));
StateVariableValue newValue = new StateVariableValue(newVariable, resultString);
processStateVariableValue(newVariable.getName(),newValue);
// update individual variables
newVariable = new StateVariable("CurrentArtist",new StateVariableTypeDetails(Datatype.Builtin.STRING.getDatatype()));
if (artist != null) {
newValue = new StateVariableValue(newVariable, artist);
} else {
newValue = new StateVariableValue(newVariable, " ");
}
processStateVariableValue(newVariable.getName(), newValue);
newVariable = new StateVariable("CurrentTitle",new StateVariableTypeDetails(Datatype.Builtin.STRING.getDatatype()));
if (title != null) {
newValue = new StateVariableValue(newVariable, title);
} else {
newValue = new StateVariableValue(newVariable, " ");
}
processStateVariableValue(newVariable.getName(), newValue);
newVariable = new StateVariable("CurrentAlbum",new StateVariableTypeDetails(Datatype.Builtin.STRING.getDatatype()));
if (album != null) {
newValue = new StateVariableValue(newVariable, album);
} else {
newValue = new StateVariableValue(newVariable, " ");
}
processStateVariableValue(newVariable.getName(), newValue);
return true;
}
}
return false;
}
public String getCurrentURIFormatted(){
updateCurrentURIFormatted();
if(stateMap != null && isConfigured()) {
StateVariableValue status = stateMap.get("CurrentURIFormatted");
if(status != null) {
return status.getValue().toString();
}
}
return null;
}
public String getCurrentURIMetadataAsString() {
if(stateMap != null && isConfigured()) {
StateVariableValue value = stateMap.get("CurrentTrackMetaData");
if(value != null) {
return value.getValue().toString();
}
}
return null;
}
public SonosMetaData getCurrentURIMetadata(){
if(stateMap != null && isConfigured()) {
StateVariableValue value = stateMap.get("CurrentURIMetaData");
SonosMetaData currentTrack = null;
if(value != null) {
try {
if(((String)value.getValue()).length()!=0) {
currentTrack = SonosXMLParser.getMetaDataFromXML((String)value.getValue());
}
} catch (SAXException e) {
logger.error("Could not parse MetaData from String {}",value.getValue().toString());
}
return currentTrack;
} else {
return null;
}
} else {
return null;
}
}
public SonosMetaData getTrackMetadata(){
if(stateMap != null && isConfigured()) {
StateVariableValue value = stateMap.get("CurrentTrackMetaData");
SonosMetaData currentTrack = null;
if(value != null) {
try {
if(((String)value.getValue()).length()!=0) {
currentTrack = SonosXMLParser.getMetaDataFromXML((String)value.getValue());
}
} catch (SAXException e) {
logger.error("Could not parse MetaData from String {}",value.getValue().toString());
}
return currentTrack;
} else {
return null;
}
} else {
return null;
}
}
public SonosMetaData getEnqueuedTransportURIMetaData(){
if(stateMap != null && isConfigured()) {
StateVariableValue value = stateMap.get("EnqueuedTransportURIMetaData");
SonosMetaData currentTrack = null;
if(value != null) {
try {
if(((String)value.getValue()).length()!=0) {
currentTrack = SonosXMLParser.getMetaDataFromXML((String)value.getValue());
}
} catch (SAXException e) {
logger.error("Could not parse MetaData from String {}",value.getValue().toString());
}
return currentTrack;
} else {
return null;
}
} else {
return null;
}
}
public String getCurrentVolume(){
if(stateMap != null && isConfigured()) {
StateVariableValue status = stateMap.get("VolumeMaster");
return status.getValue().toString();
} else {
return null;
}
}
protected List<SonosEntry> getEntries(String type, String filter){
List<SonosEntry> resultList = null;
if(isConfigured()) {
long startAt = 0;
Service service = device.findService(new UDAServiceId("ContentDirectory"));
Action action = service.getAction("Browse");
ActionInvocation invocation = new ActionInvocation(action);
try {
invocation.setInput("ObjectID",type);
invocation.setInput("BrowseFlag","BrowseDirectChildren");
invocation.setInput("Filter", filter);
invocation.setInput("StartingIndex",new UnsignedIntegerFourBytes(startAt));
invocation.setInput("RequestedCount",new UnsignedIntegerFourBytes( 200));
invocation.setInput("SortCriteria","");
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
// Execute this action synchronously
new ActionCallback.Default(invocation, upnpService.getControlPoint()).run();
Long totalMatches = ((UnsignedIntegerFourBytes) invocation.getOutput("TotalMatches").getValue()).getValue();
Long initialNumberReturned = ((UnsignedIntegerFourBytes) invocation.getOutput("NumberReturned").getValue()).getValue();
String initialResult = (String) invocation.getOutput("Result").getValue();
try {
resultList = SonosXMLParser.getEntriesFromString(initialResult);
} catch (SAXException e) {
logger.error("Could not parse Entries from String {}",initialResult);
}
startAt = startAt + initialNumberReturned;
while(startAt<totalMatches){
invocation = new ActionInvocation(action);
try {
invocation.setInput("ObjectID",type);
invocation.setInput("BrowseFlag","BrowseDirectChildren");
invocation.setInput("Filter", filter);
invocation.setInput("StartingIndex",new UnsignedIntegerFourBytes(startAt));
invocation.setInput("RequestedCount",new UnsignedIntegerFourBytes( 200));
invocation.setInput("SortCriteria","");
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
// Execute this action synchronously
new ActionCallback.Default(invocation, upnpService.getControlPoint()).run();
String result = (String) invocation.getOutput("Result").getValue();
int numberReturned = (Integer) invocation.getOutput("NumberReturned").getValue();
try {
resultList.addAll(SonosXMLParser.getEntriesFromString(result));
} catch (SAXException e) {
logger.error("Could not parse Entries from String {}",result);
}
startAt = startAt + numberReturned;
}
}
return resultList;
}
public List<SonosEntry> getArtists( String filter){
return getEntries("A:",filter);
}
public List<SonosEntry> getArtists(){
return getEntries("A:","dc:title,res,dc:creator,upnp:artist,upnp:album");
}
public List<SonosEntry> getAlbums(String filter){
return getEntries("A:ALBUM",filter);
}
public List<SonosEntry> getAlbums(){
return getEntries("A:ALBUM","dc:title,res,dc:creator,upnp:artist,upnp:album");
}
public List<SonosEntry> getTracks( String filter){
return getEntries("A:TRACKS",filter);
}
public List<SonosEntry> getTracks(){
return getEntries("A:TRACKS","dc:title,res,dc:creator,upnp:artist,upnp:album");
}
public List<SonosEntry> getQueue(String filter){
return getEntries("Q:0",filter);
}
public List<SonosEntry> getQueue(){
return getEntries("Q:0","dc:title,res,dc:creator,upnp:artist,upnp:album");
}
public List<SonosEntry> getPlayLists(String filter){
return getEntries("SQ:",filter);
}
public List<SonosEntry> getPlayLists(){
return getEntries("SQ:","dc:title,res,dc:creator,upnp:artist,upnp:album");
}
public List<SonosEntry> getFavoriteRadios(String filter){
return getEntries("R:0/0",filter);
}
public List<SonosEntry> getFavoriteRadios(){
return getEntries("R:0/0","dc:title,res,dc:creator,upnp:artist,upnp:album");
}
public List<SonosAlarm> getCurrentAlarmList(){
List<SonosAlarm> sonosAlarms = null;
if(isConfigured()) {
Service service = device.findService(new UDAServiceId("AlarmClock"));
Action action = service.getAction("ListAlarms");
ActionInvocation invocation = new ActionInvocation(action);
executeActionInvocation(invocation);
try {
sonosAlarms = SonosXMLParser.getAlarmsFromStringResult(invocation.getOutput("CurrentAlarmList").toString());
} catch (SAXException e) {
logger.error("Could not parse Alarms from String {}",invocation.getOutput("CurrentAlarmList").toString());
}
}
return sonosAlarms;
}
public boolean updateAlarm(SonosAlarm alarm) {
if(alarm != null && isConfigured()) {
Service service = device.findService(new UDAServiceId("AlarmClock"));
Action action = service.getAction("ListAlarms");
ActionInvocation invocation = new ActionInvocation(action);
DateTimeFormatter formatter = DateTimeFormat.forPattern("HH:mm:ss");
PeriodFormatter pFormatter= new PeriodFormatterBuilder()
.printZeroAlways()
.appendHours()
.appendSeparator(":")
.appendMinutes()
.appendSeparator(":")
.appendSeconds()
.toFormatter();
try {
invocation.setInput("ID",Integer.toString(alarm.getID()));
invocation.setInput("StartLocalTime",formatter.print(alarm.getStartTime()));
invocation.setInput("Duration",pFormatter.print(alarm.getDuration()));
invocation.setInput("Recurrence",alarm.getRecurrence());
invocation.setInput("RoomUUID",alarm.getRoomUUID());
invocation.setInput("ProgramURI",alarm.getProgramURI());
invocation.setInput("ProgramMetaData",alarm.getProgramMetaData());
invocation.setInput("PlayMode",alarm.getPlayMode());
invocation.setInput("Volume",Integer.toString(alarm.getVolume()));
if(alarm.getIncludeLinkedZones()) {
invocation.setInput("IncludeLinkedZones","1");
} else {
invocation.setInput("IncludeLinkedZones","0");
}
if(alarm.getEnabled()) {
invocation.setInput("Enabled", "1");
} else {
invocation.setInput("Enabled", "0");
}
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
}
else {
return false;
}
}
public boolean setAlarm(String alarmSwitch) {
if(alarmSwitch.equals("ON") || alarmSwitch.equals("OPEN") || alarmSwitch.equals("UP") ) {
return setAlarm(true);
} else
if(alarmSwitch.equals("OFF") || alarmSwitch.equals("CLOSED") || alarmSwitch.equals("DOWN") ) {
return setAlarm(false);
} else {
return false;
}
}
public boolean setAlarm(boolean alarmSwitch) {
List<SonosAlarm> sonosAlarms = getCurrentAlarmList();
if(isConfigured()) {
// find the nearest alarm - take the current time from the Sonos System, not the system where openhab is running
String currentLocalTime = getTime();
DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss");
DateTime currentDateTime = fmt.parseDateTime(currentLocalTime);
Duration shortestDuration = Period.days(10).toStandardDuration();
SonosAlarm firstAlarm = null;
for(SonosAlarm anAlarm : sonosAlarms) {
Duration duration = new Duration(currentDateTime,anAlarm.getStartTime());
if(anAlarm.getStartTime().isBefore(currentDateTime.plus(shortestDuration)) && anAlarm.getRoomUUID().equals(udn.getIdentifierString())) {
shortestDuration = duration;
firstAlarm = anAlarm;
}
}
// Set the Alarm
if(firstAlarm != null) {
if(alarmSwitch) {
firstAlarm.setEnabled(true);
} else {
firstAlarm.setEnabled(false);
}
return updateAlarm(firstAlarm);
} else {
return false;
}
} else {
return false;
}
}
public boolean snoozeAlarm(int minutes){
if(isAlarmRunning() && isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("SnoozeAlarm");
ActionInvocation invocation = new ActionInvocation(action);
Period snoozePeriod = Period.minutes(minutes);
PeriodFormatter pFormatter= new PeriodFormatterBuilder()
.printZeroAlways()
.appendHours()
.appendSeparator(":")
.appendMinutes()
.appendSeparator(":")
.appendSeconds()
.toFormatter();
try {
invocation.setInput("Duration",pFormatter.print(snoozePeriod));
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
} else {
logger.warn("There is no alarm running on {} ",this);
return false;
}
}
public boolean publicAddress(){
//check if sourcePlayer has a line-in connected
if(isLineInConnected() && isConfigured()) {
//first remove this player from its own group if any
becomeStandAlonePlayer();
List<SonosZoneGroup> currentSonosZoneGroups = new ArrayList<SonosZoneGroup>(sonosBinding.getSonosZoneGroups().size());
for(SonosZoneGroup grp : sonosBinding.getSonosZoneGroups()){
currentSonosZoneGroups.add((SonosZoneGroup) grp.clone());
}
//add all other players to this new group
for(SonosZoneGroup group : currentSonosZoneGroups){
for(String player : group.getMembers()){
SonosZonePlayer somePlayer = sonosBinding.getPlayerForID(player);
if(somePlayer != this){
somePlayer.becomeStandAlonePlayer();
somePlayer.stop();
addMember(somePlayer);
}
}
}
//set the URI of the group to the line-in
//TODO : check if this needs to be set on the group coordinator or can be done on any member
SonosZonePlayer coordinator = getCoordinator();
SonosEntry entry = new SonosEntry("", "", "", "", "", "", "", "x-rincon-stream:"+udn.getIdentifierString());
coordinator.setCurrentURI(entry);
coordinator.play();
return true;
} else {
logger.warn("Line-in of {} is not connected",this);
return false;
}
}
public boolean saveQueue(String name, String queueID) {
if(name != null && queueID != null && isConfigured()) {
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("SaveQueue");
ActionInvocation invocation = new ActionInvocation(action);
try {
invocation.setInput("Title", name);
invocation.setInput("ObjectID", queueID);
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}",ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",ex.getMessage());
}
executeActionInvocation(invocation);
return true;
} else {
return false;
}
}
/**
* Play a given url to music in one of the music libraries.
*
* @param url in the format of //host/folder/filename.mp3
* @return true if the url started to play
*/
public boolean playURI(String url) {
if (!isConfigured) {
return false;
}
SonosZonePlayer coordinator = sonosBinding
.getCoordinatorForZonePlayer(this);
// stop whatever is currently playing
coordinator.stop();
// clear any tracks which are pending in the queue
coordinator.removeAllTracksFromQueue();
// add the new track we want to play to the queue
if (!url.startsWith("x-")) {
// default to file based url
url = "x-file-cifs:" + url;
}
coordinator.addURIToQueue(url, "", 0, true);
// set the current playlist to our new queue
coordinator.setCurrentURI("x-rincon-queue:" + udn.getIdentifierString()
+ "#0", "");
// take the system off mute
coordinator.setMute("OFF");
// start jammin'
return coordinator.play();
}
/**
* Play music from the line-in of the Player given its name or UDN
*
* @param udn
* @return true if the sonos device started to play
*/
public boolean playLineIn(String remotePlayerName) {
if (!isConfigured) {
return false;
}
SonosZonePlayer coordinator = sonosBinding.getCoordinatorForZonePlayer(this);
SonosZonePlayer remotePlayer = sonosBinding.getPlayerForID(remotePlayerName);
// stop whatever is currently playing
coordinator.stop();
// set the
coordinator.setCurrentURI("x-rincon-stream:" + remotePlayer.getUdn().getIdentifierString(), "");
// take the system off mute
coordinator.setMute("OFF");
// start jammin'
return coordinator.play();
}
/**
* Clear all scheduled music from the current queue.
*
* @return true if no error occurred.
*/
public boolean removeAllTracksFromQueue() {
if (!isConfigured) {
return false;
}
Service service = device.findService(new UDAServiceId("AVTransport"));
Action action = service.getAction("RemoveAllTracksFromQueue");
ActionInvocation invocation = new ActionInvocation(action);
try {
invocation.setInput("InstanceID", "0");
} catch (InvalidValueException ex) {
logger.error("Action Invalid Value Exception {}", ex.getMessage());
} catch (NumberFormatException ex) {
logger.error("Action Invalid Value Format Exception {}",
ex.getMessage());
}
executeActionInvocation(invocation);
return true;
}
/**
* Save the state (track, position etc) of the Sonos Zone player.
*
* @return true if no error occurred.
*/
protected boolean saveState() {
synchronized (this) {
savedState = sonosBinding.new SonosZonePlayerState();
String currentURI = getCurrentURI();
if (currentURI != null) {
if (currentURI.contains("x-sonosapi-stream:")) {
// we are streaming music
SonosMetaData track = getTrackMetadata();
SonosMetaData current = getCurrentURIMetadata();
if (track != null) {
savedState.entry = new SonosEntry("",
current.getTitle(), "", "",
track.getAlbumArtUri(), "",
current.getUpnpClass(), currentURI);
}
} else if (currentURI.contains("x-rincon:")) {
// we are a slave to some coordinator
savedState.entry = new SonosEntry("", "", "", "",
"", "", "", currentURI);
} else if (currentURI.contains("x-rincon-stream:")) {
// we are streaming from the Line In connection
savedState.entry = new SonosEntry("", "", "", "",
"", "", "", currentURI);
} else if (currentURI.contains("x-rincon-queue:")) {
// we are playing something that sits in the queue
SonosMetaData queued = getEnqueuedTransportURIMetaData();
if (queued != null) {
savedState.track = getCurrenTrackNr();
if (queued.getUpnpClass().contains(
"object.container.playlistContainer")) {
// we are playing a real 'saved' playlist
List<SonosEntry> playLists = getPlayLists();
for (SonosEntry someList : playLists) {
if (someList.getTitle().equals(
queued.getTitle())) {
savedState.entry = new SonosEntry(
someList.getId(),
someList.getTitle(),
someList.getParentId(), "",
"", "",
someList.getUpnpClass(),
someList.getRes());
break;
}
}
} else if (queued.getUpnpClass().contains(
"object.container")) {
// we are playing some other sort of
// 'container' - we will save that to a
// playlist for our convenience
logger.debug(
"Save State for a container of type {}",
queued.getUpnpClass());
// save the playlist
String existingList = "";
List<SonosEntry> playLists = getPlayLists();
for (SonosEntry someList : playLists) {
if (someList.getTitle().equals(
"openHAB-" + getUdn())) {
existingList = someList.getId();
break;
}
}
saveQueue(
"openHAB-" + getUdn(),
existingList);
// get all the playlists and a ref to our
// saved list
playLists = getPlayLists();
for (SonosEntry someList : playLists) {
if (someList.getTitle().equals(
"openHAB-" + getUdn())) {
savedState.entry = new SonosEntry(
someList.getId(),
someList.getTitle(),
someList.getParentId(), "",
"", "",
someList.getUpnpClass(),
someList.getRes());
break;
}
}
}
} else {
savedState.entry = new SonosEntry("", "", "",
"", "", "", "", "x-rincon-queue:"
+ getUdn()
.getIdentifierString()
+ "#0");
}
}
savedState.transportState = getTransportState();
savedState.volume = getCurrentVolume();
savedState.relTime = getPosition();
} else {
savedState.entry = null;
}
return true;
}
}
/**
* Restore the state (track, position etc) of the Sonos Zone player.
*
* @return true if no error occurred.
*/
protected boolean restoreState() {
synchronized (this) {
if (savedState != null) {
// put settings back
setVolume(savedState.volume);
if (isCoordinator()) {
if (savedState.entry != null) {
// check if we have a playlist to deal with
if (savedState.entry
.getUpnpClass()
.contains(
"object.container.playlistContainer")) {
addURIToQueue(
savedState.entry.getRes(),
SonosXMLParser
.compileMetadataString(savedState.entry),
0, true);
SonosEntry entry = new SonosEntry(
"",
"",
"",
"",
"",
"",
"",
"x-rincon-queue:"
+ getUdn()
.getIdentifierString()
+ "#0");
setCurrentURI(entry);
setPositionTrack(savedState.track);
} else {
setCurrentURI(savedState.entry);
setPosition(savedState.relTime);
}
if (savedState.transportState
.equals("PLAYING")) {
play();
} else if (savedState.transportState
.equals("STOPPED")) {
stop();
} else if (savedState.transportState
.equals("PAUSED_PLAYBACK")) {
pause();
}
}
}
}
return true;
}
}
} | PlegmaLabs/openhab | bundles/binding/org.openhab.binding.sonos/src/main/java/org/openhab/binding/sonos/internal/SonosZonePlayer.java | Java | epl-1.0 | 54,954 |
/**
* Copyright (c) 2010-2021 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.openhab.binding.enocean.internal.handler;
import static org.openhab.binding.enocean.internal.EnOceanBindingConstants.*;
import java.util.Set;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.function.Predicate;
import org.eclipse.jdt.annotation.NonNull;
import org.openhab.binding.enocean.internal.config.EnOceanActuatorConfig;
import org.openhab.binding.enocean.internal.config.EnOceanChannelRockerSwitchConfigBase.SwitchMode;
import org.openhab.binding.enocean.internal.config.EnOceanChannelRockerSwitchListenerConfig;
import org.openhab.binding.enocean.internal.config.EnOceanChannelVirtualRockerSwitchConfig;
import org.openhab.binding.enocean.internal.eep.EEP;
import org.openhab.binding.enocean.internal.eep.EEPFactory;
import org.openhab.binding.enocean.internal.eep.EEPType;
import org.openhab.binding.enocean.internal.messages.BasePacket;
import org.openhab.core.library.types.OnOffType;
import org.openhab.core.library.types.StopMoveType;
import org.openhab.core.library.types.StringType;
import org.openhab.core.library.types.UpDownType;
import org.openhab.core.thing.Channel;
import org.openhab.core.thing.ChannelUID;
import org.openhab.core.thing.CommonTriggerEvents;
import org.openhab.core.thing.Thing;
import org.openhab.core.thing.ThingStatus;
import org.openhab.core.thing.ThingStatusDetail;
import org.openhab.core.thing.ThingTypeUID;
import org.openhab.core.thing.link.ItemChannelLinkRegistry;
import org.openhab.core.thing.type.ChannelTypeUID;
import org.openhab.core.types.Command;
import org.openhab.core.types.RefreshType;
import org.openhab.core.util.HexUtils;
/**
*
* @author Daniel Weber - Initial contribution
* This class defines base functionality for sending eep messages. This class extends EnOceanBaseSensorHandler
* class as most actuator things send status or response messages, too.
*/
public class EnOceanClassicDeviceHandler extends EnOceanBaseActuatorHandler {
// List of thing types which support sending of eep messages
public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Set.of(THING_TYPE_CLASSICDEVICE);
private StringType lastTriggerEvent = StringType.valueOf(CommonTriggerEvents.DIR1_PRESSED);
ScheduledFuture<?> releaseFuture = null;
public EnOceanClassicDeviceHandler(Thing thing, ItemChannelLinkRegistry itemChannelLinkRegistry) {
super(thing, itemChannelLinkRegistry);
}
@Override
void initializeConfig() {
super.initializeConfig();
((EnOceanActuatorConfig) config).broadcastMessages = true;
((EnOceanActuatorConfig) config).enoceanId = EMPTYENOCEANID;
}
@Override
public long getEnOceanIdToListenTo() {
return 0;
}
@Override
public void channelLinked(@NonNull ChannelUID channelUID) {
super.channelLinked(channelUID);
// if linked channel is a listening channel => put listener
Channel channel = getThing().getChannel(channelUID);
addListener(channel);
}
@Override
public void thingUpdated(Thing thing) {
super.thingUpdated(thing);
// it seems that there does not exist a channel update callback
// => remove all listeners and add them again
getBridgeHandler().removePacketListener(this);
this.getThing().getChannels().forEach(c -> {
if (isLinked(c.getUID()) && !addListener(c)) {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "Wrong channel configuration");
}
});
}
@Override
public void channelUnlinked(@NonNull ChannelUID channelUID) {
super.channelUnlinked(channelUID);
// if unlinked channel is listening channel => remove listener
Channel channel = getThing().getChannel(channelUID);
removeListener(channel);
}
protected boolean addListener(Channel channel) {
if (channel == null) {
return true;
}
ChannelTypeUID channelTypeUID = channel.getChannelTypeUID();
String id = channelTypeUID == null ? "" : channelTypeUID.getId();
if (id.startsWith(CHANNEL_ROCKERSWITCHLISTENER_START)) {
EnOceanChannelRockerSwitchListenerConfig config = channel.getConfiguration()
.as(EnOceanChannelRockerSwitchListenerConfig.class);
try {
getBridgeHandler().addPacketListener(this, Long.parseLong(config.enoceanId, 16));
return true;
} catch (NumberFormatException e) {
}
return false;
}
return true;
}
protected void removeListener(Channel channel) {
if (channel == null) {
return;
}
ChannelTypeUID channelTypeUID = channel.getChannelTypeUID();
String id = channelTypeUID == null ? "" : channelTypeUID.getId();
if (id.startsWith(CHANNEL_ROCKERSWITCHLISTENER_START)) {
EnOceanChannelRockerSwitchListenerConfig config = channel.getConfiguration()
.as(EnOceanChannelRockerSwitchListenerConfig.class);
try {
getBridgeHandler().removePacketListener(this, Long.parseLong(config.enoceanId, 16));
} catch (NumberFormatException e) {
}
}
}
@Override
protected Predicate<Channel> channelFilter(EEPType eepType, byte[] senderId) {
return c -> {
ChannelTypeUID channelTypeUID = c.getChannelTypeUID();
String id = channelTypeUID == null ? "" : channelTypeUID.getId();
return id.startsWith(CHANNEL_ROCKERSWITCHLISTENER_START)
&& c.getConfiguration().as(EnOceanChannelRockerSwitchListenerConfig.class).enoceanId
.equalsIgnoreCase(HexUtils.bytesToHex(senderId));
};
}
@SuppressWarnings("unlikely-arg-type")
private StringType convertToReleasedCommand(StringType command) {
return command.equals(CommonTriggerEvents.DIR1_PRESSED) ? StringType.valueOf(CommonTriggerEvents.DIR1_RELEASED)
: StringType.valueOf(CommonTriggerEvents.DIR2_RELEASED);
}
private StringType convertToPressedCommand(Command command, SwitchMode switchMode) {
if (command instanceof StringType) {
return (StringType) command;
} else if (command instanceof OnOffType) {
switch (switchMode) {
case RockerSwitch:
return (command == OnOffType.ON) ? StringType.valueOf(CommonTriggerEvents.DIR1_PRESSED)
: StringType.valueOf(CommonTriggerEvents.DIR2_PRESSED);
case ToggleDir1:
return StringType.valueOf(CommonTriggerEvents.DIR1_PRESSED);
case ToggleDir2:
return StringType.valueOf(CommonTriggerEvents.DIR2_PRESSED);
default:
return null;
}
} else if (command instanceof UpDownType) {
switch (switchMode) {
case RockerSwitch:
return (command == UpDownType.UP) ? StringType.valueOf(CommonTriggerEvents.DIR1_PRESSED)
: StringType.valueOf(CommonTriggerEvents.DIR2_PRESSED);
case ToggleDir1:
return StringType.valueOf(CommonTriggerEvents.DIR1_PRESSED);
case ToggleDir2:
return StringType.valueOf(CommonTriggerEvents.DIR2_PRESSED);
default:
return null;
}
} else if (command instanceof StopMoveType) {
if (command == StopMoveType.STOP) {
return lastTriggerEvent;
}
}
return null;
}
@Override
public void handleCommand(@NonNull ChannelUID channelUID, @NonNull Command command) {
// We must have a valid sendingEEPType and sender id to send commands
if (sendingEEPType == null || senderId == null || command == RefreshType.REFRESH) {
return;
}
String channelId = channelUID.getId();
Channel channel = getThing().getChannel(channelUID);
if (channel == null) {
return;
}
ChannelTypeUID channelTypeUID = channel.getChannelTypeUID();
String channelTypeId = (channelTypeUID != null) ? channelTypeUID.getId() : "";
if (channelTypeId.contains("Listener")) {
return;
}
EnOceanChannelVirtualRockerSwitchConfig channelConfig = channel.getConfiguration()
.as(EnOceanChannelVirtualRockerSwitchConfig.class);
StringType result = convertToPressedCommand(command, channelConfig.getSwitchMode());
if (result != null) {
lastTriggerEvent = result;
EEP eep = EEPFactory.createEEP(sendingEEPType);
if (eep.setSenderId(senderId).setDestinationId(destinationId).convertFromCommand(channelId, channelTypeId,
result, id -> this.getCurrentState(id), channel.getConfiguration()).hasData()) {
BasePacket press = eep.setSuppressRepeating(getConfiguration().suppressRepeating).getERP1Message();
getBridgeHandler().sendMessage(press, null);
if (channelConfig.duration > 0) {
releaseFuture = scheduler.schedule(() -> {
if (eep.convertFromCommand(channelId, channelTypeId, convertToReleasedCommand(lastTriggerEvent),
id -> this.getCurrentState(id), channel.getConfiguration()).hasData()) {
BasePacket release = eep.getERP1Message();
getBridgeHandler().sendMessage(release, null);
}
}, channelConfig.duration, TimeUnit.MILLISECONDS);
}
}
}
}
@Override
public void handleRemoval() {
if (releaseFuture != null && !releaseFuture.isDone()) {
releaseFuture.cancel(true);
}
releaseFuture = null;
super.handleRemoval();
}
}
| paulianttila/openhab2 | bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/handler/EnOceanClassicDeviceHandler.java | Java | epl-1.0 | 10,512 |
/**
* DB Systel GmbH / i.S.A. Dresden GmbH & Co. KG (c) 2010
*/
package org.flowr.ant.tasks;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.PropertyHelper;
/**
* Ant task evaluating the lead part before a specified separator.
*<p>usage:</p>
* <pre>
* <tailString property="<i>result.prop.name</i>" separator="<i>anySeparatorText</i>" last="<i>true|false, default==false</i>" text="<i>any text or ${property.to.scan}</i>" />
* </pre>
* <p>Sample</p>
*<pre>
* <property name="build.version.full" value="1.0.0.201101012359" /><br>
* <tailString property="build.version" separator="." last="true" text="${build.version.full}" /><br>
* <echo message="build.version = ${build.version}" /><br>
*
* results "build.version = 201101012359"
*</pre>
* @author SvenKrause
*
*/
public class TailStringTask extends AbstractSeparatorbasedStringTask {
private boolean last;
/**
* @param last the last to set
*/
public void setLast(boolean last) {
this.last = last;
}
@Override
public void init() throws BuildException {
super.init();
last = false;
}
@Override
public void execute() throws BuildException {
validate();
PropertyHelper ph = PropertyHelper.getPropertyHelper(this.getProject());
int indexOf = last ? text.lastIndexOf(separator) : text.indexOf(separator);
if (indexOf != -1) {
String lead = text.substring(indexOf + separator.length(), text.length());
ph.setProperty("", propName, lead, true);
} else {
ph.setProperty("", propName, "", true);
}
}
}
| krasv/flowr | commons/ant/org.flowr.ant.tasks/src/main/java/org/flowr/ant/tasks/TailStringTask.java | Java | epl-1.0 | 1,637 |
//$Id: IndexedCollectionTest.java 18638 2010-01-26 20:11:51Z steve.ebersole@jboss.com $
package org.hibernate.test.annotations.indexcoll;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.hibernate.Hibernate;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.dialect.HSQLDialect;
import org.hibernate.junit.RequiresDialect;
import org.hibernate.mapping.Collection;
import org.hibernate.mapping.Column;
import org.hibernate.test.annotations.TestCase;
/**
* Test index collections
*
* @author Emmanuel Bernard
*/
public class IndexedCollectionTest extends TestCase {
public void testJPA2DefaultMapColumns() throws Exception {
isDefaultKeyColumnPresent( Atmosphere.class.getName(), "gasesDef", "_KEY" );
isDefaultKeyColumnPresent( Atmosphere.class.getName(), "gasesPerKeyDef", "_KEY" );
isNotDefaultKeyColumnPresent( Atmosphere.class.getName(), "gasesDefLeg", "_KEY" );
}
public void testJPA2DefaultIndexColumns() throws Exception {
isDefaultKeyColumnPresent( Drawer.class.getName(), "dresses", "_ORDER" );
}
private void isDefaultKeyColumnPresent(String collectionOwner, String propertyName, String suffix) {
assertTrue( "Could not find " + propertyName + suffix,
isDefaultColumnPresent(collectionOwner, propertyName, suffix) );
}
private boolean isDefaultColumnPresent(String collectionOwner, String propertyName, String suffix) {
final Collection collection = getCfg().getCollectionMapping( collectionOwner + "." + propertyName );
final Iterator columnIterator = collection.getCollectionTable().getColumnIterator();
boolean hasDefault = false;
while ( columnIterator.hasNext() ) {
Column column = (Column) columnIterator.next();
if ( (propertyName + suffix).equals( column.getName() ) ) hasDefault = true;
}
return hasDefault;
}
private void isNotDefaultKeyColumnPresent(String collectionOwner, String propertyName, String suffix) {
assertFalse( "Could not find " + propertyName + suffix,
isDefaultColumnPresent(collectionOwner, propertyName, suffix) );
}
public void testFkList() throws Exception {
Wardrobe w = new Wardrobe();
Drawer d1 = new Drawer();
Drawer d2 = new Drawer();
w.setDrawers( new ArrayList<Drawer>() );
w.getDrawers().add( d1 );
w.getDrawers().add( d2 );
Session s;
Transaction tx;
s = openSession();
tx = s.beginTransaction();
s.persist( w );
s.flush();
s.clear();
w = (Wardrobe) s.get( Wardrobe.class, w.getId() );
assertNotNull( w );
assertNotNull( w.getDrawers() );
List<Drawer> result = w.getDrawers();
assertEquals( 2, result.size() );
assertEquals( d2.getId(), result.get( 1 ).getId() );
result.remove( d1 );
s.flush();
d1 = (Drawer) s.merge( d1 );
result.add( d1 );
s.flush();
s.clear();
w = (Wardrobe) s.get( Wardrobe.class, w.getId() );
assertNotNull( w );
assertNotNull( w.getDrawers() );
result = w.getDrawers();
assertEquals( 2, result.size() );
assertEquals( d1.getId(), result.get( 1 ).getId() );
s.delete( result.get( 0 ) );
s.delete( result.get( 1 ) );
s.delete( w );
s.flush();
tx.rollback();
s.close();
}
public void testJoinedTableList() throws Exception {
Wardrobe w = new Wardrobe();
w.setDrawers( new ArrayList<Drawer>() );
Drawer d = new Drawer();
w.getDrawers().add( d );
Dress d1 = new Dress();
Dress d2 = new Dress();
d.setDresses( new ArrayList<Dress>() );
d.getDresses().add( d1 );
d.getDresses().add( d2 );
Session s;
Transaction tx;
s = openSession();
tx = s.beginTransaction();
s.persist( d1 );
s.persist( d2 );
s.persist( w );
s.flush();
s.clear();
d = (Drawer) s.get( Drawer.class, d.getId() );
assertNotNull( d );
assertNotNull( d.getDresses() );
List<Dress> result = d.getDresses();
assertEquals( 2, result.size() );
assertEquals( d2.getId(), result.get( 1 ).getId() );
result.remove( d1 );
s.flush();
d1 = (Dress) s.merge( d1 );
result.add( d1 );
s.flush();
s.clear();
d = (Drawer) s.get( Drawer.class, d.getId() );
assertNotNull( d );
assertNotNull( d.getDresses() );
result = d.getDresses();
assertEquals( 2, result.size() );
assertEquals( d1.getId(), result.get( 1 ).getId() );
s.delete( result.get( 0 ) );
s.delete( result.get( 1 ) );
s.delete( d );
s.flush();
tx.rollback();
s.close();
}
public void testMapKey() throws Exception {
Session s;
Transaction tx;
s = openSession();
tx = s.beginTransaction();
Software hibernate = new Software();
hibernate.setName( "Hibernate" );
Version v1 = new Version();
v1.setCodeName( "HumbaHumba" );
v1.setNumber( "1.0" );
v1.setSoftware( hibernate );
Version v2 = new Version();
v2.setCodeName( "Copacabana" );
v2.setNumber( "2.0" );
v2.setSoftware( hibernate );
Version v4 = new Version();
v4.setCodeName( "Dreamland" );
v4.setNumber( "4.0" );
v4.setSoftware( hibernate );
Map<String, Version> link = new HashMap<String, Version>();
link.put( v1.getCodeName(), v1 );
link.put( v2.getCodeName(), v2 );
link.put( v4.getCodeName(), v4 );
hibernate.setVersions( link );
s.persist( hibernate );
s.persist( v1 );
s.persist( v2 );
s.persist( v4 );
s.flush();
s.clear();
hibernate = (Software) s.get( Software.class, "Hibernate" );
assertEquals( 3, hibernate.getVersions().size() );
assertEquals( "1.0", hibernate.getVersions().get( "HumbaHumba" ).getNumber() );
assertEquals( "2.0", hibernate.getVersions().get( "Copacabana" ).getNumber() );
hibernate.getVersions().remove( v4.getCodeName() );
s.flush();
s.clear();
hibernate = (Software) s.get( Software.class, "Hibernate" );
assertEquals( "So effect on collection changes", 3, hibernate.getVersions().size() );
for ( Version v : hibernate.getVersions().values() ) {
s.delete( v );
}
s.delete( hibernate );
s.flush();
tx.rollback();
s.close();
}
public void testDefaultMapKey() throws Exception {
Session s;
Transaction tx;
s = openSession();
tx = s.beginTransaction();
AddressBook book = new AddressBook();
book.setOwner( "Emmanuel" );
AddressEntryPk helene = new AddressEntryPk( "Helene", "Michau" );
AddressEntry heleneEntry = new AddressEntry();
heleneEntry.setBook( book );
heleneEntry.setCity( "Levallois" );
heleneEntry.setStreet( "Louis Blanc" );
heleneEntry.setPerson( helene );
AddressEntryPk primeMinister = new AddressEntryPk( "Dominique", "Villepin" );
AddressEntry primeMinisterEntry = new AddressEntry();
primeMinisterEntry.setBook( book );
primeMinisterEntry.setCity( "Paris" );
primeMinisterEntry.setStreet( "Hotel Matignon" );
primeMinisterEntry.setPerson( primeMinister );
book.getEntries().put( helene, heleneEntry );
book.getEntries().put( primeMinister, primeMinisterEntry );
s.persist( book );
s.flush();
s.clear();
book = (AddressBook) s.get( AddressBook.class, book.getId() );
assertEquals( 2, book.getEntries().size() );
assertEquals( heleneEntry.getCity(), book.getEntries().get( helene ).getCity() );
AddressEntryPk fake = new AddressEntryPk( "Fake", "Fake" );
book.getEntries().put( fake, primeMinisterEntry );
s.flush();
s.clear();
book = (AddressBook) s.get( AddressBook.class, book.getId() );
assertEquals( 2, book.getEntries().size() );
assertNull( book.getEntries().get( fake ) );
s.delete( book );
s.flush();
tx.rollback();
s.close();
}
public void testMapKeyToEntity() throws Exception {
Session s;
Transaction tx;
s = openSession();
tx = s.beginTransaction();
AlphabeticalDirectory m = new AlphabeticalDirectory();
m.setName( "M" );
AlphabeticalDirectory v = new AlphabeticalDirectory();
v.setName( "V" );
s.persist( m );
s.persist( v );
AddressBook book = new AddressBook();
book.setOwner( "Emmanuel" );
AddressEntryPk helene = new AddressEntryPk( "Helene", "Michau" );
AddressEntry heleneEntry = new AddressEntry();
heleneEntry.setBook( book );
heleneEntry.setCity( "Levallois" );
heleneEntry.setStreet( "Louis Blanc" );
heleneEntry.setPerson( helene );
heleneEntry.setDirectory( m );
AddressEntryPk primeMinister = new AddressEntryPk( "Dominique", "Villepin" );
AddressEntry primeMinisterEntry = new AddressEntry();
primeMinisterEntry.setBook( book );
primeMinisterEntry.setCity( "Paris" );
primeMinisterEntry.setStreet( "Hotel Matignon" );
primeMinisterEntry.setPerson( primeMinister );
primeMinisterEntry.setDirectory( v );
book.getEntries().put( helene, heleneEntry );
book.getEntries().put( primeMinister, primeMinisterEntry );
s.persist( book );
s.flush();
s.clear();
book = (AddressBook) s.get( AddressBook.class, book.getId() );
assertEquals( 2, book.getEntries().size() );
assertEquals( heleneEntry.getCity(), book.getEntries().get( helene ).getCity() );
assertEquals( "M", book.getEntries().get( helene ).getDirectory().getName() );
s.delete( book );
tx.rollback();
s.close();
}
@RequiresDialect(HSQLDialect.class)
public void testComponentSubPropertyMapKey() throws Exception {
Session s;
Transaction tx;
s = openSession();
tx = s.beginTransaction();
AddressBook book = new AddressBook();
book.setOwner( "Emmanuel" );
AddressEntryPk helene = new AddressEntryPk( "Helene", "Michau" );
AddressEntry heleneEntry = new AddressEntry();
heleneEntry.setBook( book );
heleneEntry.setCity( "Levallois" );
heleneEntry.setStreet( "Louis Blanc" );
heleneEntry.setPerson( helene );
AddressEntryPk primeMinister = new AddressEntryPk( "Dominique", "Villepin" );
AddressEntry primeMinisterEntry = new AddressEntry();
primeMinisterEntry.setBook( book );
primeMinisterEntry.setCity( "Paris" );
primeMinisterEntry.setStreet( "Hotel Matignon" );
primeMinisterEntry.setPerson( primeMinister );
book.getEntries().put( helene, heleneEntry );
book.getEntries().put( primeMinister, primeMinisterEntry );
s.persist( book );
s.flush();
s.clear();
book = (AddressBook) s.get( AddressBook.class, book.getId() );
assertEquals( 2, book.getLastNameEntries().size() );
assertEquals( heleneEntry.getCity(), book.getLastNameEntries().get( "Michau" ).getCity() );
AddressEntryPk fake = new AddressEntryPk( "Fake", "Fake" );
book.getEntries().put( fake, primeMinisterEntry );
s.flush();
s.clear();
book = (AddressBook) s.get( AddressBook.class, book.getId() );
assertEquals( 2, book.getEntries().size() );
assertNull( book.getEntries().get( fake ) );
s.delete( book );
tx.rollback();
s.close();
}
public void testMapKeyOnManyToMany() throws Exception {
Session s;
s = openSession();
s.getTransaction().begin();
News airplane = new News();
airplane.setTitle( "Crash!" );
airplane.setDetail( "An airplaned crashed." );
s.persist( airplane );
Newspaper lemonde = new Newspaper();
lemonde.setName( "Lemonde" );
lemonde.getNews().put( airplane.getTitle(), airplane );
s.persist( lemonde );
s.flush();
s.clear();
lemonde = (Newspaper) s.get( Newspaper.class, lemonde.getId() );
assertEquals( 1, lemonde.getNews().size() );
News news = lemonde.getNews().get( airplane.getTitle() );
assertNotNull( news );
assertEquals( airplane.getTitle(), news.getTitle() );
s.delete( lemonde );
s.delete( news );
s.getTransaction().rollback();
s.close();
}
public void testMapKeyOnManyToManyOnId() throws Exception {
Session s;
s = openSession();
s.getTransaction().begin();
News hibernate1 = new News();
hibernate1.setTitle( "#1 ORM solution in the Java world" );
hibernate1.setDetail( "Well, that's no news ;-)" );
s.persist( hibernate1 );
PressReleaseAgency schwartz = new PressReleaseAgency();
schwartz.setName( "Schwartz" );
schwartz.getProvidedNews().put( hibernate1.getId(), hibernate1 );
s.persist( schwartz );
s.flush();
s.clear();
schwartz = (PressReleaseAgency) s.get( PressReleaseAgency.class, schwartz.getId() );
assertEquals( 1, schwartz.getProvidedNews().size() );
News news = schwartz.getProvidedNews().get( hibernate1.getId() );
assertNotNull( news );
assertEquals( hibernate1.getTitle(), news.getTitle() );
s.delete( schwartz );
s.delete( news );
s.getTransaction().rollback();
s.close();
}
public void testMapKeyAndIdClass() throws Exception {
Session s = openSession();
Transaction tx = s.beginTransaction();
Painter picasso = new Painter();
Painting laVie = new Painting( "La Vie", "Picasso", 50, 20 );
picasso.getPaintings().put( "La Vie", laVie );
Painting famille = new Painting( "La Famille du Saltimbanque", "Picasso", 50, 20 );
picasso.getPaintings().put( "La Famille du Saltimbanque", famille );
s.persist( picasso );
s.flush();
s.clear();
picasso = (Painter) s.get( Painter.class, picasso.getId() );
Painting painting = picasso.getPaintings().get( famille.getName() );
assertNotNull( painting );
assertEquals( painting.getName(), famille.getName() );
s.delete( picasso );
tx.rollback();
s.close();
}
public void testRealMap() throws Exception {
Session s = openSession();
Transaction tx = s.beginTransaction();
Atmosphere atm = new Atmosphere();
Atmosphere atm2 = new Atmosphere();
GasKey key = new GasKey();
key.setName( "O2" );
Gas o2 = new Gas();
o2.name = "oxygen";
atm.gases.put( "100%", o2 );
atm.gasesPerKey.put( key, o2 );
atm2.gases.put( "100%", o2 );
atm2.gasesPerKey.put( key, o2 );
s.persist( key );
s.persist( atm );
s.persist( atm2 );
s.flush();
s.clear();
atm = (Atmosphere) s.get( Atmosphere.class, atm.id );
key = (GasKey) s.get( GasKey.class, key.getName() );
assertEquals( 1, atm.gases.size() );
assertEquals( o2.name, atm.gases.get( "100%" ).name );
assertEquals( o2.name, atm.gasesPerKey.get( key ).name );
tx.rollback();
s.close();
}
public void testTemporalKeyMap() throws Exception {
Session s = openSession();
Transaction tx = s.beginTransaction();
Atmosphere atm = new Atmosphere();
atm.colorPerDate.put( new Date(1234567000), "red" );
s.persist( atm );
s.flush();
s.clear();
atm = (Atmosphere) s.get( Atmosphere.class, atm.id );
assertEquals( 1, atm.colorPerDate.size() );
final Date date = atm.colorPerDate.keySet().iterator().next();
final long diff = new Date( 1234567000 ).getTime() - date.getTime();
assertTrue( "24h diff max", diff > 0 && diff < 24*60*60*1000 );
tx.rollback();
s.close();
}
public void testEnumKeyType() throws Exception {
Session s = openSession();
Transaction tx = s.beginTransaction();
Atmosphere atm = new Atmosphere();
atm.colorPerLevel.put( Atmosphere.Level.HIGH, "red" );
s.persist( atm );
s.flush();
s.clear();
atm = (Atmosphere) s.get( Atmosphere.class, atm.id );
assertEquals( 1, atm.colorPerLevel.size() );
assertEquals( "red", atm.colorPerLevel.get(Atmosphere.Level.HIGH) );
tx.rollback();
s.close();
}
public void testMapKeyEntityEntity() throws Exception {
Session s = openSession();
Transaction tx = s.beginTransaction();
AddressBook book = new AddressBook();
s.persist( book );
AddressEntry entry = new AddressEntry();
entry.setCity( "Atlanta");
AddressEntryPk pk = new AddressEntryPk("Coca", "Cola" );
entry.setPerson( pk );
entry.setBook( book );
AlphabeticalDirectory ad = new AlphabeticalDirectory();
ad.setName( "C");
s.persist( ad );
entry.setDirectory( ad );
s.persist( entry );
book.getDirectoryEntries().put( ad, entry );
s.flush();
s.clear();
book = (AddressBook) s.get( AddressBook.class, book.getId() );
assertEquals( 1, book.getDirectoryEntries().size() );
assertEquals( "C", book.getDirectoryEntries().keySet().iterator().next().getName() );
tx.rollback();
s.close();
}
public void testEntityKeyElementTarget() throws Exception {
Session s = openSession();
Transaction tx = s.beginTransaction();
Atmosphere atm = new Atmosphere();
Gas o2 = new Gas();
o2.name = "oxygen";
atm.composition.put( o2, 94.3 );
s.persist( o2 );
s.persist( atm );
s.flush();
s.clear();
atm = (Atmosphere) s.get( Atmosphere.class, atm.id );
assertTrue( ! Hibernate.isInitialized( atm.composition ) );
assertEquals( 1, atm.composition.size() );
assertEquals( o2.name, atm.composition.keySet().iterator().next().name );
tx.rollback();
s.close();
}
public void testSortedMap() {
Session s = openSession();
Transaction tx = s.beginTransaction();
Training training = new Training();
Trainee trainee = new Trainee();
trainee.setName( "Jim" );
Trainee trainee2 = new Trainee();
trainee2.setName( "Emmanuel" );
s.persist( trainee );
s.persist( trainee2 );
training.getTrainees().put( "Jim", trainee );
training.getTrainees().put( "Emmanuel", trainee2 );
s.persist( training );
s.flush();
s.clear();
training = (Training) s.get( Training.class, training.getId() );
assertEquals( "Emmanuel", training.getTrainees().firstKey() );
assertEquals( "Jim", training.getTrainees().lastKey() );
tx.rollback();
s.close();
}
public void testMapKeyLoad() throws Exception {
Session s;
Transaction tx;
s = openSession();
tx = s.beginTransaction();
Software hibernate = new Software();
hibernate.setName( "Hibernate" );
Version v1 = new Version();
v1.setCodeName( "HumbaHumba" );
v1.setNumber( "1.0" );
v1.setSoftware( hibernate );
hibernate.addVersion( v1 );
s.persist( hibernate );
s.persist( v1 );
s.flush();
s.clear();
hibernate = (Software) s.get( Software.class, "Hibernate" );
assertEquals(1, hibernate.getVersions().size() );
Version v2 = new Version();
v2.setCodeName( "HumbaHumba2" );
v2.setNumber( "2.0" );
v2.setSoftware( hibernate );
hibernate.addVersion( v2 );
assertEquals( "One loaded persisted version, and one just added", 2, hibernate.getVersions().size() );
s.flush();
s.clear();
hibernate = (Software) s.get( Software.class, "Hibernate" );
for ( Version v : hibernate.getVersions().values() ) {
s.delete( v );
}
s.delete( hibernate );
tx.rollback();
s.close();
}
public IndexedCollectionTest(String x) {
super( x );
}
protected Class[] getAnnotatedClasses() {
return new Class[]{
Wardrobe.class,
Drawer.class,
Dress.class,
Software.class,
Version.class,
AddressBook.class,
AddressEntry.class,
AddressEntryPk.class, //should be silently ignored
Newspaper.class,
News.class,
PressReleaseAgency.class,
Painter.class,
Painting.class,
Atmosphere.class,
Gas.class,
AlphabeticalDirectory.class,
GasKey.class,
Trainee.class,
Training.class
};
}
}
| ControlSystemStudio/cs-studio | thirdparty/plugins/org.csstudio.platform.libs.hibernate/project/annotations/src/test/java/org/hibernate/test/annotations/indexcoll/IndexedCollectionTest.java | Java | epl-1.0 | 18,621 |
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.controller.sal.action;
import java.net.InetAddress;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Set network source address action
*/
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class SetNwSrc extends Action {
InetAddress address;
/* Dummy constructor for JAXB */
private SetNwSrc () {
}
public SetNwSrc(InetAddress address) {
type = ActionType.SET_NW_SRC;
this.address = address;
}
/**
* Returns the network address this action will set
*
* @return InetAddress
*/
public InetAddress getAddress() {
return address;
}
@XmlElement (name="address")
public String getAddressAsString() {
return address.getHostAddress();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
SetNwSrc other = (SetNwSrc) obj;
if (address == null) {
if (other.address != null)
return false;
} else if (!address.equals(other.address))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((address == null) ? 0 : address.hashCode());
return result;
}
@Override
public String toString() {
return type + "[address = " + address + "]";
}
}
| martinmathewhuawei/daylight-cisco-ctrl | opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwSrc.java | Java | epl-1.0 | 2,034 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Uses of Package org.eclipse.oomph.setup (Oomph Setup Documentation)</title>
<meta name="date" content="">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Package org.eclipse.oomph.setup (Oomph Setup Documentation)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/oomph/setup/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Uses of Package org.eclipse.oomph.setup" class="title">Uses of Package<br>org.eclipse.oomph.setup</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup">org.eclipse.oomph.setup</a></td>
<td class="colLast">
<div class="block">The generated EMF API of the setup model.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.git">org.eclipse.oomph.setup.git</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.git.impl">org.eclipse.oomph.setup.git.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.git.util">org.eclipse.oomph.setup.git.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.impl">org.eclipse.oomph.setup.impl</a></td>
<td class="colLast">
<div class="block">The generated EMF implementation of the setup model.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.jdt">org.eclipse.oomph.setup.jdt</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.jdt.impl">org.eclipse.oomph.setup.jdt.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.jdt.util">org.eclipse.oomph.setup.jdt.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.launching">org.eclipse.oomph.setup.launching</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.launching.impl">org.eclipse.oomph.setup.launching.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.launching.util">org.eclipse.oomph.setup.launching.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.log">org.eclipse.oomph.setup.log</a></td>
<td class="colLast">
<div class="block">Interfaces and classes to support logging and progress monitoring.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.maven">org.eclipse.oomph.setup.maven</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.maven.impl">org.eclipse.oomph.setup.maven.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.maven.util">org.eclipse.oomph.setup.maven.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.mylyn">org.eclipse.oomph.setup.mylyn</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.mylyn.impl">org.eclipse.oomph.setup.mylyn.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.mylyn.util">org.eclipse.oomph.setup.mylyn.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.p2">org.eclipse.oomph.setup.p2</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.p2.impl">org.eclipse.oomph.setup.p2.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.p2.util">org.eclipse.oomph.setup.p2.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.pde">org.eclipse.oomph.setup.pde</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.pde.impl">org.eclipse.oomph.setup.pde.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.pde.util">org.eclipse.oomph.setup.pde.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.projects">org.eclipse.oomph.setup.projects</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.projects.impl">org.eclipse.oomph.setup.projects.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.projects.util">org.eclipse.oomph.setup.projects.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.projectset">org.eclipse.oomph.setup.projectset</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.projectset.impl">org.eclipse.oomph.setup.projectset.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.projectset.util">org.eclipse.oomph.setup.projectset.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.targlets">org.eclipse.oomph.setup.targlets</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.targlets.impl">org.eclipse.oomph.setup.targlets.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.targlets.util">org.eclipse.oomph.setup.targlets.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.util">org.eclipse.oomph.setup.util</a></td>
<td class="colLast">
<div class="block">The generated EMF utilities of the setup model and other utility classes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.workbench">org.eclipse.oomph.setup.workbench</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.workbench.impl">org.eclipse.oomph.setup.workbench.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.workbench.util">org.eclipse.oomph.setup.workbench.util</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.workingsets">org.eclipse.oomph.setup.workingsets</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.workingsets.impl">org.eclipse.oomph.setup.workingsets.impl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.eclipse.oomph.setup.workingsets.util">org.eclipse.oomph.setup.workingsets.util</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/AttributeRule.html#org.eclipse.oomph.setup">AttributeRule</a>
<div class="block">A representation of the model object '<em><b>Attribute Rule</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/CatalogSelection.html#org.eclipse.oomph.setup">CatalogSelection</a>
<div class="block">A representation of the model object '<em><b>Catalog Selection</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/CompoundTask.html#org.eclipse.oomph.setup">CompoundTask</a>
<div class="block">A representation of the model object '<em><b>Compound Setup Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/EclipseIniTask.html#org.eclipse.oomph.setup">EclipseIniTask</a>
<div class="block">A representation of the model object '<em><b>Eclipse Ini Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Index.html#org.eclipse.oomph.setup">Index</a>
<div class="block">A representation of the model object '<em><b>Index</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Installation.html#org.eclipse.oomph.setup">Installation</a>
<div class="block">A representation of the model object '<em><b>Installation</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/InstallationTask.html#org.eclipse.oomph.setup">InstallationTask</a>
<div class="block">A representation of the model object '<em><b>Installation Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/LicenseInfo.html#org.eclipse.oomph.setup">LicenseInfo</a> </td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/LinkLocationTask.html#org.eclipse.oomph.setup">LinkLocationTask</a>
<div class="block">A representation of the model object '<em><b>Link Location Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/LocationCatalog.html#org.eclipse.oomph.setup">LocationCatalog</a>
<div class="block">A representation of the model object '<em><b>Location Catalog</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/PreferenceTask.html#org.eclipse.oomph.setup">PreferenceTask</a>
<div class="block">A representation of the model object '<em><b>Eclipse Preference Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Product.html#org.eclipse.oomph.setup">Product</a>
<div class="block">A representation of the model object '<em><b>Product</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProductCatalog.html#org.eclipse.oomph.setup">ProductCatalog</a>
<div class="block">A representation of the model object '<em><b>Product Catalog</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProductVersion.html#org.eclipse.oomph.setup">ProductVersion</a>
<div class="block">A representation of the model object '<em><b>Eclipse Version</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Project.html#org.eclipse.oomph.setup">Project</a>
<div class="block">A representation of the model object '<em><b>Project</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProjectCatalog.html#org.eclipse.oomph.setup">ProjectCatalog</a>
<div class="block">A representation of the model object '<em><b>Configuration</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProjectContainer.html#org.eclipse.oomph.setup">ProjectContainer</a>
<div class="block">A representation of the model object '<em><b>Project Container</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/RedirectionTask.html#org.eclipse.oomph.setup">RedirectionTask</a>
<div class="block">A representation of the model object '<em><b>Redirection Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ResourceCopyTask.html#org.eclipse.oomph.setup">ResourceCopyTask</a>
<div class="block">A representation of the model object '<em><b>Resource Copy Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ResourceCreationTask.html#org.eclipse.oomph.setup">ResourceCreationTask</a>
<div class="block">A representation of the model object '<em><b>Resource Creation Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Scope.html#org.eclipse.oomph.setup">Scope</a>
<div class="block">A representation of the model object '<em><b>Scope</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ScopeType.html#org.eclipse.oomph.setup">ScopeType</a>
<div class="block">A representation of the literals of the enumeration '<em><b>Task Scope</b></em>',
and utility methods for working with them.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupFactory.html#org.eclipse.oomph.setup">SetupFactory</a>
<div class="block">The <b>Factory</b> for the model.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupPackage.html#org.eclipse.oomph.setup">SetupPackage</a>
<div class="block">The <b>Package</b> for the model.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContainer.html#org.eclipse.oomph.setup">SetupTaskContainer</a>
<div class="block">A representation of the model object '<em><b>Task Container</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup">SetupTaskContext</a> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Stream.html#org.eclipse.oomph.setup">Stream</a>
<div class="block">A representation of the model object '<em><b>Branch</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/StringSubstitutionTask.html#org.eclipse.oomph.setup">StringSubstitutionTask</a>
<div class="block">A representation of the model object '<em><b>String Substitution Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/TextModification.html#org.eclipse.oomph.setup">TextModification</a>
<div class="block">A representation of the model object '<em><b>Text Modification</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/TextModifyTask.html#org.eclipse.oomph.setup">TextModifyTask</a>
<div class="block">A representation of the model object '<em><b>Text Modify Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Trigger.html#org.eclipse.oomph.setup">Trigger</a>
<div class="block">A representation of the literals of the enumeration '<em><b>Trigger</b></em>',
and utility methods for working with them.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/UnsignedPolicy.html#org.eclipse.oomph.setup">UnsignedPolicy</a>
<div class="block">A representation of the literals of the enumeration '<em><b>Unsigned Policy</b></em>',
and utility methods for working with them.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/User.html#org.eclipse.oomph.setup">User</a>
<div class="block">A representation of the model object '<em><b>Preferences</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/VariableChoice.html#org.eclipse.oomph.setup">VariableChoice</a>
<div class="block">A representation of the model object '<em><b>Variable Choice</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/VariableTask.html#org.eclipse.oomph.setup">VariableTask</a>
<div class="block">A representation of the model object '<em><b>Context Variable Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/VariableType.html#org.eclipse.oomph.setup">VariableType</a>
<div class="block">A representation of the literals of the enumeration '<em><b>Variable Type</b></em>',
and utility methods for working with them.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Workspace.html#org.eclipse.oomph.setup">Workspace</a>
<div class="block">A representation of the model object '<em><b>Workspace</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/WorkspaceTask.html#org.eclipse.oomph.setup">WorkspaceTask</a>
<div class="block">A representation of the model object '<em><b>Workspace Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.git">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/git/package-summary.html">org.eclipse.oomph.setup.git</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.git">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.git.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/git/impl/package-summary.html">org.eclipse.oomph.setup.git.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.git.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.git.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.git.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/git/util/package-summary.html">org.eclipse.oomph.setup.git.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.git.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/impl/package-summary.html">org.eclipse.oomph.setup.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/AttributeRule.html#org.eclipse.oomph.setup.impl">AttributeRule</a>
<div class="block">A representation of the model object '<em><b>Attribute Rule</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/CatalogSelection.html#org.eclipse.oomph.setup.impl">CatalogSelection</a>
<div class="block">A representation of the model object '<em><b>Catalog Selection</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/CompoundTask.html#org.eclipse.oomph.setup.impl">CompoundTask</a>
<div class="block">A representation of the model object '<em><b>Compound Setup Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/EclipseIniTask.html#org.eclipse.oomph.setup.impl">EclipseIniTask</a>
<div class="block">A representation of the model object '<em><b>Eclipse Ini Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Index.html#org.eclipse.oomph.setup.impl">Index</a>
<div class="block">A representation of the model object '<em><b>Index</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Installation.html#org.eclipse.oomph.setup.impl">Installation</a>
<div class="block">A representation of the model object '<em><b>Installation</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/InstallationTask.html#org.eclipse.oomph.setup.impl">InstallationTask</a>
<div class="block">A representation of the model object '<em><b>Installation Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/LicenseInfo.html#org.eclipse.oomph.setup.impl">LicenseInfo</a> </td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/LinkLocationTask.html#org.eclipse.oomph.setup.impl">LinkLocationTask</a>
<div class="block">A representation of the model object '<em><b>Link Location Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/LocationCatalog.html#org.eclipse.oomph.setup.impl">LocationCatalog</a>
<div class="block">A representation of the model object '<em><b>Location Catalog</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/PreferenceTask.html#org.eclipse.oomph.setup.impl">PreferenceTask</a>
<div class="block">A representation of the model object '<em><b>Eclipse Preference Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Product.html#org.eclipse.oomph.setup.impl">Product</a>
<div class="block">A representation of the model object '<em><b>Product</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProductCatalog.html#org.eclipse.oomph.setup.impl">ProductCatalog</a>
<div class="block">A representation of the model object '<em><b>Product Catalog</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProductVersion.html#org.eclipse.oomph.setup.impl">ProductVersion</a>
<div class="block">A representation of the model object '<em><b>Eclipse Version</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Project.html#org.eclipse.oomph.setup.impl">Project</a>
<div class="block">A representation of the model object '<em><b>Project</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProjectCatalog.html#org.eclipse.oomph.setup.impl">ProjectCatalog</a>
<div class="block">A representation of the model object '<em><b>Configuration</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProjectContainer.html#org.eclipse.oomph.setup.impl">ProjectContainer</a>
<div class="block">A representation of the model object '<em><b>Project Container</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/RedirectionTask.html#org.eclipse.oomph.setup.impl">RedirectionTask</a>
<div class="block">A representation of the model object '<em><b>Redirection Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ResourceCopyTask.html#org.eclipse.oomph.setup.impl">ResourceCopyTask</a>
<div class="block">A representation of the model object '<em><b>Resource Copy Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ResourceCreationTask.html#org.eclipse.oomph.setup.impl">ResourceCreationTask</a>
<div class="block">A representation of the model object '<em><b>Resource Creation Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Scope.html#org.eclipse.oomph.setup.impl">Scope</a>
<div class="block">A representation of the model object '<em><b>Scope</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ScopeType.html#org.eclipse.oomph.setup.impl">ScopeType</a>
<div class="block">A representation of the literals of the enumeration '<em><b>Task Scope</b></em>',
and utility methods for working with them.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupFactory.html#org.eclipse.oomph.setup.impl">SetupFactory</a>
<div class="block">The <b>Factory</b> for the model.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupPackage.html#org.eclipse.oomph.setup.impl">SetupPackage</a>
<div class="block">The <b>Package</b> for the model.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContainer.html#org.eclipse.oomph.setup.impl">SetupTaskContainer</a>
<div class="block">A representation of the model object '<em><b>Task Container</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.impl">SetupTaskContext</a> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Stream.html#org.eclipse.oomph.setup.impl">Stream</a>
<div class="block">A representation of the model object '<em><b>Branch</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/StringSubstitutionTask.html#org.eclipse.oomph.setup.impl">StringSubstitutionTask</a>
<div class="block">A representation of the model object '<em><b>String Substitution Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/TextModification.html#org.eclipse.oomph.setup.impl">TextModification</a>
<div class="block">A representation of the model object '<em><b>Text Modification</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/TextModifyTask.html#org.eclipse.oomph.setup.impl">TextModifyTask</a>
<div class="block">A representation of the model object '<em><b>Text Modify Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Trigger.html#org.eclipse.oomph.setup.impl">Trigger</a>
<div class="block">A representation of the literals of the enumeration '<em><b>Trigger</b></em>',
and utility methods for working with them.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/UnsignedPolicy.html#org.eclipse.oomph.setup.impl">UnsignedPolicy</a>
<div class="block">A representation of the literals of the enumeration '<em><b>Unsigned Policy</b></em>',
and utility methods for working with them.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/User.html#org.eclipse.oomph.setup.impl">User</a>
<div class="block">A representation of the model object '<em><b>Preferences</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/VariableChoice.html#org.eclipse.oomph.setup.impl">VariableChoice</a>
<div class="block">A representation of the model object '<em><b>Variable Choice</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/VariableTask.html#org.eclipse.oomph.setup.impl">VariableTask</a>
<div class="block">A representation of the model object '<em><b>Context Variable Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/VariableType.html#org.eclipse.oomph.setup.impl">VariableType</a>
<div class="block">A representation of the literals of the enumeration '<em><b>Variable Type</b></em>',
and utility methods for working with them.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Workspace.html#org.eclipse.oomph.setup.impl">Workspace</a>
<div class="block">A representation of the model object '<em><b>Workspace</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/WorkspaceTask.html#org.eclipse.oomph.setup.impl">WorkspaceTask</a>
<div class="block">A representation of the model object '<em><b>Workspace Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.jdt">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/jdt/package-summary.html">org.eclipse.oomph.setup.jdt</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.jdt">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.jdt.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/jdt/impl/package-summary.html">org.eclipse.oomph.setup.jdt.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.jdt.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.jdt.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.jdt.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/jdt/util/package-summary.html">org.eclipse.oomph.setup.jdt.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.jdt.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.launching">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/launching/package-summary.html">org.eclipse.oomph.setup.launching</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.launching">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.launching.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/launching/impl/package-summary.html">org.eclipse.oomph.setup.launching.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.launching.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.launching.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.launching.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/launching/util/package-summary.html">org.eclipse.oomph.setup.launching.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.launching.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.log">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/log/package-summary.html">org.eclipse.oomph.setup.log</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.log">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.maven">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/maven/package-summary.html">org.eclipse.oomph.setup.maven</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.maven">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.maven.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/maven/impl/package-summary.html">org.eclipse.oomph.setup.maven.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.maven.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.maven.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.maven.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/maven/util/package-summary.html">org.eclipse.oomph.setup.maven.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.maven.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.mylyn">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/mylyn/package-summary.html">org.eclipse.oomph.setup.mylyn</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.mylyn">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.mylyn.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/mylyn/impl/package-summary.html">org.eclipse.oomph.setup.mylyn.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.mylyn.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.mylyn.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.mylyn.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/mylyn/util/package-summary.html">org.eclipse.oomph.setup.mylyn.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.mylyn.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.p2">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/p2/package-summary.html">org.eclipse.oomph.setup.p2</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.p2">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.p2.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/p2/impl/package-summary.html">org.eclipse.oomph.setup.p2.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.p2.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.p2.impl">SetupTaskContext</a> </td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/User.html#org.eclipse.oomph.setup.p2.impl">User</a>
<div class="block">A representation of the model object '<em><b>Preferences</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.p2.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/p2/util/package-summary.html">org.eclipse.oomph.setup.p2.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.p2.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.pde">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/pde/package-summary.html">org.eclipse.oomph.setup.pde</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.pde">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.pde.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/pde/impl/package-summary.html">org.eclipse.oomph.setup.pde.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.pde.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.pde.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.pde.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/pde/util/package-summary.html">org.eclipse.oomph.setup.pde.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.pde.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.projects">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/projects/package-summary.html">org.eclipse.oomph.setup.projects</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.projects">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.projects.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/projects/impl/package-summary.html">org.eclipse.oomph.setup.projects.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.projects.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.projects.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.projects.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/projects/util/package-summary.html">org.eclipse.oomph.setup.projects.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.projects.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.projectset">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/projectset/package-summary.html">org.eclipse.oomph.setup.projectset</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.projectset">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.projectset.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/projectset/impl/package-summary.html">org.eclipse.oomph.setup.projectset.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.projectset.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.projectset.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.projectset.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/projectset/util/package-summary.html">org.eclipse.oomph.setup.projectset.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.projectset.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.targlets">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/targlets/package-summary.html">org.eclipse.oomph.setup.targlets</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.targlets">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.targlets.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/targlets/impl/package-summary.html">org.eclipse.oomph.setup.targlets.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.targlets.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.targlets.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.targlets.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/targlets/util/package-summary.html">org.eclipse.oomph.setup.targlets.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.targlets.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/util/package-summary.html">org.eclipse.oomph.setup.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/AttributeRule.html#org.eclipse.oomph.setup.util">AttributeRule</a>
<div class="block">A representation of the model object '<em><b>Attribute Rule</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/CatalogSelection.html#org.eclipse.oomph.setup.util">CatalogSelection</a>
<div class="block">A representation of the model object '<em><b>Catalog Selection</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/CompoundTask.html#org.eclipse.oomph.setup.util">CompoundTask</a>
<div class="block">A representation of the model object '<em><b>Compound Setup Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/EclipseIniTask.html#org.eclipse.oomph.setup.util">EclipseIniTask</a>
<div class="block">A representation of the model object '<em><b>Eclipse Ini Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Index.html#org.eclipse.oomph.setup.util">Index</a>
<div class="block">A representation of the model object '<em><b>Index</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Installation.html#org.eclipse.oomph.setup.util">Installation</a>
<div class="block">A representation of the model object '<em><b>Installation</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/InstallationTask.html#org.eclipse.oomph.setup.util">InstallationTask</a>
<div class="block">A representation of the model object '<em><b>Installation Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/LinkLocationTask.html#org.eclipse.oomph.setup.util">LinkLocationTask</a>
<div class="block">A representation of the model object '<em><b>Link Location Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/LocationCatalog.html#org.eclipse.oomph.setup.util">LocationCatalog</a>
<div class="block">A representation of the model object '<em><b>Location Catalog</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/PreferenceTask.html#org.eclipse.oomph.setup.util">PreferenceTask</a>
<div class="block">A representation of the model object '<em><b>Eclipse Preference Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Product.html#org.eclipse.oomph.setup.util">Product</a>
<div class="block">A representation of the model object '<em><b>Product</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProductCatalog.html#org.eclipse.oomph.setup.util">ProductCatalog</a>
<div class="block">A representation of the model object '<em><b>Product Catalog</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProductVersion.html#org.eclipse.oomph.setup.util">ProductVersion</a>
<div class="block">A representation of the model object '<em><b>Eclipse Version</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Project.html#org.eclipse.oomph.setup.util">Project</a>
<div class="block">A representation of the model object '<em><b>Project</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProjectCatalog.html#org.eclipse.oomph.setup.util">ProjectCatalog</a>
<div class="block">A representation of the model object '<em><b>Configuration</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ProjectContainer.html#org.eclipse.oomph.setup.util">ProjectContainer</a>
<div class="block">A representation of the model object '<em><b>Project Container</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/RedirectionTask.html#org.eclipse.oomph.setup.util">RedirectionTask</a>
<div class="block">A representation of the model object '<em><b>Redirection Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ResourceCopyTask.html#org.eclipse.oomph.setup.util">ResourceCopyTask</a>
<div class="block">A representation of the model object '<em><b>Resource Copy Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/ResourceCreationTask.html#org.eclipse.oomph.setup.util">ResourceCreationTask</a>
<div class="block">A representation of the model object '<em><b>Resource Creation Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Scope.html#org.eclipse.oomph.setup.util">Scope</a>
<div class="block">A representation of the model object '<em><b>Scope</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupPackage.html#org.eclipse.oomph.setup.util">SetupPackage</a>
<div class="block">The <b>Package</b> for the model.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContainer.html#org.eclipse.oomph.setup.util">SetupTaskContainer</a>
<div class="block">A representation of the model object '<em><b>Task Container</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Stream.html#org.eclipse.oomph.setup.util">Stream</a>
<div class="block">A representation of the model object '<em><b>Branch</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/StringSubstitutionTask.html#org.eclipse.oomph.setup.util">StringSubstitutionTask</a>
<div class="block">A representation of the model object '<em><b>String Substitution Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/TextModification.html#org.eclipse.oomph.setup.util">TextModification</a>
<div class="block">A representation of the model object '<em><b>Text Modification</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/TextModifyTask.html#org.eclipse.oomph.setup.util">TextModifyTask</a>
<div class="block">A representation of the model object '<em><b>Text Modify Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/User.html#org.eclipse.oomph.setup.util">User</a>
<div class="block">A representation of the model object '<em><b>Preferences</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/VariableChoice.html#org.eclipse.oomph.setup.util">VariableChoice</a>
<div class="block">A representation of the model object '<em><b>Variable Choice</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/VariableTask.html#org.eclipse.oomph.setup.util">VariableTask</a>
<div class="block">A representation of the model object '<em><b>Context Variable Task</b></em>'.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/Workspace.html#org.eclipse.oomph.setup.util">Workspace</a>
<div class="block">A representation of the model object '<em><b>Workspace</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/WorkspaceTask.html#org.eclipse.oomph.setup.util">WorkspaceTask</a>
<div class="block">A representation of the model object '<em><b>Workspace Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.workbench">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/workbench/package-summary.html">org.eclipse.oomph.setup.workbench</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.workbench">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.workbench.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/workbench/impl/package-summary.html">org.eclipse.oomph.setup.workbench.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.workbench.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.workbench.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.workbench.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/workbench/util/package-summary.html">org.eclipse.oomph.setup.workbench.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.workbench.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.workingsets">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/workingsets/package-summary.html">org.eclipse.oomph.setup.workingsets</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.workingsets">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.workingsets.impl">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/workingsets/impl/package-summary.html">org.eclipse.oomph.setup.workingsets.impl</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.workingsets.impl">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTaskContext.html#org.eclipse.oomph.setup.workingsets.impl">SetupTaskContext</a> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.eclipse.oomph.setup.workingsets.util">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../org/eclipse/oomph/setup/package-summary.html">org.eclipse.oomph.setup</a> used by <a href="../../../../org/eclipse/oomph/setup/workingsets/util/package-summary.html">org.eclipse.oomph.setup.workingsets.util</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../org/eclipse/oomph/setup/class-use/SetupTask.html#org.eclipse.oomph.setup.workingsets.util">SetupTask</a>
<div class="block">A representation of the model object '<em><b>Task</b></em>'.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/oomph/setup/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><i class="copyright">Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.<br>All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html</i></small></p>
</body>
</html>
| peterkir/org.eclipse.oomph | plugins/org.eclipse.oomph.setup.doc/javadoc/org/eclipse/oomph/setup/package-use.html | HTML | epl-1.0 | 76,596 |
/*******************************************************************************
* Copyright (c) 2010, 2012 Tasktop Technologies
* Copyright (c) 2010, 2011 SpringSource, a division of VMware
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Tasktop Technologies - initial API and implementation
******************************************************************************/
package com.tasktop.c2c.server.profile.web.ui.client.presenter;
import net.customware.gwt.dispatch.client.DispatchAsync;
import com.google.gwt.user.client.ui.IsWidget;
import com.tasktop.c2c.server.common.profile.web.client.AppState;
import com.tasktop.c2c.server.common.profile.web.client.ProfileServiceAsync;
import com.tasktop.c2c.server.common.web.client.presenter.AbstractPresenter;
import com.tasktop.c2c.server.common.web.client.view.CommonGinjector;
import com.tasktop.c2c.server.profile.web.ui.client.ProfileEntryPoint;
public abstract class AbstractProfilePresenter extends AbstractPresenter {
protected AbstractProfilePresenter(IsWidget view) {
super(view);
}
public AppState getAppState() {
return ProfileEntryPoint.getInstance().getAppState();
}
public ProfileServiceAsync getProfileService() {
return ProfileEntryPoint.getInstance().getProfileService();
}
protected DispatchAsync getDispatchService() {
return CommonGinjector.get.instance().getDispatchService();
}
}
| Tasktop/code2cloud.server | com.tasktop.c2c.server/com.tasktop.c2c.server.profile.web.ui/src/main/java/com/tasktop/c2c/server/profile/web/ui/client/presenter/AbstractProfilePresenter.java | Java | epl-1.0 | 1,611 |
# meshblu-clojure
FIXME: description
## Installation
Download from http://example.com/FIXME.
## Usage
FIXME: explanation
$ java -jar meshblu-clojure-0.1.0-standalone.jar [args]
## Options
FIXME: listing of options this app accepts.
## Examples
...
### Bugs
...
### Any Other Sections
### That You Think
### Might be Useful
## License
Copyright © 2016 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.
| redaphid/meshblu-clojure | README.md | Markdown | epl-1.0 | 481 |
/*******************************************************************************
* Copyright (c) 2013 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* EclipseSource - initial API and implementation
* Benjamin Pabst - further development
******************************************************************************/
package com.xeviox.commons.conditions;
import java.lang.reflect.InvocationTargetException;
public final class Clauses {
public static class Clause {
private final boolean condition;
public Clause(boolean condition) {
this.condition = condition;
}
public void throwIllegalState() {
if (condition) {
throw new IllegalStateException();
}
}
public void throwIllegalState(final String message) {
if (condition) {
throw new IllegalStateException(message);
}
}
public void throwNullPointer() {
if (condition) {
throw new NullPointerException();
}
}
public void throwNullPointer(final String message) {
if (condition) {
throw new NullPointerException(message);
}
}
public void throwIllegalArgument() {
if (condition) {
throw new IllegalArgumentException();
}
}
public void throwIllegalArgument(final String message) {
if (condition) {
throw new IllegalArgumentException(message);
}
}
public <T extends RuntimeException> void doThrow(T rt) {
if (condition) {
throw rt;
}
}
public void doThrow(Class<? extends RuntimeException> clazz) {
if (!condition) {
return;
}
try {
throw clazz.newInstance();
}
catch (InstantiationException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}
public void doThrow(Class<? extends RuntimeException> clazz, final String message) {
if (!condition) {
return;
}
try {
throw clazz.getDeclaredConstructor(String.class).newInstance(message);
}
catch (InstantiationException | IllegalAccessException | NoSuchMethodException
| InvocationTargetException e) {
throw new RuntimeException(e);
}
}
}
private static Clause TRUE_CLAUSE = new Clause(true);
private static Clause FALSE_CLAUSE = new Clause(false);
public static Clause when(boolean condition) {
return condition ? TRUE_CLAUSE : FALSE_CLAUSE;
}
public static Clause whenNot(boolean condition) {
return when(!condition);
}
public static Clause whenNull(Object object) {
return when(object == null);
}
/**
* Performs a null check and returns the given reference.
*
* @param reference
* @return reference
* @throws NullPointerException if reference is null.
*/
public static <T> T nullChecked(final T reference) {
whenNull(reference).throwNullPointer();
return reference;
}
/**
* Performs a null check and returns the given reference.
*
* @param reference
* @param message Additional message to be added to the {@link NullPointerException}.
* @return
* @throws NullPointerException if reference is null.
*/
public static <T> T nullChecked(final T reference, final String message) {
whenNull(reference).throwNullPointer(message);
return reference;
}
private Clauses() {
// prevent instantiation
}
} | xeviox-com/blackstrap | src/com/xeviox/commons/conditions/Clauses.java | Java | epl-1.0 | 4,145 |
/**
* Copyright (c) 2016 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Obeo - initial API and implementation
*/
package org.obeonetwork.m2doc.template;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>IGenerateable</b></em>'.
* <!-- end-user-doc -->
*
* @see org.obeonetwork.m2doc.template.TemplatePackage#getIGenerateable()
* @model interface="true" abstract="true"
* @generated
*/
public interface IGenerateable extends EObject {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
String copyright = " Copyright (c) 2016 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation";
} // IGenerateable
| ObeoNetwork/M2Doc | plugins/org.obeonetwork.m2doc/src-gen/org/obeonetwork/m2doc/template/IGenerateable.java | Java | epl-1.0 | 1,253 |
/*******************************************************************************
* Copyright (c) 2017 Red Hat, Inc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red Hat Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.reddeer.swt.api;
import org.eclipse.reddeer.core.reference.ReferencedComposite;
/**
* API for CTab item manipulation.
*
* @author Vlado Pakan
*
*/
public interface CTabItem extends Item<org.eclipse.swt.custom.CTabItem>, ReferencedComposite {
/**
* Activates CTab item.
*/
void activate();
/**
* Closes CTabItem.
*/
void close();
/**
* Find outs whether the close button should be shown or not.
*
* @return true if the close button should be shown
*/
boolean isShowClose();
/**
* Returns true if the tab is visible
* @return true if the tab is visible
*/
boolean isShowing();
/**
* Returns parent folder {@link CTabFolder}
* @return parent folder
*/
CTabFolder getFolder();
/**
* Gets tooltip text of CTabItem
* @return tooltip text of CTabItem
*/
String getToolTipText();
/**
* Checks if tab item is active
* @return
*/
boolean isActive();
}
| djelinek/reddeer | plugins/org.eclipse.reddeer.swt/src/org/eclipse/reddeer/swt/api/CTabItem.java | Java | epl-1.0 | 1,464 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.