repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15 values |
|---|---|---|---|---|
zujko/ABCS | app/src/main/java/me/zujko/abcs/activities/MainActivity.java | 955 | package me.zujko.abcs.activities;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import butterknife.Bind;
import butterknife.ButterKnife;
import me.zujko.abcs.R;
import me.zujko.abcs.adapters.MainAdapter;
public class MainActivity extends AppCompatActivity {
@Bind(R.id.recyclerview) RecyclerView mRecyclerView;
private MainAdapter mAdapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
mRecyclerView.setHasFixedSize(true);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
mRecyclerView.setLayoutManager(linearLayoutManager);
mAdapter = new MainAdapter();
mRecyclerView.setAdapter(mAdapter);
}
}
| mit |
velyo/java-mvvm | mvvm/src/main/java/net/velyo/mvvm/ModelState.java | 2066 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package net.velyo.mvvm;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
/**
*
* @author Velio
*/
@Named
@RequestScoped
public class ModelState {
// Fields /////////////////////////////////////////////////////////////////////////////////////
private final Map<String, List<String>> errors = new HashMap<>();
private final List<String> messages = new ArrayList<>();
// Methods ////////////////////////////////////////////////////////////////////////////////////
public void addError(String error) {
this.addError("", error);
}
public void addError(String field, String error) {
List<String> list = errors.get(field);
if (list == null) list = new ArrayList<>();
list.add(error);
errors.put(field, list);
}
public void addMessage(String message) {
this.messages.add(message);
}
public void clearMessage(){
this.messages.clear();
}
public Collection<String> getErrors() {
Collection<String> result = new ArrayList<>();
for (List<String> fieldErrors : errors.values()) {
for (String err : fieldErrors)
result.add(err);
}
return result;
}
public Collection<String> getErrors(String field) {
return hasError(field) ? errors.get(field) : new ArrayList<String>();
}
public String getFirstError(String field){
return hasError(field) ? errors.get(field).get(0) : null;
}
public Collection<String> getMessages(){
return this.messages;
}
public boolean hasError(String field) {
return errors.containsKey(field);
}
public boolean hasMessages(){
return !this.messages.isEmpty();
}
public boolean isValid() {
return (errors.keySet().isEmpty());
}
public void removeErrors(String field) {
if (errors.containsKey(field)) errors.remove(field);
}
} | mit |
shwarzes89/ExpressionPredictor | src/com/afk/calmera/network/MessageBody.java | 365 | package com.afk.calmera.network;
import java.io.Serializable;
public class MessageBody implements Serializable {
/**
*
*/
private static final long serialVersionUID = -3856263375929806061L;
private byte[] data;
public byte[] getData() {
return data;
}
public void setData(byte[] data) {
this.data = data;
}
}
| mit |
ronvelzeboer/salesforce-migration-assistant-plugin | src/main/java/org/jenkinsci/plugins/sma/SMAPackage.java | 4237 | package org.jenkinsci.plugins.sma;
import com.sforce.soap.metadata.Package;
import com.sforce.soap.metadata.PackageTypeMembers;
import com.sforce.ws.bind.TypeMapper;
import com.sforce.ws.parser.XmlOutputStream;
import javax.xml.namespace.QName;
import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Wrapper for com.sforce.soap.metadata.Package.
*
*/
public class SMAPackage
{
private List<SMAMetadata> contents;
private boolean destructiveChange;
private Package packageManifest;
private final String METADATA_URI = "http://soap.sforce.com/2006/04/metadata";
/**
* Constructor for SMAPackage
* Takes the SMAMetdata contents that are to be represented by the manifest file and generates a Package for deployment
*
* @param contents
* @param destructiveChange
*/
public SMAPackage(List<SMAMetadata> contents,
boolean destructiveChange) throws Exception
{
this.contents = contents;
this.destructiveChange = destructiveChange;
packageManifest = new Package();
packageManifest.setVersion(SMAMetadataTypes.getAPIVersion());
packageManifest.setTypes(determinePackageTypes().toArray(new PackageTypeMembers[0]));
}
public List<SMAMetadata> getContents() { return contents; }
/**
* Returns the name of the manifest file for this SMAPackage
* @return
*/
public String getName() {
return destructiveChange ? "destructiveChanges.xml" : "package.xml";
}
/**
* Transforms the Package into a ByteArray
*
* @return String(packageStream.toByteArray())
* @throws Exception
*/
public String getPackage() throws Exception {
TypeMapper typeMapper = new TypeMapper();
ByteArrayOutputStream packageStream = new ByteArrayOutputStream();
QName packageQName = new QName(METADATA_URI, "Package");
XmlOutputStream xmlOutputStream = null;
try {
xmlOutputStream = new XmlOutputStream(packageStream, true);
xmlOutputStream.setPrefix("", METADATA_URI);
xmlOutputStream.setPrefix("xsi", "http://www.w3.org/2001/XMLSchema-instance");
packageManifest.write(packageQName, xmlOutputStream, typeMapper);
} finally {
if (null != xmlOutputStream) { xmlOutputStream.close(); }
}
return new String(packageStream.toByteArray());
}
/**
* Returns whether or not this package contains Apex components
*
* @return containsApex
*/
public boolean containsApex() {
for (SMAMetadata thisMetadata : contents) {
if (thisMetadata.getMetadataType().equals("ApexClass")
|| thisMetadata.getMetadataType().equals("ApexTrigger")) {
return true;
}
}
return false;
}
/**
* Sorts the metadata into types and members for the manifest
*
* @return
*/
private List<PackageTypeMembers> determinePackageTypes() {
List<PackageTypeMembers> types = new ArrayList<PackageTypeMembers>();
Map<String, List<String>> contentsByType = new HashMap<String, List<String>>();
// Sort the metadata objects by metadata type
for (SMAMetadata mdObject : contents) {
if (destructiveChange && !mdObject.isDestructible()) {
// Don't include non destructible metadata in destructiveChanges
continue;
}
if (!contentsByType.containsKey(mdObject.getMetadataType())) {
contentsByType.put(mdObject.getMetadataType(), new ArrayList<String>());
}
contentsByType.get(mdObject.getMetadataType()).add(mdObject.getMember());
}
// Put the members into list of PackageTypeMembers
for (String metadataType : contentsByType.keySet()) {
PackageTypeMembers members = new PackageTypeMembers();
members.setName(metadataType);
members.setMembers(contentsByType.get(metadataType).toArray(new String[0]));
types.add(members);
}
return types;
}
}
| mit |
barkr-osu/barkr | app/src/main/java/barkr/barkr/MyAlertDialogFragment.java | 1248 | package barkr.barkr;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
/**
* Created by Stephen on 4/8/2017.
*/
public class MyAlertDialogFragment extends DialogFragment {
private final String TAG = this.getClass().getSimpleName();
public static MyAlertDialogFragment newInstance(int message) {
MyAlertDialogFragment frag = new MyAlertDialogFragment();
Bundle args = new Bundle();
args.putInt("message", message);
frag.setArguments(args);
return frag;
}
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
int message = getArguments().getInt("message");
return new AlertDialog.Builder(getActivity())
.setMessage(message)
.setPositiveButton("close",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
Log.d(TAG, "Error message closed!");
}
}
)
.create();
}
}
| mit |
jurgendl/swing-easy | src/main/java/org/swingeasy/RowNumberTableWrapper.java | 772 | package org.swingeasy;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ScrollPaneConstants;
/**
* Use a JTable as a renderer for row numbers of a given main table. This table must be added to the row header of the scrollpane that contains the
* main table.
*
* @see http://tips4java.wordpress.com/2008/11/18/row-number-table/
*/
public class RowNumberTableWrapper extends JScrollPane {
private static final long serialVersionUID = 178175335896020429L;
public RowNumberTableWrapper(JTable wrapped) {
super(wrapped);
RowNumberTable rowTable = new RowNumberTable(wrapped);
this.setRowHeaderView(rowTable);
this.setCorner(ScrollPaneConstants.UPPER_LEFT_CORNER, rowTable.getTableHeader());
}
}
| mit |
automate-website/jwebrobot | src/test/java/website/automate/jwebrobot/executor/DefaultScenarioExecutorTest.java | 2001 | package website.automate.jwebrobot.executor;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import website.automate.jwebrobot.context.ScenarioExecutionContext;
import website.automate.jwebrobot.executor.action.ActionEvaluator;
import website.automate.jwebrobot.executor.action.ActionExecutorFactory;
import website.automate.jwebrobot.executor.action.StepExecutor;
import website.automate.jwebrobot.listener.ExecutionEventListeners;
import website.automate.jwebrobot.validator.ContextValidators;
import website.automate.waml.io.model.main.Scenario;
import static org.mockito.Mockito.verify;
@RunWith(MockitoJUnitRunner.class)
public class DefaultScenarioExecutorTest {
@Mock private WebDriverProvider webDriverProvider;
@Mock private ActionExecutorFactory actionExecutorFactory;
@Mock private ExecutionEventListeners listener;
@Mock private ContextValidators validator;
@Mock private ActionEvaluator actionEvaluator;
@Mock private Scenario scenario;
@Mock private ScenarioExecutionContext context;
@Mock private ScenarioPatternFilter scenarioPatternFilter;
@Mock private ActionExecutorUtils actionExecutorUtils;
@Mock private StepExecutor stepExecutor;
private DefaultScenarioExecutor scenarioExecutor;
@Before
public void init(){
scenarioExecutor = new DefaultScenarioExecutor(
webDriverProvider,
listener,
validator,
scenarioPatternFilter,
stepExecutor);
}
@Test
public void listenerIsInvokedBeforeScenarioIfExecutable(){
scenarioExecutor.runScenario(scenario, context);
verify(listener).beforeScenario(context);
}
@Test
public void listenerIsInvokedAfterScenarioIfExecutable(){
scenarioExecutor.runScenario(scenario, context);
verify(listener).afterScenario(context);
}
}
| mit |
vadadler/java | iq/src/arrays/LongestPrefix.java | 1064 | package arrays;
import java.util.Arrays;
// Given a set of strings, find the longest common prefix.
// Stings can't have digits or special characters.
public class LongestPrefix {
public static void main(String[] args) {
String[] arr = {"geeksforgeeks", "geeks", "geek", "geezer"};
System.out.println("Longest prifox: " + findLongestPrefix(arr));
}
private static String findLongestPrefix(String[] arr) {
StringBuffer sb = new StringBuffer();
if (arr.length == 0) sb.append("Empty array.");
if (arr.length == 1) sb.append(arr[0]);
// Sort array. The shortest string will be the first.
Arrays.sort(arr);
// Walk all arrays starting at position arr[0].length - 1. Compare chars. Once different, the longest
// prefix is found.
int pos = arr[0].length() - 1;
for (int i = 0; i < arr.length; i++) {
if (arr[i].charAt(pos) != arr[i + 1].charAt(pos)) {
break;
}
}
return arr[0].substring(0, pos);
}
}
| mit |
pengjinning/AppKeFu_Android_Demo_V4 | EclipseDemo/src/com/appkefu/demo2/activity/TagListActivity.java | 6012 | package com.appkefu.demo2.activity;
import com.appkefu.demo2.R;
import com.appkefu.lib.interfaces.KFAPIs;
import com.appkefu.lib.ui.entity.KFUserTagsEntity;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
/**
* 请在此设置用户的标签,以便于更好的识别、标识、跟踪用户, 目前开放的标签有:
*
* nickname:昵称
* sex :性别
* language:语言
* city :城市
* province:省份
* country :国家
* other :其他
*
* 技术交流QQ群:48661516
* 客服开发文档: http://appkefu.com/AppKeFu/tutorial-android.html
* @author jack ning, http://github.com/pengjinning
*
*/
public class TagListActivity extends Activity implements OnClickListener{
private KFUserTagsEntity tagEntity;
private RelativeLayout mNicknameRelativeLayout;
private RelativeLayout mSexRelativeLayout;
private RelativeLayout mLanguageRelativeLayout;
private RelativeLayout mCityRelativeLayout;
private RelativeLayout mProvinceRelativeLayout;
private RelativeLayout mCountryRelativeLayout;
private RelativeLayout mOtherRelativeLayout;
private TextView mNicknameTextView;
private TextView mSexTextView;
private TextView mLanguageTextView;
private TextView mCityTextView;
private TextView mProvinceTextView;
private TextView mCountryTextView;
private TextView mOtherTextView;
private Button mBackBtn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tag_list);
mNicknameRelativeLayout = (RelativeLayout) findViewById(R.id.layout_personal_nickname);
mNicknameRelativeLayout.setOnClickListener(this);
mSexRelativeLayout = (RelativeLayout) findViewById(R.id.layout_personal_sex);
mSexRelativeLayout.setOnClickListener(this);
mLanguageRelativeLayout = (RelativeLayout) findViewById(R.id.layout_personal_language);
mLanguageRelativeLayout.setOnClickListener(this);
mCityRelativeLayout = (RelativeLayout) findViewById(R.id.layout_personal_city);
mCityRelativeLayout.setOnClickListener(this);
mProvinceRelativeLayout = (RelativeLayout) findViewById(R.id.layout_personal_province);
mProvinceRelativeLayout.setOnClickListener(this);
mCountryRelativeLayout = (RelativeLayout) findViewById(R.id.layout_personal_country);
mCountryRelativeLayout.setOnClickListener(this);
mOtherRelativeLayout = (RelativeLayout) findViewById(R.id.layout_other_country);
mOtherRelativeLayout.setOnClickListener(this);
mBackBtn = (Button) findViewById(R.id.profile_reback_btn);
mBackBtn.setOnClickListener(this);
}
@Override
protected void onResume()
{
super.onResume();
tagEntity = KFAPIs.getTags(this);
mNicknameTextView = (TextView) findViewById(R.id.personal_nickname_detail);
mNicknameTextView.setText(tagEntity.getNickname());
mSexTextView = (TextView) findViewById(R.id.personal_sex_detail);
mSexTextView.setText(tagEntity.getSex());
mLanguageTextView = (TextView) findViewById(R.id.personal_language_detail);
mLanguageTextView.setText(tagEntity.getLanguage());
mCityTextView = (TextView) findViewById(R.id.personal_city_detail);
mCityTextView.setText(tagEntity.getCity());
mProvinceTextView = (TextView) findViewById(R.id.personal_province_detail);
mProvinceTextView.setText(tagEntity.getProvince());
mCountryTextView = (TextView) findViewById(R.id.personal_country_detail);
mCountryTextView.setText(tagEntity.getCountry());
mOtherTextView = (TextView) findViewById(R.id.personal_other_detail);
mOtherTextView.setText(tagEntity.getOther());
tagEntity.toString();
}
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
switch(v.getId()) {
case R.id.profile_reback_btn:
finish();
break;
case R.id.layout_personal_nickname:
change_nickname();
break;
case R.id.layout_personal_sex:
change_sex();
break;
case R.id.layout_personal_language:
change_language();
break;
case R.id.layout_personal_city:
change_city();
break;
case R.id.layout_personal_province:
change_province();
break;
case R.id.layout_personal_country:
change_country();
break;
case R.id.layout_other_country:
change_other();
break;
default:
break;
}
}
public void change_nickname()
{
Intent intent = new Intent(this, ChangeTagActivity.class);
intent.putExtra("profileField", "NICKNAME");
intent.putExtra("value", tagEntity.getNickname());
startActivity(intent);
}
public void change_sex()
{
Intent intent = new Intent(this, ChangeTagActivity.class);
intent.putExtra("profileField", "SEX");
intent.putExtra("value", tagEntity.getSex());
startActivity(intent);
}
public void change_language()
{
Intent intent = new Intent(this, ChangeTagActivity.class);
intent.putExtra("profileField", "LANGUAGE");
intent.putExtra("value", tagEntity.getLanguage());
startActivity(intent);
}
public void change_city()
{
Intent intent = new Intent(this, ChangeTagActivity.class);
intent.putExtra("profileField", "CITY");
intent.putExtra("value", tagEntity.getCity());
startActivity(intent);
}
public void change_province()
{
Intent intent = new Intent(this, ChangeTagActivity.class);
intent.putExtra("profileField", "PROVINCE");
intent.putExtra("value", tagEntity.getProvince());
startActivity(intent);
}
public void change_country()
{
Intent intent = new Intent(this, ChangeTagActivity.class);
intent.putExtra("profileField", "COUNTRY");
intent.putExtra("value", tagEntity.getCountry());
startActivity(intent);
}
public void change_other()
{
Intent intent = new Intent(this, ChangeTagActivity.class);
intent.putExtra("profileField", "OTHER");
intent.putExtra("value", tagEntity.getOther());
startActivity(intent);
}
}
| mit |
wpapper/Color-Picker | src/me/papper/colorpicker/MainActivity.java | 2652 | package me.papper.colorpicker;
import android.os.Bundle;
import android.app.Activity;
import android.content.SharedPreferences;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
public class MainActivity extends Activity {
View view; // Used for setting the background color
/** Begin final values for the shared preferences **/
final String SHARED_PREFS_NAME = "Colors";
final int SHARED_PREFS_MODE = 0; // Make the preferences private
/*
* Return 255 for the RGB values if there is no existing preference, creating
* a white background
*/
final int SHARED_PREFS_DEF_VALUE = 255;
final String RED_STRING = "red";
final String GREEN_STRING = "green";
final String BLUE_STRING = "blue";
/** End final values for the shared preferences **/
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
/* Initialize the view for settings the background color */
view = this.getWindow().getDecorView();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public void onResume() {
super.onResume();
SharedPreferences data = getSharedPreferences(SHARED_PREFS_NAME,
SHARED_PREFS_MODE);
Colors.red.addFirst(data.getInt(RED_STRING, SHARED_PREFS_DEF_VALUE));
Colors.green
.addFirst(data.getInt(GREEN_STRING, SHARED_PREFS_DEF_VALUE));
Colors.blue.addFirst(data.getInt(BLUE_STRING, SHARED_PREFS_DEF_VALUE));
view.setBackgroundColor(Colors.returnColor());
}
@Override
public void onPause() {
super.onPause();
SharedPreferences data = getSharedPreferences(SHARED_PREFS_NAME,
SHARED_PREFS_MODE);
SharedPreferences.Editor editor = data.edit();
editor.putInt(RED_STRING, Colors.red.getFirst());
editor.putInt(GREEN_STRING, Colors.green.getFirst());
editor.putInt(BLUE_STRING, Colors.blue.getFirst());
editor.commit();
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_details:
ViewDetailsDialogFragment.newInstance().show(getFragmentManager(),
"Details Fragment");
return true;
default:
return super.onOptionsItemSelected(item);
}
}
@Override
public void onBackPressed() {
view.setBackgroundColor(Colors.undo());
}
/*
* The button is just transparent, so you're actually changing the
* background color
*/
public void onNewColorButtonClick(View v) {
v.getRootView().setBackgroundColor(Colors.generateColor());
}
} | mit |
ProgrammerDan/Combat-Tag-Reloaded | src/main/java/net/techcable/combattag/listeners/SettingListener.java | 6273 | package net.techcable.combattag.listeners;
import com.trc202.settings.Settings;
import lombok.*;
import lombok.core.Main;
import net.techcable.combattag.CombatPlayer;
import net.techcable.combattag.Utils;
import net.techcable.combattag.config.MainConfig;
import net.techcable.combattag.config.MessageConfig;
import net.techcable.combattag.event.CombatTagEvent;
import org.apache.commons.lang.ArrayUtils;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.World;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerTeleportEvent;
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
import org.bukkit.event.player.PlayerToggleFlightEvent;
import techcable.minecraft.combattag.CombatTagAPI;
import javax.rmi.CORBA.Util;
import static techcable.minecraft.combattag.CombatTagAPI.isNPC;
public class SettingListener implements Listener {
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onCombatTagMonitor(CombatTagEvent event) {
if (event.isBecauseOfAttack()) {
event.getPlayer().getEntity().sendMessage(getMessages().getTagMessageDamager(Utils.getName(event.getCause())));
}
if (event.isBecauseOfDefend()) {
event.getPlayer().getEntity().sendMessage(getMessages().getTagMessageDamaged(Utils.getName(event.getCause())));
}
}
@EventHandler(ignoreCancelled = true)
public void onCombatTag(CombatTagEvent event) {
if (getSettings().isOnlyDamagerTagged() && event.isBecauseOfDefend()) {
event.setCancelled(true);
}
if (isDisabledWorld(event.getPlayer().getEntity().getLocation().getWorld())) {
event.setCancelled(true); // Block combat tag in disabled worlds
}
}
@EventHandler
public void onCombatTagByPlayer(CombatTagEvent event) {
if (getSettings().isBlockCreativeTagging() && event.getPlayer().getEntity().getGameMode().equals(GameMode.CREATIVE) && event.isBecauseOfAttack()) {
event.getPlayer().getEntity().sendMessage(getMessages().getCantTagInCreative());
event.setCancelled(true);
}
}
public MainConfig getSettings() {
return Utils.getPlugin().getSettings();
}
public MessageConfig getMessages() {
return Utils.getPlugin().getMessages();
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onBlockPlace(BlockPlaceEvent event) {
if (isNPC(event.getPlayer())) return;
if (CombatTagAPI.isTagged(event.getPlayer()) && !getSettings().isAllowBlockEditInCombat()) {
event.getPlayer().sendMessage(getMessages().getCantPlaceBlocksInCombat());
event.setCancelled(true);
}
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onBlockBreak(BlockBreakEvent event) {
if (isNPC(event.getPlayer())) return;
if (CombatTagAPI.isTagged(event.getPlayer()) && !getSettings().isAllowBlockEditInCombat()) {
event.getPlayer().sendMessage(getMessages().getCantBreakBlocksInCombat());
event.setCancelled(true);
}
}
@EventHandler
public void onTeleport(PlayerTeleportEvent event) {
if (isNPC(event.getPlayer())) return;
CombatPlayer player = CombatPlayer.getPlayer(event.getPlayer());
if (!player.isTagged()) return;
if (event.getCause().equals(TeleportCause.PLUGIN) || event.getCause().equals(TeleportCause.UNKNOWN) && getSettings().isBlockTeleportInCombat()) {
event.getPlayer().sendMessage(getMessages().getCantTeleportInCombat());
event.setCancelled(true);
} else if (event.getCause().equals(TeleportCause.ENDER_PEARL) && getSettings().isBlockEnderPearlInCombat()) {
event.getPlayer().sendMessage(getMessages().getCantEnderpearlInCombat());
event.setCancelled(true);
}
}
@EventHandler
public void onFly(PlayerToggleFlightEvent event) {
if (isNPC(event.getPlayer())) return;
if (!getSettings().isBlockFlyInCombat()) return;
if (CombatTagAPI.isTagged(event.getPlayer())) {
event.getPlayer().sendMessage(getMessages().getCantFlyInCombat());
event.setCancelled(true);
}
}
//Copied from old listeners
@EventHandler(priority = EventPriority.LOWEST)
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
if (isNPC(event.getPlayer())) return;
CombatPlayer player = CombatPlayer.getPlayer(event.getPlayer());
if (player.isTagged()) {
String command = event.getMessage();
for (String disabledCommand : getSettings().getDisabledCommands()) {
if (disabledCommand.equalsIgnoreCase("all") && !command.equalsIgnoreCase("/ct") && !command.equalsIgnoreCase("/combattag")) {
player.getEntity().sendMessage(getMessages().getAllCommandsDisabled());
event.setCancelled(true);
return;
}
if (command.indexOf(" ") == disabledCommand.length()) {
if (command.substring(0, command.indexOf(" ")).equalsIgnoreCase(disabledCommand)) {
Utils.debug("Combat Tag has blocked the command: " + disabledCommand + " .");
player.getEntity().sendMessage(getMessages().getThisCommandDisabled());
event.setCancelled(true);
return;
}
} else if (disabledCommand.indexOf(" ") > 0) {
if (command.toLowerCase().startsWith(disabledCommand.toLowerCase())) {
Utils.debug("Combat Tag has blocked the command: " + disabledCommand + " .");
player.getEntity().sendMessage(getMessages().getThisCommandDisabled());
event.setCancelled(true);
return;
}
} else if (!command.contains(" ") && command.equalsIgnoreCase(disabledCommand)) {
Utils.debug("Combat Tag has blocked the command: " + disabledCommand + " .");
player.getEntity().sendMessage(getMessages().getThisCommandDisabled());
event.setCancelled(true);
return;
}
}
}
}
private boolean isDisabledWorld(World world) {
for (String wName : getSettings().getDisallowedWorlds()) {
if (wName.equalsIgnoreCase(world.getName())) return true;
}
return false;
}
}
| cc0-1.0 |
hugomanguinhas/europeana | tf-enrich/src/main/java/eu/europeana/tf/eval/EnrichmentSamplesAssembler.java | 5631 | package eu.europeana.tf.eval;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.nio.charset.Charset;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
import eu.europeana.tf.agreement.*;
/**
* @author Hugo Manguinhas <hugo.manguinhas@europeana.eu>
* @since 23 Sep 2015
*/
public class EnrichmentSamplesAssembler
{
private DecimalFormat FORMAT = new DecimalFormat("00");
private Map<String,List<EnrichmentAnnotation>> _annSamples;
//All unique annotations per tool
private Map<String,List<EnrichmentAnnotation>> _annClusterResults;
//All unique annotations
private List<EnrichmentAnnotation> _annResults;
public EnrichmentSamplesAssembler()
{
_annSamples = new HashMap();
_annClusterResults = new LinkedHashMap();
_annResults = new ArrayList();
}
public void loadAnnotatedSample(String sID, File file)
{
String fn = file.getName();
System.out.println("Loading result file: " + fn);
try {
List<EnrichmentAnnotation> sample = getSample(sID);
CSVParser parser = CSVParser.parse(file, Charset.forName("UTF-8")
, CSVFormat.EXCEL);
Iterator<CSVRecord> iter = parser.iterator();
if ( iter.hasNext() ) { iter.next(); }
while (iter.hasNext()) { loadAnnotation(sID, sample, iter.next()); }
}
catch (IOException e) {
System.err.println("Error loading file: " + fn);
}
}
public void rebuild()
{
rebuild("Europeana" , 2, 5, 6, 15, 17, 18, 23, 28);
rebuild("TEL" , 5, 15, 16, 29);
rebuild("BgLinks" , 2, 3, 4, 13, 14, 22, 23, 30);
rebuild("Pelagios" , 3, 5, 7, 16, 18, 19, 22, 27);
rebuild("VocMatch" , 25);
rebuild("Ontotext v1", 2, 3, 4, 6, 7, 12, 13, 26);
rebuild("Ontotext v2", 2, 3, 4, 6, 7, 12, 14, 17, 19, 24);
Map<Object,EnrichmentAnnotation> m = new HashMap();
for ( List<EnrichmentAnnotation> list : _annClusterResults.values() )
{
for (EnrichmentAnnotation ann : list ) { m.put(ann.getSource(), ann); }
}
_annResults.addAll(m.values());
}
public void rebuild(String id, int... indexes)
{
String[] sampleIDs = new String[indexes.length];
int i = 0;
for ( int index : indexes ) { sampleIDs[i++] = getID(index); }
rebuild(id, sampleIDs);
}
public void rebuild(String id, String... sampleIDs)
{
Map<Object,EnrichmentAnnotation> result = new HashMap();
for ( String sampleID : sampleIDs )
{
List<EnrichmentAnnotation> sample = _annSamples.get(sampleID);
if ( sample == null ) { continue; }
for (EnrichmentAnnotation ann : sample )
{
EnrichmentAnnotation old = result.put(ann.getSource(), ann);
if ( old == null ) { continue; }
if ( old.getParameters().equals(ann.getParameters())) { continue; }
printDuplicate(System.err, old, ann);
}
}
_annClusterResults.put(id, new ArrayList(result.values()));
}
public Collection<String> getResultClusters() { return _annClusterResults.keySet(); }
public Collection<EnrichmentAnnotation> getClusteredResults(String id)
{
return _annClusterResults.get(id);
}
public Map<String,List<EnrichmentAnnotation>> getClusteredResults()
{
return _annClusterResults;
}
public Collection<EnrichmentAnnotation> getResults() { return _annResults; }
private List<EnrichmentAnnotation> getSample(String id)
{
List<EnrichmentAnnotation> l = _annSamples.get(id);
if ( l == null ) { l = new ArrayList(); _annSamples.put(id, l); }
return l;
}
private void loadAnnotation(String sampleID
, List<EnrichmentAnnotation> sample
, CSVRecord record)
{
AnnotationParameters params = new AnnotationParameters()
.parse(record.get(5), record.get(6), record.get(7));
List<String> key = Arrays.asList(record.get(0), record.get(2)
, record.get(3), record.get(4));
EnrichmentAnnotation ann =
new EnrichmentAnnotation(sampleID, key, null, params, record.get(8));
sample.add(ann);
}
private String getID(int index) { return "#" + FORMAT.format(index); }
private void printDuplicate(PrintStream p
, EnrichmentAnnotation ann1, EnrichmentAnnotation ann2)
{
List<String> source = (List)ann1.getSource();
p.println(source.get(0));
p.println(source.get(1));
p.print("Matched term: ");
p.print(source.get(2));
p.print(", Target resource: ");
p.println(source.get(3));
p.print("Annotator A: ");
p.print(ann1.getParameters().toFullString());
p.println(" (Sample " + ann1.getSampleID() + ")");
p.print("Annotator B: ");
p.print(ann2.getParameters().toFullString());
p.println(" (Sample " + ann2.getSampleID() + ")");
p.println();
}
}
| cc0-1.0 |
aburmeis/spring-fly | src/main/java/com/tui/fly/domain/Connection.java | 1156 | package com.tui.fly.domain;
import java.util.Iterator;
import java.util.List;
import static java.util.Arrays.asList;
/**
* A flight connection as a list of flights.
* Two consecutive flights should have be connected by the same airport.
*/
public final class Connection implements Iterable<Flight> {
private final List<Flight> flights;
public Connection(Flight... flights) {
this.flights = asList(flights);
}
public Connection(List<Flight> flights) {
this.flights = flights;
}
@Override
public Iterator<Flight> iterator() {
return flights.iterator();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Connection flights1 = (Connection)o;
if (!flights.equals(flights1.flights)) {
return false;
}
return true;
}
@Override
public int hashCode() {
return flights.hashCode();
}
@Override
public String toString() {
return flights.toString();
}
}
| cc0-1.0 |
ZagasTales/HistoriasdeZagas | src Graf/es/thesinsprods/zagastales/juegozagas/creadorpnjs/Equipo.java | 85039 | package es.thesinsprods.zagastales.juegozagas.creadorpnjs;
import java.awt.EventQueue;
import javax.swing.JFrame;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Color;
import javax.swing.SwingConstants;
import es.thesinsprods.resources.font.MorpheusFont;
import es.thesinsprods.zagastales.characters.Characters;
import es.thesinsprods.zagastales.characters.atributes.AtributeOutOfBoundsException;
import es.thesinsprods.zagastales.characters.atributes.AtributePoints;
import es.thesinsprods.zagastales.characters.atributes.Atributes;
import es.thesinsprods.zagastales.characters.blessings.Blessing;
import es.thesinsprods.zagastales.characters.equipment.Accesories;
import es.thesinsprods.zagastales.characters.equipment.Armor;
import es.thesinsprods.zagastales.characters.equipment.Equipment;
import es.thesinsprods.zagastales.characters.equipment.Inventory;
import es.thesinsprods.zagastales.characters.equipment.Misc;
import es.thesinsprods.zagastales.characters.equipment.Possesions;
import es.thesinsprods.zagastales.characters.equipment.Weapons;
import es.thesinsprods.zagastales.characters.privileges.Setbacks;
import es.thesinsprods.zagastales.characters.race.Race;
import es.thesinsprods.zagastales.characters.skills.CombatSkills;
import es.thesinsprods.zagastales.characters.skills.KnowHowSkills;
import es.thesinsprods.zagastales.characters.skills.KnowledgeSkills;
import es.thesinsprods.zagastales.characters.skills.MagicSkills;
import es.thesinsprods.zagastales.characters.skills.SkillOutOfBoundsException;
import es.thesinsprods.zagastales.characters.skills.SkillPoints;
import es.thesinsprods.zagastales.juegozagas.ayuda.pnjs.AyudaEquipo;
import es.thesinsprods.zagastales.juegozagas.inicio.Inicio;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.sql.SQLException;
import java.util.ArrayList;
import java.awt.Toolkit;
import javax.swing.border.BevelBorder;
import javax.swing.ImageIcon;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class Equipo {
private JFrame frmHistoriasDeZagas;
private static JTextField txtW1;
private static JTextField txtW2;
private static JTextField txtW3;
private static JTextField txtW4;
private static JTextField txtObj1;
private static JTextField txtObj2;
private static JTextField txtObj3;
private static JTextField txtObj4;
private static JTextField txtAcc1;
private static JTextField txtAcc2;
private static JTextField txtAcc3;
private static JTextField txtAcc4;
private JTextField txtAccesorios;
public static int pweap;
public static int pmisc;
public static int posPuestas;
public static int armasPuestas;
public static int objetosPuestos;
static ArrayList<String> posarm = new ArrayList<String>();
static Possesions posss = new Possesions(posarm);
public static Weapons weapon1 = new Weapons("", "", false,false, posss,"");
public static Weapons weapon2 = new Weapons("", "", false,false, posss,"");
public static Weapons weapon3 = new Weapons("", "", false,false, posss,"");
public static Weapons weapon4 = new Weapons("", "", false,false, posss,"");
public static Armor armor1 = new Armor("", "", false,false, posss);
public static Misc misc1 = new Misc("", "", false,false, posss);
public static Misc misc2 = new Misc("", "", false,false, posss);
public static Misc misc3 = new Misc("", "", false,false, posss);
public static Misc misc4 = new Misc("", "", false,false, posss);
public static Accesories accesories1 = new Accesories("", "", false,false, posss);
public static Accesories accesories2 = new Accesories("", "", false,false, posss);
public static Accesories accesories3 = new Accesories("", "", false,false, posss);
public static Accesories accesories4 = new Accesories("", "", false,false, posss);
public static int contexcusa = 0;
MorpheusFont mf = new MorpheusFont();
private JButton btnInfoW1;
private JButton btnInfo_W2;
private JButton btnInfoW3;
private JButton btnInfoW4;
private JButton btnInfoObj1;
private JButton btnInfoObj2;
private JButton btnInfoObj3;
private JButton btnInfoObj4;
private JButton btnInfoAcc1;
private JButton btnInfoAcc2;
private JButton btnInfoAcc3;
private JButton btnInfoAcc4;
private JButton btnAtras;
private JButton btnAadirArmadura;
private static JTextField txtArmadura;
private JButton btnAyuda;
private JButton btnInicio;
private JLabel lblMaxArmas;
private JTextField txtMaxArmas;
private JLabel lblMaxObj;
private JTextField txtMaxObj;
private JLabel lblEquipo;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Equipo window = new Equipo();
window.frmHistoriasDeZagas.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public Equipo() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frmHistoriasDeZagas = new JFrame();
frmHistoriasDeZagas.getContentPane().setBackground(
new Color(205, 133, 63));
frmHistoriasDeZagas.setTitle("Historias de Zagas");
frmHistoriasDeZagas.setIconImage(Toolkit.getDefaultToolkit().getImage(
Equipo.class
.getResource("/images/Historias de Zagas, logo.png")));
frmHistoriasDeZagas.setBounds(100, 100, 584, 532);
frmHistoriasDeZagas.setLocationRelativeTo(null);
frmHistoriasDeZagas.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
frmHistoriasDeZagas.setResizable(false);
frmHistoriasDeZagas.getContentPane().setLayout(null);
JPanel pnlArmadura = new JPanel();
pnlArmadura.setOpaque(false);
pnlArmadura.setBackground(new Color(205, 133, 63));
pnlArmadura.setBounds(0, 46, 575, 180);
frmHistoriasDeZagas.getContentPane().add(pnlArmadura);
pnlArmadura.setLayout(null);
btnAadirArmadura = new JButton("A\u00F1adir Armadura");
btnAadirArmadura.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
btnAadirArmadura.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton a\u00F1adir armadura2.png")));
}
public void mouseReleased(MouseEvent arg0) {
btnAadirArmadura.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton a\u00F1adir armadura.png")));
}
});
btnAadirArmadura.setHorizontalTextPosition(SwingConstants.CENTER);
btnAadirArmadura.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton a\u00F1adir armadura.png")));
btnAadirArmadura.setBorder(new BevelBorder(BevelBorder.RAISED, null,
null, null, null));
btnAadirArmadura.setForeground(new Color(255, 255, 255));
btnAadirArmadura.setBackground(new Color(139, 69, 19));
btnAadirArmadura.setBorderPainted(false);
btnAadirArmadura.setContentAreaFilled(false);
btnAadirArmadura.setFocusPainted(false);
btnAadirArmadura.setOpaque(false);
btnAadirArmadura.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (txtArmadura.getText().equals("")) {
Armadura window = new Armadura();
window.getFrame().setVisible(true);
} else {
JOptionPane.showMessageDialog(frmHistoriasDeZagas,
"No puedes llevar más armaduras.", "",
JOptionPane.ERROR_MESSAGE);
}
}
});
btnAadirArmadura.setFont(mf.MyFont(0, 13));
btnAadirArmadura.setBounds(59, 11, 159, 56);
pnlArmadura.add(btnAadirArmadura);
txtArmadura = new JTextField();
txtArmadura.setForeground(new Color(0, 0, 0));
txtArmadura.setBackground(Color.WHITE);
txtArmadura.setText(armor1.getArmor());
txtArmadura.setFont(mf.MyFont(0, 11));
txtArmadura.setEditable(false);
txtArmadura.setBounds(40, 91, 205, 20);
pnlArmadura.add(txtArmadura);
txtArmadura.setColumns(10);
final JButton btnInfoArm = new JButton("Info");
btnInfoArm.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoArm.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones armaduras2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoArm.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones armaduras.png")));
}
});
btnInfoArm.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoArm.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones armaduras.png")));
btnInfoArm.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoArm.setForeground(new Color(255, 255, 255));
btnInfoArm.setBackground(new Color(139, 69, 19));
btnInfoArm.setBorderPainted(false);
btnInfoArm.setContentAreaFilled(false);
btnInfoArm.setFocusPainted(false);
btnInfoArm.setOpaque(false);
btnInfoArm.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoArm1 window = new InfoArm1();
window.getFrame().setVisible(true);
}
});
btnInfoArm.setFont(mf.MyFont(0, 13));
btnInfoArm.setBounds(10, 122, 124, 47);
pnlArmadura.add(btnInfoArm);
final JButton btnQuitarArm = new JButton("-");
btnQuitarArm.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarArm.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones armaduras2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarArm.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones armaduras.png")));
}
});
btnQuitarArm.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarArm.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones armaduras.png")));
btnQuitarArm.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarArm.setForeground(new Color(255, 255, 255));
btnQuitarArm.setBackground(new Color(139, 69, 19));
btnQuitarArm.setBorderPainted(false);
btnQuitarArm.setContentAreaFilled(false);
btnQuitarArm.setFocusPainted(false);
btnQuitarArm.setOpaque(false);
btnQuitarArm.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (armor1.isPosesion() == true) {
if (armor1.getArmor().equals("Tela")) {
try {
armor1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
if (armor1.getArmor().equals("Armadura Ligera")) {
try {
armor1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
if (armor1.getArmor().equals("Armadura Ligera")
&& Start.character.getAtributes().getStrength() > 8) {
try {
armor1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
if (armor1.getArmor().equals("Armadura Ligera")
&& Start.character.getAtributes().getStrength() <= 8) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 1);
try {
armor1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura ligera dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() > 12
&& Start.character.getPrivileges()
.Search("Fornido") == false) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 1);
try {
armor1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() > 12
&& Start.character.getPrivileges()
.Search("Fornido") == true) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(dexN);
try {
armor1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() <= 12
&& Start.character.getAtributes().getStrength() > 10) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 2);
try {
armor1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() <= 10
&& Start.character.getAtributes().getStrength() > 8) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 3);
try {
armor1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() <= 8
&& Start.character.getAtributes().getStrength() > 6) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 4);
try {
armor1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.isPosesion() == true) {
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
}
txtArmadura.setText("");
armor1 = new Armor("", "", false,false, posss);
} else {
if (armor1.getArmor().equals("Armadura Ligera")
&& Start.character.getAtributes().getStrength() > 8) {
}
if (armor1.getArmor().equals("Armadura Ligera")
&& Start.character.getAtributes().getStrength() <= 8) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 1);
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura ligera dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() > 12
&& Start.character.getPrivileges()
.Search("Fornido") == false) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 1);
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() > 12
&& Start.character.getPrivileges()
.Search("Fornido") == true) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(dexN);
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() <= 12
&& Start.character.getAtributes().getStrength() > 10) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 2);
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() <= 10
&& Start.character.getAtributes().getStrength() > 8) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 3);
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.getArmor().equals("Armadura Pesada")
&& Start.character.getAtributes().getStrength() <= 8
&& Start.character.getAtributes().getStrength() > 6) {
int dexN = Start.character.getAtributes()
.getDexterity();
try {
Start.character.getAtributes().setDexterity(
dexN + 4);
} catch (AtributeOutOfBoundsException e1) {
JOptionPane
.showMessageDialog(
frmHistoriasDeZagas,
"No puedes equiparte una armadura pesada dado que tendrías una destreza menor de 6",
"", JOptionPane.ERROR_MESSAGE);
}
}
if (armor1.isPosesion() == true) {
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
}
txtArmadura.setText("");
armor1 = new Armor("", "", false,false, null);
}
}
});
btnQuitarArm.setFont(mf.MyFont(0, 13));
btnQuitarArm.setBounds(151, 122, 124, 47);
pnlArmadura.add(btnQuitarArm);
JPanel pnlArmas = new JPanel();
pnlArmas.setOpaque(false);
pnlArmas.setBackground(new Color(205, 133, 63));
pnlArmas.setBounds(288, 0, 287, 190);
pnlArmadura.add(pnlArmas);
pnlArmas.setLayout(null);
final JButton btnAadirArmas = new JButton("A\u00F1adir Armas");
btnAadirArmas.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnAadirArmas.setIcon(new ImageIcon(
Equipo.class
.getResource("/images/botones a\u00F1adir armasyobj2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnAadirArmas.setIcon(new ImageIcon(
Equipo.class
.getResource("/images/botones a\u00F1adir armasyobj.png")));
}
});
btnAadirArmas.setHorizontalTextPosition(SwingConstants.CENTER);
btnAadirArmas.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones a\u00F1adir armasyobj.png")));
btnAadirArmas.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnAadirArmas.setForeground(new Color(255, 255, 255));
btnAadirArmas.setBackground(new Color(139, 69, 19));
btnAadirArmas.setBorderPainted(false);
btnAadirArmas.setContentAreaFilled(false);
btnAadirArmas.setFocusPainted(false);
btnAadirArmas.setOpaque(false);
btnAadirArmas.setFont(mf.MyFont(0, 13));
btnAadirArmas.setBounds(10, 13, 123, 23);
pnlArmas.add(btnAadirArmas);
txtW1 = new JTextField();
txtW1.setForeground(new Color(0, 0, 0));
txtW1.setBackground(Color.WHITE);
txtW1.setText(weapon1.getWeapon());
txtW1.setEditable(false);
txtW1.setFont(mf.MyFont(0, 11));
txtW1.setBounds(10, 49, 123, 20);
pnlArmas.add(txtW1);
txtW1.setColumns(10);
txtW2 = new JTextField();
txtW2.setForeground(new Color(0, 0, 0));
txtW2.setBackground(Color.WHITE);
txtW2.setText(weapon2.getWeapon());
txtW2.setFont(mf.MyFont(0, 11));
txtW2.setEditable(false);
txtW2.setColumns(10);
txtW2.setBounds(10, 80, 123, 20);
pnlArmas.add(txtW2);
txtW3 = new JTextField();
txtW3.setForeground(new Color(0, 0, 0));
txtW3.setBackground(Color.WHITE);
txtW3.setText(weapon3.getWeapon());
txtW3.setFont(mf.MyFont(0, 11));
txtW3.setEditable(false);
txtW3.setColumns(10);
txtW3.setBounds(10, 111, 123, 20);
pnlArmas.add(txtW3);
txtW4 = new JTextField();
txtW4.setForeground(new Color(0, 0, 0));
txtW4.setBackground(Color.WHITE);
txtW4.setText(weapon4.getWeapon());
txtW4.setFont(mf.MyFont(0, 11));
txtW4.setEditable(false);
txtW4.setColumns(10);
txtW4.setBounds(10, 142, 123, 20);
pnlArmas.add(txtW4);
btnInfoW1 = new JButton("Info");
btnInfoW1.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoW1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoW1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoW1.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoW1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoW1.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoW1.setForeground(new Color(255, 255, 255));
btnInfoW1.setBackground(new Color(139, 69, 19));
btnInfoW1.setBorderPainted(false);
btnInfoW1.setContentAreaFilled(false);
btnInfoW1.setFocusPainted(false);
btnInfoW1.setOpaque(false);
btnInfoW1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoWeap1 window = new InfoWeap1();
window.getFrame().setVisible(true);
}
});
btnInfoW1.setFont(mf.MyFont(0, 13));
btnInfoW1.setBounds(143, 46, 68, 23);
pnlArmas.add(btnInfoW1);
btnInfo_W2 = new JButton("Info");
btnInfo_W2.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfo_W2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfo_W2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfo_W2.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfo_W2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfo_W2.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfo_W2.setForeground(new Color(255, 255, 255));
btnInfo_W2.setBackground(new Color(139, 69, 19));
btnInfo_W2.setBorderPainted(false);
btnInfo_W2.setContentAreaFilled(false);
btnInfo_W2.setFocusPainted(false);
btnInfo_W2.setOpaque(false);
btnInfo_W2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoWeap2 window = new InfoWeap2();
window.getFrame().setVisible(true);
}
});
btnInfo_W2.setFont(mf.MyFont(0, 13));
btnInfo_W2.setBounds(143, 77, 68, 23);
pnlArmas.add(btnInfo_W2);
btnInfoW3 = new JButton("Info");
btnInfoW3.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoW3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoW3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoW3.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoW3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoW3.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoW3.setForeground(new Color(255, 255, 255));
btnInfoW3.setBackground(new Color(139, 69, 19));
btnInfoW3.setBorderPainted(false);
btnInfoW3.setContentAreaFilled(false);
btnInfoW3.setFocusPainted(false);
btnInfoW3.setOpaque(false);
btnInfoW3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoWeap3 window = new InfoWeap3();
window.getFrame().setVisible(true);
}
});
btnInfoW3.setFont(mf.MyFont(0, 13));
btnInfoW3.setBounds(143, 108, 68, 23);
pnlArmas.add(btnInfoW3);
btnInfoW4 = new JButton("Info");
btnInfoW4.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoW4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoW4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoW4.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoW4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoW4.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoW4.setForeground(new Color(255, 255, 255));
btnInfoW4.setBackground(new Color(139, 69, 19));
btnInfoW4.setBorderPainted(false);
btnInfoW4.setContentAreaFilled(false);
btnInfoW4.setFocusPainted(false);
btnInfoW4.setOpaque(false);
btnInfoW4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoWeap4 window = new InfoWeap4();
window.getFrame().setVisible(true);
}
});
btnInfoW4.setFont(mf.MyFont(0, 13));
btnInfoW4.setBounds(143, 142, 68, 23);
pnlArmas.add(btnInfoW4);
final JButton btnQuitarW1 = new JButton("-");
btnQuitarW1.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarW1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarW1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarW1.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarW1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarW1.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarW1.setForeground(new Color(255, 255, 255));
btnQuitarW1.setBackground(new Color(139, 69, 19));
btnQuitarW1.setBorderPainted(false);
btnQuitarW1.setContentAreaFilled(false);
btnQuitarW1.setFocusPainted(false);
btnQuitarW1.setOpaque(false);
btnQuitarW1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
txtW1.setText("");
if (weapon1.isPosesion() == true) {
try {
weapon1.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SkillOutOfBoundsException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
}
weapon1 = new Weapons("", "", false,false, posss,"");
armasPuestas--;
}
});
btnQuitarW1.setBounds(221, 46, 53, 23);
pnlArmas.add(btnQuitarW1);
final JButton btnQuitarW2 = new JButton("-");
btnQuitarW2.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarW2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarW2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarW2.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarW2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarW2.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarW2.setForeground(new Color(255, 255, 255));
btnQuitarW2.setBackground(new Color(139, 69, 19));
btnQuitarW2.setBorderPainted(false);
btnQuitarW2.setContentAreaFilled(false);
btnQuitarW2.setFocusPainted(false);
btnQuitarW2.setOpaque(false);
btnQuitarW2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (weapon2.isPosesion() == true) {
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
weapon2.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
txtW2.setText("");
weapon2 = new Weapons("", "", false,false, posss,"");
armasPuestas--;
}
});
btnQuitarW2.setBounds(221, 77, 53, 23);
pnlArmas.add(btnQuitarW2);
final JButton btnQuitarW3 = new JButton("-");
btnQuitarW3.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarW3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarW3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarW3.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarW3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarW3.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarW3.setForeground(new Color(255, 255, 255));
btnQuitarW3.setBackground(new Color(139, 69, 19));
btnQuitarW3.setBorderPainted(false);
btnQuitarW3.setContentAreaFilled(false);
btnQuitarW3.setFocusPainted(false);
btnQuitarW3.setOpaque(false);
btnQuitarW3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (weapon3.isPosesion() == true) {
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
weapon3.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
txtW3.setText("");
weapon3 = new Weapons("", "", false,false, posss,"");
armasPuestas--;
}
});
btnQuitarW3.setBounds(221, 108, 53, 23);
pnlArmas.add(btnQuitarW3);
final JButton btnQuitarW4 = new JButton("-");
btnQuitarW4.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarW4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarW4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarW4.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarW4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarW4.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarW4.setForeground(new Color(255, 255, 255));
btnQuitarW4.setBackground(new Color(139, 69, 19));
btnQuitarW4.setBorderPainted(false);
btnQuitarW4.setContentAreaFilled(false);
btnQuitarW4.setFocusPainted(false);
btnQuitarW4.setOpaque(false);
btnQuitarW4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (weapon4.isPosesion() == true) {
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
weapon4.getPossesion().CalculoPosesionInv(
Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
txtW4.setText("");
weapon4 = new Weapons("", "", false,false, posss,"");
armasPuestas--;
}
});
btnQuitarW4.setBounds(221, 142, 53, 23);
pnlArmas.add(btnQuitarW4);
lblMaxArmas = new JLabel("M\u00E1ximo:");
lblMaxArmas.setForeground(Color.WHITE);
lblMaxArmas.setBounds(143, 13, 68, 14);
lblMaxArmas.setFont(mf.MyFont(0, 13));
pnlArmas.add(lblMaxArmas);
txtMaxArmas = new JTextField();
txtMaxArmas.setText("" + pweap);
txtMaxArmas.setEditable(false);
txtMaxArmas.setBackground(Color.WHITE);
txtMaxArmas.setBounds(196, 11, 32, 20);
pnlArmas.add(txtMaxArmas);
txtMaxArmas.setColumns(10);
btnAadirArmas.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (txtW1.getText().equals("") && pweap >= 1) {
Armas window = new Armas();
window.getFrame().setVisible(true);
} else {
if (txtW2.getText().equals("") && pweap >= 2) {
Armas window = new Armas();
window.getFrame().setVisible(true);
} else {
if (txtW3.getText().equals("") && pweap >= 3) {
Armas window = new Armas();
window.getFrame().setVisible(true);
} else {
if (txtW4.getText().equals("") && pweap >= 4) {
Armas window = new Armas();
window.getFrame().setVisible(true);
} else {
JOptionPane.showMessageDialog(
frmHistoriasDeZagas,
"No puedes llevar más armas.", "",
JOptionPane.ERROR_MESSAGE);
}
}
}
}
}
});
JPanel pnlObjetos = new JPanel();
pnlObjetos.setOpaque(false);
pnlObjetos.setBackground(new Color(205, 133, 63));
pnlObjetos.setLayout(null);
pnlObjetos.setBounds(0, 226, 290, 190);
frmHistoriasDeZagas.getContentPane().add(pnlObjetos);
txtObj1 = new JTextField();
txtObj1.setForeground(new Color(0, 0, 0));
txtObj1.setBackground(Color.WHITE);
txtObj1.setEditable(false);
txtObj1.setText(misc1.getMisc());
txtObj1.setFont(mf.MyFont(0, 11));
txtObj1.setColumns(10);
txtObj1.setBounds(10, 49, 123, 20);
pnlObjetos.add(txtObj1);
txtObj2 = new JTextField();
txtObj2.setForeground(new Color(0, 0, 0));
txtObj2.setBackground(Color.WHITE);
txtObj2.setEditable(false);
txtObj2.setText(misc2.getMisc());
txtObj2.setFont(mf.MyFont(0, 11));
txtObj2.setColumns(10);
txtObj2.setBounds(10, 80, 123, 20);
pnlObjetos.add(txtObj2);
txtObj3 = new JTextField();
txtObj3.setForeground(new Color(0, 0, 0));
txtObj3.setBackground(Color.WHITE);
txtObj3.setText(misc3.getMisc());
txtObj3.setEditable(false);
txtObj3.setFont(mf.MyFont(0, 11));
txtObj3.setColumns(10);
txtObj3.setBounds(10, 111, 123, 20);
pnlObjetos.add(txtObj3);
txtObj4 = new JTextField();
txtObj4.setForeground(new Color(0, 0, 0));
txtObj4.setBackground(Color.WHITE);
txtObj4.setEditable(false);
txtObj4.setText(misc4.getMisc());
txtObj4.setFont(mf.MyFont(0, 11));
txtObj4.setColumns(10);
txtObj4.setBounds(10, 142, 123, 20);
pnlObjetos.add(txtObj4);
final JButton btnAadirObjetos = new JButton("A\u00F1adir Objetos");
btnAadirObjetos.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnAadirObjetos.setIcon(new ImageIcon(
Equipo.class
.getResource("/images/botones a\u00F1adir armasyobj2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnAadirObjetos.setIcon(new ImageIcon(
Equipo.class
.getResource("/images/botones a\u00F1adir armasyobj.png")));
}
});
btnAadirObjetos.setHorizontalTextPosition(SwingConstants.CENTER);
btnAadirObjetos.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones a\u00F1adir armasyobj.png")));
btnAadirObjetos.setBorder(new BevelBorder(BevelBorder.RAISED, null,
null, null, null));
btnAadirObjetos.setForeground(new Color(255, 255, 255));
btnAadirObjetos.setBackground(new Color(139, 69, 19));
btnAadirObjetos.setBorderPainted(false);
btnAadirObjetos.setContentAreaFilled(false);
btnAadirObjetos.setFocusPainted(false);
btnAadirObjetos.setOpaque(false);
btnAadirObjetos.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (Equipo.getTextField_4().getText().equals("")
&& Equipo.pmisc >= 1) {
Objetos window = new Objetos();
window.getFrame().setVisible(true);
} else {
if (Equipo.getTextField_5().getText().equals("")
&& Equipo.pmisc >= 2) {
Objetos window = new Objetos();
window.getFrame().setVisible(true);
} else {
if (Equipo.getTextField_6().getText().equals("")
&& Equipo.pmisc >= 3) {
Objetos window = new Objetos();
window.getFrame().setVisible(true);
} else {
if (Equipo.getTextField_7().getText().equals("")
&& Equipo.pmisc >= 4) {
Objetos window = new Objetos();
window.getFrame().setVisible(true);
} else {
JOptionPane.showMessageDialog(
frmHistoriasDeZagas,
"No puedes llevar más objetos.", "",
JOptionPane.ERROR_MESSAGE);
}
}
}
}
}
});
btnAadirObjetos.setFont(mf.MyFont(0, 13));
btnAadirObjetos.setBounds(10, 15, 123, 23);
pnlObjetos.add(btnAadirObjetos);
btnInfoObj1 = new JButton("Info");
btnInfoObj1.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoObj1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoObj1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoObj1.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoObj1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoObj1.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoObj1.setForeground(new Color(255, 255, 255));
btnInfoObj1.setBackground(new Color(139, 69, 19));
btnInfoObj1.setBorderPainted(false);
btnInfoObj1.setContentAreaFilled(false);
btnInfoObj1.setFocusPainted(false);
btnInfoObj1.setOpaque(false);
btnInfoObj1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
InfoMisc1 window = new InfoMisc1();
window.getFrame().setVisible(true);
}
});
btnInfoObj1.setFont(mf.MyFont(0, 13));
btnInfoObj1.setBounds(143, 46, 69, 23);
pnlObjetos.add(btnInfoObj1);
btnInfoObj2 = new JButton("Info");
btnInfoObj2.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoObj2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoObj2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoObj2.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoObj2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoObj2.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoObj2.setForeground(new Color(255, 255, 255));
btnInfoObj2.setBackground(new Color(139, 69, 19));
btnInfoObj2.setBorderPainted(false);
btnInfoObj2.setContentAreaFilled(false);
btnInfoObj2.setFocusPainted(false);
btnInfoObj2.setOpaque(false);
btnInfoObj2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoMisc2 window = new InfoMisc2();
window.getFrame().setVisible(true);
}
});
btnInfoObj2.setFont(mf.MyFont(0, 13));
btnInfoObj2.setBounds(143, 77, 69, 23);
pnlObjetos.add(btnInfoObj2);
btnInfoObj3 = new JButton("Info");
btnInfoObj3.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoObj3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoObj3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoObj3.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoObj3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoObj3.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoObj3.setForeground(new Color(255, 255, 255));
btnInfoObj3.setBackground(new Color(139, 69, 19));
btnInfoObj3.setBorderPainted(false);
btnInfoObj3.setContentAreaFilled(false);
btnInfoObj3.setFocusPainted(false);
btnInfoObj3.setOpaque(false);
btnInfoObj3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoMisc3 window = new InfoMisc3();
window.getFrame().setVisible(true);
}
});
btnInfoObj3.setFont(mf.MyFont(0, 13));
btnInfoObj3.setBounds(143, 108, 69, 23);
pnlObjetos.add(btnInfoObj3);
btnInfoObj4 = new JButton("Info");
btnInfoObj4.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoObj4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoObj4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoObj4.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoObj4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoObj4.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoObj4.setForeground(new Color(255, 255, 255));
btnInfoObj4.setBackground(new Color(139, 69, 19));
btnInfoObj4.setBorderPainted(false);
btnInfoObj4.setContentAreaFilled(false);
btnInfoObj4.setFocusPainted(false);
btnInfoObj4.setOpaque(false);
btnInfoObj4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoMisc4 window = new InfoMisc4();
window.getFrame().setVisible(true);
}
});
btnInfoObj4.setFont(mf.MyFont(0, 13));
btnInfoObj4.setBounds(143, 139, 69, 23);
pnlObjetos.add(btnInfoObj4);
final JButton btnQuitarObj1 = new JButton("-");
btnQuitarObj1.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarObj1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarObj1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarObj1.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarObj1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarObj1.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarObj1.setForeground(new Color(255, 255, 255));
btnQuitarObj1.setBackground(new Color(139, 69, 19));
btnQuitarObj1.setBorderPainted(false);
btnQuitarObj1.setContentAreaFilled(false);
btnQuitarObj1.setFocusPainted(false);
btnQuitarObj1.setOpaque(false);
btnQuitarObj1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (misc1.isPosesion() == true) {
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
misc1.getPossesion()
.CalculoPosesionInv(Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
txtObj1.setText("");
misc1 = new Misc("", "", false,false, posss);
objetosPuestos--;
}
});
btnQuitarObj1.setBounds(222, 46, 53, 23);
pnlObjetos.add(btnQuitarObj1);
final JButton btnQuitarObj2 = new JButton("-");
btnQuitarObj2.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarObj2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarObj2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarObj2.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarObj2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarObj2.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarObj2.setForeground(new Color(255, 255, 255));
btnQuitarObj2.setBackground(new Color(139, 69, 19));
btnQuitarObj2.setBorderPainted(false);
btnQuitarObj2.setContentAreaFilled(false);
btnQuitarObj2.setFocusPainted(false);
btnQuitarObj2.setOpaque(false);
btnQuitarObj2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (misc2.isPosesion() == true) {
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
misc2.getPossesion()
.CalculoPosesionInv(Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
txtObj2.setText("");
misc2 = new Misc("", "", false,false, posss);
objetosPuestos--;
}
});
btnQuitarObj2.setBounds(222, 77, 53, 23);
pnlObjetos.add(btnQuitarObj2);
final JButton btnQuitarObj3 = new JButton("-");
btnQuitarObj3.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarObj3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarObj3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarObj3.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarObj3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarObj3.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarObj3.setForeground(new Color(255, 255, 255));
btnQuitarObj3.setBackground(new Color(139, 69, 19));
btnQuitarObj3.setBorderPainted(false);
btnQuitarObj3.setContentAreaFilled(false);
btnQuitarObj3.setFocusPainted(false);
btnQuitarObj3.setOpaque(false);
btnQuitarObj3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (misc3.isPosesion() == true) {
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
misc3.getPossesion()
.CalculoPosesionInv(Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
txtObj3.setText("");
misc3 = new Misc("", "", false,false, posss);
objetosPuestos--;
}
});
btnQuitarObj3.setBounds(222, 108, 53, 23);
pnlObjetos.add(btnQuitarObj3);
final JButton btnQuitarObj4 = new JButton("-");
btnQuitarObj4.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarObj4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarObj4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarObj4.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarObj4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarObj4.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarObj4.setForeground(new Color(255, 255, 255));
btnQuitarObj4.setBackground(new Color(139, 69, 19));
btnQuitarObj4.setBorderPainted(false);
btnQuitarObj4.setContentAreaFilled(false);
btnQuitarObj4.setFocusPainted(false);
btnQuitarObj4.setOpaque(false);
btnQuitarObj4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (misc4.isPosesion() == true) {
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
misc4.getPossesion()
.CalculoPosesionInv(Start.character);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
txtObj4.setText("");
misc4 = new Misc("", "", false,false, posss);
objetosPuestos--;
}
});
btnQuitarObj4.setBounds(222, 139, 53, 23);
pnlObjetos.add(btnQuitarObj4);
JPanel pnlAccesorios = new JPanel();
pnlAccesorios.setOpaque(false);
pnlAccesorios.setBackground(new Color(205, 133, 63));
pnlAccesorios.setLayout(null);
pnlAccesorios.setBounds(285, 226, 290, 190);
frmHistoriasDeZagas.getContentPane().add(pnlAccesorios);
txtAcc1 = new JTextField();
txtAcc1.setForeground(new Color(0, 0, 0));
txtAcc1.setBackground(Color.WHITE);
txtAcc1.setText(accesories1.getAccesory());
txtAcc1.setFont(mf.MyFont(0, 11));
txtAcc1.setEditable(false);
txtAcc1.setColumns(10);
txtAcc1.setBounds(10, 49, 123, 20);
pnlAccesorios.add(txtAcc1);
txtAcc2 = new JTextField();
txtAcc2.setForeground(new Color(0, 0, 0));
txtAcc2.setBackground(Color.WHITE);
txtAcc2.setText(accesories2.getAccesory());
txtAcc2.setFont(mf.MyFont(0, 11));
txtAcc2.setEditable(false);
txtAcc2.setColumns(10);
txtAcc2.setBounds(10, 80, 123, 20);
pnlAccesorios.add(txtAcc2);
txtAcc3 = new JTextField();
txtAcc3.setForeground(new Color(0, 0, 0));
txtAcc3.setBackground(Color.WHITE);
txtAcc3.setText(accesories3.getAccesory());
txtAcc3.setFont(mf.MyFont(0, 11));
txtAcc3.setEditable(false);
txtAcc3.setColumns(10);
txtAcc3.setBounds(10, 111, 123, 20);
pnlAccesorios.add(txtAcc3);
txtAcc4 = new JTextField();
txtAcc4.setForeground(new Color(0, 0, 0));
txtAcc4.setBackground(Color.WHITE);
txtAcc4.setText(accesories4.getAccesory());
txtAcc4.setFont(mf.MyFont(0, 11));
txtAcc4.setEditable(false);
txtAcc4.setColumns(10);
txtAcc4.setBounds(10, 142, 123, 20);
pnlAccesorios.add(txtAcc4);
txtAccesorios = new JTextField();
txtAccesorios.setOpaque(false);
txtAccesorios.setForeground(Color.WHITE);
txtAccesorios.setBackground(new Color(205, 133, 63));
txtAccesorios.setText("Accesorios:");
txtAccesorios.setFont(mf.MyFont(0, 13));
txtAccesorios.setEditable(false);
txtAccesorios.setColumns(10);
txtAccesorios.setBorder(null);
txtAccesorios.setBounds(37, 18, 69, 20);
pnlAccesorios.add(txtAccesorios);
btnInfoAcc1 = new JButton("Info");
btnInfoAcc1.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoAcc1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoAcc1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoAcc1.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoAcc1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoAcc1.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoAcc1.setForeground(new Color(255, 255, 255));
btnInfoAcc1.setBackground(new Color(139, 69, 19));
btnInfoAcc1.setBorderPainted(false);
btnInfoAcc1.setContentAreaFilled(false);
btnInfoAcc1.setFocusPainted(false);
btnInfoAcc1.setOpaque(false);
btnInfoAcc1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoAcc1 window = new InfoAcc1();
window.getFrame().setVisible(true);
}
});
btnInfoAcc1.setFont(mf.MyFont(0, 13));
btnInfoAcc1.setBounds(143, 46, 69, 23);
pnlAccesorios.add(btnInfoAcc1);
btnInfoAcc2 = new JButton("Info");
btnInfoAcc2.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoAcc2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoAcc2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoAcc2.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoAcc2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoAcc2.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoAcc2.setForeground(new Color(255, 255, 255));
btnInfoAcc2.setBackground(new Color(139, 69, 19));
btnInfoAcc2.setBorderPainted(false);
btnInfoAcc2.setContentAreaFilled(false);
btnInfoAcc2.setFocusPainted(false);
btnInfoAcc2.setOpaque(false);
btnInfoAcc2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoAcc2 window = new InfoAcc2();
window.getFrame().setVisible(true);
}
});
btnInfoAcc2.setFont(mf.MyFont(0, 13));
btnInfoAcc2.setBounds(143, 77, 69, 23);
pnlAccesorios.add(btnInfoAcc2);
btnInfoAcc3 = new JButton("Info");
btnInfoAcc3.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoAcc3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoAcc3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoAcc3.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoAcc3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoAcc3.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoAcc3.setForeground(new Color(255, 255, 255));
btnInfoAcc3.setBackground(new Color(139, 69, 19));
btnInfoAcc3.setBorderPainted(false);
btnInfoAcc3.setContentAreaFilled(false);
btnInfoAcc3.setFocusPainted(false);
btnInfoAcc3.setOpaque(false);
btnInfoAcc3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoAcc3 window = new InfoAcc3();
window.getFrame().setVisible(true);
}
});
btnInfoAcc3.setFont(mf.MyFont(0, 13));
btnInfoAcc3.setBounds(143, 108, 69, 23);
pnlAccesorios.add(btnInfoAcc3);
btnInfoAcc4 = new JButton("Info");
btnInfoAcc4.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInfoAcc4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnInfoAcc4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
}
});
btnInfoAcc4.setHorizontalTextPosition(SwingConstants.CENTER);
btnInfoAcc4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton info.png")));
btnInfoAcc4.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInfoAcc4.setForeground(new Color(255, 255, 255));
btnInfoAcc4.setBackground(new Color(139, 69, 19));
btnInfoObj1.setBorderPainted(false);
lblMaxObj = new JLabel("M\u00E1ximo:");
lblMaxObj.setForeground(Color.WHITE);
lblMaxObj.setFont(mf.MyFont(0, 13));
lblMaxObj.setBounds(143, 17, 68, 14);
pnlObjetos.add(lblMaxObj);
txtMaxObj = new JTextField();
txtMaxObj.setText("" + pmisc);
txtMaxObj.setEditable(false);
txtMaxObj.setColumns(10);
txtMaxObj.setBackground(Color.WHITE);
txtMaxObj.setBounds(196, 15, 32, 20);
pnlObjetos.add(txtMaxObj);
btnInfoAcc4.setBorderPainted(false);
btnInfoAcc4.setContentAreaFilled(false);
btnInfoAcc4.setFocusPainted(false);
btnInfoAcc4.setOpaque(false);
btnInfoAcc4.setContentAreaFilled(false);
btnInfoAcc4.setFocusPainted(false);
btnInfoAcc4.setOpaque(false);
btnInfoAcc4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
InfoAcc4 window = new InfoAcc4();
window.getFrame().setVisible(true);
}
});
btnInfoAcc4.setFont(mf.MyFont(0, 13));
btnInfoAcc4.setBounds(143, 139, 69, 23);
pnlAccesorios.add(btnInfoAcc4);
final JButton btnQuitarAcc1 = new JButton("-");
btnQuitarAcc1.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarAcc1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarAcc1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarAcc1.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarAcc1.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarAcc1.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarAcc1.setForeground(new Color(255, 255, 255));
btnQuitarAcc1.setBackground(new Color(139, 69, 19));
btnQuitarAcc1.setBorderPainted(false);
btnQuitarAcc1.setContentAreaFilled(false);
btnQuitarAcc1.setFocusPainted(false);
btnQuitarAcc1.setOpaque(false);
btnQuitarAcc1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (txtAcc1.getText().equals("")) {
} else {
txtAcc1.setText("");
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
accesories1.getPossesion().CalculoPosesionInv(
Start.character);
accesories1 = new Accesories("", "", false,false, posss);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
});
btnQuitarAcc1.setBounds(222, 46, 53, 23);
pnlAccesorios.add(btnQuitarAcc1);
final JButton btnQuitarAcc2 = new JButton("-");
btnQuitarAcc2.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarAcc2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarAcc2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarAcc2.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarAcc2.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarAcc2.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarAcc2.setForeground(new Color(255, 255, 255));
btnQuitarAcc2.setBackground(new Color(139, 69, 19));
btnQuitarAcc2.setBorderPainted(false);
btnQuitarAcc2.setContentAreaFilled(false);
btnQuitarAcc2.setFocusPainted(false);
btnQuitarAcc2.setOpaque(false);
btnQuitarAcc2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (txtAcc2.getText().equals("")) {
} else {
txtAcc2.setText("");
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
accesories2.getPossesion().CalculoPosesionInv(
Start.character);
accesories2 = new Accesories("", "", false,false, posss);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
});
btnQuitarAcc2.setBounds(222, 77, 53, 23);
pnlAccesorios.add(btnQuitarAcc2);
final JButton btnQuitarAcc3 = new JButton("-");
btnQuitarAcc3.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarAcc3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarAcc3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarAcc3.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarAcc3.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarAcc3.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarAcc3.setForeground(new Color(255, 255, 255));
btnQuitarAcc3.setBackground(new Color(139, 69, 19));
btnQuitarAcc3.setBorderPainted(false);
btnQuitarAcc3.setContentAreaFilled(false);
btnQuitarAcc3.setFocusPainted(false);
btnQuitarAcc3.setOpaque(false);
btnQuitarAcc3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (txtAcc3.getText().equals("")) {
} else {
txtAcc3.setText("");
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
posPuestas--;
try {
accesories3.getPossesion().CalculoPosesionInv(
Start.character);
accesories3 = new Accesories("", "", false,false, posss);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
});
btnQuitarAcc3.setBounds(222, 108, 53, 23);
pnlAccesorios.add(btnQuitarAcc3);
final JButton btnQuitarAcc4 = new JButton("-");
btnQuitarAcc4.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnQuitarAcc4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnQuitarAcc4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
}
});
btnQuitarAcc4.setHorizontalTextPosition(SwingConstants.CENTER);
btnQuitarAcc4.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-.png")));
btnQuitarAcc4.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnQuitarAcc4.setForeground(new Color(255, 255, 255));
btnQuitarAcc4.setBackground(new Color(139, 69, 19));
btnQuitarAcc4.setBorderPainted(false);
btnQuitarAcc4.setContentAreaFilled(false);
btnQuitarAcc4.setFocusPainted(false);
btnQuitarAcc4.setOpaque(false);
btnQuitarAcc4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (txtAcc4.getText().equals("")) {
} else {
txtAcc4.setText("");
posPuestas--;
Start.contadorPosesion += 1;
Privilegios.posesiones -= 1;
try {
accesories4.getPossesion().CalculoPosesionInv(
Start.character);
accesories4 = new Accesories("", "", false,false, posss);
} catch (AtributeOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SkillOutOfBoundsException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
});
btnQuitarAcc4.setBounds(222, 139, 53, 23);
pnlAccesorios.add(btnQuitarAcc4);
final JButton btnPosesiones = new JButton("Posesiones");
btnPosesiones.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnPosesiones.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-inicio-ayuda2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnPosesiones.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-inicio-ayuda.png")));
}
});
btnPosesiones.setHorizontalTextPosition(SwingConstants.CENTER);
btnPosesiones.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-inicio-ayuda.png")));
btnPosesiones.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnPosesiones.setForeground(new Color(255, 255, 255));
btnPosesiones.setBackground(new Color(139, 69, 19));
btnPosesiones.setBorderPainted(false);
btnPosesiones.setContentAreaFilled(false);
btnPosesiones.setFocusPainted(false);
btnPosesiones.setOpaque(false);
btnPosesiones.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (Start.contadorPosesion > Privilegios.posesiones) {
Posesiones.ppos = 3;
Posesiones.ppos1 = 0;
Posesiones.ppos2 = 0;
Posesiones.ppos3 = 0;
Posesiones window = new Posesiones();
window.getFrame().setVisible(true);
} else {
JOptionPane.showMessageDialog(frmHistoriasDeZagas,
"No puedes llevar más posesiones.", "",
JOptionPane.ERROR_MESSAGE);
}
}
});
btnPosesiones.setFont(mf.MyFont(0, 15));
if (pweap >= 1) {
txtW1.setVisible(true);
btnInfoW1.setVisible(true);
btnQuitarW1.setVisible(true);
}
if (pweap >= 2) {
txtW2.setVisible(true);
btnInfo_W2.setVisible(true);
btnQuitarW2.setVisible(true);
}
if (pweap >= 3) {
txtW3.setVisible(true);
btnInfoW3.setVisible(true);
btnQuitarW3.setVisible(true);
}
if (pweap >= 4) {
txtW4.setVisible(true);
btnInfoW4.setVisible(true);
btnQuitarW4.setVisible(true);
}
if (pmisc >= 1) {
txtObj1.setVisible(true);
btnInfoObj1.setVisible(true);
btnQuitarObj1.setVisible(true);
}
if (pmisc >= 2) {
txtObj2.setVisible(true);
btnInfoObj2.setVisible(true);
btnQuitarObj2.setVisible(true);
}
if (pmisc >= 3) {
txtObj3.setVisible(true);
btnInfoObj3.setVisible(true);
btnQuitarObj3.setVisible(true);
}
if (pmisc >= 4) {
txtObj4.setVisible(true);
btnInfoObj4.setVisible(true);
btnQuitarObj4.setVisible(true);
}
btnPosesiones.setBounds(234, 438, 111, 32);
frmHistoriasDeZagas.getContentPane().add(btnPosesiones);
final JButton btnContinuar = new JButton("");
btnContinuar.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnContinuar.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton continuar2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnContinuar.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton continuar.png")));
}
});
btnContinuar.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton continuar.png")));
btnContinuar.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnContinuar.setForeground(new Color(255, 255, 255));
btnContinuar.setBackground(new Color(139, 69, 19));
btnContinuar.setBorderPainted(false);
btnContinuar.setContentAreaFilled(false);
btnContinuar.setFocusPainted(false);
btnContinuar.setOpaque(false);
btnContinuar.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
try {
ArrayList<Inventory> equipo = new ArrayList<Inventory>();
Start.character.setArmor(armor1);
equipo.add(weapon1);
equipo.add(weapon2);
equipo.add(weapon3);
equipo.add(weapon4);
equipo.add(misc1);
equipo.add(misc2);
equipo.add(misc3);
equipo.add(misc4);
equipo.add(accesories1);
equipo.add(accesories2);
equipo.add(accesories3);
equipo.add(accesories4);
Equipment equipoo = new Equipment();
Start.character.setEquipment(equipoo);
Start.character.getEquipment().setInventory(equipo);
frmHistoriasDeZagas.dispose();
Resumen window = new Resumen();
window.getFrmHistoriasDeZagas().setVisible(true);
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
btnContinuar.setFont(mf.MyFont(0, 13));
btnContinuar.setBounds(479, 438, 99, 41);
frmHistoriasDeZagas.getContentPane().add(btnContinuar);
btnAtras = new JButton("");
btnAtras.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnAtras.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton atras2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
btnAtras.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton atras.png")));
}
});
btnAtras.setIcon(new ImageIcon(Equipo.class
.getResource("/images/boton atras.png")));
btnAtras.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnAtras.setForeground(new Color(255, 255, 255));
btnAtras.setBackground(new Color(139, 69, 19));
btnAtras.setBorderPainted(false);
btnAtras.setContentAreaFilled(false);
btnAtras.setFocusPainted(false);
btnAtras.setOpaque(false);
btnAtras.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
frmHistoriasDeZagas.dispose();
Habilidades window = new Habilidades();
window.getFrame().setVisible(true);
}
});
btnAtras.setFont(mf.MyFont(0, 13));
btnAtras.setBounds(0, 438, 99, 41);
frmHistoriasDeZagas.getContentPane().add(btnAtras);
btnAyuda = new JButton("Ayuda");
btnAyuda.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
AyudaEquipo window = new AyudaEquipo();
window.getFrame().setVisible(true);
}
});
btnAyuda.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnAyuda.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-inicio-ayuda2.png")));
}
public void mouseReleased(MouseEvent e) {
btnAyuda.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-inicio-ayuda.png")));
}
});
btnAyuda.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-inicio-ayuda.png")));
btnAyuda.setOpaque(false);
btnAyuda.setHorizontalTextPosition(SwingConstants.CENTER);
btnAyuda.setForeground(Color.WHITE);
btnAyuda.setFont(mf.MyFont(0, 15));
btnAyuda.setFocusPainted(false);
btnAyuda.setContentAreaFilled(false);
btnAyuda.setBorderPainted(false);
btnAyuda.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnAyuda.setBackground(new Color(139, 69, 19));
btnAyuda.setBounds(362, 438, 111, 32);
frmHistoriasDeZagas.getContentPane().add(btnAyuda);
btnInicio = new JButton("Inicio");
btnInicio.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int seleccion = JOptionPane
.showOptionDialog(
frmHistoriasDeZagas,
"Si vuelves al inicio se perderán todos los datos no guardados.",
"¡Atención!", JOptionPane.YES_NO_OPTION,
JOptionPane.PLAIN_MESSAGE, null, new Object[] {
"Aceptar", "Cancelar" }, // null
// para
// YES,
// NO y
// CANCEL
"opcion 1");
if (JOptionPane.YES_OPTION == seleccion) {
Start.razaAnt="";
Start.nombre = "";
Start.edad = 0;
Start.raza = 0;
Start.descrpF = "";
Bendiciones.bendicion = 0;
Privilegios.priv1 = 0;
Privilegios.priv2 = 0;
Privilegios.priv3 = 0;
Privilegios.priv4 = 0;
Privilegios.priv5 = 0;
Privilegios.rev1 = 0;
Privilegios.rev2 = 0;
Privilegios.rev3 = 0;
Privilegios.rev4 = 0;
Privilegios.posesiones = 0;
Start.atrpoints = new AtributePoints();
Start.skpoints = new SkillPoints();
Start.atributos = new Atributes(Start.atrpoints);
Start.combatSkills = new CombatSkills(Start.skpoints);
Start.knowledgeSkills = new KnowledgeSkills(Start.skpoints);
Start.magicSkills = new MagicSkills(Start.skpoints);
Start.knowhowSkills = new KnowHowSkills(Start.skpoints);
Atributos.minFuerza = 6;
Atributos.minDestreza = 6;
Atributos.minResistencia = 6;
Atributos.minResistenciaM = 6;
Atributos.minCarisma = 6;
Atributos.minPercepcion = 6;
Atributos.minInteligencia = 6;
Combate.minAsta = 0;
Combate.minBloq = 0;
Combate.minDist = 0;
Combate.minDos = 0;
Combate.minEsq = 0;
Combate.minUna = 0;
Conocimientos.minAG = 0;
Conocimientos.minCS = 0;
Conocimientos.minDip = 0;
Conocimientos.minEt = 0;
Conocimientos.minInv = 0;
Conocimientos.minMed = 0;
Conocimientos.minNeg = 0;
Conocimientos.minOc = 0;
Magia.minAgua = 0;
Magia.minArcana = 0;
Magia.minBlanca = 0;
Magia.minDruidica = 0;
Magia.minFuego = 0;
Magia.minNegra = 0;
Magia.minTierra = 0;
Magia.minViento = 0;
Destrezas.minAtl = 0;
Destrezas.minEq = 0;
Destrezas.minSig = 0;
Destrezas.minSup = 0;
Destrezas.minTra = 0;
Equipo.contexcusa = 0;
Equipo.weapon1 = new Weapons("", "", false,false,
Equipo.posss,"");
Equipo.weapon2 = new Weapons("", "", false,false,
Equipo.posss,"");
Equipo.weapon3 = new Weapons("", "", false,false,
Equipo.posss,"");
Equipo.weapon4 = new Weapons("", "", false,false,
Equipo.posss,"");
Equipo.armor1 = new Armor("", "", false,false, Equipo.posss);
Equipo.accesories1 = new Accesories("", "", false,false,
Equipo.posss);
Equipo.accesories2 = new Accesories("", "", false,false,
Equipo.posss);
Equipo.accesories3 = new Accesories("", "", false,false,
Equipo.posss);
Equipo.accesories4 = new Accesories("", "", false,false,
Equipo.posss);
Equipo.misc1 = new Misc("", "", false,false, Equipo.posss);
Equipo.misc2 = new Misc("", "", false,false, Equipo.posss);
Equipo.misc3 = new Misc("", "", false,false, Equipo.posss);
Equipo.misc4 = new Misc("", "", false,false, Equipo.posss);
Equipo.pweap = 0;
Equipo.pmisc = 0;
Start.contadorBEktra = 0;
Start.contadorPosesion = 0;
Blessing blessing = new Blessing("");
Setbacks setbacks = new Setbacks();
Race race = new Race("");
Equipment equipment = new Equipment();
ArrayList<String> posarm = new ArrayList<String>();
Possesions posss = new Possesions(posarm);
Armor armor = new Armor("", "", false,false, posss);
Start.character = new Characters(null, race, "", 0, 2, 10,
20, 20, Start.atributos, Start.combatSkills,
Start.knowledgeSkills, Start.magicSkills,
Start.knowhowSkills, blessing, null, setbacks,
false, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,"","","");
frmHistoriasDeZagas.dispose();
Inicio window = new Inicio();
window.getFrmHistoriasDeZagas().setVisible(true);
}
}
});
btnInicio.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
btnInicio.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-inicio-ayuda2.png")));
}
public void mouseReleased(MouseEvent e) {
btnInicio.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-inicio-ayuda.png")));
}
});
btnInicio.setIcon(new ImageIcon(Equipo.class
.getResource("/images/botones-inicio-ayuda.png")));
btnInicio.setOpaque(false);
btnInicio.setHorizontalTextPosition(SwingConstants.CENTER);
btnInicio.setForeground(Color.WHITE);
btnInicio.setFont(mf.MyFont(0, 15));
btnInicio.setFocusPainted(false);
btnInicio.setContentAreaFilled(false);
btnInicio.setBorderPainted(false);
btnInicio.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
btnInicio.setBackground(new Color(139, 69, 19));
btnInicio.setBounds(104, 438, 111, 32);
frmHistoriasDeZagas.getContentPane().add(btnInicio);
lblEquipo = new JLabel("Equipo");
lblEquipo.setForeground(Color.WHITE);
lblEquipo.setFont(mf.MyFont(1, 36));
lblEquipo.setHorizontalAlignment(SwingConstants.CENTER);
lblEquipo.setBounds(0, 0, 575, 48);
frmHistoriasDeZagas.getContentPane().add(lblEquipo);
JLabel label = new JLabel("");
label.setIcon(new ImageIcon(Equipo.class
.getResource("/images/background-creadornpcs.jpg")));
label.setBounds(0, 0, 584, 504);
frmHistoriasDeZagas.getContentPane().add(label);
}
public JFrame getFrmHistoriasDeZagas() {
return frmHistoriasDeZagas;
}
public void setFrmHistoriasDeZagas(JFrame frmHistoriasDeZagas) {
this.frmHistoriasDeZagas = frmHistoriasDeZagas;
}
public static JTextField getTextField_12() {
return txtArmadura;
}
public void setTextField_12(JTextField textField_12) {
this.txtArmadura = textField_12;
}
public static JTextField getTextField_5() {
return txtObj2;
}
public void setTextField_5(JTextField textField_5) {
this.txtObj2 = textField_5;
}
public static JTextField getTextField_6() {
return txtObj3;
}
public void setTextField_6(JTextField textField_6) {
this.txtObj3 = textField_6;
}
public static JTextField getTextField_7() {
return txtObj4;
}
public void setTextField_7(JTextField textField_7) {
this.txtObj4 = textField_7;
}
public static JTextField getTextField_8() {
return txtAcc1;
}
public void setTextField_8(JTextField textField_8) {
this.txtAcc1 = textField_8;
}
public static JTextField getTextField_9() {
return txtAcc2;
}
public void setTextField_9(JTextField textField_9) {
this.txtAcc2 = textField_9;
}
public static JTextField getTextField_10() {
return txtAcc3;
}
public void setTextField_10(JTextField textField_10) {
this.txtAcc3 = textField_10;
}
public static JTextField getTextField_11() {
return txtAcc4;
}
public void setTextField_11(JTextField textField_11) {
this.txtAcc4 = textField_11;
}
public static JTextField getTextField() {
return txtW1;
}
public void setTextField(JTextField textField) {
this.txtW1 = textField;
}
public static JTextField getTextField_1() {
return txtW2;
}
public void setTextField_1(JTextField textField_1) {
this.txtW2 = textField_1;
}
public static JTextField getTextField_2() {
return txtW3;
}
public void setTextField_2(JTextField textField_2) {
this.txtW3 = textField_2;
}
public static JTextField getTextField_3() {
return txtW4;
}
public void setTextField_3(JTextField textField_3) {
this.txtW4 = textField_3;
}
public static JTextField getTextField_4() {
return txtObj1;
}
public void setTextField_4(JTextField textField_4) {
this.txtObj1 = textField_4;
}
public JFrame getFrame() {
return frmHistoriasDeZagas;
}
public void setFrame(JFrame frame) {
this.frmHistoriasDeZagas = frame;
}
}
| cc0-1.0 |
scmod/nexus-public | plugins/restlet1x/nexus-restlet-bridge/src/main/java/org/sonatype/plexus/rest/DefaultReferenceFactory.java | 3250 | /*
* 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.plexus.rest;
import org.codehaus.plexus.util.StringUtils;
import org.restlet.data.Reference;
import org.restlet.data.Request;
/**
* NOTE: this should NOT be a PLEXUS component. If someone wants to load it by creating a config thats great. Providing
* a default implementation my cause other issues when trying to load an actual implementation. Classes extending this
* should be able to just override <code>getContextRoot</code>.
*/
public class DefaultReferenceFactory
implements ReferenceFactory
{
/**
* Centralized, since this is the only "dependent" stuff that relies on knowledge where restlet.Application is
* mounted (we had a /service => / move).
*
* This implementation is still used by tests.
*/
public Reference getContextRoot(Request request) {
Reference result = request.getRootRef();
// fix for when restlet is at webapp root
if (StringUtils.isEmpty(result.getPath())) {
result.setPath("/");
}
return result;
}
protected Reference updateBaseRefPath(Reference reference) {
if (reference.getBaseRef().getPath() == null) {
reference.getBaseRef().setPath("/");
}
else if (!reference.getBaseRef().getPath().endsWith("/")) {
reference.getBaseRef().setPath(reference.getBaseRef().getPath() + "/");
}
return reference;
}
/**
* See NexusReferenceFactory impl which provides real behavior for this at runtime
* this impl here mainly for legacy test support.
*/
public Reference createThisReference(Request request) {
String uriPart =
request.getResourceRef().getTargetRef().toString().substring(
request.getRootRef().getTargetRef().toString().length());
// trim leading slash
if (uriPart.startsWith("/")) {
uriPart = uriPart.substring(1);
}
return updateBaseRefPath(new Reference(getContextRoot(request), uriPart));
}
public Reference createChildReference(Request request, String childPath) {
Reference result = createThisReference(request).addSegment(childPath);
if (result.hasQuery()) {
result.setQuery(null);
}
return result.getTargetRef();
}
public Reference createReference(Reference base, String relPart) {
Reference ref = new Reference(base, relPart);
return updateBaseRefPath(ref).getTargetRef();
}
public Reference createReference(Request base, String relPart) {
return createReference(getContextRoot(base), relPart);
}
}
| epl-1.0 |
Nasdanika/amur-lang | org.nasdanika.amur.lang/src/org/nasdanika/amur/lang/impl/TextualFilerLanguageImpl.java | 2281 | /**
*/
package org.nasdanika.amur.lang.impl;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringWriter;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EClass;
import org.nasdanika.amur.lang.LangPackage;
import org.nasdanika.amur.lang.TextSource;
import org.nasdanika.amur.lang.TextualFilerLanguage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Textual Filer Language</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public abstract class TextualFilerLanguageImpl extends TextualLanguageImpl implements TextualFilerLanguage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected TextualFilerLanguageImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return LangPackage.Literals.TEXTUAL_FILER_LANGUAGE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public TextSource load(IFile file, IProgressMonitor monitor) throws Exception {
if (file.exists()) {
InputStreamReader reader = new InputStreamReader(file.getContents());
int l;
char[] buf = new char[4096];
StringWriter sw = new StringWriter();
while ((l=reader.read(buf))!=-1) {
sw.write(buf, 0, l);
}
reader.close();
sw.close();
TextSource ret = createSource(null);
ret.setText(sw.toString());
return ret;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public void store(TextSource source, IFile file, IProgressMonitor monitor) throws Exception {
if (source!=null && source.getText()!=null) {
InputStream is = new ByteArrayInputStream(source.getText().getBytes()); // Default encoding.
if (file.exists()) {
file.setContents(is, IResource.KEEP_HISTORY, monitor);
} else {
file.create(is, false, monitor);
}
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String defaultExtension() {
return ".txt";
}
} //TextualFilerLanguageImpl
| epl-1.0 |
sleshchenko/che | ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/project/wizard/ImportWizardRegistrar.java | 1274 | /*
* 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.api.project.wizard;
import com.google.inject.Provider;
import java.util.List;
import javax.validation.constraints.NotNull;
import org.eclipse.che.ide.api.project.MutableProjectConfig;
import org.eclipse.che.ide.api.wizard.WizardPage;
/**
* Defines the requirements for an object that provides an information for registering project
* importer into project import wizard.
*
* <p>Implementations of this interface need to be registered using a multibinder in order to be
* picked up by project wizard.
*
* @author Artem Zatsarynnyi
*/
public interface ImportWizardRegistrar {
/** Returns ID of the project importer that should be registered in project import wizard. */
@NotNull
String getImporterId();
/** Returns pages that should be used in project import wizard. */
@NotNull
List<Provider<? extends WizardPage<MutableProjectConfig>>> getWizardPages();
}
| epl-1.0 |
gengstrand/clojure-news-feed | server/feed8/src/test/java/info/glennengstrand/services/ParticipantServiceTest.java | 3259 | package info.glennengstrand.services;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.elasticsearch.client.RestHighLevelClient;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Bean;
import org.springframework.test.context.junit4.SpringRunner;
import info.glennengstrand.api.Outbound;
import info.glennengstrand.util.Link;
import info.glennengstrand.dao.cassandra.InboundRepository;
import info.glennengstrand.dao.cassandra.NewsFeedItemKey;
import info.glennengstrand.dao.cassandra.OutboundRepository;
import info.glennengstrand.dao.mysql.Friend;
import info.glennengstrand.dao.mysql.FriendRepository;
import info.glennengstrand.dao.mysql.ParticipantRepository;
import info.glennengstrand.resources.ParticipantApi;
import io.swagger.configuration.RedisConfiguration.FriendRedisTemplate;
import io.swagger.configuration.RedisConfiguration.ParticipantRedisTemplate;
@RunWith(SpringRunner.class)
public class ParticipantServiceTest {
@TestConfiguration
static class ParticipantServiceImplTestContextConfiguration {
@Bean
public ParticipantApi participantService() {
return new ParticipantService();
}
}
@Autowired
private ParticipantApi participantService;
@MockBean
private OutboundRepository outboundRepository;
@MockBean
private FriendRepository friendRepository;
@MockBean
private InboundRepository inboundRepository;
@MockBean
private FriendRedisTemplate friendRedisTemplate;
@MockBean
private ParticipantRepository participantRepository;
@MockBean
private ParticipantRedisTemplate participantRedisTemplate;
@MockBean
private RestHighLevelClient esClient;
private static final Long fromParticipantId = 1L;
private static final Long toParticipantId = 2L;
@Before
public void setUp() throws Exception {
List<Friend> friends = new ArrayList<>();
Friend f = new Friend();
f.setId(1l);
f.setFromParticipantId(fromParticipantId);
f.setToParticipantId(toParticipantId);
friends.add(f);
info.glennengstrand.dao.cassandra.Outbound o = new info.glennengstrand.dao.cassandra.Outbound();
NewsFeedItemKey k = new NewsFeedItemKey();
o.setOccured(k.getOccurred());
Mockito.when(friendRepository.findByFromParticipantId(fromParticipantId)).thenReturn(friends);
Mockito.when(friendRepository.findByToParticipantId(fromParticipantId)).thenReturn(Collections.emptyList());
Mockito.when(friendRedisTemplate.hasKey(Mockito.anyString())).thenReturn(false);
Mockito.when(friendRedisTemplate.boundValueOps(Mockito.anyString())).thenReturn(new FriendRedisOperation());
Mockito.when(outboundRepository.save(Mockito.any())).thenReturn(o);
}
@Test
public void testAddOutbound() throws IOException {
Outbound t = new Outbound().from(Link.toLink(fromParticipantId)).story("test story").subject("test subject");
participantService.addOutbound(fromParticipantId, t);
Mockito.verify(inboundRepository).save(Mockito.any());
}
}
| epl-1.0 |
GoClipse/goclipse | plugin_ide.ui/src-lang/melnorme/lang/ide/ui/dialogs/LangProjectWizardFirstPage.java | 11368 | /*******************************************************************************
* Copyright (c) 2015 Bruno Medeiros and other Contributors.
* 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:
* Bruno Medeiros - initial API and implementation
*******************************************************************************/
package melnorme.lang.ide.ui.dialogs;
import static melnorme.lang.ide.ui.utils.DialogPageUtils.severityToMessageType;
import static melnorme.utilbox.core.CoreUtil.list;
import static org.eclipse.jface.layout.GridDataFactory.fillDefaults;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import melnorme.lang.ide.core.LangCore;
import melnorme.lang.ide.core.LangCore_Actual;
import melnorme.lang.ide.core.utils.EclipseUtils;
import melnorme.lang.ide.core.utils.ProjectValidator;
import melnorme.lang.ide.core.utils.ResourceUtils;
import melnorme.lang.ide.ui.LangUIPlugin_Actual;
import melnorme.lang.ide.ui.utils.WorkbenchUtils;
import melnorme.util.swt.SWTFactory;
import melnorme.util.swt.SWTFactoryUtil;
import melnorme.util.swt.SWTUtil;
import melnorme.util.swt.components.CompositeWidget;
import melnorme.util.swt.components.fields.DirectoryTextField;
import melnorme.util.swt.components.fields.EnablementButtonTextField;
import melnorme.util.swt.components.fields.TextFieldWidget;
import melnorme.util.swt.components.misc.StatusMessageWidget;
import melnorme.utilbox.concurrency.OperationCancellation;
import melnorme.utilbox.core.CommonException;
import melnorme.utilbox.fields.validation.ValidationSource;
import melnorme.utilbox.status.IStatusMessage;
import melnorme.utilbox.status.Severity;
import melnorme.utilbox.status.StatusException;
public abstract class LangProjectWizardFirstPage extends WizardPage {
protected final NameGroup nameGroup = createNameGroup();
protected final LocationGroup locationGroup = createLocationGroup();
protected final ProjectValidationGroup projectValidationGroup = createProjectValidationGroup();
protected final PreferencesValidationGroup prefValidationGroup = createPreferencesValidationGroup();
public LangProjectWizardFirstPage() {
super(LangProjectWizardFirstPage.class.getSimpleName());
}
public LangProjectWizardFirstPage(String pageName, String title, ImageDescriptor titleImage) {
super(pageName, title, titleImage);
}
protected NameGroup createNameGroup() {
return new NameGroup();
}
protected ProjectValidationGroup createProjectValidationGroup() {
return new ProjectValidationGroup();
}
protected LocationGroup createLocationGroup() {
return new LocationGroup();
}
protected PreferencesValidationGroup createPreferencesValidationGroup() {
return new PreferencesValidationGroup();
}
/* ----------------- ----------------- */
public NameGroup getNameGroup() {
return nameGroup;
}
public LocationGroup getLocationGroup() {
return locationGroup;
}
public ProjectValidationGroup getDetectGroup() {
return projectValidationGroup;
}
public IPath getProjectLocation() {
return locationGroup.getProjectLocation();
}
@Override
public void createControl(Composite parent) {
initializeDialogUnits(parent);
Composite topControl = new Composite(parent, SWT.NULL);
topControl.setLayoutData(new GridData(GridData.FILL_BOTH));
topControl.setLayout(new GridLayout(1, false));
createContents(topControl);
setControl(topControl);
Dialog.applyDialogFont(topControl);
}
protected GridDataFactory sectionGDF() {
return fillDefaults().grab(true, false);
}
protected void createContents(Composite parent) {
nameGroup.createComponent(parent, sectionGDF().create());
locationGroup.createComponent(parent, sectionGDF().create());
createContents_ValidationGroups(parent);
nameGroup.nameField.addChangeListener(this::updateValidationMessage);
locationGroup.addChangeListener(this::updateValidationMessage);
updateValidationMessage();
}
protected void createContents_ValidationGroups(Composite parent) {
projectValidationGroup.createComponent(parent, sectionGDF().hint(500, SWT.DEFAULT).create());
prefValidationGroup.createComponent(parent, sectionGDF().hint(500, SWT.DEFAULT).create());
}
@Override
public void setVisible(boolean visible) {
super.setVisible(visible);
if (visible) {
nameGroup.postSetFocus();
}
}
public static class NameGroup extends CompositeWidget {
protected final TextFieldWidget nameField = new TextFieldWidget(WizardMessages.LangNewProject_NameGroup_label);
public NameGroup() {
super(true);
addChildWidget(nameField);
this.layoutColumns = 2;
nameField.addFieldValidator2(this::getProjectHandleFor);
}
public TextFieldWidget nameField() {
return nameField;
}
public String getName() {
return nameField.getFieldValue();
}
public void validateProjectName() throws StatusException {
getProjectHandle2();
}
public IProject getProjectHandle2() throws StatusException {
return getProjectHandleFor(getName());
}
public IProject getProjectHandleFor(String projectName) throws StatusException {
return new ProjectValidator().getProjectHandle(projectName);
}
/* ----------------- ----------------- */
public void postSetFocus() {
SWTUtil.post_setFocus(nameField.getFieldControl());
}
}
/* ----------------- Location ----------------- */
public class LocationGroup extends EnablementButtonTextField {
public LocationGroup() {
super(
WizardMessages.LangNewProject_Location_Directory_label,
WizardMessages.LangNewProject_Location_UseDefault_Label,
WizardMessages.LangNewProject_Location_Directory_buttonLabel
);
nameGroup.nameField.addChangeListener(this::updateDefaultFieldValue);
getValidation().addFieldValidation2(true, list(nameGroup.nameField, this),
ValidationSource.fromRunnable(this::doValidate));
}
protected String getProjectName() {
return nameGroup.getName();
}
protected boolean isDefaultLocation() {
return isUseDefault();
}
protected String getLocationString() {
return getFieldValue();
}
@Override
protected String getDefaultFieldValue() {
return Platform.getLocation().append(getProjectName()).toOSString();
}
/* ----------------- ----------------- */
public IPath getProjectLocation() {
String projectName = getProjectName();
if(projectName.isEmpty()) {
return null;
}
if(!Path.EMPTY.isValidPath(getLocationString())) {
return null;
}
return Path.fromOSString(getLocationString());
}
public void doValidate() throws StatusException {
IProject project = nameGroup.getProjectHandle2();
if(project.exists() && !isDefaultLocation()) {
throw new StatusException(Severity.ERROR,
WizardMessages.LangNewProject_Location_projectExistsCannotChangeLocation);
}
IPath projectLocation = getProjectLocation();
if(projectLocation == null) {
throw new StatusException(Severity.ERROR,
WizardMessages.LangNewProject_Location_invalidLocation);
}
EclipseUtils.validate(
() -> ResourceUtils.getWorkspace().validateProjectLocation(project, projectLocation));
}
/* ----------------- ----------------- */
@Override
protected Composite doCreateTopLevelControl(Composite parent) {
return SWTFactoryUtil.createGroup(parent, WizardMessages.LangNewProject_LocationGroup_label);
}
@Override
public int getPreferredLayoutColumns() {
return 3;
}
@Override
protected void createContents_Label(Composite parent) {
label = SWTFactory.createLabel(parent, SWT.NONE, labelText);
}
@Override
protected String getNewValueFromButtonSelection() throws OperationCancellation {
return DirectoryTextField.openDirectoryDialog(getFieldValue(), button.getShell());
}
}
public class ProjectValidationGroup extends StatusMessageWidget {
@Override
public void updateWidgetFromInput() {
IProject projectHandle;
try {
projectHandle = nameGroup.getProjectHandle2();
} catch(CommonException e) {
projectHandle = null;
}
IPath projectLoc = getProjectLocation();
if(projectHandle != null && projectHandle.exists()) {
setStatusMessage(Severity.INFO, WizardMessages.LangNewProject_DetectGroup_projectExists);
} else if(projectLoc != null && projectLoc.toFile().exists()) {
setStatusMessage(Severity.INFO, WizardMessages.LangNewProject_DetectGroup_message);
} else {
setStatusMessage(null);
}
}
}
public class PreferencesValidationGroup extends ProjectValidationGroup {
@Override
protected void createContents(Composite parent) {
super.createContents(parent);
hintText.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
openPreferencePage();
}
});
}
protected void openPreferencePage() {
WorkbenchUtils.openPreferencePage(getShell(), LangUIPlugin_Actual.ROOT_PREF_PAGE_ID);
updateWidgetFromInput();
}
@Override
public void updateWidgetFromInput() {
try {
validatePreferences();
setStatusMessage(null);
} catch (CommonException ve) {
setPreferencesErrorMessage(ve);
}
}
@SuppressWarnings("unused")
protected void setPreferencesErrorMessage(CommonException ve) {
setStatusMessage(Severity.WARNING,
"The "+ LangCore_Actual.NAME_OF_LANGUAGE +
" preferences have not been configured correctly.\n"+
"<a>Click here to configure preferences...</a>");
}
}
protected void validatePreferences() throws StatusException {
LangCore.settings().SDK_LOCATION.getValue();
}
protected boolean updateValidationMessage() {
IStatusMessage validationStatus = ValidationSource.getValidationStatus(nameGroup, locationGroup);
boolean valid;
if(validationStatus == null) {
setMessage(null);
setPageComplete(true);
valid = true;
} else {
Severity severity = validationStatus.getSeverity();
setMessage(validationStatus.getMessage(), severityToMessageType(severity));
setPageComplete(severity != Severity.ERROR);
valid = false;
}
projectValidationGroup.updateWidgetFromInput();
prefValidationGroup.updateWidgetFromInput();
return valid;
}
} | epl-1.0 |
ecrit/pharmacy_at | at.medevit.ecrit.pharmacy_at.model.edit/src/pharmacy_at/model/provider/ReportItemProvider.java | 8109 | /**
*/
package pharmacy_at.model.provider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
import pharmacy_at.model.ModelFactory;
import pharmacy_at.model.ModelPackage;
import pharmacy_at.model.Report;
/**
* This is the item provider adapter for a {@link pharmacy_at.model.Report} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class ReportItemProvider
extends ItemProviderAdapter
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ReportItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addTitlePropertyDescriptor(object);
addPriorityPropertyDescriptor(object);
addConcernsPropertyDescriptor(object);
addTextPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Title feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addTitlePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_Report_title_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Report_title_feature", "_UI_Report_type"),
ModelPackage.Literals.REPORT__TITLE,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
* This adds a property descriptor for the Priority feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addPriorityPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_Report_priority_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Report_priority_feature", "_UI_Report_type"),
ModelPackage.Literals.REPORT__PRIORITY,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
* This adds a property descriptor for the Concerns feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addConcernsPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_Report_concerns_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Report_concerns_feature", "_UI_Report_type"),
ModelPackage.Literals.REPORT__CONCERNS,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
* This adds a property descriptor for the Text feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addTextPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_Report_text_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Report_text_feature", "_UI_Report_type"),
ModelPackage.Literals.REPORT__TEXT,
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(ModelPackage.Literals.REPORT__ISSUER);
}
return childrenFeatures;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
// Check the type of the specified child object and return the proper feature to use for
// adding (see {@link AddCommand}) it as a child.
return super.getChildFeature(object, child);
}
/**
* This returns Report.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/Report"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
String label = ((Report)object).getTitle();
return label == null || label.length() == 0 ?
getString("_UI_Report_type") :
getString("_UI_Report_type") + " " + label;
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(Report.class)) {
case ModelPackage.REPORT__TITLE:
case ModelPackage.REPORT__PRIORITY:
case ModelPackage.REPORT__CONCERNS:
case ModelPackage.REPORT__TEXT:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case ModelPackage.REPORT__ISSUER:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(ModelPackage.Literals.REPORT__ISSUER,
ModelFactory.eINSTANCE.createUser()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return Pharmacy_atEditPlugin.INSTANCE;
}
}
| epl-1.0 |
em7/em7OptiFl-gui | OptiFlGui-persistence/src/main/java/em7/optifl/optiflgui/persistence/profileEditor/EnrouteProfileTableFormat.java | 2206 | /*
* Copyright (c) 2014 em7.
* 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:
* em7 - initial API and implementation and/or initial documentation
*/
package em7.optifl.optiflgui.persistence.profileEditor;
import ca.odell.glazedlists.gui.WritableTableFormat;
import em7.optifl.optiflgui.persistence.profiles.EnrouteProfile;
/**
*
* @author em7
*/
public class EnrouteProfileTableFormat implements WritableTableFormat<EnrouteProfile> {
@Override
public int getColumnCount() {
return 3;
}
@Override
public String getColumnName(int column) {
switch (column) {
case 0: return "Altitude";
case 1: return "IAS";
case 2: return "Consumption";
default: return "";
}
}
@Override
public Object getColumnValue(EnrouteProfile baseObject, int column) {
switch (column) {
case 0: return baseObject.getAlt();
case 1: return baseObject.getIas();
case 2: return baseObject.getConsumption();
default: return "";
}
}
@Override
public boolean isEditable(EnrouteProfile baseObject, int column) {
return true;
}
@Override
public EnrouteProfile setColumnValue(EnrouteProfile baseObject, Object editedValue, int column) {
try {
switch (column) {
case 0:
baseObject.setAlt(Integer.parseInt((String) editedValue));
break;
case 1:
baseObject.setIas(Integer.parseInt((String) editedValue));
break;
case 2:
baseObject.setConsumption(Double.parseDouble((String) editedValue));
break;
default:
break;
}
return baseObject;
} catch (NumberFormatException numberFormatException) {
return null;
}
}
}
| epl-1.0 |
MikeJMajor/openhab2-addons-dlinksmarthome | bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/types/LxResponse.java | 3893 | /**
* 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.loxone.internal.types;
import java.lang.reflect.Type;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.google.gson.annotations.SerializedName;
/**
* Response to a command sent to Miniserver's control.
*
* @author Pawel Pieczul - initial contribution
*
*/
public class LxResponse {
/**
* A sub-response value structure that is received as a response to config API HTTP request sent to the Miniserver.
*
* @author Pawel Pieczul - initial contribution
*
*/
public class LxResponseCfgApi {
public String snr;
public String version;
}
/**
* A sub-response structure that is part of a {@link LxResponse} class and contains a response to a command sent to
* Miniserver's control.
*
* @author Pawel Pieczul - initial contribution
*
*/
private class LxSubResponse {
@SerializedName("control")
private String command;
@SerializedName(value = "Code", alternate = { "code" })
private Integer code;
private JsonElement value;
private boolean isSubResponseOk() {
return (getResponseCode() == LxErrorCode.OK) && (command != null) && (value != null);
}
private LxErrorCode getResponseCode() {
return LxErrorCode.getErrorCode(code);
}
}
@SerializedName("LL")
public LxSubResponse subResponse;
private final Logger logger = LoggerFactory.getLogger(LxResponse.class);
/**
* Return true when response has correct syntax and return code was successful
*
* @return true when response is ok
*/
public boolean isResponseOk() {
return (subResponse != null && subResponse.isSubResponseOk());
}
/**
* Gets command to which this response relates
*
* @return command name
*/
public String getCommand() {
return (subResponse != null ? subResponse.command : null);
}
/**
* Gets error code from the response in numerical form or null if absent
*
* @return error code value
*/
public Integer getResponseCodeNumber() {
return (subResponse != null ? subResponse.code : null);
}
/**
* Gets error code from the response as an enumerated value
*
* @return error code
*/
public LxErrorCode getResponseCode() {
return LxErrorCode.getErrorCode(getResponseCodeNumber());
}
/**
* Gets response value as a string
*
* @return response value as string
*/
public String getValueAsString() {
return (subResponse != null && subResponse.value != null ? subResponse.value.getAsString() : null);
}
/**
* Deserializes response value as a given type
*
* @param gson GSON object used for deserialization
* @param <T> class to deserialize response to
* @param type class type to deserialize response to
* @return deserialized response
*/
public <T> T getValueAs(Gson gson, Type type) {
if (subResponse != null && subResponse.value != null) {
try {
return gson.fromJson(subResponse.value, type);
} catch (NumberFormatException | JsonParseException e) {
logger.debug("Error parsing response value as {}: {}", type, e.getMessage());
}
}
return null;
}
}
| epl-1.0 |
smadelenat/CapellaModeAutomata | Semantic/Scenario/org.gemoc.scenario.xdsml/src-gen/org/gemoc/scenario/xdsml/functionscenario/adapters/functionscenariomt/pa/deployment/TypeDeploymentLinkAdapter.java | 23982 | package org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.pa.deployment;
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.core.data.pa.deployment.TypeDeploymentLink;
@SuppressWarnings("all")
public class TypeDeploymentLinkAdapter extends EObjectAdapter<TypeDeploymentLink> implements org.gemoc.scenario.xdsml.functionscenariomt.deployment.TypeDeploymentLink {
private FunctionScenarioMTAdaptersFactory adaptersFactory;
public TypeDeploymentLinkAdapter() {
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 boolean isVisibleInDoc() {
return adaptee.isVisibleInDoc();
}
@Override
public void setVisibleInDoc(final boolean o) {
adaptee.setVisibleInDoc(o);
}
@Override
public boolean isVisibleInLM() {
return adaptee.isVisibleInLM();
}
@Override
public void setVisibleInLM(final boolean o) {
adaptee.setVisibleInLM(o);
}
@Override
public String getSummary() {
return adaptee.getSummary();
}
@Override
public void setSummary(final String o) {
adaptee.setSummary(o);
}
@Override
public String getDescription() {
return adaptee.getDescription();
}
@Override
public void setDescription(final String o) {
adaptee.setDescription(o);
}
@Override
public String getReview() {
return adaptee.getReview();
}
@Override
public void setReview(final String o) {
adaptee.setReview(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.AbstractTrace> */Object incomingTraces_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractTrace> */Object getIncomingTraces() {
if (incomingTraces_ == null)
incomingTraces_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getIncomingTraces(), adaptersFactory, eResource);
return incomingTraces_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractTrace> */Object outgoingTraces_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractTrace> */Object getOutgoingTraces() {
if (outgoingTraces_ == null)
outgoingTraces_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getOutgoingTraces(), adaptersFactory, eResource);
return outgoingTraces_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.AbstractPropertyValue> */Object ownedPropertyValues_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.AbstractPropertyValue> */Object getOwnedPropertyValues() {
if (ownedPropertyValues_ == null)
ownedPropertyValues_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getOwnedPropertyValues(), adaptersFactory, eResource);
return ownedPropertyValues_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.EnumerationPropertyType> */Object ownedEnumerationPropertyTypes_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.EnumerationPropertyType> */Object getOwnedEnumerationPropertyTypes() {
if (ownedEnumerationPropertyTypes_ == null)
ownedEnumerationPropertyTypes_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getOwnedEnumerationPropertyTypes(), adaptersFactory, eResource);
return ownedEnumerationPropertyTypes_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.AbstractPropertyValue> */Object appliedPropertyValues_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.AbstractPropertyValue> */Object getAppliedPropertyValues() {
if (appliedPropertyValues_ == null)
appliedPropertyValues_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getAppliedPropertyValues(), adaptersFactory, eResource);
return appliedPropertyValues_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.PropertyValueGroup> */Object ownedPropertyValueGroups_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.PropertyValueGroup> */Object getOwnedPropertyValueGroups() {
if (ownedPropertyValueGroups_ == null)
ownedPropertyValueGroups_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getOwnedPropertyValueGroups(), adaptersFactory, eResource);
return ownedPropertyValueGroups_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.PropertyValueGroup> */Object appliedPropertyValueGroups_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.PropertyValueGroup> */Object getAppliedPropertyValueGroups() {
if (appliedPropertyValueGroups_ == null)
appliedPropertyValueGroups_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getAppliedPropertyValueGroups(), adaptersFactory, eResource);
return appliedPropertyValueGroups_;
}
@Override
public org.gemoc.scenario.xdsml.functionscenariomt.capellacore.EnumerationPropertyLiteral getStatus() {
return () adaptersFactory.createAdapter(adaptee.getStatus(), eResource);
}
@Override
public void setStatus(final org.gemoc.scenario.xdsml.functionscenariomt.capellacore.EnumerationPropertyLiteral o) {
if (o != null)
adaptee.setStatus(((org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.capellacore.EnumerationPropertyLiteralAdapter) o).getAdaptee());
else adaptee.setStatus(null);
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.EnumerationPropertyLiteral> */Object features_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.capellacore.EnumerationPropertyLiteral> */Object getFeatures() {
if (features_ == null)
features_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getFeatures(), adaptersFactory, eResource);
return features_;
}
private /* EList<org.gemoc.scenario.xdsml.functionscenariomt.requirement.Requirement> */Object appliedRequirements_;
@Override
public /* EList<org.gemoc.scenario.xdsml.functionscenariomt.requirement.Requirement> */Object getAppliedRequirements() {
if (appliedRequirements_ == null)
appliedRequirements_ = fr.inria.diverse.melange.adapters.EListAdapter.newInstance(adaptee.getAppliedRequirements(), adaptersFactory, eResource);
return appliedRequirements_;
}
@Override
public org.gemoc.scenario.xdsml.functionscenariomt.cs.DeployableElement getDeployedElement() {
return () adaptersFactory.createAdapter(adaptee.getDeployedElement(), eResource);
}
@Override
public void setDeployedElement(final org.gemoc.scenario.xdsml.functionscenariomt.cs.DeployableElement o) {
if (o != null)
adaptee.setDeployedElement(((org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.cs.DeployableElementAdapter) o).getAdaptee());
else adaptee.setDeployedElement(null);
}
@Override
public org.gemoc.scenario.xdsml.functionscenariomt.cs.DeploymentTarget getLocation() {
return () adaptersFactory.createAdapter(adaptee.getLocation(), eResource);
}
@Override
public void setLocation(final org.gemoc.scenario.xdsml.functionscenariomt.cs.DeploymentTarget o) {
if (o != null)
adaptee.setLocation(((org.gemoc.scenario.xdsml.functionscenario.adapters.functionscenariomt.cs.DeploymentTargetAdapter) o).getAdaptee());
else adaptee.setLocation(null);
}
@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 boolean VISIBLE_IN_DOC_EDEFAULT = true;
protected final static boolean VISIBLE_IN_LM_EDEFAULT = true;
protected final static String SUMMARY_EDEFAULT = null;
protected final static String DESCRIPTION_EDEFAULT = null;
protected final static String REVIEW_EDEFAULT = null;
@Override
public EClass eClass() {
return org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.eINSTANCE.getTypeDeploymentLink();
}
@Override
public Object eGet(final int featureID, final boolean resolve, final boolean coreType) {
switch (featureID) {
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_EXTENSIONS:
return getOwnedExtensions();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__ID:
return getId();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__SID:
return getSid();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__CONSTRAINTS:
return getConstraints();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_CONSTRAINTS:
return getOwnedConstraints();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__REALIZED_FLOW:
return getRealizedFlow();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__INCOMING_TRACES:
return getIncomingTraces();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OUTGOING_TRACES:
return getOutgoingTraces();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__VISIBLE_IN_DOC:
return isVisibleInDoc() ? Boolean.TRUE : Boolean.FALSE;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__VISIBLE_IN_LM:
return isVisibleInLM() ? Boolean.TRUE : Boolean.FALSE;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__SUMMARY:
return getSummary();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__DESCRIPTION:
return getDescription();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__REVIEW:
return getReview();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_PROPERTY_VALUES:
return getOwnedPropertyValues();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_ENUMERATION_PROPERTY_TYPES:
return getOwnedEnumerationPropertyTypes();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__APPLIED_PROPERTY_VALUES:
return getAppliedPropertyValues();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_PROPERTY_VALUE_GROUPS:
return getOwnedPropertyValueGroups();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__APPLIED_PROPERTY_VALUE_GROUPS:
return getAppliedPropertyValueGroups();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__STATUS:
return getStatus();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__FEATURES:
return getFeatures();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__APPLIED_REQUIREMENTS:
return getAppliedRequirements();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__DEPLOYED_ELEMENT:
return getDeployedElement();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__LOCATION:
return getLocation();
}
return super.eGet(featureID, resolve, coreType);
}
@Override
public boolean eIsSet(final int featureID) {
switch (featureID) {
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_EXTENSIONS:
return getOwnedExtensions() != null && !getOwnedExtensions().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__ID:
return getId() != ID_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__SID:
return getSid() != SID_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__CONSTRAINTS:
return getConstraints() != null && !getConstraints().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_CONSTRAINTS:
return getOwnedConstraints() != null && !getOwnedConstraints().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__REALIZED_FLOW:
return getRealizedFlow() != null;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__INCOMING_TRACES:
return getIncomingTraces() != null && !getIncomingTraces().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OUTGOING_TRACES:
return getOutgoingTraces() != null && !getOutgoingTraces().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__VISIBLE_IN_DOC:
return isVisibleInDoc() != VISIBLE_IN_DOC_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__VISIBLE_IN_LM:
return isVisibleInLM() != VISIBLE_IN_LM_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__SUMMARY:
return getSummary() != SUMMARY_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__DESCRIPTION:
return getDescription() != DESCRIPTION_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__REVIEW:
return getReview() != REVIEW_EDEFAULT;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_PROPERTY_VALUES:
return getOwnedPropertyValues() != null && !getOwnedPropertyValues().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_ENUMERATION_PROPERTY_TYPES:
return getOwnedEnumerationPropertyTypes() != null && !getOwnedEnumerationPropertyTypes().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__APPLIED_PROPERTY_VALUES:
return getAppliedPropertyValues() != null && !getAppliedPropertyValues().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_PROPERTY_VALUE_GROUPS:
return getOwnedPropertyValueGroups() != null && !getOwnedPropertyValueGroups().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__APPLIED_PROPERTY_VALUE_GROUPS:
return getAppliedPropertyValueGroups() != null && !getAppliedPropertyValueGroups().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__STATUS:
return getStatus() != null;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__FEATURES:
return getFeatures() != null && !getFeatures().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__APPLIED_REQUIREMENTS:
return getAppliedRequirements() != null && !getAppliedRequirements().isEmpty();
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__DEPLOYED_ELEMENT:
return getDeployedElement() != null;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__LOCATION:
return getLocation() != null;
}
return super.eIsSet(featureID);
}
@Override
public void eSet(final int featureID, final Object newValue) {
switch (featureID) {
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_EXTENSIONS:
getOwnedExtensions().clear();
getOwnedExtensions().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__ID:
setId(
(java.lang.String)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__SID:
setSid(
(java.lang.String)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_CONSTRAINTS:
getOwnedConstraints().clear();
getOwnedConstraints().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__REALIZED_FLOW:
setRealizedFlow(
(org.gemoc.scenario.xdsml.functionscenariomt.modellingcore.AbstractInformationFlow)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__VISIBLE_IN_DOC:
setVisibleInDoc(((java.lang.Boolean) newValue).booleanValue());
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__VISIBLE_IN_LM:
setVisibleInLM(((java.lang.Boolean) newValue).booleanValue());
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__SUMMARY:
setSummary(
(java.lang.String)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__DESCRIPTION:
setDescription(
(java.lang.String)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__REVIEW:
setReview(
(java.lang.String)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_PROPERTY_VALUES:
getOwnedPropertyValues().clear();
getOwnedPropertyValues().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_ENUMERATION_PROPERTY_TYPES:
getOwnedEnumerationPropertyTypes().clear();
getOwnedEnumerationPropertyTypes().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__APPLIED_PROPERTY_VALUES:
getAppliedPropertyValues().clear();
getAppliedPropertyValues().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__OWNED_PROPERTY_VALUE_GROUPS:
getOwnedPropertyValueGroups().clear();
getOwnedPropertyValueGroups().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__APPLIED_PROPERTY_VALUE_GROUPS:
getAppliedPropertyValueGroups().clear();
getAppliedPropertyValueGroups().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__STATUS:
setStatus(
(org.gemoc.scenario.xdsml.functionscenariomt.capellacore.EnumerationPropertyLiteral)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__FEATURES:
getFeatures().clear();
getFeatures().addAll((Collection) newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__DEPLOYED_ELEMENT:
setDeployedElement(
(org.gemoc.scenario.xdsml.functionscenariomt.cs.DeployableElement)
newValue);
return;
case org.gemoc.scenario.xdsml.functionscenariomt.deployment.DeploymentPackage.TYPE_DEPLOYMENT_LINK__LOCATION:
setLocation(
(org.gemoc.scenario.xdsml.functionscenariomt.cs.DeploymentTarget)
newValue);
return;
}
super.eSet(featureID, newValue);
}
}
| epl-1.0 |
kopl/SPLevo | JaMoPPCartridge/org.splevo.jamopp.diffing/src-gen/org/splevo/jamopp/diffing/jamoppdiff/ImplementsChange.java | 2094 | /**
* Copyright (c) 2014
* 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:
* Benjamin Klatt - initial API and implementation and/or initial documentation
*/
package org.splevo.jamopp.diffing.jamoppdiff;
import org.emftext.language.java.types.TypeReference;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Implements Change</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Change describes a modified implements relations ship
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.splevo.jamopp.diffing.jamoppdiff.ImplementsChange#getChangedReference <em>Changed Reference</em>}</li>
* </ul>
* </p>
*
* @see org.splevo.jamopp.diffing.jamoppdiff.JaMoPPDiffPackage#getImplementsChange()
* @model
* @generated
*/
public interface ImplementsChange extends JaMoPPDiff {
/**
* Returns the value of the '<em><b>Changed Reference</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The changed imeplements reference.
* <!-- end-model-doc -->
* @return the value of the '<em>Changed Reference</em>' reference.
* @see #setChangedReference(TypeReference)
* @see org.splevo.jamopp.diffing.jamoppdiff.JaMoPPDiffPackage#getImplementsChange_ChangedReference()
* @model
* @generated
*/
TypeReference getChangedReference();
/**
* Sets the value of the '{@link org.splevo.jamopp.diffing.jamoppdiff.ImplementsChange#getChangedReference <em>Changed Reference</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Changed Reference</em>' reference.
* @see #getChangedReference()
* @generated
*/
void setChangedReference(TypeReference value);
} // ImplementsChange
| epl-1.0 |
BOTlibre/BOTlibre | sdk/android/BotLibre/app/src/main/java/org/botlibre/sdk/activity/EditWebMediumActivity.java | 8248 | /******************************************************************************
*
* Copyright 2014 Paphus Solutions Inc.
*
* Licensed under the Eclipse Public License, Version 1.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.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 org.botlibre.sdk.activity;
import java.util.Arrays;
import org.botlibre.sdk.activity.actions.HttpAction;
import org.botlibre.sdk.activity.actions.HttpGetCategoriesAction;
import org.botlibre.sdk.activity.actions.HttpGetImageAction;
import org.botlibre.sdk.activity.actions.HttpGetTagsAction;
import org.botlibre.sdk.config.WebMediumConfig;
import org.botlibre.sdk.R;
import android.content.Intent;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.Spinner;
import android.widget.TextView;
/**
* Generic activity for editing a content's details.
*/
public abstract class EditWebMediumActivity extends LibreActivity {
private EditText licenseText,tagsText,categoriesText;
private ImageButton btnLic, btnTag, btnCat;
ArrayAdapter<String> adapter;
public abstract String getType();
@SuppressWarnings({ "unchecked", "rawtypes" })
public void resetView() {
btnCat = (ImageButton)findViewById(R.id.btnCat);
btnLic = (ImageButton)findViewById(R.id.btnLic);
btnTag = (ImageButton)findViewById(R.id.btnTag);
licenseText = (EditText)findViewById(R.id.licenseText);
tagsText = (EditText)findViewById(R.id.tagsText);
categoriesText = (EditText)findViewById(R.id.categoriesText);
btnLic.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(EditWebMediumActivity.this,ListLicenseView.class);
startActivityForResult(i,1);
}
});
btnTag.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(EditWebMediumActivity.this,ListTagsView.class);
i.putExtra("type", getType());
startActivityForResult(i,3);
}
});
btnCat.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(EditWebMediumActivity.this,ListCategoriesView.class);
i.putExtra("type", getType());
startActivityForResult(i,4);
}
});
HttpAction action = new HttpGetTagsAction(this, getType());
action.execute();
action = new HttpGetCategoriesAction(this, getType());
action.execute();
WebMediumConfig instance = (WebMediumConfig)MainActivity.instance;
((TextView) findViewById(R.id.title)).setText(instance.name);
HttpGetImageAction.fetchImage(this, instance.avatar, findViewById(R.id.icon));
EditText text = (EditText) findViewById(R.id.nameText);
text.setText(instance.name);
text = (EditText) findViewById(R.id.descriptionText);
text.setText(instance.description);
text = (EditText) findViewById(R.id.detailsText);
text.setText(instance.details);
text = (EditText) findViewById(R.id.disclaimerText);
text.setText(instance.disclaimer);
text = (EditText) findViewById(R.id.descriptionText);
text.setText(instance.description);
text = (EditText) findViewById(R.id.websiteText);
text.setText(instance.website);
text = (EditText) findViewById(R.id.subdomainText);
if (text != null) {
text.setText(instance.subdomain);
}
CheckBox checkbox = (CheckBox) findViewById(R.id.privateCheckBox);
checkbox.setChecked(instance.isPrivate);
checkbox = (CheckBox) findViewById(R.id.hiddenCheckBox);
checkbox.setChecked(instance.isHidden);
licenseText = (EditText)findViewById(R.id.licenseText);
licenseText.setText(instance.license);
tagsText = (EditText)findViewById(R.id.tagsText);
tagsText.setText(instance.tags);
categoriesText = (EditText)findViewById(R.id.categoriesText);
if (categoriesText != null) {
categoriesText.setText(instance.categories);
}
Spinner accessModeSpin = (Spinner) findViewById(R.id.accessModeSpin);
adapter = new ArrayAdapter(this,
android.R.layout.simple_spinner_dropdown_item, MainActivity.accessModes);
accessModeSpin.setAdapter(adapter);
accessModeSpin.setSelection(Arrays.asList(MainActivity.accessModes).indexOf(instance.accessMode));
Spinner contentRating = (Spinner) findViewById(R.id.ContentRatingSpin);
adapter = new ArrayAdapter(this,android.R.layout.simple_spinner_dropdown_item,MainActivity.contentRatings);
contentRating.setAdapter(adapter);
contentRating.setSelection(Arrays.asList(MainActivity.contentRatings).indexOf(instance.contentRating));
Spinner forkAccModSpin = (Spinner) findViewById(R.id.forkAccessModeSpin);
adapter = new ArrayAdapter(this,android.R.layout.simple_spinner_dropdown_item,MainActivity.forkAccMode);
forkAccModSpin.setAdapter(adapter);
forkAccModSpin.setSelection(Arrays.asList(MainActivity.forkAccMode).indexOf(instance.forkAccessMode));
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch(requestCode){
case 1:
if(resultCode == RESULT_OK){
licenseText.setText(data.getExtras().getString("temp"));
}
break;
case 3:
if(resultCode==RESULT_OK){
tagsText.setText(tagsText.getText()+data.getExtras().getString("tag") + ", ");
}
break;
case 4:
if(resultCode==RESULT_OK){
categoriesText.setText(categoriesText.getText()+data.getExtras().getString("cat") + ", ");
}
break;
}
}
public void saveProperties(WebMediumConfig instance) {
instance.id = MainActivity.instance.id;
EditText text = (EditText) findViewById(R.id.nameText);
instance.name = text.getText().toString().trim();
text = (EditText) findViewById(R.id.descriptionText);
instance.description = text.getText().toString().trim();
text = (EditText) findViewById(R.id.detailsText);
instance.details = text.getText().toString().trim();
text = (EditText) findViewById(R.id.disclaimerText);
instance.disclaimer = text.getText().toString().trim();
text = (EditText) findViewById(R.id.categoriesText);
if (text != null) {
instance.categories = text.getText().toString().trim();
}
text = (EditText) findViewById(R.id.tagsText);
instance.tags = text.getText().toString().trim();
text = (EditText) findViewById(R.id.licenseText);
instance.license = text.getText().toString().trim();
text = (EditText) findViewById(R.id.websiteText);
instance.website = text.getText().toString().trim();
text = (EditText) findViewById(R.id.subdomainText);
if (text != null) {
instance.subdomain = text.getText().toString().trim();
}
Spinner spin = (Spinner) findViewById(R.id.accessModeSpin);
instance.accessMode = (String)spin.getSelectedItem();
spin = (Spinner) findViewById(R.id.ContentRatingSpin);
instance.contentRating = (String)spin.getSelectedItem();
spin = (Spinner) findViewById(R.id.forkAccessModeSpin);
instance.forkAccessMode = (String)spin.getSelectedItem();
CheckBox checkbox = (CheckBox) findViewById(R.id.privateCheckBox);
instance.isPrivate = checkbox.isChecked();
checkbox = (CheckBox) findViewById(R.id.hiddenCheckBox);
instance.isHidden = checkbox.isChecked();
}
public void cancel(View view) {
finish();
}
}
| epl-1.0 |
bradsdavis/cxml-api | src/main/java/org/cxml/v12028/InvoiceDetailItemReferenceIndustry.java | 1693 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.09.23 at 10:57:51 AM CEST
//
package org.cxml.v12028;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"invoiceDetailItemReferenceRetail"
})
@XmlRootElement(name = "InvoiceDetailItemReferenceIndustry")
public class InvoiceDetailItemReferenceIndustry {
@XmlElement(name = "InvoiceDetailItemReferenceRetail")
protected InvoiceDetailItemReferenceRetail invoiceDetailItemReferenceRetail;
/**
* Gets the value of the invoiceDetailItemReferenceRetail property.
*
* @return
* possible object is
* {@link InvoiceDetailItemReferenceRetail }
*
*/
public InvoiceDetailItemReferenceRetail getInvoiceDetailItemReferenceRetail() {
return invoiceDetailItemReferenceRetail;
}
/**
* Sets the value of the invoiceDetailItemReferenceRetail property.
*
* @param value
* allowed object is
* {@link InvoiceDetailItemReferenceRetail }
*
*/
public void setInvoiceDetailItemReferenceRetail(InvoiceDetailItemReferenceRetail value) {
this.invoiceDetailItemReferenceRetail = value;
}
}
| epl-1.0 |
devjunix/libjt400-java | jtopenlite/com/ibm/jtopenlite/command/program/CallServiceProgramProcedure.java | 9266 | ///////////////////////////////////////////////////////////////////////////////
//
// JTOpenLite
//
// Filename: CallServiceProgramProcedure
//
// The source code contained herein is licensed under the IBM Public License
// Version 1.0, which has been approved by the Open Source Initiative.
// Copyright (C) 2011-2014 International Business Machines Corporation and
// others. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////
package com.ibm.jtopenlite.command.program;
import com.ibm.jtopenlite.*;
import com.ibm.jtopenlite.command.*;
/**
* Service program call - <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/qzruclsp.htm">QZRUCLSP</a>
* This class fully implements the V5R4 specification of QZRUCLSP. This API supports up to seven parameters.
*
*
* <p>This is designed so that classes to call a service program procedure can
* be created by extending this class. For examples, see the Direct Known Subclasses
* information in the javadoc.
*
* <p>A class that extends this class must implement the following methods corresponding to
* CallServiceProgramParameterFormat.
* <ul>
* <li>void fillInputData(int index, byte[] dataBuffer, int offset)
* <li>int getParameterCount()
* <li>int getParameterFormat(int index)
* <li>int getParameterLength(int index)
* <li>void setOutputData(int index, byte[] dataBuffer, int offset)
* </ul>
* @see com.ibm.jtopenlite.command.program.CallServiceProgramParameterFormat
**/
public class CallServiceProgramProcedure implements Program
{
public static final int RETURN_VALUE_FORMAT_NONE = 0;
public static final int RETURN_VALUE_FORMAT_INTEGER = 1;
public static final int RETURN_VALUE_FORMAT_POINTER = 2;
public static final int RETURN_VALUE_FORMAT_INTEGER_AND_ERROR_NUMBER = 3;
private static final byte[] ZERO = new byte[8];
private String serviceProgramName_;
private String serviceProgramLibrary_;
private String exportName_;
private int returnValueFormat_;
private CallServiceProgramParameterFormat parameterFormat_;
private byte[] tempData_;
private int returnValueInteger_;
private byte[] returnValuePointer_;
private int returnValueErrno_;
public CallServiceProgramProcedure()
{
}
public CallServiceProgramProcedure(String serviceProgramName, String serviceProgramLibrary,
String exportName, int returnValueFormat)
{
serviceProgramName_ = serviceProgramName;
serviceProgramLibrary_ = serviceProgramLibrary;
exportName_ = exportName;
returnValueFormat_ = returnValueFormat;
}
public String getServiceProgramName()
{
return serviceProgramName_;
}
public void setServiceProgramName(String name)
{
serviceProgramName_ = name;
}
public String getServiceProgramLibrary()
{
return serviceProgramLibrary_;
}
public void setServiceProgramLibrary(String lib)
{
serviceProgramLibrary_ = lib;
}
public String getExportName()
{
return exportName_;
}
public void setExportName(String name)
{
exportName_ = name;
}
public int getReturnValueFormat()
{
return returnValueFormat_;
}
public void setReturnValueFormat(int retval)
{
returnValueFormat_ = retval;
}
public CallServiceProgramParameterFormat getParameterFormat()
{
return parameterFormat_;
}
public void setParameterFormat(CallServiceProgramParameterFormat format)
{
parameterFormat_ = format;
}
public String getProgramName()
{
return "QZRUCLSP";
}
public String getProgramLibrary()
{
return "QSYS";
}
public int getNumberOfParameters()
{
return 7 + parameterFormat_.getParameterCount();
}
public final byte[] getTempDataBuffer()
{
int maxSize = 0;
for (int i=0; i<getNumberOfParameters(); ++i)
{
int len = getParameterOutputLength(i);
if (len > maxSize) maxSize = len;
len = getParameterInputLength(i);
if (len > maxSize) maxSize = len;
}
if (tempData_ == null || tempData_.length < maxSize)
{
tempData_ = new byte[maxSize];
}
return tempData_;
}
public void newCall()
{
returnValueInteger_ = 0;
returnValuePointer_ = null;
returnValueErrno_ = 0;
}
public int getReturnValueInteger()
{
return returnValueInteger_;
}
public int getReturnValueErrorNumber()
{
return returnValueErrno_;
}
public byte[] getReturnValuePointer()
{
return returnValuePointer_;
}
public int getParameterInputLength(int parmIndex)
{
switch (parmIndex)
{
case 0: return 20;
case 1: return exportName_.length()+1;
case 2: return 4;
case 3: return parameterFormat_.getParameterCount()*4;
case 4: return 4;
case 5:
// Align to 16-byte boundary for those programs that need it.
int total = 20; // Service program.
total += exportName_.length() + 1; // Export name.
total += 4; // Return value format.
total += (parameterFormat_.getParameterCount()*4);
total += 4; // Number of parameters.
total += ZERO.length;
int val = 0;
switch (returnValueFormat_)
{
case 0:
val = 4;
break;
case 1:
val = 4;
break;
case 2:
val = 16;
break;
case 3:
val = 8;
break;
}
total += val;
int mod = total % 16;
int extra = (mod == 0 ? 0 : 16-mod);
return ZERO.length+extra;
case 7: return parameterFormat_.getParameterLength(0);
case 8: return parameterFormat_.getParameterLength(1);
case 9: return parameterFormat_.getParameterLength(2);
case 10: return parameterFormat_.getParameterLength(3);
case 11: return parameterFormat_.getParameterLength(4);
case 12: return parameterFormat_.getParameterLength(5);
case 13: return parameterFormat_.getParameterLength(6);
}
return 0;
}
public int getParameterOutputLength(int parmIndex)
{
switch (parmIndex)
{
case 5: return getParameterInputLength(parmIndex);
case 6:
switch (returnValueFormat_)
{
case 0: return 4; // Ignored.
case 1: return 4; // Integer.
case 2: return 16; // Pointer.
case 3: return 8; // Integer + ERRNO.
}
case 7: return parameterFormat_.getParameterLength(0);
case 8: return parameterFormat_.getParameterLength(1);
case 9: return parameterFormat_.getParameterLength(2);
case 10: return parameterFormat_.getParameterLength(3);
case 11: return parameterFormat_.getParameterLength(4);
case 12: return parameterFormat_.getParameterLength(5);
case 13: return parameterFormat_.getParameterLength(6);
}
return 0;
}
public int getParameterType(int parmIndex)
{
switch (parmIndex)
{
case 0:
case 1:
case 2:
case 3:
case 4:
return Parameter.TYPE_INPUT;
case 6:
return Parameter.TYPE_OUTPUT;
}
return Parameter.TYPE_INPUT_OUTPUT;
}
public byte[] getParameterInputData(int parmIndex)
{
byte[] tempData = getTempDataBuffer();
switch (parmIndex)
{
case 0:
Conv.stringToBlankPadEBCDICByteArray(serviceProgramName_, tempData, 0, 10);
Conv.stringToBlankPadEBCDICByteArray(serviceProgramLibrary_, tempData, 10, 10);
break;
case 1:
int len = Conv.stringToEBCDICByteArray37(exportName_, tempData, 0);
tempData[len] = 0;
break;
case 2:
Conv.intToByteArray(returnValueFormat_, tempData, 0);
break;
case 3:
for (int i=0; i<parameterFormat_.getParameterCount(); ++i)
{
Conv.intToByteArray(parameterFormat_.getParameterFormat(i), tempData, i*4);
}
break;
case 4:
Conv.intToByteArray(parameterFormat_.getParameterCount(), tempData, 0);
break;
case 5:
for (int i=0; i<16; ++i) tempData[i] = 0;
break;
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
parameterFormat_.fillInputData(parmIndex-7, tempData, 0);
break;
}
return tempData;
}
public void setParameterOutputData(int parmIndex, byte[] tempData, int maxLength)
{
switch (parmIndex)
{
case 6:
switch (returnValueFormat_)
{
case 0: // Ignore.
break;
case 1: // Integer.
returnValueInteger_ = Conv.byteArrayToInt(tempData, 0);
break;
case 2: // Pointer.
returnValuePointer_ = new byte[16];
System.arraycopy(tempData, 0, returnValuePointer_, 0, 16);
break;
case 3: // Integer + ERRNO.
returnValueInteger_ = Conv.byteArrayToInt(tempData, 0);
returnValueErrno_ = Conv.byteArrayToInt(tempData, 4);
break;
}
break;
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
parameterFormat_.setOutputData(parmIndex-7, tempData, 0);
break;
}
}
}
| epl-1.0 |
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/identitymaps/cacheinvalidation/InvalidateClassRecurseOptionTest.java | 3972 | /*******************************************************************************
* Copyright (c) 1998, 2013 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
* 05/13/2010-2.1 Michael O'Brien
* - 312503: JPA 2.0 CacheImpl behaviour change when recurse flag=false
* We only invalidate the subtree from the class parameter down when the recurse flag=false
* Previously only the class itself was invalidated
* The behaviour when the recurse flag is true is unaffected - the entire rooted (above) tree is invalidated
* Model must be extended to have subclasses of Small/LargeProject
* to verify semi-recursive functionality surrounding the equals() to isAssignableFrom() change
*
******************************************************************************/
package org.eclipse.persistence.testing.tests.identitymaps.cacheinvalidation;
import java.util.Vector;
import org.eclipse.persistence.sessions.Session;
import org.eclipse.persistence.testing.framework.*;
import org.eclipse.persistence.testing.models.employee.domain.*;
/**
* Tests the recurse option on the invalidateClass from IdentityMapAccessor.
* Two scenarios: recurse equals true or false. Edwin Tang
*
* Model
* Project (Abstract)
* +----SmallProject
* +-----LargeProject
*
* @author Guy Pelletier
* @version 2.0 Jan 25/05
*/
public class InvalidateClassRecurseOptionTest extends AutoVerifyTestCase {
private Session m_session;
private Vector m_largeProjects, m_smallProjects;
// true(default)=invalidate entire rooted tree, false=invalidate only subtree
private boolean recurse;
public InvalidateClassRecurseOptionTest(boolean recurse) {
this.recurse = recurse;
this.setName(this.getName() + "(" + recurse + ")");
}
public void reset() {
m_session.getIdentityMapAccessor().initializeIdentityMaps();
rollbackTransaction();
}
protected void setup() {
m_session = getSession();
beginTransaction();
m_session.getIdentityMapAccessor().initializeIdentityMaps();
m_largeProjects = m_session.readAllObjects(LargeProject.class);
m_smallProjects = m_session.readAllObjects(SmallProject.class);
}
public void test() {
m_session.getIdentityMapAccessor().invalidateClass(SmallProject.class, recurse);
}
protected void verify() {
// Just check the first project of the vector
if (recurse) {
if (m_session.getIdentityMapAccessor().isValid(m_largeProjects.firstElement())) {
throw new TestErrorException("A large project was not invalidated recursively");
}
} else {
// verify entire rooted tree was not invalidated (only from the current class down)
if (!m_session.getIdentityMapAccessor().isValid(m_largeProjects.firstElement())) {
throw new TestErrorException("A large project was invalidated when only small projects should have been");
}
// verify inheriting subclasses of the invalidated class (subtree) was also deleted
}
if (m_session.getIdentityMapAccessor().isValid(m_smallProjects.firstElement())) {
throw new TestErrorException("A small project was not invalidated");
}
}
}
| epl-1.0 |
jmchilton/TINT | projects/TropixWebGui/src/server/edu/umn/msi/tropix/webgui/server/GridServicesManager.java | 2098 | /*******************************************************************************
* Copyright 2009 Regents of the University of Minnesota. All rights
* reserved.
* Copyright 2009 Mayo Foundation for Medical Education and Research.
* All rights reserved.
*
* This program is 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 INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS
* OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A
* PARTICULAR PURPOSE. See the License for the specific language
* governing permissions and limitations under the License.
*
* Contributors:
* Minnesota Supercomputing Institute - initial API and implementation
******************************************************************************/
package edu.umn.msi.tropix.webgui.server;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.google.common.base.Function;
import com.google.common.base.Supplier;
import edu.umn.msi.tropix.client.services.GridService;
import edu.umn.msi.tropix.webgui.server.aop.ServiceMethod;
import edu.umn.msi.tropix.webgui.services.gridservices.GetGridServices;
public class GridServicesManager implements GetGridServices {
private static final Log LOG = LogFactory.getLog(GridServicesManager.class);
private Function<String, Supplier<Iterable<GridService>>> map; // Should
@ServiceMethod(readOnly = true)
public Iterable<GridService> getServices(final String serviceType) {
GridServicesManager.LOG.debug("getServices called with serviceType " + serviceType);
return this.map.apply(serviceType).get();
}
// change the
// name of this
public void setMap(final Function<String, Supplier<Iterable<GridService>>> map) {
this.map = map;
}
}
| epl-1.0 |
upohl/eloquent | plugins/org.muml.psm.allocation.language.xtext/src-gen/org/muml/psm/allocation/language/xtext/serializer/AbstractAllocationSpecificationLanguageSyntacticSequencer.java | 11493 | /*
* generated by Xtext
*/
package org.muml.psm.allocation.language.xtext.serializer;
import com.google.inject.Inject;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.IGrammarAccess;
import org.eclipse.xtext.RuleCall;
import org.eclipse.xtext.nodemodel.INode;
import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
import org.eclipse.xtext.serializer.analysis.GrammarAlias.AlternativeAlias;
import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias;
import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias;
import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable;
import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
import org.muml.psm.allocation.language.xtext.services.AllocationSpecificationLanguageGrammarAccess;
@SuppressWarnings("all")
public abstract class AbstractAllocationSpecificationLanguageSyntacticSequencer extends AbstractSyntacticSequencer {
protected AllocationSpecificationLanguageGrammarAccess grammarAccess;
protected AbstractElementAlias match_DefOperationCS_UnrestrictedNameParserRuleCall_2_q;
protected AbstractElementAlias match_DefPropertyCS_UnrestrictedNameParserRuleCall_2_q;
protected AbstractElementAlias match_ImportCS_ImportKeyword_0_0_or_IncludeKeyword_0_1_or_LibraryKeyword_0_2;
protected AbstractElementAlias match_LocationConstraint_RequiredHardwareResourceInstanceKeyword_0_0_or_RequiredLocationKeyword_0_1;
protected AbstractElementAlias match_MultiplicityCS_VerticalLineQuestionMarkKeyword_2_0_q;
protected AbstractElementAlias match_OperationContextDeclCS_UnrestrictedNameParserRuleCall_8_2_1_q;
protected AbstractElementAlias match_ResourceConstraint_RequiredResourceKeyword_0_1_or_ResourceKeyword_0_0;
protected AbstractElementAlias match_TupleTypeCS___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q;
@Inject
protected void init(IGrammarAccess access) {
grammarAccess = (AllocationSpecificationLanguageGrammarAccess) access;
match_DefOperationCS_UnrestrictedNameParserRuleCall_2_q = new TokenAlias(false, true, grammarAccess.getDefOperationCSAccess().getUnrestrictedNameParserRuleCall_2());
match_DefPropertyCS_UnrestrictedNameParserRuleCall_2_q = new TokenAlias(false, true, grammarAccess.getDefPropertyCSAccess().getUnrestrictedNameParserRuleCall_2());
match_ImportCS_ImportKeyword_0_0_or_IncludeKeyword_0_1_or_LibraryKeyword_0_2 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getImportCSAccess().getImportKeyword_0_0()), new TokenAlias(false, false, grammarAccess.getImportCSAccess().getIncludeKeyword_0_1()), new TokenAlias(false, false, grammarAccess.getImportCSAccess().getLibraryKeyword_0_2()));
match_LocationConstraint_RequiredHardwareResourceInstanceKeyword_0_0_or_RequiredLocationKeyword_0_1 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getLocationConstraintAccess().getRequiredHardwareResourceInstanceKeyword_0_0()), new TokenAlias(false, false, grammarAccess.getLocationConstraintAccess().getRequiredLocationKeyword_0_1()));
match_MultiplicityCS_VerticalLineQuestionMarkKeyword_2_0_q = new TokenAlias(false, true, grammarAccess.getMultiplicityCSAccess().getVerticalLineQuestionMarkKeyword_2_0());
match_OperationContextDeclCS_UnrestrictedNameParserRuleCall_8_2_1_q = new TokenAlias(false, true, grammarAccess.getOperationContextDeclCSAccess().getUnrestrictedNameParserRuleCall_8_2_1());
match_ResourceConstraint_RequiredResourceKeyword_0_1_or_ResourceKeyword_0_0 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getResourceConstraintAccess().getRequiredResourceKeyword_0_1()), new TokenAlias(false, false, grammarAccess.getResourceConstraintAccess().getResourceKeyword_0_0()));
match_TupleTypeCS___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getTupleTypeCSAccess().getLeftParenthesisKeyword_1_0()), new TokenAlias(false, false, grammarAccess.getTupleTypeCSAccess().getRightParenthesisKeyword_1_2()));
}
@Override
protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
if (ruleCall.getRule() == grammarAccess.getUnrestrictedNameRule())
return getUnrestrictedNameToken(semanticObject, ruleCall, node);
return "";
}
/**
* UnrestrictedName returns ecore::EString:
* EssentialOCLUnrestrictedName
* | 'import'
* | 'include'
* | 'library'
* ;
*/
protected String getUnrestrictedNameToken(EObject semanticObject, RuleCall ruleCall, INode node) {
if (node != null)
return getTokenText(node);
return "";
}
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
if (transition.getAmbiguousSyntaxes().isEmpty()) return;
List<INode> transitionNodes = collectNodes(fromNode, toNode);
for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
if (match_DefOperationCS_UnrestrictedNameParserRuleCall_2_q.equals(syntax))
emit_DefOperationCS_UnrestrictedNameParserRuleCall_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_DefPropertyCS_UnrestrictedNameParserRuleCall_2_q.equals(syntax))
emit_DefPropertyCS_UnrestrictedNameParserRuleCall_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_ImportCS_ImportKeyword_0_0_or_IncludeKeyword_0_1_or_LibraryKeyword_0_2.equals(syntax))
emit_ImportCS_ImportKeyword_0_0_or_IncludeKeyword_0_1_or_LibraryKeyword_0_2(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_LocationConstraint_RequiredHardwareResourceInstanceKeyword_0_0_or_RequiredLocationKeyword_0_1.equals(syntax))
emit_LocationConstraint_RequiredHardwareResourceInstanceKeyword_0_0_or_RequiredLocationKeyword_0_1(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_MultiplicityCS_VerticalLineQuestionMarkKeyword_2_0_q.equals(syntax))
emit_MultiplicityCS_VerticalLineQuestionMarkKeyword_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_OperationContextDeclCS_UnrestrictedNameParserRuleCall_8_2_1_q.equals(syntax))
emit_OperationContextDeclCS_UnrestrictedNameParserRuleCall_8_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_ResourceConstraint_RequiredResourceKeyword_0_1_or_ResourceKeyword_0_0.equals(syntax))
emit_ResourceConstraint_RequiredResourceKeyword_0_1_or_ResourceKeyword_0_0(semanticObject, getLastNavigableState(), syntaxNodes);
else if (match_TupleTypeCS___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q.equals(syntax))
emit_TupleTypeCS___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
else acceptNodes(getLastNavigableState(), syntaxNodes);
}
}
/**
* Ambiguous syntax:
* UnrestrictedName?
*
* This ambiguous syntax occurs at:
* (rule start) 'def' (ambiguity) ':' name=UnrestrictedName
* (rule start) 'def' (ambiguity) ':' ownedSignature=TemplateSignatureCS
* isStatic?='static' 'def' (ambiguity) ':' name=UnrestrictedName
* isStatic?='static' 'def' (ambiguity) ':' ownedSignature=TemplateSignatureCS
*/
protected void emit_DefOperationCS_UnrestrictedNameParserRuleCall_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* UnrestrictedName?
*
* This ambiguous syntax occurs at:
* (rule start) 'def' (ambiguity) ':' name=UnrestrictedName
* isStatic?='static' 'def' (ambiguity) ':' name=UnrestrictedName
*/
protected void emit_DefPropertyCS_UnrestrictedNameParserRuleCall_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* 'import' | 'include' | 'library'
*
* This ambiguous syntax occurs at:
* (rule start) (ambiguity) name=Identifier
* (rule start) (ambiguity) ownedPathName=URIPathNameCS
*/
protected void emit_ImportCS_ImportKeyword_0_0_or_IncludeKeyword_0_1_or_LibraryKeyword_0_2(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* 'requiredHardwareResourceInstance' | 'requiredLocation'
*
* This ambiguous syntax occurs at:
* (rule start) 'constraint' (ambiguity) '{' tupleDescriptor=TupleDescriptor
* (rule start) 'constraint' (ambiguity) name=ID
* (rule start) (ambiguity) '{' tupleDescriptor=TupleDescriptor
* (rule start) (ambiguity) name=ID
*/
protected void emit_LocationConstraint_RequiredHardwareResourceInstanceKeyword_0_0_or_RequiredLocationKeyword_0_1(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* '|?'?
*
* This ambiguous syntax occurs at:
* lowerBound=LOWER (ambiguity) ']' (rule end)
* stringBounds='*' (ambiguity) ']' (rule end)
* stringBounds='+' (ambiguity) ']' (rule end)
* stringBounds='?' (ambiguity) ']' (rule end)
* upperBound=UPPER (ambiguity) ']' (rule end)
*/
protected void emit_MultiplicityCS_VerticalLineQuestionMarkKeyword_2_0_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* UnrestrictedName?
*
* This ambiguous syntax occurs at:
* ownedBodies+=SpecificationCS 'body' (ambiguity) ':' ownedBodies+=SpecificationCS
* ownedParameters+=ParameterCS ')' ':' 'body' (ambiguity) ':' ownedBodies+=SpecificationCS
* ownedPathName=PathNameCS '(' ')' ':' 'body' (ambiguity) ':' ownedBodies+=SpecificationCS
* ownedPostconditions+=ConstraintCS 'body' (ambiguity) ':' ownedBodies+=SpecificationCS
* ownedPreconditions+=ConstraintCS 'body' (ambiguity) ':' ownedBodies+=SpecificationCS
* ownedType=TypeExpCS 'body' (ambiguity) ':' ownedBodies+=SpecificationCS
*/
protected void emit_OperationContextDeclCS_UnrestrictedNameParserRuleCall_8_2_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* 'requiredResource' | 'resource'
*
* This ambiguous syntax occurs at:
* (rule start) 'constraint' (ambiguity) '{' tupleDescriptor=BoundWeightTupleDescriptor
* (rule start) 'constraint' (ambiguity) name=ID
* (rule start) (ambiguity) '{' tupleDescriptor=BoundWeightTupleDescriptor
* (rule start) (ambiguity) name=ID
*/
protected void emit_ResourceConstraint_RequiredResourceKeyword_0_1_or_ResourceKeyword_0_0(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
/**
* Ambiguous syntax:
* ('(' ')')?
*
* This ambiguous syntax occurs at:
* name='Tuple' (ambiguity) (rule end)
* name='Tuple' (ambiguity) ownedMultiplicity=MultiplicityCS
*/
protected void emit_TupleTypeCS___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
acceptNodes(transition, nodes);
}
}
| epl-1.0 |
ossmeter/ossmeter | client/org.ossmeter.platform.client.java/src/org/ossmeter/repository/model/github/GitHubContent.java | 1509 | /*******************************************************************************
* Copyright (c) 2014 OSSMETER Partners.
* 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:
* James Williams - Implementation.
*******************************************************************************/
package org.ossmeter.repository.model.github;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME,
include=JsonTypeInfo.As.PROPERTY,
property = "_type")
@JsonSubTypes({
@Type(value = GitHubContent.class, name="org.ossmeter.repository.model.github.GitHubContent"), })
@JsonIgnoreProperties(ignoreUnknown = true)
public class GitHubContent extends Object {
protected String type;
protected String envoding;
protected int size;
protected String name;
protected String path;
protected String sha;
public String getType() {
return type;
}
public String getEnvoding() {
return envoding;
}
public int getSize() {
return size;
}
public String getName() {
return name;
}
public String getPath() {
return path;
}
public String getSha() {
return sha;
}
}
| epl-1.0 |
wx5223/fileconvert | src/main/java/com/wx/tohtml/PdfConvert.java | 2363 | package com.wx.tohtml;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java.util.Formatter;
import net.timendum.pdf.Images2HTML;
import net.timendum.pdf.PDFText2HTML;
import net.timendum.pdf.StatisticParser;
import org.apache.commons.io.FileUtils;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.poi.ss.examples.html.ToHtml;
/**
* @Description
* @date 2013年12月6日
* @author WangXin
*/
public class PdfConvert implements IHtmlConvert {
public void convert(File srcFile, String desPath) {
final String realName = srcFile.getName();
final String htmlPath = desPath;
PDDocument document = null;
Writer output = null;
try {
document = PDDocument.load(srcFile);
output = new OutputStreamWriter(new FileOutputStream(htmlPath + realName + ".html"), "UTF-8");
StatisticParser statisticParser = new StatisticParser();
statisticParser.writeText(document, new Writer() {
@Override
public void write(char[] cbuf, int off, int len) throws IOException {
}
@Override
public void flush() throws IOException {
}
@Override
public void close() throws IOException {
}
});
Images2HTML image = null;
image = new Images2HTML();
File imgDir = new File(htmlPath + realName + File.separator);
if(!imgDir.exists() && !imgDir.isDirectory()) imgDir.mkdirs();
image.setBasePath(imgDir);
image.setRelativePath(realName);
image.processDocument(document);
PDFText2HTML stripper = new PDFText2HTML("UTF-8", statisticParser);
stripper.setForceParsing(true);
stripper.setSortByPosition(true);
stripper.setImageStripper(image);
stripper.writeText(document, output);
} catch (UnsupportedEncodingException e1) {
e1.printStackTrace();
} catch (FileNotFoundException e1) {
e1.printStackTrace();
} catch (IOException e1) {
e1.printStackTrace();
} finally {
if (output != null) {
try {
output.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if (document != null) {
try {
document.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
}
| epl-1.0 |
fabioz/Pydev | plugins/org.python.pydev.ast/src/org/python/pydev/ast/interpreter_managers/InterpreterInfo.java | 94118 | /**
* Copyright (c) 2005-2013 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Eclipse Public License (EPL).
* Please see the license.txt included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
/*
* Created on May 11, 2005
*
* @author Fabio Zadrozny
*/
package org.python.pydev.ast.interpreter_managers;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.StringReader;
import java.nio.file.DirectoryStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;
import java.util.zip.ZipFile;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.SafeRunner;
import org.eclipse.core.variables.IStringVariableManager;
import org.eclipse.core.variables.VariablesPlugin;
import org.python.pydev.ast.codecompletion.revisited.ProjectModulesManager;
import org.python.pydev.ast.codecompletion.revisited.SystemModulesManager;
import org.python.pydev.ast.runners.SimpleRunner;
import org.python.pydev.core.CorePlugin;
import org.python.pydev.core.ExtensionHelper;
import org.python.pydev.core.IGrammarVersionProvider;
import org.python.pydev.core.IInterpreterInfo;
import org.python.pydev.core.IInterpreterManager;
import org.python.pydev.core.IModuleRequestState;
import org.python.pydev.core.IPythonNature;
import org.python.pydev.core.ISystemModulesManager;
import org.python.pydev.core.PropertiesHelper;
import org.python.pydev.core.docutils.PyStringUtils;
import org.python.pydev.core.interpreters.IInterpreterNewCustomEntries;
import org.python.pydev.core.log.Log;
import org.python.pydev.plugin.nature.PythonNature;
import org.python.pydev.plugin.nature.SystemPythonNature;
import org.python.pydev.shared_core.SharedCorePlugin;
import org.python.pydev.shared_core.callbacks.ICallback;
import org.python.pydev.shared_core.io.FileUtils;
import org.python.pydev.shared_core.process.ProcessUtils;
import org.python.pydev.shared_core.progress.CancelException;
import org.python.pydev.shared_core.string.FastStringBuffer;
import org.python.pydev.shared_core.string.StringUtils;
import org.python.pydev.shared_core.structure.Tuple;
import org.python.pydev.shared_core.utils.PlatformUtils;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
public class InterpreterInfo implements IInterpreterInfo {
private volatile Map<String, String> condaEnvCache = new HashMap<>();
//We want to force some libraries to be analyzed as source (e.g.: django)
private static String[] LIBRARIES_TO_IGNORE_AS_FORCED_BUILTINS = new String[] { "django" };
/**
* For jython, this is the jython.jar
*
* For python, this is the path to the python executable
*/
public volatile String executableOrJar;
@Override
public String getExecutableOrJar() {
return executableOrJar;
}
/**
* Folders or zip files: they should be passed to the pythonpath
*/
public final java.util.List<String> libs = new ArrayList<String>();
/**
* __builtin__, os, math, etc for python
*
* check sys.builtin_module_names and others that should
* be forced to use code completion as builtins, such os, math, etc.
*/
private final Set<String> forcedLibs = new TreeSet<String>();
/**
* This is the cache for the builtins (that's the same thing as the forcedLibs, but in a different format,
* so, whenever the forcedLibs change, this should be changed too).
*/
private String[] builtinsCache;
private Map<String, File> predefinedBuiltinsCache;
private Map<String, File> typeshedCache;
/**
* module management for the system is always binded to an interpreter (binded in this class)
*
* The modules manager is no longer persisted. It is restored from a separate file, because we do
* not want to keep it in the 'configuration', as a giant Base64 string.
*/
private final ISystemModulesManager modulesManager;
/**
* This callback is only used in tests, to configure the paths that should be chosen after the interpreter is selected.
*/
public static ICallback<Boolean, Tuple<List<String>, List<String>>> configurePathsCallback = null;
/**
* This is the version for the python interpreter (it is regarded as a String with Major and Minor version
* for python in the format '2.5' or '2.4'.
*/
private final String version;
/**
* This are the environment variables that should be used when this interpreter is specified.
* May be null if no env. variables are specified.
*/
private String[] envVariables;
private Properties stringSubstitutionVariables;
private final Set<String> predefinedCompletionsPath = new TreeSet<String>();
/**
* This is the way that the interpreter should be referred. Can be null (in which case the executable is
* used as the name)
*/
private String name;
@Override
public ISystemModulesManager getModulesManager() {
return modulesManager;
}
/**
* Variables manager to resolve variables in the interpreters environment.
* initStringVariableManager() creates an appropriate version when running
* within Eclipse, for test the stringVariableManagerForTests can be set to
* an appropriate mock object
*/
public IStringVariableManager stringVariableManagerForTests;
private IStringVariableManager getStringVariableManager() {
if (SharedCorePlugin.inTestMode()) {
return stringVariableManagerForTests;
}
VariablesPlugin variablesPlugin = VariablesPlugin.getDefault();
return variablesPlugin.getStringVariableManager();
}
/**
* @return the pythonpath to be used (only the folders)
*/
@Override
public List<String> getPythonPath() {
return new ArrayList<String>(libs);
}
public InterpreterInfo(String version, String exe, Collection<String> libs0) {
this.executableOrJar = exe;
this.version = version;
ISystemModulesManager modulesManager = new SystemModulesManager(this);
this.modulesManager = modulesManager;
libs.addAll(libs0);
}
public InterpreterInfo(String version, String exe, Collection<String> libs0, Collection<String> dlls) {
this(version, exe, libs0);
}
public InterpreterInfo(String version, String exe, List<String> libs0, List<String> dlls,
List<String> forced) {
this(version, exe, libs0, dlls, forced, null, null);
}
/**
* Note: dlls is no longer used!
*/
public InterpreterInfo(String version, String exe, List<String> libs0, List<String> dlls, List<String> forced,
List<String> envVars, Properties stringSubstitution) {
this(version, exe, libs0, dlls);
for (String s : forced) {
if (!isForcedLibToIgnore(s)) {
forcedLibs.add(s);
}
}
if (envVars == null) {
this.setEnvVariables(null);
} else {
this.setEnvVariables(envVars.toArray(new String[envVars.size()]));
}
this.setStringSubstitutionVariables(stringSubstitution);
this.clearBuiltinsCache(); //force cache recreation
}
/**
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof InterpreterInfo)) {
return false;
}
InterpreterInfo info = (InterpreterInfo) o;
if (info.executableOrJar.equals(this.executableOrJar) == false) {
return false;
}
if (info.activateCondaEnv != this.activateCondaEnv) {
return false;
}
if (info.libs.equals(this.libs) == false) {
return false;
}
if (info.forcedLibs.equals(this.forcedLibs) == false) {
return false;
}
if (info.predefinedCompletionsPath.equals(this.predefinedCompletionsPath) == false) {
return false;
}
if (this.pipenvTargetDir != null) {
if (info.pipenvTargetDir == null) {
return false;
}
//both not null
if (!this.pipenvTargetDir.equals(info.pipenvTargetDir)) {
return false;
}
} else {
//it is null -- the other must be too
if (info.pipenvTargetDir != null) {
return false;
}
}
if (this.envVariables != null) {
if (info.envVariables == null) {
return false;
}
//both not null
if (!Arrays.equals(this.envVariables, info.envVariables)) {
return false;
}
} else {
//env is null -- the other must be too
if (info.envVariables != null) {
return false;
}
}
//Consider null stringSubstitutionVariables equal to empty stringSubstitutionVariables.
if (this.stringSubstitutionVariables != null) {
if (info.stringSubstitutionVariables == null) {
if (this.stringSubstitutionVariables.size() != 0) {
return false;
}
} else {
//both not null
if (!this.stringSubstitutionVariables.equals(info.stringSubstitutionVariables)) {
return false;
}
}
} else {
//ours is null -- the other must be too
if (info.stringSubstitutionVariables != null && info.stringSubstitutionVariables.size() > 0) {
return false;
}
}
return true;
}
@Override
public int hashCode() {
return this.executableOrJar.hashCode();
}
/**
*
* @param received
* String to parse
* @param askUserInOutPath
* true to prompt user about which paths to include.
* @param userSpecifiedExecutable the path the the executable as specified by the user, or null to use that in received
* @return new interpreter info
*/
public static InterpreterInfo fromString(String received, boolean askUserInOutPath,
String userSpecifiedExecutable) {
if (received.toLowerCase().indexOf("executable") == -1) {
throw new RuntimeException(
"Unable to recreate the Interpreter info (Its format changed. Please, re-create your Interpreter information).Contents found:"
+ received);
}
received = received.trim();
int startXml = received.indexOf("<xml>");
int endXML = received.indexOf("</xml>");
if (startXml == -1 || endXML == -1) {
return fromStringOld(received, askUserInOutPath);
} else {
received = received.substring(startXml, endXML + "</xml>".length());
DocumentBuilder parser;
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setFeature("http://xml.org/sax/features/namespaces", false);
factory.setFeature("http://xml.org/sax/features/validation", false);
factory.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false);
factory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
parser = factory.newDocumentBuilder();
Document document = parser.parse(new InputSource(new StringReader(received)));
NodeList childNodes = document.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node item = childNodes.item(i);
String nodeName = item.getNodeName();
if (!("xml".equals(nodeName))) {
continue;
}
NodeList xmlNodes = item.getChildNodes();
boolean fromPythonBackend = false;
String infoExecutable = null;
String infoName = null;
String infoVersion = null;
String pipenvTargetDir = null;
boolean activateCondaEnv = false;
List<String> selection = new ArrayList<String>();
List<String> toAsk = new ArrayList<String>();
List<String> forcedLibs = new ArrayList<String>();
List<String> envVars = new ArrayList<String>();
List<String> predefinedPaths = new ArrayList<String>();
Properties stringSubstitutionVars = new Properties();
DefaultPathsForInterpreterInfo defaultPaths = new DefaultPathsForInterpreterInfo();
for (int j = 0; j < xmlNodes.getLength(); j++) {
Node xmlChild = xmlNodes.item(j);
String name = xmlChild.getNodeName();
String data = xmlChild.getTextContent().trim();
if ("version".equals(name)) {
infoVersion = data;
} else if ("name".equals(name)) {
infoName = data;
} else if ("executable".equals(name)) {
infoExecutable = data;
} else if ("pipenv_target_dir".equals(name)) {
pipenvTargetDir = data;
} else if ("activate_conda".equals(name)) {
activateCondaEnv = data.equals("true");
} else if ("lib".equals(name)) {
NamedNodeMap attributes = xmlChild.getAttributes();
Node pathIncludeItem = attributes.getNamedItem("path");
if (pathIncludeItem != null) {
if (defaultPaths.exists(data)) {
//The python backend is expected to put path='ins' or path='out'
//While our own toString() is not expected to do that.
//This is probably not a very good heuristic, but it maps the current state of affairs.
fromPythonBackend = true;
if (askUserInOutPath) {
toAsk.add(data);
}
//Select only if path is not child of a root path
if (defaultPaths.selectByDefault(data)) {
selection.add(data);
}
}
} else {
//If not specified, included by default (i.e.: if the path="ins" or path="out" is not
//given, this string was generated internally and not from the python backend, meaning
//that we want to keep it exactly as the user selected).
selection.add(data);
}
} else if ("forced_lib".equals(name)) {
forcedLibs.add(data);
} else if ("env_var".equals(name)) {
envVars.add(data);
} else if ("string_substitution_var".equals(name)) {
NodeList stringSubstitutionVarNode = xmlChild.getChildNodes();
Node keyNode = getNode(stringSubstitutionVarNode, "key");
Node valueNode = getNode(stringSubstitutionVarNode, "value");
stringSubstitutionVars.put(keyNode.getTextContent().trim(), valueNode.getTextContent()
.trim());
} else if ("predefined_completion_path".equals(name)) {
predefinedPaths.add(data);
} else if ("#text".equals(name)) {
if (data.length() > 0) {
Log.log("Unexpected text content: " + xmlChild.getTextContent());
}
} else {
Log.log("Unexpected node: " + name + " Text content: "
+ xmlChild.getTextContent());
}
}
if (fromPythonBackend) {
//Ok, when the python backend generated the interpreter information, go on and fill it with
//additional entries (i.e.: not only when we need to ask the user), as this information may
//be later used to check if the interpreter information is valid or missing paths.
AdditionalEntries additionalEntries = new AdditionalEntries();
Collection<String> additionalLibraries = additionalEntries.getAdditionalLibraries();
if (askUserInOutPath) {
addUnique(toAsk, additionalLibraries);
}
addUnique(selection, additionalLibraries);
addUnique(forcedLibs, additionalEntries.getAdditionalBuiltins());
//Load environment variables
Map<String, String> existingEnv = new HashMap<String, String>();
Collection<String> additionalEnvVariables = additionalEntries.getAdditionalEnvVariables();
for (String var : additionalEnvVariables) {
Tuple<String, String> sp = StringUtils.splitOnFirst(var, '=');
existingEnv.put(sp.o1, sp.o2);
}
for (String var : envVars) {
Tuple<String, String> sp = StringUtils.splitOnFirst(var, '=');
existingEnv.put(sp.o1, sp.o2);
}
envVars.clear();
Set<Entry<String, String>> set = existingEnv.entrySet();
for (Entry<String, String> entry : set) {
envVars.add(entry.getKey() + "=" + entry.getValue());
}
//Additional string substitution variables
Map<String, String> additionalStringSubstitutionVariables = additionalEntries
.getAdditionalStringSubstitutionVariables();
Set<Entry<String, String>> entrySet = additionalStringSubstitutionVariables.entrySet();
for (Entry<String, String> entry : entrySet) {
if (!stringSubstitutionVars.containsKey(entry.getKey())) {
stringSubstitutionVars.setProperty(entry.getKey(), entry.getValue());
}
}
if (infoVersion != null && !stringSubstitutionVars.containsKey("PY")) {
stringSubstitutionVars.setProperty("PY", StringUtils.replaceAll(infoVersion, ".", ""));
}
}
try {
selection = filterUserSelection(selection, toAsk);
} catch (CancelException e) {
return null;
}
if (userSpecifiedExecutable != null) {
infoExecutable = userSpecifiedExecutable;
}
InterpreterInfo info = new InterpreterInfo(infoVersion, infoExecutable, selection,
new ArrayList<String>(), forcedLibs, envVars, stringSubstitutionVars);
info.setName(infoName);
info.setActivateCondaEnv(activateCondaEnv);
info.pipenvTargetDir = pipenvTargetDir;
for (String s : predefinedPaths) {
info.addPredefinedCompletionsPath(s);
}
return info;
}
throw new RuntimeException("Could not find 'xml' node as root of the document.");
} catch (Exception e) {
Log.log("Error loading: " + received, e);
throw new RuntimeException(e); //What can we do about that?
}
}
}
/**
*
* @param received
* String to parse
* @param askUserInOutPath
* true to prompt user about which paths to include. When the
* user is prompted, IInterpreterNewCustomEntries extension will
* be run to contribute additional entries
* @return new interpreter info
*/
public static InterpreterInfo fromString(String received, boolean askUserInOutPath) {
return fromString(received, askUserInOutPath, null);
}
/**
* Add additions that are not already in col
*/
private static void addUnique(Collection<String> col, Collection<String> additions) {
for (String string : additions) {
if (!col.contains(string)) {
col.add(string);
}
}
}
/**
* Implementation of extension point to get all additions.
*/
private static class AdditionalEntries implements IInterpreterNewCustomEntries {
private final List<IInterpreterNewCustomEntries> fParticipants;
@SuppressWarnings("unchecked")
AdditionalEntries() {
fParticipants = ExtensionHelper.getParticipants(ExtensionHelper.PYDEV_INTERPRETER_NEW_CUSTOM_ENTRIES);
}
@Override
public Collection<String> getAdditionalLibraries() {
final Collection<String> additions = new ArrayList<String>();
for (final IInterpreterNewCustomEntries newEntriesProvider : fParticipants) {
SafeRunner.run(() -> {
additions.addAll(newEntriesProvider.getAdditionalLibraries());
});
}
return additions;
}
@Override
public Collection<String> getAdditionalEnvVariables() {
final Collection<String> additions = new ArrayList<String>();
for (final IInterpreterNewCustomEntries newEntriesProvider : fParticipants) {
SafeRunner.run(() -> {
additions.addAll(newEntriesProvider.getAdditionalEnvVariables());
});
}
return additions;
}
@Override
public Collection<String> getAdditionalBuiltins() {
final Collection<String> additions = new ArrayList<String>();
for (final IInterpreterNewCustomEntries newEntriesProvider : fParticipants) {
SafeRunner.run(() -> {
additions.addAll(newEntriesProvider.getAdditionalBuiltins());
});
}
return additions;
}
@Override
public Map<String, String> getAdditionalStringSubstitutionVariables() {
final Map<String, String> additions = new HashMap<String, String>();
for (final IInterpreterNewCustomEntries newEntriesProvider : fParticipants) {
SafeRunner.run(() -> {
additions.putAll(newEntriesProvider.getAdditionalStringSubstitutionVariables());
});
}
return additions;
}
}
private static Node getNode(NodeList nodeList, String string) {
for (int i = 0; i < nodeList.getLength(); i++) {
Node item = nodeList.item(i);
if (string.equals(item.getNodeName())) {
return item;
}
}
throw new RuntimeException("Unable to find node: " + string);
}
/**
* Format we receive should be:
*
* Executable:python.exe|lib1|lib2|lib3@dll1|dll2|dll3$forcedBuitin1|forcedBuiltin2^envVar1|envVar2@PYDEV_STRING_SUBST_VARS@PropertiesObjectAsString
*
* or
*
* Version2.5Executable:python.exe|lib1|lib2|lib3@dll1|dll2|dll3$forcedBuitin1|forcedBuiltin2^envVar1|envVar2@PYDEV_STRING_SUBST_VARS@PropertiesObjectAsString
* (added only when version 2.5 was added, so, if the string does not have it, it is regarded as 2.4)
*
* or
*
* Name:MyInterpreter:EndName:Version2.5Executable:python.exe|lib1|lib2|lib3@dll1|dll2|dll3$forcedBuitin1|forcedBuiltin2^envVar1|envVar2@PYDEV_STRING_SUBST_VARS@PropertiesObjectAsString
*
* Symbols ': @ $'
*/
private static InterpreterInfo fromStringOld(String received, boolean askUserInOutPath) {
Tuple<String, String> predefCompsPath = StringUtils.splitOnFirst(received, "@PYDEV_PREDEF_COMPS_PATHS@");
received = predefCompsPath.o1;
//Note that the new lines are important for the string substitution, so, we must remove it before removing new lines
Tuple<String, String> stringSubstitutionVarsSplit = StringUtils.splitOnFirst(received,
"@PYDEV_STRING_SUBST_VARS@");
received = stringSubstitutionVarsSplit.o1;
received = received.replaceAll("\n", "").replaceAll("\r", "");
String name = null;
if (received.startsWith("Name:")) {
int endNameIndex = received.indexOf(":EndName:");
if (endNameIndex != -1) {
name = received.substring("Name:".length(), endNameIndex);
received = received.substring(endNameIndex + ":EndName:".length());
}
}
Tuple<String, String> envVarsSplit = StringUtils.splitOnFirst(received, '^');
Tuple<String, String> forcedSplit = StringUtils.splitOnFirst(envVarsSplit.o1, '$');
Tuple<String, String> libsSplit = StringUtils.splitOnFirst(forcedSplit.o1, '@');
String exeAndLibs = libsSplit.o1;
String version = "2.4"; //if not found in the string, the grammar version is regarded as 2.4
String[] exeAndLibs1 = exeAndLibs.split("\\|");
String exeAndVersion = exeAndLibs1[0];
String lowerExeAndVersion = exeAndVersion.toLowerCase();
if (lowerExeAndVersion.startsWith("version")) {
int execut = lowerExeAndVersion.indexOf("executable");
version = exeAndVersion.substring(0, execut).substring(7);
exeAndVersion = exeAndVersion.substring(7 + version.length());
}
String executable = exeAndVersion.substring(exeAndVersion.indexOf(":") + 1, exeAndVersion.length());
List<String> selection = new ArrayList<String>();
List<String> toAsk = new ArrayList<String>();
for (int i = 1; i < exeAndLibs1.length; i++) { //start at 1 (0 is exe)
String trimmed = exeAndLibs1[i].trim();
if (trimmed.length() > 0) {
if (trimmed.endsWith("OUT_PATH")) {
trimmed = trimmed.substring(0, trimmed.length() - 8);
if (askUserInOutPath) {
toAsk.add(trimmed);
} else {
//Change 2.0.1: if not asked, it's included by default!
selection.add(trimmed);
}
} else if (trimmed.endsWith("INS_PATH")) {
trimmed = trimmed.substring(0, trimmed.length() - 8);
if (askUserInOutPath) {
toAsk.add(trimmed);
selection.add(trimmed);
} else {
selection.add(trimmed);
}
} else {
selection.add(trimmed);
}
}
}
try {
selection = filterUserSelection(selection, toAsk);
} catch (CancelException e) {
return null;
}
ArrayList<String> l1 = new ArrayList<String>();
if (libsSplit.o2.length() > 1) {
fillList(libsSplit, l1);
}
ArrayList<String> l2 = new ArrayList<String>();
if (forcedSplit.o2.length() > 1) {
fillList(forcedSplit, l2);
}
ArrayList<String> l3 = new ArrayList<String>();
if (envVarsSplit.o2.length() > 1) {
fillList(envVarsSplit, l3);
}
Properties p4 = null;
if (stringSubstitutionVarsSplit.o2.length() > 1) {
p4 = PropertiesHelper.createPropertiesFromString(stringSubstitutionVarsSplit.o2);
}
InterpreterInfo info = new InterpreterInfo(version, executable, selection, l1, l2, l3, p4);
if (predefCompsPath.o2.length() > 1) {
List<String> split = StringUtils.split(predefCompsPath.o2, '|');
for (String s : split) {
s = s.trim();
if (s.length() > 0) {
info.addPredefinedCompletionsPath(s);
}
}
}
info.setName(name);
return info;
}
public static List<String> filterUserSelection(List<String> selection, List<String> toAsk) throws CancelException {
if (ProjectModulesManager.IN_TESTS) {
if (InterpreterInfo.configurePathsCallback != null) {
InterpreterInfo.configurePathsCallback.call(new Tuple<List<String>, List<String>>(toAsk, selection));
}
} else {
if (toAsk.size() > 0) {
Assert.isNotNull(selectLibraries, "InterpreterInfo.selectLibraries must be set prior to using it.");
selection = selectLibraries.select(selection, toAsk);
}
}
return selection;
}
public static interface IPythonSelectLibraries {
List<String> select(List<String> selection, List<String> toAsk) throws CancelException;
}
public static IPythonSelectLibraries selectLibraries;
private static void fillList(Tuple<String, String> forcedSplit, ArrayList<String> l2) {
String forcedLibs = forcedSplit.o2;
for (String trimmed : StringUtils.splitAndRemoveEmptyTrimmed(forcedLibs, '|')) {
trimmed = trimmed.trim();
if (trimmed.length() > 0) {
l2.add(trimmed);
}
}
}
/**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
FastStringBuffer buffer = new FastStringBuffer();
buffer.append("<xml>\n");
if (this.name != null) {
buffer.append("<name>");
buffer.append(escape(this.name));
buffer.append("</name>\n");
}
buffer.append("<version>");
buffer.append(escape(version));
buffer.append("</version>\n");
buffer.append("<executable>");
buffer.append(escape(executableOrJar));
buffer.append("</executable>\n");
if (activateCondaEnv) {
// Only add tag if actually true or forced (otherwise, just omit it so that backward compatibility
// is preserved).
buffer.append("<activate_conda>" + activateCondaEnv + "</activate_conda>\n");
}
if (pipenvTargetDir != null) {
buffer.append("<pipenv_target_dir>");
buffer.append(escape(pipenvTargetDir));
buffer.append("</pipenv_target_dir>\n");
}
for (Iterator<String> iter = libs.iterator(); iter.hasNext();) {
buffer.append("<lib>");
buffer.append(escape(iter.next().toString()));
buffer.append("</lib>\n");
}
if (forcedLibs.size() > 0) {
for (Iterator<String> iter = forcedLibs.iterator(); iter.hasNext();) {
buffer.append("<forced_lib>");
buffer.append(escape(iter.next().toString()));
buffer.append("</forced_lib>\n");
}
}
if (this.envVariables != null) {
for (String s : envVariables) {
buffer.append("<env_var>");
buffer.append(escape(s));
buffer.append("</env_var>\n");
}
}
if (this.stringSubstitutionVariables != null && this.stringSubstitutionVariables.size() > 0) {
Set<Entry<Object, Object>> entrySet = this.stringSubstitutionVariables.entrySet();
for (Entry<Object, Object> entry : entrySet) {
buffer.append("<string_substitution_var>");
buffer.append("<key>");
buffer.appendObject(escape(entry.getKey()));
buffer.append("</key>");
buffer.append("<value>");
buffer.appendObject(escape(entry.getValue()));
buffer.append("</value>");
buffer.append("</string_substitution_var>\n");
}
}
if (this.predefinedCompletionsPath.size() > 0) {
for (String s : this.predefinedCompletionsPath) {
buffer.append("<predefined_completion_path>");
buffer.append(escape(s));
buffer.append("</predefined_completion_path>");
}
}
buffer.append("</xml>");
return buffer.toString();
}
private static String escape(Object str) {
if (str == null) {
return null;
}
return new FastStringBuffer(str.toString(), 10).replaceAll("&", "&").replaceAll(">", ">")
.replaceAll("<", "<")
.toString();
}
/**
* Old implementation. Kept only for testing backward compatibility!
*/
public String toStringOld() {
FastStringBuffer buffer = new FastStringBuffer();
if (this.name != null) {
buffer.append("Name:");
buffer.append(this.name);
buffer.append(":EndName:");
}
buffer.append("Version");
buffer.append(version);
buffer.append("Executable:");
buffer.append(executableOrJar);
for (Iterator<String> iter = libs.iterator(); iter.hasNext();) {
buffer.append("|");
buffer.append(iter.next().toString());
}
buffer.append("@");
buffer.append("$");
if (forcedLibs.size() > 0) {
for (Iterator<String> iter = forcedLibs.iterator(); iter.hasNext();) {
buffer.append("|");
buffer.append(iter.next().toString());
}
}
if (this.envVariables != null) {
buffer.append("^");
for (String s : envVariables) {
buffer.append(s);
buffer.append("|");
}
}
if (this.stringSubstitutionVariables != null && this.stringSubstitutionVariables.size() > 0) {
buffer.append("@PYDEV_STRING_SUBST_VARS@");
buffer.append(PropertiesHelper.createStringFromProperties(this.stringSubstitutionVariables));
}
if (this.predefinedCompletionsPath.size() > 0) {
buffer.append("@PYDEV_PREDEF_COMPS_PATHS@");
for (String s : this.predefinedCompletionsPath) {
buffer.append("|");
buffer.append(s);
}
}
return buffer.toString();
}
/**
* Adds the compiled libs (dlls)
*/
public void restoreCompiledLibs(IProgressMonitor monitor) {
//the compiled with the interpreter should be already gotten.
for (String lib : this.libs) {
addForcedLibsFor(lib);
}
//we have it in source, but want to interpret it, source info (ast) does not give us much
forcedLibs.add("os");
//we also need to add this submodule (because even though it's documented as such, it's not really
//implemented that way with a separate file -- there's black magic to put it there)
forcedLibs.add("os.path");
//as it is a set, there is no problem to add it twice
if (this.version.startsWith("2") || this.version.startsWith("1")) {
//don't add it for 3.0 onwards.
forcedLibs.add("__builtin__"); //jython bug: __builtin__ is not added
} else {
forcedLibs.add("builtins"); //just make sure it's always there!
}
forcedLibs.add("sys"); //jython bug: sys is not added
forcedLibs.add("email"); //email has some lazy imports that pydev cannot handle through the source
forcedLibs.add("hashlib"); //depending on the Python version, hashlib cannot find md5, so, let's always leave it there.
forcedLibs.add("pytest"); //yeap, pytest does have a structure that's pretty hard to analyze.
forcedLibs.add("six"); // six creates its six.moves all through deep magic.
forcedLibs.add("re");
int interpreterType = getInterpreterType();
switch (interpreterType) {
case IInterpreterManager.INTERPRETER_TYPE_JYTHON:
//by default, we don't want to force anything to python.
forcedLibs.add("StringIO"); //jython bug: StringIO is not added
forcedLibs.add("com.ziclix.python.sql"); //bultin to jython but not reported.
break;
case IInterpreterManager.INTERPRETER_TYPE_PYTHON:
//those are sources, but we want to get runtime info on them.
forcedLibs.add("OpenGL");
forcedLibs.add("wxPython");
forcedLibs.add("wx");
forcedLibs.add("gi"); // for gnome introspection
forcedLibs.add("numpy");
forcedLibs.add("scipy");
forcedLibs.add("mock"); // mock.patch.object is not gotten if mock is not there for the mock library.
forcedLibs.add("Image"); //for PIL
forcedLibs.add("cv2"); //for OpenCV
forcedLibs.add("mutagen"); // https://www.brainwy.com/tracker/PyDev/819
forcedLibs.add("py"); // For pytest
forcedLibs.add("random"); // https://stackoverflow.com/questions/65329161/
//these are the builtins -- apparently sys.builtin_module_names is not ok in linux.
forcedLibs.add("_ast");
forcedLibs.add("_bisect");
forcedLibs.add("_bytesio");
forcedLibs.add("_codecs");
forcedLibs.add("_codecs_cn");
forcedLibs.add("_codecs_hk");
forcedLibs.add("_codecs_iso2022");
forcedLibs.add("_codecs_jp");
forcedLibs.add("_codecs_kr");
forcedLibs.add("_codecs_tw");
forcedLibs.add("_collections");
forcedLibs.add("_csv");
forcedLibs.add("_fileio");
forcedLibs.add("_functools");
forcedLibs.add("_heapq");
forcedLibs.add("_hotshot");
forcedLibs.add("_json");
forcedLibs.add("_locale");
forcedLibs.add("_lsprof");
forcedLibs.add("_md5");
forcedLibs.add("_multibytecodec");
forcedLibs.add("_random");
forcedLibs.add("_sha");
forcedLibs.add("_sha256");
forcedLibs.add("_sha512");
forcedLibs.add("_sre");
forcedLibs.add("_struct");
forcedLibs.add("_subprocess");
forcedLibs.add("_symtable");
forcedLibs.add("_warnings");
forcedLibs.add("_weakref");
forcedLibs.add("_winreg");
forcedLibs.add("array");
forcedLibs.add("audioop");
forcedLibs.add("binascii");
forcedLibs.add("cPickle");
forcedLibs.add("cStringIO");
forcedLibs.add("cmath");
forcedLibs.add("datetime");
forcedLibs.add("errno");
forcedLibs.add("exceptions");
forcedLibs.add("future_builtins");
forcedLibs.add("gc");
forcedLibs.add("imageop");
forcedLibs.add("imp");
forcedLibs.add("itertools");
forcedLibs.add("marshal");
forcedLibs.add("math");
forcedLibs.add("mmap");
forcedLibs.add("msvcrt");
forcedLibs.add("multiprocessing");
forcedLibs.add("nt");
forcedLibs.add("operator");
forcedLibs.add("parser");
forcedLibs.add("signal");
forcedLibs.add("socket"); //socket seems to have issues on linux
forcedLibs.add("ssl");
forcedLibs.add("strop");
forcedLibs.add("sys");
forcedLibs.add("thread");
forcedLibs.add("time");
forcedLibs.add("xxsubtype");
forcedLibs.add("zipimport");
forcedLibs.add("zlib");
break;
case IInterpreterManager.INTERPRETER_TYPE_IRONPYTHON:
//base namespaces
forcedLibs.add("System");
forcedLibs.add("Microsoft");
forcedLibs.add("clr");
//other namespaces (from http://msdn.microsoft.com/en-us/library/ms229335.aspx)
forcedLibs.add("IEHost.Execute");
forcedLibs.add("Microsoft.Aspnet.Snapin");
forcedLibs.add("Microsoft.Build.BuildEngine");
forcedLibs.add("Microsoft.Build.Conversion");
forcedLibs.add("Microsoft.Build.Framework");
forcedLibs.add("Microsoft.Build.Tasks");
forcedLibs.add("Microsoft.Build.Tasks.Deployment.Bootstrapper");
forcedLibs.add("Microsoft.Build.Tasks.Deployment.ManifestUtilities");
forcedLibs.add("Microsoft.Build.Tasks.Hosting");
forcedLibs.add("Microsoft.Build.Tasks.Windows");
forcedLibs.add("Microsoft.Build.Utilities");
forcedLibs.add("Microsoft.CLRAdmin");
forcedLibs.add("Microsoft.CSharp");
forcedLibs.add("Microsoft.Data.Entity.Build.Tasks");
forcedLibs.add("Microsoft.IE");
forcedLibs.add("Microsoft.Ink");
forcedLibs.add("Microsoft.Ink.TextInput");
forcedLibs.add("Microsoft.JScript");
forcedLibs.add("Microsoft.JScript.Vsa");
forcedLibs.add("Microsoft.ManagementConsole");
forcedLibs.add("Microsoft.ManagementConsole.Advanced");
forcedLibs.add("Microsoft.ManagementConsole.Internal");
forcedLibs.add("Microsoft.ServiceModel.Channels.Mail");
forcedLibs.add("Microsoft.ServiceModel.Channels.Mail.ExchangeWebService");
forcedLibs.add("Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007");
forcedLibs.add("Microsoft.ServiceModel.Channels.Mail.WindowsMobile");
forcedLibs.add("Microsoft.SqlServer.Server");
forcedLibs.add("Microsoft.StylusInput");
forcedLibs.add("Microsoft.StylusInput.PluginData");
forcedLibs.add("Microsoft.VisualBasic");
forcedLibs.add("Microsoft.VisualBasic.ApplicationServices");
forcedLibs.add("Microsoft.VisualBasic.Compatibility.VB6");
forcedLibs.add("Microsoft.VisualBasic.CompilerServices");
forcedLibs.add("Microsoft.VisualBasic.Devices");
forcedLibs.add("Microsoft.VisualBasic.FileIO");
forcedLibs.add("Microsoft.VisualBasic.Logging");
forcedLibs.add("Microsoft.VisualBasic.MyServices");
forcedLibs.add("Microsoft.VisualBasic.MyServices.Internal");
forcedLibs.add("Microsoft.VisualBasic.Vsa");
forcedLibs.add("Microsoft.VisualC");
forcedLibs.add("Microsoft.VisualC.StlClr");
forcedLibs.add("Microsoft.VisualC.StlClr.Generic");
forcedLibs.add("Microsoft.Vsa");
forcedLibs.add("Microsoft.Vsa.Vb.CodeDOM");
forcedLibs.add("Microsoft.Win32");
forcedLibs.add("Microsoft.Win32.SafeHandles");
forcedLibs.add("Microsoft.Windows.Themes");
forcedLibs.add("Microsoft.WindowsCE.Forms");
forcedLibs.add("Microsoft.WindowsMobile.DirectX");
forcedLibs.add("Microsoft.WindowsMobile.DirectX.Direct3D");
forcedLibs.add("Microsoft_VsaVb");
forcedLibs.add("RegCode");
forcedLibs.add("System");
forcedLibs.add("System.AddIn");
forcedLibs.add("System.AddIn.Contract");
forcedLibs.add("System.AddIn.Contract.Automation");
forcedLibs.add("System.AddIn.Contract.Collections");
forcedLibs.add("System.AddIn.Hosting");
forcedLibs.add("System.AddIn.Pipeline");
forcedLibs.add("System.CodeDom");
forcedLibs.add("System.CodeDom.Compiler");
forcedLibs.add("System.Collections");
forcedLibs.add("System.Collections.Generic");
forcedLibs.add("System.Collections.ObjectModel");
forcedLibs.add("System.Collections.Specialized");
forcedLibs.add("System.ComponentModel");
forcedLibs.add("System.ComponentModel.DataAnnotations");
forcedLibs.add("System.ComponentModel.Design");
forcedLibs.add("System.ComponentModel.Design.Data");
forcedLibs.add("System.ComponentModel.Design.Serialization");
forcedLibs.add("System.Configuration");
forcedLibs.add("System.Configuration.Assemblies");
forcedLibs.add("System.Configuration.Install");
forcedLibs.add("System.Configuration.Internal");
forcedLibs.add("System.Configuration.Provider");
forcedLibs.add("System.Data");
forcedLibs.add("System.Data.Common");
forcedLibs.add("System.Data.Common.CommandTrees");
forcedLibs.add("System.Data.Design");
forcedLibs.add("System.Data.Entity.Design");
forcedLibs.add("System.Data.Entity.Design.AspNet");
forcedLibs.add("System.Data.EntityClient");
forcedLibs.add("System.Data.Linq");
forcedLibs.add("System.Data.Linq.Mapping");
forcedLibs.add("System.Data.Linq.SqlClient");
forcedLibs.add("System.Data.Linq.SqlClient.Implementation");
forcedLibs.add("System.Data.Mapping");
forcedLibs.add("System.Data.Metadata.Edm");
forcedLibs.add("System.Data.Objects");
forcedLibs.add("System.Data.Objects.DataClasses");
forcedLibs.add("System.Data.Odbc");
forcedLibs.add("System.Data.OleDb");
forcedLibs.add("System.Data.OracleClient");
forcedLibs.add("System.Data.Services");
forcedLibs.add("System.Data.Services.Client");
forcedLibs.add("System.Data.Services.Common");
forcedLibs.add("System.Data.Services.Design");
forcedLibs.add("System.Data.Services.Internal");
forcedLibs.add("System.Data.Sql");
forcedLibs.add("System.Data.SqlClient");
forcedLibs.add("System.Data.SqlTypes");
forcedLibs.add("System.Deployment.Application");
forcedLibs.add("System.Deployment.Internal");
forcedLibs.add("System.Diagnostics");
forcedLibs.add("System.Diagnostics.CodeAnalysis");
forcedLibs.add("System.Diagnostics.Design");
forcedLibs.add("System.Diagnostics.Eventing");
forcedLibs.add("System.Diagnostics.Eventing.Reader");
forcedLibs.add("System.Diagnostics.PerformanceData");
forcedLibs.add("System.Diagnostics.SymbolStore");
forcedLibs.add("System.DirectoryServices");
forcedLibs.add("System.DirectoryServices.AccountManagement");
forcedLibs.add("System.DirectoryServices.ActiveDirectory");
forcedLibs.add("System.DirectoryServices.Protocols");
forcedLibs.add("System.Drawing");
forcedLibs.add("System.Drawing.Design");
forcedLibs.add("System.Drawing.Drawing2D");
forcedLibs.add("System.Drawing.Imaging");
forcedLibs.add("System.Drawing.Printing");
forcedLibs.add("System.Drawing.Text");
forcedLibs.add("System.EnterpriseServices");
forcedLibs.add("System.EnterpriseServices.CompensatingResourceManager");
forcedLibs.add("System.EnterpriseServices.Internal");
forcedLibs.add("System.Globalization");
forcedLibs.add("System.IdentityModel.Claims");
forcedLibs.add("System.IdentityModel.Policy");
forcedLibs.add("System.IdentityModel.Selectors");
forcedLibs.add("System.IdentityModel.Tokens");
forcedLibs.add("System.IO");
forcedLibs.add("System.IO.Compression");
forcedLibs.add("System.IO.IsolatedStorage");
forcedLibs.add("System.IO.Log");
forcedLibs.add("System.IO.Packaging");
forcedLibs.add("System.IO.Pipes");
forcedLibs.add("System.IO.Ports");
forcedLibs.add("System.Linq");
forcedLibs.add("System.Linq.Expressions");
forcedLibs.add("System.Management");
forcedLibs.add("System.Management.Instrumentation");
forcedLibs.add("System.Media");
forcedLibs.add("System.Messaging");
forcedLibs.add("System.Messaging.Design");
forcedLibs.add("System.Net");
forcedLibs.add("System.Net.Cache");
forcedLibs.add("System.Net.Configuration");
forcedLibs.add("System.Net.Mail");
forcedLibs.add("System.Net.Mime");
forcedLibs.add("System.Net.NetworkInformation");
forcedLibs.add("System.Net.PeerToPeer");
forcedLibs.add("System.Net.PeerToPeer.Collaboration");
forcedLibs.add("System.Net.Security");
forcedLibs.add("System.Net.Sockets");
forcedLibs.add("System.Printing");
forcedLibs.add("System.Printing.IndexedProperties");
forcedLibs.add("System.Printing.Interop");
forcedLibs.add("System.Reflection");
forcedLibs.add("System.Reflection.Emit");
forcedLibs.add("System.Resources");
forcedLibs.add("System.Resources.Tools");
forcedLibs.add("System.Runtime");
forcedLibs.add("System.Runtime.CompilerServices");
forcedLibs.add("System.Runtime.ConstrainedExecution");
forcedLibs.add("System.Runtime.Hosting");
forcedLibs.add("System.Runtime.InteropServices");
forcedLibs.add("System.Runtime.InteropServices.ComTypes");
forcedLibs.add("System.Runtime.InteropServices.CustomMarshalers");
forcedLibs.add("System.Runtime.InteropServices.Expando");
forcedLibs.add("System.Runtime.Remoting");
forcedLibs.add("System.Runtime.Remoting.Activation");
forcedLibs.add("System.Runtime.Remoting.Channels");
forcedLibs.add("System.Runtime.Remoting.Channels.Http");
forcedLibs.add("System.Runtime.Remoting.Channels.Ipc");
forcedLibs.add("System.Runtime.Remoting.Channels.Tcp");
forcedLibs.add("System.Runtime.Remoting.Contexts");
forcedLibs.add("System.Runtime.Remoting.Lifetime");
forcedLibs.add("System.Runtime.Remoting.Messaging");
forcedLibs.add("System.Runtime.Remoting.Metadata");
forcedLibs.add("System.Runtime.Remoting.MetadataServices");
forcedLibs.add("System.Runtime.Remoting.Proxies");
forcedLibs.add("System.Runtime.Remoting.Services");
forcedLibs.add("System.Runtime.Serialization");
forcedLibs.add("System.Runtime.Serialization.Configuration");
forcedLibs.add("System.Runtime.Serialization.Formatters");
forcedLibs.add("System.Runtime.Serialization.Formatters.Binary");
forcedLibs.add("System.Runtime.Serialization.Formatters.Soap");
forcedLibs.add("System.Runtime.Serialization.Json");
forcedLibs.add("System.Runtime.Versioning");
forcedLibs.add("System.Security");
forcedLibs.add("System.Security.AccessControl");
forcedLibs.add("System.Security.Authentication");
forcedLibs.add("System.Security.Authentication.ExtendedProtection");
forcedLibs.add("System.Security.Authentication.ExtendedProtection.Configuration");
forcedLibs.add("System.Security.Cryptography");
forcedLibs.add("System.Security.Cryptography.Pkcs");
forcedLibs.add("System.Security.Cryptography.X509Certificates");
forcedLibs.add("System.Security.Cryptography.Xml");
forcedLibs.add("System.Security.Permissions");
forcedLibs.add("System.Security.Policy");
forcedLibs.add("System.Security.Principal");
forcedLibs.add("System.Security.RightsManagement");
forcedLibs.add("System.ServiceModel");
forcedLibs.add("System.ServiceModel.Activation");
forcedLibs.add("System.ServiceModel.Activation.Configuration");
forcedLibs.add("System.ServiceModel.Channels");
forcedLibs.add("System.ServiceModel.ComIntegration");
forcedLibs.add("System.ServiceModel.Configuration");
forcedLibs.add("System.ServiceModel.Description");
forcedLibs.add("System.ServiceModel.Diagnostics");
forcedLibs.add("System.ServiceModel.Dispatcher");
forcedLibs.add("System.ServiceModel.Install.Configuration");
forcedLibs.add("System.ServiceModel.Internal");
forcedLibs.add("System.ServiceModel.MsmqIntegration");
forcedLibs.add("System.ServiceModel.PeerResolvers");
forcedLibs.add("System.ServiceModel.Persistence");
forcedLibs.add("System.ServiceModel.Security");
forcedLibs.add("System.ServiceModel.Security.Tokens");
forcedLibs.add("System.ServiceModel.Syndication");
forcedLibs.add("System.ServiceModel.Web");
forcedLibs.add("System.ServiceProcess");
forcedLibs.add("System.ServiceProcess.Design");
forcedLibs.add("System.Speech.AudioFormat");
forcedLibs.add("System.Speech.Recognition");
forcedLibs.add("System.Speech.Recognition.SrgsGrammar");
forcedLibs.add("System.Speech.Synthesis");
forcedLibs.add("System.Speech.Synthesis.TtsEngine");
forcedLibs.add("System.Text");
forcedLibs.add("System.Text.RegularExpressions");
forcedLibs.add("System.Threading");
forcedLibs.add("System.Timers");
forcedLibs.add("System.Transactions");
forcedLibs.add("System.Transactions.Configuration");
forcedLibs.add("System.Web");
forcedLibs.add("System.Web.ApplicationServices");
forcedLibs.add("System.Web.Caching");
forcedLibs.add("System.Web.ClientServices");
forcedLibs.add("System.Web.ClientServices.Providers");
forcedLibs.add("System.Web.Compilation");
forcedLibs.add("System.Web.Configuration");
forcedLibs.add("System.Web.Configuration.Internal");
forcedLibs.add("System.Web.DynamicData");
forcedLibs.add("System.Web.DynamicData.Design");
forcedLibs.add("System.Web.DynamicData.ModelProviders");
forcedLibs.add("System.Web.Handlers");
forcedLibs.add("System.Web.Hosting");
forcedLibs.add("System.Web.Mail");
forcedLibs.add("System.Web.Management");
forcedLibs.add("System.Web.Mobile");
forcedLibs.add("System.Web.Profile");
forcedLibs.add("System.Web.Query.Dynamic");
forcedLibs.add("System.Web.RegularExpressions");
forcedLibs.add("System.Web.Routing");
forcedLibs.add("System.Web.Script.Serialization");
forcedLibs.add("System.Web.Script.Services");
forcedLibs.add("System.Web.Security");
forcedLibs.add("System.Web.Services");
forcedLibs.add("System.Web.Services.Configuration");
forcedLibs.add("System.Web.Services.Description");
forcedLibs.add("System.Web.Services.Discovery");
forcedLibs.add("System.Web.Services.Protocols");
forcedLibs.add("System.Web.SessionState");
forcedLibs.add("System.Web.UI");
forcedLibs.add("System.Web.UI.Adapters");
forcedLibs.add("System.Web.UI.Design");
forcedLibs.add("System.Web.UI.Design.MobileControls");
forcedLibs.add("System.Web.UI.Design.MobileControls.Converters");
forcedLibs.add("System.Web.UI.Design.WebControls");
forcedLibs.add("System.Web.UI.Design.WebControls.WebParts");
forcedLibs.add("System.Web.UI.MobileControls");
forcedLibs.add("System.Web.UI.MobileControls.Adapters");
forcedLibs.add("System.Web.UI.MobileControls.Adapters.XhtmlAdapters");
forcedLibs.add("System.Web.UI.WebControls");
forcedLibs.add("System.Web.UI.WebControls.Adapters");
forcedLibs.add("System.Web.UI.WebControls.WebParts");
forcedLibs.add("System.Web.Util");
forcedLibs.add("System.Windows");
forcedLibs.add("System.Windows.Annotations");
forcedLibs.add("System.Windows.Annotations.Storage");
forcedLibs.add("System.Windows.Automation");
forcedLibs.add("System.Windows.Automation.Peers");
forcedLibs.add("System.Windows.Automation.Provider");
forcedLibs.add("System.Windows.Automation.Text");
forcedLibs.add("System.Windows.Controls");
forcedLibs.add("System.Windows.Controls.Primitives");
forcedLibs.add("System.Windows.Converters");
forcedLibs.add("System.Windows.Data");
forcedLibs.add("System.Windows.Documents");
forcedLibs.add("System.Windows.Documents.Serialization");
forcedLibs.add("System.Windows.Forms");
forcedLibs.add("System.Windows.Forms.ComponentModel.Com2Interop");
forcedLibs.add("System.Windows.Forms.Design");
forcedLibs.add("System.Windows.Forms.Design.Behavior");
forcedLibs.add("System.Windows.Forms.Integration");
forcedLibs.add("System.Windows.Forms.Layout");
forcedLibs.add("System.Windows.Forms.PropertyGridInternal");
forcedLibs.add("System.Windows.Forms.VisualStyles");
forcedLibs.add("System.Windows.Ink");
forcedLibs.add("System.Windows.Ink.AnalysisCore");
forcedLibs.add("System.Windows.Input");
forcedLibs.add("System.Windows.Input.StylusPlugIns");
forcedLibs.add("System.Windows.Interop");
forcedLibs.add("System.Windows.Markup");
forcedLibs.add("System.Windows.Markup.Localizer");
forcedLibs.add("System.Windows.Markup.Primitives");
forcedLibs.add("System.Windows.Media");
forcedLibs.add("System.Windows.Media.Animation");
forcedLibs.add("System.Windows.Media.Converters");
forcedLibs.add("System.Windows.Media.Effects");
forcedLibs.add("System.Windows.Media.Imaging");
forcedLibs.add("System.Windows.Media.Media3D");
forcedLibs.add("System.Windows.Media.Media3D.Converters");
forcedLibs.add("System.Windows.Media.TextFormatting");
forcedLibs.add("System.Windows.Navigation");
forcedLibs.add("System.Windows.Resources");
forcedLibs.add("System.Windows.Shapes");
forcedLibs.add("System.Windows.Threading");
forcedLibs.add("System.Windows.Xps");
forcedLibs.add("System.Windows.Xps.Packaging");
forcedLibs.add("System.Windows.Xps.Serialization");
forcedLibs.add("System.Workflow.Activities");
forcedLibs.add("System.Workflow.Activities.Configuration");
forcedLibs.add("System.Workflow.Activities.Rules");
forcedLibs.add("System.Workflow.Activities.Rules.Design");
forcedLibs.add("System.Workflow.ComponentModel");
forcedLibs.add("System.Workflow.ComponentModel.Compiler");
forcedLibs.add("System.Workflow.ComponentModel.Design");
forcedLibs.add("System.Workflow.ComponentModel.Serialization");
forcedLibs.add("System.Workflow.Runtime");
forcedLibs.add("System.Workflow.Runtime.Configuration");
forcedLibs.add("System.Workflow.Runtime.DebugEngine");
forcedLibs.add("System.Workflow.Runtime.Hosting");
forcedLibs.add("System.Workflow.Runtime.Tracking");
forcedLibs.add("System.Xml");
forcedLibs.add("System.Xml.Linq");
forcedLibs.add("System.Xml.Schema");
forcedLibs.add("System.Xml.Serialization");
forcedLibs.add("System.Xml.Serialization.Advanced");
forcedLibs.add("System.Xml.Serialization.Configuration");
forcedLibs.add("System.Xml.XPath");
forcedLibs.add("System.Xml.Xsl");
forcedLibs.add("System.Xml.Xsl.Runtime");
forcedLibs.add("UIAutomationClientsideProviders");
break;
default:
throw new RuntimeException("Don't know how to treat: " + interpreterType);
}
this.clearBuiltinsCache(); //force cache recreation
}
private void addForcedLibsFor(String lib) {
//For now only adds "werkzeug", but this is meant as an extension place.
File file = new File(lib);
if (file.exists()) {
addToForcedBuiltinsIfItExists(file, "werkzeug", "werkzeug");
addToForcedBuiltinsIfItExists(file, "nose", "nose", "nose.tools");
addToForcedBuiltinsIfItExists(file, "astropy", "astropy", "astropy.units");
}
}
private void addToForcedBuiltinsIfItExists(File file, String libraryToAdd, String... addToForcedBuiltins) {
if (file.isDirectory()) {
//check as dir (if it has a werkzeug folder)
File werkzeug = new File(file, libraryToAdd);
if (werkzeug.isDirectory()) {
for (String s : addToForcedBuiltins) {
forcedLibs.add(s);
}
}
} else {
//check as zip (if it has a werkzeug entry -- note that we have to check the __init__
//because an entry just with the folder doesn't really exist)
try {
try (ZipFile zipFile = new ZipFile(file)) {
if (zipFile.getEntry(libraryToAdd + "/__init__.py") != null) {
for (String s : addToForcedBuiltins) {
forcedLibs.add(s);
}
}
}
} catch (Exception e) {
//ignore (not zip file)
}
}
}
// Initially I thought werkzeug would need to add all the contents, so, this was a prototype to
// analyze it and add what's needed (but it turns out that just adding werkzeug is ok.
// protected void handleWerkzeug(File initWerkzeug) {
// String fileContents = FileUtils.getFileContents(initWerkzeug);
// Tuple<SimpleNode, Throwable> parse = PyParser.reparseDocument(
// new PyParser.ParserInfo(new Document(fileContents), false, this.getGrammarVersion()));
// Module o1 = (Module) parse.o1;
// forcedLibs.add("werkzeug");
// for(stmtType stmt:o1.body){
// if(stmt instanceof Assign){
// Assign assign = (Assign) stmt;
// if(assign.targets.length == 1){
// if(assign.value instanceof Dict){
// String rep = NodeUtils.getRepresentationString(assign.targets[0]);
// if("all_by_module".equals(rep)){
// Dict dict = (Dict) assign.value;
// for(exprType key:dict.keys){
// if(key instanceof Str){
// Str str = (Str) key;
// forcedLibs.add(str.s);
// }
// }
// }
// }else if(assign.value instanceof Call){
// String rep = NodeUtils.getRepresentationString(assign.targets[0]);
// if("attribute_modules".equals(rep)){
// Call call = (Call) assign.value;
// rep = NodeUtils.getRepresentationString(call.func);
// if("fromkeys".equals(rep)){
// if(call.args.length == 1){
// if(call.args[0] instanceof org.python.pydev.parser.jython.ast.List){
// org.python.pydev.parser.jython.ast.List list = (org.python.pydev.parser.jython.ast.List) call.args[0];
// for(exprType elt:list.elts){
// if(elt instanceof Str){
// Str str = (Str) elt;
// forcedLibs.add("werkzeug."+str.s);
// }
// }
//
// }
// }
// }
// }
// }
// }
// }
// }
// }
private void clearBuiltinsCache() {
this.builtinsCache = null; //force cache recreation
this.predefinedBuiltinsCache = null;
}
/**
* Restores the path given non-standard libraries
* @param path
*/
private void restorePythonpath(String path, IProgressMonitor monitor) {
//no managers involved here...
getModulesManager().changePythonPath(path, null, monitor);
}
/**
* Restores the path with the discovered libs
* @param path
*/
public void restorePythonpath(IProgressMonitor monitor) {
FastStringBuffer buffer = new FastStringBuffer();
for (Iterator<String> iter = libs.iterator(); iter.hasNext();) {
String folder = iter.next();
buffer.append(folder);
buffer.append("|");
}
restorePythonpath(buffer.toString(), monitor);
}
@Override
public int getInterpreterType() {
if (isJythonExecutable(executableOrJar)) {
return IInterpreterManager.INTERPRETER_TYPE_JYTHON;
} else if (isIronpythonExecutable(executableOrJar)) {
return IInterpreterManager.INTERPRETER_TYPE_IRONPYTHON;
}
//neither one: it's python.
return IInterpreterManager.INTERPRETER_TYPE_PYTHON;
}
/**
* @param executable the executable we want to know about
* @return if the executable is the jython jar.
*/
public static boolean isJythonExecutable(String executable) {
if (executable.endsWith("\"")) {
return executable.endsWith(".jar\"");
}
return executable.endsWith(".jar");
}
/**
* @param executable the executable we want to know about
* @return if the executable is the ironpython executable.
*/
public static boolean isIronpythonExecutable(String executable) {
File file = new File(executable);
return file.getName().startsWith("ipy");
}
public static String getExeAsFileSystemValidPath(String executableOrJar) {
return PyStringUtils.getExeAsFileSystemValidPath(executableOrJar);
}
@Override
public String getExeAsFileSystemValidPath() {
return getExeAsFileSystemValidPath(executableOrJar);
}
@Override
public String getVersion() {
return version;
}
@Override
public int getGrammarVersion() {
return PythonNature.getGrammarVersionFromStr(version);
}
//START: Things related to the builtins (forcedLibs) ---------------------------------------------------------------
public String[] getBuiltins() {
if (this.builtinsCache == null) {
Set<String> set = new HashSet<String>(forcedLibs);
this.builtinsCache = set.toArray(new String[0]);
}
return this.builtinsCache;
}
public void addForcedLib(String forcedLib) {
if (isForcedLibToIgnore(forcedLib)) {
return;
}
this.forcedLibs.add(forcedLib);
this.clearBuiltinsCache();
}
/**
* @return true if the passed forced lib should not be added to the forced builtins.
*/
private boolean isForcedLibToIgnore(String forcedLib) {
if (forcedLib == null) {
return true;
}
//We want django to be always analyzed as source
for (String s : LIBRARIES_TO_IGNORE_AS_FORCED_BUILTINS) {
if (forcedLib.equals(s) || forcedLib.startsWith(s + ".")) {
return true;
}
}
return false;
}
public void removeForcedLib(String forcedLib) {
this.forcedLibs.remove(forcedLib);
this.clearBuiltinsCache();
}
@Override
public Iterator<String> forcedLibsIterator() {
return forcedLibs.iterator();
}
//END: Things related to the builtins (forcedLibs) -----------------------------------------------------------------
/**
* Sets the environment variables to be kept in the interpreter info.
*
* Some notes:
* - Will remove (and warn) about any PYTHONPATH env. var.
* - Will keep the env. variables sorted internally.
*/
public void setEnvVariables(String[] env) {
if (env != null) {
ArrayList<String> lst = new ArrayList<String>();
//We must make sure that the PYTHONPATH is not in the env. variables.
for (String s : env) {
Tuple<String, String> sp = StringUtils.splitOnFirst(s, '=');
if (sp.o1.length() != 0 && sp.o2.length() != 0) {
if (!checkIfPythonPathEnvVarAndWarnIfIs(sp.o1)) {
lst.add(s);
}
}
}
Collections.sort(lst);
env = lst.toArray(new String[lst.size()]);
}
if (env != null && env.length == 0) {
env = null;
}
this.envVariables = env;
}
@Override
public String[] getEnvVariables() {
return this.envVariables;
}
@Override
public String[] updateEnv(String[] env) {
return updateEnv(env, null);
}
Set<String> fPythonPathEnvVariableNames;
private Set<String> getPythonPathEnvVariableNames() {
if (fPythonPathEnvVariableNames == null) {
Set<String> s = new HashSet<String>();
s.add("PYTHONPATH");
switch (this.getInterpreterType()) {
case IPythonNature.INTERPRETER_TYPE_JYTHON:
s.add("CLASSPATH");
s.add("JYTHONPATH");
break;
case IPythonNature.INTERPRETER_TYPE_IRONPYTHON:
s.add("IRONPYTHONPATH");
break;
}
// i.e.: it doesn't change afterwards.
fPythonPathEnvVariableNames = Collections.unmodifiableSet(s);
}
return fPythonPathEnvVariableNames;
}
@Override
public String[] updateEnv(String[] env, Set<String> keysThatShouldNotBeUpdated) {
boolean hasEnvVarsToUpdate = this.envVariables != null && this.envVariables.length >= 0;
if (!hasEnvVarsToUpdate && !this.activateCondaEnv) {
return env; //nothing to change
}
//Ok, it's not null...
//let's merge them (env may be null/zero-length but we need to apply variable resolver to envVariables anyway)
Map<String, String> computedMap = new HashMap<String, String>();
if (keysThatShouldNotBeUpdated == null) {
keysThatShouldNotBeUpdated = Collections.emptySet();
}
fillMapWithEnv(env, computedMap, null, null);
if (this.activateCondaEnv) {
File condaPrefix = this.getCondaPrefix();
if (condaPrefix == null) {
Log.log("Unable to find conda prefix for: " + this.getExecutableOrJar());
} else if (condaPrefix.exists()) {
try {
Map<String, String> condaEnv = this.condaEnvCache;
if (condaEnv.isEmpty()) {
condaEnv = obtainCondaEnv(condaPrefix);
this.condaEnvCache = condaEnv;
}
Set<String> pythonPathEnvVariableNames = getPythonPathEnvVariableNames();
Set<Entry<String, String>> entrySet = condaEnv.entrySet();
for (Entry<String, String> entry : entrySet) {
if (computedMap.containsKey(entry.getKey())) {
if (keysThatShouldNotBeUpdated.contains(entry.getKey())) {
// We don't want to override things that the user specified.
continue;
}
if (pythonPathEnvVariableNames.contains(entry.getKey())) {
// We don't want to override the pythonpath which should be already computed based on the project.
continue;
}
}
computedMap.put(entry.getKey(), entry.getValue());
}
} catch (Exception e) {
Log.log(e);
}
} else {
Log.logInfo("Expected: " + condaPrefix + " to exist to activate conda env.");
}
}
if (hasEnvVarsToUpdate) {
fillMapWithEnv(envVariables, computedMap, keysThatShouldNotBeUpdated, getStringVariableManager()); //will override the keys already there unless they're in keysThatShouldNotBeUpdated
}
String[] ret = createEnvWithMap(computedMap);
return ret;
}
public Map<String, String> obtainCondaEnv(File condaPrefix)
throws Exception {
Map<String, String> condaEnv = new HashMap<String, String>();
String[] cmdLine;
File relativePath;
Path loadVarsPath;
if (PlatformUtils.isWindowsPlatform()) {
loadVarsPath = new Path("helpers/load-conda-vars.bat");
relativePath = CorePlugin.getBundleInfo().getRelativePath(loadVarsPath);
cmdLine = new String[] { "cmd", "/c", relativePath.toString() };
} else {
loadVarsPath = new Path("helpers/load-conda-vars");
relativePath = CorePlugin.getBundleInfo().getRelativePath(loadVarsPath);
cmdLine = new String[] { relativePath.toString() };
}
// Note: we must start from the default env and not based on a project nature (otherwise
// variables in one project could interfere with another project).
Map<String, String> initialEnv = SimpleRunner.getDefaultSystemEnv(this.getModulesManager().getNature());
File condaExec = PyDevCondaPreferences.findCondaExecutable(this);
File condaBinDir = condaExec.getParentFile(); // in Windows Systems, this directory is called Scripts
File condaActivation = getCondaActivationFile(condaBinDir);
if (!condaActivation.exists()) {
Log.log("Could not find Conda activate file: " + condaActivation);
return initialEnv;
}
initialEnv.put("__PYDEV_CONDA_PREFIX__", condaPrefix.toString());
initialEnv.put("__PYDEV_CONDA_DEFAULT_ENV__", condaPrefix.getName());
initialEnv.put("__PYDEV_CONDA_ACTIVATION__", condaActivation.getAbsolutePath()); // in subshell scripts we need to activate conda before calling any conda command.
Process process = SimpleRunner.createProcess(cmdLine, createEnvWithMap(initialEnv),
relativePath.getParentFile());
Tuple<String, String> output = SimpleRunner.getProcessOutput(process,
ProcessUtils.getArgumentsAsStr(cmdLine), null, null);
if (output.o2 != null && !output.o2.isEmpty()) {
Log.logInfo("stderr when loading conda env: " + output.o2);
}
for (String line : StringUtils.splitInLines(output.o1, false)) {
if (!line.trim().isEmpty()) {
Tuple<String, String> split = StringUtils.splitOnFirst(line, '=');
if (split.o1.equals("__PYDEV_CONDA_PREFIX__")
|| split.o1.equals("__PYDEV_CONDA_DEFAULT_ENV__")
|| split.o1.equals("__PYDEV_CONDA_ACTIVATION__")
|| split.o1.equals("_")) {
continue;
}
condaEnv.put(split.o1, split.o2);
}
}
return condaEnv;
}
public static Map<String, String> createMapFromEnv(String[] env) {
Map<String, String> map = new HashMap<>();
fillMapWithEnv(env, map, null, null);
return map;
}
private static File getCondaActivationFile(File condaBinDir) throws Exception {
if (PlatformUtils.isWindowsPlatform()) {
return new File(condaBinDir, "activate.bat");
} else {
return new File(condaBinDir, "activate");
}
}
public static String[] createEnvWithMap(Map<String, String> hashMap) {
Set<Entry<String, String>> entrySet = hashMap.entrySet();
String[] ret = new String[entrySet.size()];
int i = 0;
for (Entry<String, String> entry : entrySet) {
ret[i] = entry.getKey() + "=" + entry.getValue();
i++;
}
return ret;
}
public static void fillMapWithEnv(String[] env, Map<String, String> hashMap,
Set<String> keysThatShouldNotBeUpdated, IStringVariableManager manager) {
if (env == null || env.length == 0) {
// nothing to do
return;
}
if (keysThatShouldNotBeUpdated == null) {
keysThatShouldNotBeUpdated = Collections.emptySet();
}
for (String s : env) {
Tuple<String, String> sp = StringUtils.splitOnFirst(s, '=');
if (sp.o1.length() != 0 && sp.o2.length() != 0 && !keysThatShouldNotBeUpdated.contains(sp.o1)) {
String value = sp.o2;
if (manager != null) {
try {
value = manager.performStringSubstitution(value, false);
} catch (CoreException e) {
// Unreachable as false passed to reportUndefinedVariables above
}
}
hashMap.put(sp.o1, value);
}
}
}
/**
* This function will remove any PYTHONPATH entry from the given map (considering the case based on the system)
* and will give a warning to the user if that's actually done.
*/
public static void removePythonPathFromEnvMapWithWarning(HashMap<String, String> map) {
if (map == null) {
return;
}
for (Iterator<Map.Entry<String, String>> it = map.entrySet().iterator(); it.hasNext();) {
Map.Entry<String, String> next = it.next();
String key = next.getKey();
if (checkIfPythonPathEnvVarAndWarnIfIs(key)) {
it.remove();
}
}
}
/**
* Warns if the passed key is the PYTHONPATH env. var.
*
* @param key the key to check.
* @return true if the passed key is a PYTHONPATH env. var. (considers platform)
*/
public static boolean checkIfPythonPathEnvVarAndWarnIfIs(String key) {
boolean isPythonPath = false;
boolean win32 = PlatformUtils.isWindowsPlatform();
if (win32) {
key = key.toUpperCase();
}
final String keyPlatformDependent = key;
if (keyPlatformDependent.equals("PYTHONPATH") || keyPlatformDependent.equals("CLASSPATH")
|| keyPlatformDependent.equals("JYTHONPATH") || keyPlatformDependent.equals("IRONPYTHONPATH")) {
final String msg = "Ignoring "
+ keyPlatformDependent
+ " specified in the interpreter info.\n"
+ "It's managed depending on the project and other configurations and cannot be directly specified in the interpreter.";
Log.logWarn("Ignoring " + keyPlatformDependent + "\n\n" + msg);
isPythonPath = true;
}
return isPythonPath;
}
/**
* @return a new interpreter info that's a copy of the current interpreter info.
*/
@Override
public InterpreterInfo makeCopy() {
InterpreterInfo ret = fromString(toString(), false);
ret.setModificationStamp(modificationStamp);
return ret;
}
private int modificationStamp = 0;
@Override
public void setModificationStamp(int modificationStamp) {
this.modificationStamp = modificationStamp;
this.condaEnvCache = new HashMap<>();
}
@Override
public int getModificationStamp() {
return this.modificationStamp;
}
@Override
public void setName(String name) {
this.name = name;
}
@Override
public String getName() {
if (this.name != null) {
return this.name;
}
return this.executableOrJar;
}
@Override
public String getNameForUI() {
if (this.name != null && !this.name.equals(this.executableOrJar)) {
return this.name + " (" + this.executableOrJar + ")";
} else {
return this.executableOrJar;
}
}
@Override
public boolean matchNameBackwardCompatible(String interpreter) {
if (this.name != null) {
if (interpreter.equals(this.name)) {
return true;
}
}
if (PlatformUtils.isWindowsPlatform()) {
return interpreter.equalsIgnoreCase(executableOrJar);
}
return interpreter.equals(executableOrJar);
}
public void setStringSubstitutionVariables(Properties stringSubstitutionOriginal) {
if (stringSubstitutionOriginal == null) {
this.stringSubstitutionVariables = null;
} else {
this.stringSubstitutionVariables = stringSubstitutionOriginal;
}
}
@Override
public Properties getStringSubstitutionVariables(boolean addEnvironmentVariables) {
if (!addEnvironmentVariables) {
return this.stringSubstitutionVariables;
}
Properties ret = new Properties();
ret.putAll(this.stringSubstitutionVariables);
System.getenv().forEach((String t, String u) -> {
ret.put("env_var:" + t, u);
});
return ret;
}
public void addPredefinedCompletionsPath(String path) {
this.predefinedCompletionsPath.add(path);
this.clearBuiltinsCache();
}
@Override
public List<String> getPredefinedCompletionsPath() {
return new ArrayList<String>(predefinedCompletionsPath); //Return a copy.
}
/**
* May return null if it doesn't exist.
* @param moduleRequest
* @return the file that matches the passed module name with the predefined builtins.
*/
public File getPredefinedModule(String moduleName, IModuleRequestState moduleRequest) {
if (this.predefinedBuiltinsCache == null) {
this.predefinedBuiltinsCache = new HashMap<String, File>();
for (String s : this.getPredefinedCompletionsPath()) {
File f = new File(s);
if (f.exists()) {
File[] predefs = f.listFiles(new FilenameFilter() {
//Only accept names ending with .pypredef in the passed dirs
@Override
public boolean accept(File dir, String name) {
return name.endsWith(".pypredef");
}
});
if (predefs != null) {
for (File file : predefs) {
String n = file.getName();
String modName = n.substring(0, n.length() - (".pypredef".length()));
this.predefinedBuiltinsCache.put(modName, file);
}
}
}
}
}
if (this.typeshedCache == null && moduleRequest.getAcceptTypeshed()) {
this.typeshedCache = new HashMap<String, File>();
try {
File typeshedPath = CorePlugin.getTypeshedPath();
File f = new File(typeshedPath, "stdlib");
if (this.getGrammarVersion() <= IGrammarVersionProvider.LATEST_GRAMMAR_PY2_VERSION) {
f = new File(f, "@python2");
}
if (f.isDirectory()) {
fillTypeshedFromDirInfo(f, "");
}
} catch (CoreException e) {
Log.log(e);
}
}
File ret = this.predefinedBuiltinsCache.get(moduleName);
if (ret == null && moduleRequest.getAcceptTypeshed()) {
ret = this.typeshedCache.get(moduleName);
}
return ret;
}
private void fillTypeshedFromDirInfo(File f, String basename) {
java.nio.file.Path path = Paths.get(f.toURI());
try (DirectoryStream<java.nio.file.Path> newDirectoryStream = Files.newDirectoryStream(path)) {
Iterator<java.nio.file.Path> it = newDirectoryStream.iterator();
while (it.hasNext()) {
java.nio.file.Path path2 = it.next();
File file2 = path2.toFile();
String fName = file2.getName();
if (file2.isDirectory()) {
String dirname = fName;
if (!dirname.contains("@")) {
fillTypeshedFromDirInfo(file2,
basename.isEmpty() ? dirname + "." : basename + dirname + ".");
}
} else {
if (fName.endsWith(".pyi")) {
String modName = fName.substring(0, fName.length() - (".pyi".length()));
if (modName.equals("typing") || modName.equals("builtins") || modName.equals("__builtin__")) {
continue;
}
this.typeshedCache.put(basename + modName, file2);
}
}
}
} catch (IOException e) {
Log.log(e);
}
}
public void removePredefinedCompletionPath(String item) {
this.predefinedCompletionsPath.remove(item);
this.clearBuiltinsCache();
}
private volatile boolean loadFinished = true;
private boolean activateCondaEnv;
private String pipenvTargetDir;
public void setLoadFinished(boolean b) {
this.loadFinished = b;
}
public boolean getLoadFinished() {
return this.loadFinished;
}
public File getIoDirectory() {
final File workspaceMetadataFile = CorePlugin.getWorkspaceMetadataFile(this.getExeAsFileSystemValidPath());
return workspaceMetadataFile;
}
@Override
public File searchExecutableForInterpreter(String executable, boolean recursive)
throws UnableToFindExecutableException {
File file = new File(executableOrJar).getParentFile();
List<File> searchedDirectories = new ArrayList<>(2);
while (true) {
File foundExecutable = searchExecutableInContainer(executable, file, searchedDirectories);
if (foundExecutable != null) {
return foundExecutable;
}
if (!recursive) {
break;
}
file = file.getParentFile();
if (file == null) {
break;
}
}
throw new UnableToFindExecutableException(
"Unable to find " + executable + " executable. Searched in:\n"
+ StringUtils.join(", ", searchedDirectories));
}
public static File searchExecutableInContainer(String executable, final File dir, List<File> searchedDirectories) {
searchedDirectories.add(dir);
File ret = searchExecutable(dir, executable); // Linux
if (ret != null) {
return ret;
}
File scriptsDir = new File(dir, "Scripts"); // Windows
if (scriptsDir.exists()) {
searchedDirectories.add(scriptsDir);
ret = searchExecutable(scriptsDir, executable);
if (ret != null) {
return ret;
}
}
File bin = new File(dir, "bin"); // Jython
if (bin.exists()) {
searchedDirectories.add(bin);
ret = searchExecutable(bin, executable);
if (ret != null) {
return ret;
}
}
return null;
}
public static File searchExecutable(File pythonContainerDir, String executable) {
if (PlatformUtils.isWindowsPlatform()) {
File target2 = new File(pythonContainerDir, executable + ".exe");
if (FileUtils.enhancedIsFile(target2)) {
return target2;
}
target2 = new File(pythonContainerDir, executable + ".bat");
if (FileUtils.enhancedIsFile(target2)) {
return target2;
}
} else {
File target1 = new File(pythonContainerDir, executable);
if (target1.exists() && Files.isRegularFile(target1.toPath()) && Files.isExecutable(target1.toPath())) {
return target1;
}
}
return null;
}
@Override
public boolean getActivateCondaEnv() {
return this.activateCondaEnv;
}
@Override
public void setActivateCondaEnv(boolean b) {
this.activateCondaEnv = b;
}
@Override
public File getCondaPrefix() {
String executableOrJar = getExecutableOrJar();
File parentFile = new File(executableOrJar).getParentFile();
while (parentFile != null) {
if (new File(parentFile, "conda-meta").exists()) {
return parentFile;
}
parentFile = parentFile.getParentFile();
}
return null;
}
@Override
public void setPipenvTargetDir(String pipenvTargetDir) {
this.pipenvTargetDir = pipenvTargetDir;
}
@Override
public String getPipenvTargetDir() {
return this.pipenvTargetDir;
}
private String userSitePackages;
@Override
public String obtainUserSitePackages(IInterpreterManager interpreterManager) {
if (userSitePackages == null) {
SimpleRunner simpleRunner = new SimpleRunner();
Tuple<String, String> output = simpleRunner.runAndGetOutput(
new String[] { executableOrJar, "-m", "site",
PlatformUtils.isWindowsPlatform() ? "--user-site" : "--user-base" },
new File(executableOrJar).getParentFile(),
new SystemPythonNature(interpreterManager, this), null, "utf-8");
userSitePackages = output.o1.trim();
}
return userSitePackages;
}
private String computedPipEnvLocation;
@Override
public String getComputedPipEnvLocation() {
return computedPipEnvLocation;
}
@Override
public void setComputedPipEnvLocation(String location) {
computedPipEnvLocation = location;
}
}
| epl-1.0 |
cbaerikebc/kapua | message/api/src/main/java/org/eclipse/kapua/message/device/lifecycle/KapuaBirthChannel.java | 1029 | /*******************************************************************************
* Copyright (c) 2011, 2016 Eurotech and/or its affiliates 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:
* Eurotech - initial API and implementation
*
*******************************************************************************/
package org.eclipse.kapua.message.device.lifecycle;
import org.eclipse.kapua.message.KapuaChannel;
/**
* Kapua birth message channel object definition.
*
* @since 1.0
*
*/
public interface KapuaBirthChannel extends KapuaChannel
{
/**
* Get the client identifier
*
* @return
*/
public String getClientId();
/**
* Set the client identifier
*
* @param clientId
*/
public void setClientId(String clientId);
}
| epl-1.0 |
qgears/opensource-utils | test/hu.qgears.shm.test/src/hu/qgears/shm/test/TestShmserver.java | 2597 | package hu.qgears.shm.test;
import hu.qgears.nativeloader.NativeLoadException;
import hu.qgears.shm.ECreateType;
import hu.qgears.shm.SharedMemory;
import hu.qgears.shm.SharedMemoryException;
import hu.qgears.shm.UtilSharedMemory;
import org.junit.Assert;
import org.junit.Test;
public class TestShmserver extends TestBase {
String id = "testShm";
long size = 10000;
/**
* Tests the shared memory by writing to it and reading from it.
* Creates a shared memory instance and two entities with access to it, by
* specifying the same shared memory instance identifier: one is writing to
* it and the other is reading from it. The data read must be identical to
* the data written.
* @throws NativeLoadException thrown if native libraries cannot be loaded;
* unexpected in this test
*/
@Test
public void testShmServer() throws NativeLoadException {
SharedMemory mem;
try {
mem = UtilSharedMemory.getInstance().createSharedMemory(id,
ECreateType.createFailsIfExists, size);
} catch (SharedMemoryException exc) {
// Delete previous instance
mem = UtilSharedMemory.getInstance().createSharedMemory(id,
ECreateType.use, 0);
mem.deleteSharedMemory();
mem = UtilSharedMemory.getInstance().createSharedMemory(id,
ECreateType.createFailsIfExists, size);
}
try {
Assert.assertTrue(size <= mem.getSize());
Assert.assertNotNull(mem.getJavaAccessor());
testClient(mem);
} finally {
// cleanup
mem.deleteSharedMemory();
}
}
private void testClient(SharedMemory srv) throws NativeLoadException {
SharedMemory mem = UtilSharedMemory.getInstance().createSharedMemory(
id, ECreateType.use, 0);
Assert.assertTrue(mem.getSize() >= size);
Assert.assertNotNull(mem.getJavaAccessor());
Assert.assertFalse(srv.getNativePointer1() == mem.getNativePointer1()
&& srv.getNativePointer2() == mem.getNativePointer2());
srv.getJavaAccessor().clear();
srv.getJavaAccessor().put((byte) 'r');
srv.getJavaAccessor().put((byte) 'i');
srv.getJavaAccessor().put((byte) 'z');
srv.getJavaAccessor().put((byte) 's');
srv.getJavaAccessor().put((byte) 'i');
srv.sync(true);
mem.sync(false);
mem.getJavaAccessor().clear();
Assert.assertEquals(mem.getJavaAccessor().get(), (byte) 'r');
Assert.assertEquals(mem.getJavaAccessor().get(), (byte) 'i');
Assert.assertEquals(mem.getJavaAccessor().get(), (byte) 'z');
Assert.assertEquals(mem.getJavaAccessor().get(), (byte) 's');
Assert.assertEquals(mem.getJavaAccessor().get(), (byte) 'i');
mem.dispose();
log("Client read form shared memory the fine values!");
}
}
| epl-1.0 |
aptana/Pydev | bundles/org.python.pydev.debug/src/org/python/pydev/debug/ui/SourceLocatorPrefsPage.java | 4847 | /**
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Eclipse Public License (EPL).
* Please see the license.txt included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package org.python.pydev.debug.ui;
import java.util.List;
import org.eclipse.core.runtime.Preferences;
import org.eclipse.jface.dialogs.IInputValidator;
import org.eclipse.jface.dialogs.InputDialog;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IntegerFieldEditor;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Table;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.python.pydev.core.docutils.StringUtils;
import org.python.pydev.editor.preferences.PydevEditorPrefs;
import org.python.pydev.editorinput.PySourceLocatorPrefs;
import org.python.pydev.plugin.PydevPlugin;
import org.python.pydev.utils.ComboFieldEditor;
/**
* Preferences for the locations that should be translated -- used when the debugger is not able
* to find some path aa the client, so, the user is asked for the location and the answer is
* kept in the preferences in the format:
*
* path asked, new path -- means that a request for the "path asked" should return the "new path"
* path asked, DONTASK -- means that if some request for that file was asked it should silently ignore it
*/
public class SourceLocatorPrefsPage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
/**
* Initializer sets the preference store
*/
public SourceLocatorPrefsPage() {
super("Source locator", GRID);
setPreferenceStore(PydevPlugin.getDefault().getPreferenceStore());
}
public void init(IWorkbench workbench) {
}
private static final String[][] ENTRIES_AND_VALUES = new String[][] {
{ "Ask for local file.", Integer.toString(PySourceLocatorPrefs.ASK_FOR_FILE) },
{ "Ask for local file/Get from server (read only).",
Integer.toString(PySourceLocatorPrefs.ASK_FOR_FILE_GET_FROM_SERVER) },
{ "Get from server (read only).", Integer.toString(PySourceLocatorPrefs.GET_FROM_SERVER) }, };
/**
* Creates the editors
*/
protected void createFieldEditors() {
Composite p = getFieldEditorParent();
addField(new ComboFieldEditor(PySourceLocatorPrefs.ON_SOURCE_NOT_FOUND,
"Action when source is not directly found:", ENTRIES_AND_VALUES, p));
addField(new IntegerFieldEditor(PySourceLocatorPrefs.FILE_CONTENTS_TIMEOUT,
"Timeout to get file contents (millis):", p));
addField(new TableEditor(PydevEditorPrefs.SOURCE_LOCATION_PATHS, "Translation paths to use:", p) {
@Override
protected String createTable(List<String[]> items) {
return PySourceLocatorPrefs.wordsAsString(items);
}
@Override
protected String[] getNewInputObject() {
InputDialog d = new InputDialog(getShell(), "New entry",
"Add the entry in the format path_to_replace,new_path or path,DONTASK.", "",
new IInputValidator() {
public String isValid(String newText) {
String[] splitted = StringUtils.splitAndRemoveEmptyTrimmed(newText, ',').toArray(
new String[0]);
if (splitted.length != 2) {
return "Input must have 2 paths separated by a comma.";
}
return PySourceLocatorPrefs.isValid(splitted);
}
});
int retCode = d.open();
if (retCode == InputDialog.OK) {
return StringUtils.splitAndRemoveEmptyTrimmed(d.getValue(), ',').toArray(new String[0]);
}
return null;
}
@Override
protected List<String[]> parseString(String stringList) {
return PySourceLocatorPrefs.stringAsWords(stringList);
}
@Override
protected void doFillIntoGrid(Composite parent, int numColumns) {
super.doFillIntoGrid(parent, numColumns);
Table table = getTableControl(parent);
GridData layoutData = (GridData) table.getLayoutData();
layoutData.heightHint = 300;
}
});
}
/**
* Sets default preference values
*/
protected void initializeDefaultPreferences(Preferences prefs) {
}
}
| epl-1.0 |
sazgin/elexis-3-core | ch.elexis.core.data.tests/src/ch/elexis/data/Test_ZusatzAdresse.java | 3463 | package ch.elexis.data;
import java.util.List;
import org.junit.Test;
import ch.elexis.core.exceptions.ElexisException;
import ch.elexis.core.types.AddressType;
import ch.elexis.data.dto.ZusatzAdresseDTO;
import ch.rgw.tools.JdbcLink;
import junit.framework.Assert;
public class Test_ZusatzAdresse extends AbstractPersistentObjectTest {
public Test_ZusatzAdresse(JdbcLink link){
super(link);
}
@Test(expected = ElexisException.class)
public void TestZusatzAdresseWithoutKontakt() throws ElexisException{
ZusatzAdresseDTO zusatzAdresseDTO = new ZusatzAdresseDTO();
zusatzAdresseDTO.setAddressType(AddressType.ATTACHMENT_FIGURE);
zusatzAdresseDTO.setCountry("A");
zusatzAdresseDTO.setStreet1("Teststreet 1");
zusatzAdresseDTO.setKontaktId("1");
zusatzAdresseDTO.setZip("1010");
zusatzAdresseDTO.setPlace("Vienna");
zusatzAdresseDTO.setStreet2("Teststreet 2");
zusatzAdresseDTO.setKontaktId(null);
ZusatzAdresse zusatzAdresse = ZusatzAdresse.load(null);
zusatzAdresse.persistDTO(zusatzAdresseDTO);
}
@Test
public void TestZusatzAdresseWithKontakt() throws ElexisException{
Patient patient = new Patient("Mustermann", "Max", "1.1.2000", "m");
ZusatzAdresseDTO zusatzAdresseDTO = new ZusatzAdresseDTO();
zusatzAdresseDTO.setAddressType(AddressType.ATTACHMENT_FIGURE);
zusatzAdresseDTO.setCountry("A");
zusatzAdresseDTO.setStreet1("Teststreet 1");
zusatzAdresseDTO.setKontaktId("1");
zusatzAdresseDTO.setZip("1010");
zusatzAdresseDTO.setPlace("Vienna");
zusatzAdresseDTO.setStreet2("Teststreet 2");
zusatzAdresseDTO.setKontaktId(patient.getId());
ZusatzAdresse zusatzAdresse = ZusatzAdresse.load(null);
zusatzAdresse.persistDTO(zusatzAdresseDTO);
List<ZusatzAdresse> zusatzAdressen = patient.getZusatzAdressen();
Assert.assertTrue(zusatzAdressen.size() == 1);
ZusatzAdresse savedZusatzAdresse = zusatzAdressen.get(0);
Assert.assertNotNull(savedZusatzAdresse.getId());
Assert.assertEquals("Teststreet 1", savedZusatzAdresse.getDTO().getStreet1());
Assert.assertEquals("Teststreet 1", savedZusatzAdresse.get(ZusatzAdresse.STREET1));
Assert.assertEquals(savedZusatzAdresse.getId(), savedZusatzAdresse.getDTO().getId());
Assert.assertEquals(savedZusatzAdresse.get(ZusatzAdresse.KONTAKT_ID),
savedZusatzAdresse.getDTO().getKontaktId());
}
@Test
public void TestZusatzAdresseWithoutDTOPersisting() throws ElexisException{
Patient patient = new Patient("Mustermann", "Max", "1.1.2000", "m");
ZusatzAdresse zusatzAdresse = new ZusatzAdresse(patient);
zusatzAdresse.set(new String[] {
ZusatzAdresse.STREET1, ZusatzAdresse.TYPE
}, new String[] {
"Teststreet 2", String.valueOf(AddressType.FAMILY_FRIENDS.getValue())
});
List<ZusatzAdresse> zusatzAdressen = patient.getZusatzAdressen();
Assert.assertTrue(zusatzAdressen.size() == 1);
ZusatzAdresse savedZusatzAdresse = zusatzAdressen.get(0);
Assert.assertNotNull(savedZusatzAdresse.getId());
Assert.assertEquals("Teststreet 2", savedZusatzAdresse.getDTO().getStreet1());
Assert.assertEquals("Teststreet 2", savedZusatzAdresse.get(ZusatzAdresse.STREET1));
Assert.assertEquals(String.valueOf(AddressType.FAMILY_FRIENDS.getValue()),
savedZusatzAdresse.get(ZusatzAdresse.TYPE));
Assert.assertEquals(savedZusatzAdresse.getId(), savedZusatzAdresse.getDTO().getId());
Assert.assertEquals(savedZusatzAdresse.get(ZusatzAdresse.KONTAKT_ID),
savedZusatzAdresse.getDTO().getKontaktId());
}
}
| epl-1.0 |
ELTE-Soft/xUML-RT-Executor | plugins/hu.eltesoft.modelexecution.validation/src-gen/hu/eltesoft/modelexecution/validation/FinalStateWithExitActionMatcher.java | 10423 | package hu.eltesoft.modelexecution.validation;
import hu.eltesoft.modelexecution.validation.FinalStateWithExitActionMatch;
import hu.eltesoft.modelexecution.validation.util.FinalStateWithExitActionQuerySpecification;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import org.apache.log4j.Logger;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.incquery.runtime.api.IMatchProcessor;
import org.eclipse.incquery.runtime.api.IQuerySpecification;
import org.eclipse.incquery.runtime.api.IncQueryEngine;
import org.eclipse.incquery.runtime.api.impl.BaseMatcher;
import org.eclipse.incquery.runtime.exception.IncQueryException;
import org.eclipse.incquery.runtime.matchers.tuple.Tuple;
import org.eclipse.incquery.runtime.util.IncQueryLoggingUtil;
import org.eclipse.uml2.uml.FinalState;
/**
* Generated pattern matcher API of the hu.eltesoft.modelexecution.validation.FinalStateWithExitAction pattern,
* providing pattern-specific query methods.
*
* <p>Use the pattern matcher on a given model via {@link #on(IncQueryEngine)},
* e.g. in conjunction with {@link IncQueryEngine#on(Notifier)}.
*
* <p>Matches of the pattern will be represented as {@link FinalStateWithExitActionMatch}.
*
* <p>Original source:
* <code><pre>
* {@literal @}Violation(message = "Final states cannot have exit action", mark = { "st" })
* pattern FinalStateWithExitAction(st : FinalState) {
* FinalState.exit(st, _);
* }
* </pre></code>
*
* @see FinalStateWithExitActionMatch
* @see FinalStateWithExitActionProcessor
* @see FinalStateWithExitActionQuerySpecification
*
*/
@SuppressWarnings("all")
public class FinalStateWithExitActionMatcher extends BaseMatcher<FinalStateWithExitActionMatch> {
/**
* Initializes the pattern matcher within an existing EMF-IncQuery engine.
* If the pattern matcher is already constructed in the engine, only a light-weight reference is returned.
* The match set will be incrementally refreshed upon updates.
* @param engine the existing EMF-IncQuery engine in which this matcher will be created.
* @throws IncQueryException if an error occurs during pattern matcher creation
*
*/
public static FinalStateWithExitActionMatcher on(final IncQueryEngine engine) throws IncQueryException {
// check if matcher already exists
FinalStateWithExitActionMatcher matcher = engine.getExistingMatcher(querySpecification());
if (matcher == null) {
matcher = new FinalStateWithExitActionMatcher(engine);
// do not have to "put" it into engine.matchers, reportMatcherInitialized() will take care of it
}
return matcher;
}
private final static int POSITION_ST = 0;
private final static Logger LOGGER = IncQueryLoggingUtil.getLogger(FinalStateWithExitActionMatcher.class);
/**
* Initializes the pattern matcher over a given EMF model root (recommended: Resource or ResourceSet).
* If a pattern matcher is already constructed with the same root, only a light-weight reference is returned.
* The scope of pattern matching will be the given EMF model root and below (see FAQ for more precise definition).
* The match set will be incrementally refreshed upon updates from this scope.
* <p>The matcher will be created within the managed {@link IncQueryEngine} belonging to the EMF model root, so
* multiple matchers will reuse the same engine and benefit from increased performance and reduced memory footprint.
* @param emfRoot the root of the EMF containment hierarchy where the pattern matcher will operate. Recommended: Resource or ResourceSet.
* @throws IncQueryException if an error occurs during pattern matcher creation
* @deprecated use {@link #on(IncQueryEngine)} instead, e.g. in conjunction with {@link IncQueryEngine#on(Notifier)}
*
*/
@Deprecated
public FinalStateWithExitActionMatcher(final Notifier emfRoot) throws IncQueryException {
this(IncQueryEngine.on(emfRoot));
}
/**
* Initializes the pattern matcher within an existing EMF-IncQuery engine.
* If the pattern matcher is already constructed in the engine, only a light-weight reference is returned.
* The match set will be incrementally refreshed upon updates.
* @param engine the existing EMF-IncQuery engine in which this matcher will be created.
* @throws IncQueryException if an error occurs during pattern matcher creation
* @deprecated use {@link #on(IncQueryEngine)} instead
*
*/
@Deprecated
public FinalStateWithExitActionMatcher(final IncQueryEngine engine) throws IncQueryException {
super(engine, querySpecification());
}
/**
* Returns the set of all matches of the pattern that conform to the given fixed values of some parameters.
* @param pSt the fixed value of pattern parameter st, or null if not bound.
* @return matches represented as a FinalStateWithExitActionMatch object.
*
*/
public Collection<FinalStateWithExitActionMatch> getAllMatches(final FinalState pSt) {
return rawGetAllMatches(new Object[]{pSt});
}
/**
* Returns an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters.
* Neither determinism nor randomness of selection is guaranteed.
* @param pSt the fixed value of pattern parameter st, or null if not bound.
* @return a match represented as a FinalStateWithExitActionMatch object, or null if no match is found.
*
*/
public FinalStateWithExitActionMatch getOneArbitraryMatch(final FinalState pSt) {
return rawGetOneArbitraryMatch(new Object[]{pSt});
}
/**
* Indicates whether the given combination of specified pattern parameters constitute a valid pattern match,
* under any possible substitution of the unspecified parameters (if any).
* @param pSt the fixed value of pattern parameter st, or null if not bound.
* @return true if the input is a valid (partial) match of the pattern.
*
*/
public boolean hasMatch(final FinalState pSt) {
return rawHasMatch(new Object[]{pSt});
}
/**
* Returns the number of all matches of the pattern that conform to the given fixed values of some parameters.
* @param pSt the fixed value of pattern parameter st, or null if not bound.
* @return the number of pattern matches found.
*
*/
public int countMatches(final FinalState pSt) {
return rawCountMatches(new Object[]{pSt});
}
/**
* Executes the given processor on each match of the pattern that conforms to the given fixed values of some parameters.
* @param pSt the fixed value of pattern parameter st, or null if not bound.
* @param processor the action that will process each pattern match.
*
*/
public void forEachMatch(final FinalState pSt, final IMatchProcessor<? super FinalStateWithExitActionMatch> processor) {
rawForEachMatch(new Object[]{pSt}, processor);
}
/**
* Executes the given processor on an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters.
* Neither determinism nor randomness of selection is guaranteed.
* @param pSt the fixed value of pattern parameter st, or null if not bound.
* @param processor the action that will process the selected match.
* @return true if the pattern has at least one match with the given parameter values, false if the processor was not invoked
*
*/
public boolean forOneArbitraryMatch(final FinalState pSt, final IMatchProcessor<? super FinalStateWithExitActionMatch> processor) {
return rawForOneArbitraryMatch(new Object[]{pSt}, processor);
}
/**
* Returns a new (partial) match.
* This can be used e.g. to call the matcher with a partial match.
* <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object.
* @param pSt the fixed value of pattern parameter st, or null if not bound.
* @return the (partial) match object.
*
*/
public FinalStateWithExitActionMatch newMatch(final FinalState pSt) {
return FinalStateWithExitActionMatch.newMatch(pSt);
}
/**
* Retrieve the set of values that occur in matches for st.
* @return the Set of all values, null if no parameter with the given name exists, empty set if there are no matches
*
*/
protected Set<FinalState> rawAccumulateAllValuesOfst(final Object[] parameters) {
Set<FinalState> results = new HashSet<FinalState>();
rawAccumulateAllValues(POSITION_ST, parameters, results);
return results;
}
/**
* Retrieve the set of values that occur in matches for st.
* @return the Set of all values, null if no parameter with the given name exists, empty set if there are no matches
*
*/
public Set<FinalState> getAllValuesOfst() {
return rawAccumulateAllValuesOfst(emptyArray());
}
@Override
protected FinalStateWithExitActionMatch tupleToMatch(final Tuple t) {
try {
return FinalStateWithExitActionMatch.newMatch((org.eclipse.uml2.uml.FinalState) t.get(POSITION_ST));
} catch(ClassCastException e) {
LOGGER.error("Element(s) in tuple not properly typed!",e);
return null;
}
}
@Override
protected FinalStateWithExitActionMatch arrayToMatch(final Object[] match) {
try {
return FinalStateWithExitActionMatch.newMatch((org.eclipse.uml2.uml.FinalState) match[POSITION_ST]);
} catch(ClassCastException e) {
LOGGER.error("Element(s) in array not properly typed!",e);
return null;
}
}
@Override
protected FinalStateWithExitActionMatch arrayToMatchMutable(final Object[] match) {
try {
return FinalStateWithExitActionMatch.newMutableMatch((org.eclipse.uml2.uml.FinalState) match[POSITION_ST]);
} catch(ClassCastException e) {
LOGGER.error("Element(s) in array not properly typed!",e);
return null;
}
}
/**
* @return the singleton instance of the query specification of this pattern
* @throws IncQueryException if the pattern definition could not be loaded
*
*/
public static IQuerySpecification<FinalStateWithExitActionMatcher> querySpecification() throws IncQueryException {
return FinalStateWithExitActionQuerySpecification.instance();
}
}
| epl-1.0 |
soctrace-inria/framesoc.importers | fr.inria.soctrace.tools.importer.paraver/src/fr/inria/soctrace/tools/importer/paraver/input/ParaverInput.java | 1362 | /*******************************************************************************
* Copyright (c) 2012-2015 INRIA.
* 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:
* Youenn Corre - initial API and implementation
******************************************************************************/
package fr.inria.soctrace.tools.importer.paraver.input;
import java.util.List;
import fr.inria.soctrace.framesoc.core.tools.model.IFramesocToolInput;
/**
* @author "Youenn Corre <youenn.corre@inria.fr>"
*/
public class ParaverInput implements IFramesocToolInput {
protected List<String> files;
protected boolean useEventForState = false;
@Override
public String getCommand() {
return "";
}
public List<String> getFiles() {
return files;
}
public void setFiles(List<String> files) {
this.files = files;
}
public boolean isUseEventForState() {
return useEventForState;
}
public void setUseEventForState(boolean useEventForState) {
this.useEventForState = useEventForState;
}
@Override
public String toString() {
return "Paraver [files=" + files + ", useEventForState="
+ useEventForState + "]";
}
}
| epl-1.0 |
kgibm/open-liberty | dev/io.openliberty.jakartaee9.internal_fat/fat/src/io/openliberty/jakartaee9/internal/tests/JakartaEE9Test.java | 4562 | /*******************************************************************************
* Copyright (c) 2018, 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 io.openliberty.jakartaee9.internal.tests;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.runner.RunWith;
import com.ibm.websphere.simplicity.ShrinkHelper;
import com.ibm.websphere.simplicity.ShrinkHelper.DeployOptions;
import componenttest.annotation.Server;
import componenttest.annotation.TestServlet;
import componenttest.custom.junit.runner.FATRunner;
import componenttest.custom.junit.runner.RepeatTestFilter;
import componenttest.rules.repeater.FeatureReplacementAction;
import componenttest.rules.repeater.RepeatTests;
import componenttest.topology.impl.LibertyServer;
import componenttest.topology.utils.FATServletClient;
import io.openliberty.jakartaee9.internal.apps.jakartaee9.web.WebProfile9TestServlet;
@RunWith(FATRunner.class)
public class JakartaEE9Test extends FATServletClient {
@ClassRule
public static RepeatTests repeat = RepeatTests
.with(new FeatureReplacementAction()
.removeFeature("jakartaee-9.1")
.removeFeature("webProfile-9.0")
.removeFeature("webProfile-9.1")
.addFeature("jakartaee-9.0")
.withID("jakartaee90")) //LITE
.andWith(new FeatureReplacementAction()
.removeFeature("jakartaee-9.0")
.removeFeature("jakartaee-9.1")
.removeFeature("webProfile-9.1")
.addFeature("webProfile-9.0")
.withID("webProfile90")
.fullFATOnly())
.andWith(new FeatureReplacementAction()
.removeFeature("jakartaee-9.0")
.removeFeature("webProfile-9.0")
.removeFeature("webProfile-9.1")
.addFeature("jakartaee-9.1")
.withID("jakartaee91")
.fullFATOnly())
.andWith(new FeatureReplacementAction()
.removeFeature("jakartaee-9.0")
.removeFeature("jakartaee-9.1")
.removeFeature("webProfile-9.0")
.addFeature("webProfile-9.1")
.withID("webProfile91")
.fullFATOnly());
public static final String APP_NAME = "webProfile9App";
@Server("jakartaee9.fat")
@TestServlet(servlet = WebProfile9TestServlet.class, contextRoot = APP_NAME)
public static LibertyServer server;
@BeforeClass
public static void setUp() throws Exception {
WebArchive war = ShrinkWrap.create(WebArchive.class, APP_NAME + ".war");
war.addPackages(true, WebProfile9TestServlet.class.getPackage());
war.addAsWebInfResource(WebProfile9TestServlet.class.getPackage(), "persistence.xml", "classes/META-INF/persistence.xml");
EnterpriseArchive earApp = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + ".ear");
earApp.setApplicationXML(WebProfile9TestServlet.class.getPackage(), "application.xml");
earApp.addAsModule(war);
ShrinkHelper.exportDropinAppToServer(server, earApp, DeployOptions.SERVER_ONLY);
String consoleName = JakartaEE9Test.class.getSimpleName() + RepeatTestFilter.getRepeatActionsAsString();
server.startServer(consoleName + ".log");
}
@AfterClass
public static void tearDown() throws Exception {
server.stopServer("SRVE0280E"); // TODO: tracked by OpenLiberty issue #4857
}
} | epl-1.0 |
e4c/EclipseCommander | cane.brothers.e4.commander.table/src/cane/brothers/e4/commander/pathTable/IRootPath.java | 1000 | /*******************************************************************************
* File: IRootPath.java
*
* Date: 2014/08/11
* Author: Mikhail Niedre
*
* Copyright (c) 2014 Original authors 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
* <a href="http://www.eclipse.org/legal/epl-v10.html">epl-v1.0</a>
*
* Contributors:
* Mikhail Niedre - initial API and implementation
*******************************************************************************/
package cane.brothers.e4.commander.pathTable;
import java.nio.file.Path;
/**
* interface for current using path
*
*/
public interface IRootPath {
/**
*
* @return current used path
*/
public Path getRootPath();
/**
* @param path
* the new root path to set
*/
public void setRootPath(Path newPath);
}
| epl-1.0 |
adolfosbh/cs2as | org.xtext.example.delphi/emf-gen/org/xtext/example/delphi/astm/util/AbstractAstmCommonLookupVisitor.java | 1448 | /*******************************************************************************
* <copyright>
*
* </copyright>
*
* This code is auto-generated
* from: org.xtext.example.delphi/model/astm.genmodel
* template: org.eclipse.ocl.examples.build.xtend.GenerateAutoLookupInfrastructureXtend
*
* Only the copyright statement is editable.
*******************************************************************************/
package org.xtext.example.delphi.astm.util;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.ocl.pivot.internal.evaluation.EvaluationCache;
import org.eclipse.ocl.pivot.internal.evaluation.ExecutorInternal.ExecutorInternalExtension;
import org.xtext.example.delphi.astm.lookup.LookupEnvironment;
import org.xtext.example.delphi.astm.util.Visitable;
public abstract class AbstractAstmCommonLookupVisitor
extends AbstractExtendingVisitor<@Nullable LookupEnvironment, @NonNull LookupEnvironment> {
protected final @NonNull EvaluationCache evaluationCache;
protected AbstractAstmCommonLookupVisitor(@NonNull LookupEnvironment context) {
super(context);
this.evaluationCache = ((ExecutorInternalExtension)context.getExecutor()).getEvaluationCache();
}
@Override
public final LookupEnvironment visiting(@NonNull Visitable visitable) {
return doVisiting(visitable);
}
abstract protected LookupEnvironment doVisiting(@NonNull Visitable visitable);
}
| epl-1.0 |
sleshchenko/che | ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/codeassist/CodeAssistantImpl.java | 3819 | /*
* 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.api.editor.codeassist;
import static org.eclipse.che.ide.api.notification.StatusNotification.DisplayMode.EMERGE_MODE;
import static org.eclipse.che.ide.api.notification.StatusNotification.Status.FAIL;
import com.google.gwt.core.client.GWT;
import com.google.inject.assistedinject.Assisted;
import com.google.inject.assistedinject.AssistedInject;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.che.ide.api.editor.partition.DocumentPartitioner;
import org.eclipse.che.ide.api.editor.texteditor.TextEditor;
import org.eclipse.che.ide.api.notification.NotificationManager;
/** Implementation of CodeAssistant. */
public class CodeAssistantImpl implements CodeAssistant {
private final Map<String, CodeAssistProcessor> processors;
private final TextEditor textEditor;
private final DocumentPartitioner partitioner;
private final NotificationManager notificationManager;
private String lastErrorMessage;
public static final AutoCompleteResources res = GWT.create(AutoCompleteResources.class);
@AssistedInject
public CodeAssistantImpl(
@Assisted final DocumentPartitioner partitioner,
@Assisted TextEditor textEditor,
NotificationManager notificationManager) {
this.notificationManager = notificationManager;
processors = new HashMap<>();
res.defaultSimpleListCss().ensureInjected();
res.autocompleteComponentCss().ensureInjected();
res.popupCss().ensureInjected();
this.partitioner = partitioner;
this.textEditor = textEditor;
}
@Override
public void computeCompletionProposals(
final int offset, final boolean triggered, final CodeAssistCallback callback) {
this.lastErrorMessage = "processing";
final CodeAssistProcessor processor = getProcessor(offset);
if (processor != null) {
processor.computeCompletionProposals(textEditor, offset, triggered, callback);
this.lastErrorMessage = processor.getErrorMessage();
if (this.lastErrorMessage != null) {
notificationManager.notify("", lastErrorMessage, FAIL, EMERGE_MODE);
this.textEditor.showMessage(this.lastErrorMessage);
}
} else {
final CodeAssistProcessor fallbackProcessor = getFallbackProcessor();
if (fallbackProcessor != null) {
fallbackProcessor.computeCompletionProposals(textEditor, offset, triggered, callback);
this.lastErrorMessage = fallbackProcessor.getErrorMessage();
if (this.lastErrorMessage != null) {
this.textEditor.showMessage(this.lastErrorMessage);
}
}
}
}
@Override
public CodeAssistProcessor getProcessor(final int offset) {
final String contentType = this.textEditor.getContentType();
if (contentType == null) {
return null;
}
final String type = this.partitioner.getContentType(offset);
return getCodeAssistProcessor(type);
}
private CodeAssistProcessor getFallbackProcessor() {
final CodeAssistProcessor emptyTypeProcessor = getCodeAssistProcessor("");
if (emptyTypeProcessor != null) {
return emptyTypeProcessor;
}
return getCodeAssistProcessor(null);
}
@Override
public CodeAssistProcessor getCodeAssistProcessor(final String contentType) {
return processors.get(contentType);
}
@Override
public void setCodeAssistantProcessor(
final String contentType, final CodeAssistProcessor processor) {
processors.put(contentType, processor);
}
}
| epl-1.0 |
opendaylight/controller | opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/messaging/MessageSlice.java | 4552 | /*
* Copyright (c) 2017 Inocybe Technologies 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.cluster.messaging;
import static java.util.Objects.requireNonNull;
import akka.actor.ActorRef;
import akka.serialization.JavaSerializer;
import akka.serialization.Serialization;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;
import org.opendaylight.yangtools.concepts.Identifier;
/**
* Represents a sliced message chunk.
*
* @author Thomas Pantelis
*/
public class MessageSlice implements Serializable {
private static final long serialVersionUID = 1L;
private final Identifier identifier;
private final byte[] data;
private final int sliceIndex;
private final int totalSlices;
private final int lastSliceHashCode;
private final ActorRef replyTo;
MessageSlice(final Identifier identifier, final byte[] data, final int sliceIndex, final int totalSlices,
final int lastSliceHashCode, final ActorRef replyTo) {
this.identifier = requireNonNull(identifier);
this.data = requireNonNull(data);
this.sliceIndex = sliceIndex;
this.totalSlices = totalSlices;
this.lastSliceHashCode = lastSliceHashCode;
this.replyTo = requireNonNull(replyTo);
}
public Identifier getIdentifier() {
return identifier;
}
@SuppressFBWarnings(value = "EI_EXPOSE_REP", justification = "Exposes a mutable object stored in a field but "
+ "this is OK since this class is merely a DTO and does not process the byte[] internally."
+ "Also it would be inefficient to create a return copy as the byte[] could be large.")
public byte[] getData() {
return data;
}
public int getSliceIndex() {
return sliceIndex;
}
public int getTotalSlices() {
return totalSlices;
}
public int getLastSliceHashCode() {
return lastSliceHashCode;
}
public ActorRef getReplyTo() {
return replyTo;
}
@Override
public String toString() {
return "MessageSlice [identifier=" + identifier + ", data.length=" + data.length + ", sliceIndex="
+ sliceIndex + ", totalSlices=" + totalSlices + ", lastSliceHashCode=" + lastSliceHashCode
+ ", replyTo=" + replyTo + "]";
}
private Object writeReplace() {
return new Proxy(this);
}
private static class Proxy implements Externalizable {
private static final long serialVersionUID = 1L;
private MessageSlice messageSlice;
// checkstyle flags the public modifier as redundant which really doesn't make sense since it clearly isn't
// redundant. It is explicitly needed for Java serialization to be able to create instances via reflection.
@SuppressWarnings("checkstyle:RedundantModifier")
public Proxy() {
}
Proxy(final MessageSlice messageSlice) {
this.messageSlice = messageSlice;
}
@Override
public void writeExternal(final ObjectOutput out) throws IOException {
out.writeObject(messageSlice.identifier);
out.writeInt(messageSlice.sliceIndex);
out.writeInt(messageSlice.totalSlices);
out.writeInt(messageSlice.lastSliceHashCode);
out.writeObject(messageSlice.data);
out.writeObject(Serialization.serializedActorPath(messageSlice.replyTo));
}
@Override
public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {
Identifier identifier = (Identifier) in.readObject();
int sliceIndex = in.readInt();
int totalSlices = in.readInt();
int lastSliceHashCode = in.readInt();
byte[] data = (byte[])in.readObject();
ActorRef replyTo = JavaSerializer.currentSystem().value().provider()
.resolveActorRef((String) in.readObject());
messageSlice = new MessageSlice(identifier, data, sliceIndex, totalSlices, lastSliceHashCode, replyTo);
}
private Object readResolve() {
return messageSlice;
}
}
}
| epl-1.0 |
boniatillo-com/PhaserEditor | source/phasereditor/phasereditor.project.ui/src/phasereditor/project/ui/ProjectUI.java | 2154 | // The MIT License (MIT)
//
// Copyright (c) 2015, 2016 Arian Fornaris
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions: The above copyright notice and this permission
// notice shall be included in all copies or substantial portions of the
// Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
package phasereditor.project.ui;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.statushandlers.StatusManager;
/**
* @author arian
*
*/
public class ProjectUI {
public static final String PLUGIN_ID = Activator.PLUGIN_ID;
public static final String PREF_PROP_PROJECT_WIZARD_GAME_WIDTH = "phasereditor.project.ui.projectWizardGameWidth";
public static final String PREF_PROP_PROJECT_WIZARD_GAME_HEIGHT = "phasereditor.project.ui.projectWizardGameHeight";
public static final String PREF_PROP_PROJECT_WIZARD_LANGUAJE = "phasereditor.project.ui.projectWizardLang";
public static void logError(Exception e) {
e.printStackTrace();
StatusManager.getManager().handle(new Status(IStatus.ERROR, PLUGIN_ID, e.getMessage(), e));
}
public static IPreferenceStore getPreferenceStore() {
return Activator.getDefault().getPreferenceStore();
}
}
| epl-1.0 |
diverse-project/melange | tests/fr.inria.diverse.melange.tests/src/main/java/testcopy/impl/TestcopyFactoryImpl.java | 4413 | /**
*/
package testcopy.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import testcopy.*;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class TestcopyFactoryImpl extends EFactoryImpl implements TestcopyFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static TestcopyFactory init() {
try {
TestcopyFactory theTestcopyFactory = (TestcopyFactory)EPackage.Registry.INSTANCE.getEFactory(TestcopyPackage.eNS_URI);
if (theTestcopyFactory != null) {
return theTestcopyFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new TestcopyFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TestcopyFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case TestcopyPackage.ATTRIBUTES: return createAttributes();
case TestcopyPackage.SIMPLE_REFERENCES: return createSimpleReferences();
case TestcopyPackage.OPPOSITES_A: return createOppositesA();
case TestcopyPackage.OPPOSITES_B: return createOppositesB();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
case TestcopyPackage.MY_ENUM:
return createMyEnumFromString(eDataType, initialValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
case TestcopyPackage.MY_ENUM:
return convertMyEnumToString(eDataType, instanceValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Attributes createAttributes() {
AttributesImpl attributes = new AttributesImpl();
return attributes;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SimpleReferences createSimpleReferences() {
SimpleReferencesImpl simpleReferences = new SimpleReferencesImpl();
return simpleReferences;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public OppositesA createOppositesA() {
OppositesAImpl oppositesA = new OppositesAImpl();
return oppositesA;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public OppositesB createOppositesB() {
OppositesBImpl oppositesB = new OppositesBImpl();
return oppositesB;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MyEnum createMyEnumFromString(EDataType eDataType, String initialValue) {
MyEnum result = MyEnum.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertMyEnumToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TestcopyPackage getTestcopyPackage() {
return (TestcopyPackage)getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static TestcopyPackage getPackage() {
return TestcopyPackage.eINSTANCE;
}
} //TestcopyFactoryImpl
| epl-1.0 |
neubatengog/kura | kura/org.eclipse.kura.linux.net/src/main/java/org/eclipse/kura/linux/net/dhcp/DhcpClientManager.java | 5959 | package org.eclipse.kura.linux.net.dhcp;
import java.io.File;
import org.eclipse.kura.KuraErrorCode;
import org.eclipse.kura.KuraException;
import org.eclipse.kura.core.linux.util.LinuxProcessUtil;
import org.eclipse.kura.linux.net.util.LinuxNetworkUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class DhcpClientManager {
private static final Logger s_logger = LoggerFactory.getLogger(DhcpClientManager.class);
private static DhcpClientTool dhcpClientTool = DhcpClientTool.NONE;
private static final String PID_FILE_DIR = "/var/run";
private static final String LEASES_DIR = "/var/lib/dhclient";
static {
File leasesDirectory = new File(LEASES_DIR);
if (!leasesDirectory.exists()) {
leasesDirectory.mkdirs();
}
dhcpClientTool = getTool();
}
public static DhcpClientTool getTool() {
if (dhcpClientTool == DhcpClientTool.NONE) {
if (LinuxNetworkUtil.toolExists(DhcpClientTool.DHCLIENT.getValue())) {
dhcpClientTool = DhcpClientTool.DHCLIENT;
} else if (LinuxNetworkUtil.toolExists(DhcpClientTool.UDHCPC.getValue())) {
dhcpClientTool = DhcpClientTool.UDHCPC;
}
}
return dhcpClientTool;
}
public static boolean isRunning(String interfaceName) throws KuraException {
int pid = -1;
try {
if (dhcpClientTool == DhcpClientTool.DHCLIENT) {
pid = LinuxProcessUtil.getPid(DhcpClientTool.DHCLIENT.getValue(), new String[]{interfaceName});
} else if (dhcpClientTool == DhcpClientTool.UDHCPC) {
pid = LinuxProcessUtil.getPid(DhcpClientTool.UDHCPC.getValue(), new String[]{interfaceName});
}
return (pid > -1);
} catch (Exception e) {
throw new KuraException(KuraErrorCode.INTERNAL_ERROR, e);
}
}
public static void enable(String interfaceName) throws KuraException {
try {
int pid = -1;
if (dhcpClientTool == DhcpClientTool.DHCLIENT) {
pid = LinuxProcessUtil.getPid(DhcpClientTool.DHCLIENT.getValue(), new String[]{interfaceName});
} else if (dhcpClientTool == DhcpClientTool.UDHCPC) {
pid = LinuxProcessUtil.getPid(DhcpClientTool.UDHCPC.getValue(), new String[]{interfaceName});
}
if (pid >= 0) {
s_logger.info("enable() :: disabling DHCP client for {}", interfaceName);
disable(interfaceName);
}
s_logger.info("enable() :: Starting DHCP client for {}", interfaceName);
LinuxProcessUtil.start(formCommand(interfaceName, true, true), true);
} catch (Exception e) {
throw new KuraException(KuraErrorCode.INTERNAL_ERROR, e);
}
}
public static void disable(String interfaceName) throws KuraException {
int pid = -1;
try {
if (dhcpClientTool == DhcpClientTool.DHCLIENT) {
pid = LinuxProcessUtil.getPid(DhcpClientTool.DHCLIENT.getValue(), new String[]{interfaceName});
} else if (dhcpClientTool == DhcpClientTool.UDHCPC) {
pid = LinuxProcessUtil.getPid(DhcpClientTool.UDHCPC.getValue(), new String[]{interfaceName});
}
if (pid > -1) {
s_logger.info("disable() :: killing DHCP client for {}", interfaceName);
if(LinuxProcessUtil.kill(pid)) {
removePidFile(interfaceName);
} else {
throw new KuraException(KuraErrorCode.INTERNAL_ERROR, "error killing process, pid={}", pid);
}
}
} catch (Exception e) {
throw new KuraException(KuraErrorCode.INTERNAL_ERROR, e);
}
}
public static void releaseCurrentLease(String interfaceName) throws KuraException {
try {
LinuxProcessUtil.start(formReleaseCurrentLeaseCommand(interfaceName), true);
} catch (Exception e) {
throw new KuraException(KuraErrorCode.INTERNAL_ERROR, e);
}
}
private static void removePidFile(String interfaceName) {
File pidFile = new File(getPidFilename(interfaceName));
if (pidFile.exists()) {
pidFile.delete();
}
}
private static String getPidFilename(String interfaceName) {
StringBuilder sb = new StringBuilder(PID_FILE_DIR);
if (dhcpClientTool == DhcpClientTool.DHCLIENT) {
sb.append('/');
sb.append(DhcpClientTool.DHCLIENT.getValue());
sb.append('.');
} else if (dhcpClientTool == DhcpClientTool.UDHCPC) {
sb.append('/');
sb.append(DhcpClientTool.UDHCPC.getValue());
sb.append('-');
}
sb.append(interfaceName);
sb.append(".pid");
return sb.toString();
}
private static String formCommand(String interfaceName, boolean useLeasesFile, boolean usePidFile) {
StringBuilder sb = new StringBuilder();
if (dhcpClientTool == DhcpClientTool.DHCLIENT) {
sb.append(DhcpClientTool.DHCLIENT.getValue());
sb.append(' ');
if (useLeasesFile) {
sb.append(formLeasesOption(interfaceName));
sb.append(' ');
}
if (usePidFile) {
sb.append(" -pf ");
sb.append(getPidFilename(interfaceName));
sb.append(' ');
}
sb.append(interfaceName);
} else if (dhcpClientTool == DhcpClientTool.UDHCPC) {
sb.append(DhcpClientTool.UDHCPC.getValue());
sb.append(" -i ");
sb.append(interfaceName);
sb.append(' ');
if (usePidFile) {
sb.append(getPidFilename(interfaceName));
sb.append(' ');
}
sb.append(" -S");
}
sb.append("\n");
return sb.toString();
}
private static String formReleaseCurrentLeaseCommand(String interfaceName) {
StringBuilder sb = new StringBuilder();
if (dhcpClientTool == DhcpClientTool.DHCLIENT) {
sb.append(DhcpClientTool.DHCLIENT.getValue());
sb.append(" -r ");
sb.append(interfaceName);
} else if (dhcpClientTool == DhcpClientTool.UDHCPC) {
sb.append(DhcpClientTool.UDHCPC.getValue());
sb.append(" -R ");
sb.append("-i ");
sb.append(interfaceName);
}
sb.append("\n");
return sb.toString();
}
private static String formLeasesOption(String interfaceName) {
StringBuffer sb = new StringBuffer();
sb.append("-lf ");
sb.append(LEASES_DIR);
sb.append('/');
sb.append(DhcpClientTool.DHCLIENT.getValue());
sb.append('.');
sb.append(interfaceName);
sb.append(".leases");
return sb.toString();
}
}
| epl-1.0 |
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/namespaceuri/splitpackage/qualified/b/Address.java | 1370 | /*******************************************************************************
* Copyright (c) 2011, 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:
* Blaise Doughan - 2.3 - initial implementation
******************************************************************************/
package org.eclipse.persistence.testing.jaxb.namespaceuri.splitpackage.qualified.b;
public class Address {
private String street;
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
@Override
public boolean equals(Object obj) {
if(null == obj || obj.getClass() != this.getClass()) {
return false;
}
Address address = (Address) obj;
if(null == street) {
return null == address.getStreet();
}
return street.equals(address.getStreet());
}
}
| epl-1.0 |
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/framework/PerformanceRegressionTest.java | 978 | /*******************************************************************************
* Copyright (c) 1998, 2013 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.framework;
/**
* Performance test interface used for sharing behavoir and
* result with EJB tests.
*/
public interface PerformanceRegressionTest extends PerformanceComparisonTest {
}
| epl-1.0 |
ossmeter/ossmeter | metric-providers/org.ossmeter.metricprovider.trans.topics/src/org/ossmeter/metricprovider/trans/topics/model/NewsgroupTopic.java | 2141 | /*******************************************************************************
* Copyright (c) 2014 OSSMETER Partners.
* 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:
* Yannis Korkontzelos - Implementation.
*******************************************************************************/
package org.ossmeter.metricprovider.trans.topics.model;
import com.googlecode.pongo.runtime.Pongo;
import com.googlecode.pongo.runtime.querying.NumericalQueryProducer;
import com.googlecode.pongo.runtime.querying.StringQueryProducer;
public class NewsgroupTopic extends Pongo {
public NewsgroupTopic() {
super();
NEWSGROUPNAME.setOwningType("org.ossmeter.metricprovider.trans.topics.model.NewsgroupTopic");
LABEL.setOwningType("org.ossmeter.metricprovider.trans.topics.model.NewsgroupTopic");
NUMBEROFDOCUMENTS.setOwningType("org.ossmeter.metricprovider.trans.topics.model.NewsgroupTopic");
}
public static StringQueryProducer NEWSGROUPNAME = new StringQueryProducer("newsgroupName");
public static StringQueryProducer LABEL = new StringQueryProducer("label");
public static NumericalQueryProducer NUMBEROFDOCUMENTS = new NumericalQueryProducer("numberOfDocuments");
public String getNewsgroupName() {
return parseString(dbObject.get("newsgroupName")+"", "");
}
public NewsgroupTopic setNewsgroupName(String newsgroupName) {
dbObject.put("newsgroupName", newsgroupName);
notifyChanged();
return this;
}
public String getLabel() {
return parseString(dbObject.get("label")+"", "");
}
public NewsgroupTopic setLabel(String label) {
dbObject.put("label", label);
notifyChanged();
return this;
}
public int getNumberOfDocuments() {
return parseInteger(dbObject.get("numberOfDocuments")+"", 0);
}
public NewsgroupTopic setNumberOfDocuments(int numberOfDocuments) {
dbObject.put("numberOfDocuments", numberOfDocuments);
notifyChanged();
return this;
}
} | epl-1.0 |
sreesoumya/android_proj | My-Project/WiFiDirectRemoteCam/src/com/example/android/wifidirect/Custom_camera_frag.java | 4194 | package com.example.android.wifidirect;
import android.app.Fragment;
import android.content.Context;
import android.content.pm.PackageManager;
import android.hardware.Camera;
import android.hardware.Camera.AutoFocusCallback;
import android.hardware.Camera.PictureCallback;
import android.hardware.Camera.PreviewCallback;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
/**
* Fragment to display camera preview and capture image.
*/
public class Custom_camera_frag extends Fragment implements Camera.PreviewCallback,Camera.PictureCallback{
public static Context mcontext;
private static View mContentView = null;
private Camera mCamera;
private Custom_camera_preview mCameraPreview;
public Callback cb;
public static DeviceDetailFragment fragmentDetails;
public static int count_down = 30;
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
}
@Override
public void onDestroyView() {
super.onDestroyView();
mCamera.stopPreview();
mCamera.unlock();
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mContentView = inflater.inflate(R.layout.camera_frag, null);
mcontext = getActivity();
fragmentDetails = (DeviceDetailFragment) getFragmentManager()
.findFragmentById(R.id.frag_detail);
Log.d("MyCameraApp", "onCreateView()");
if(checkCameraHardware(mcontext))
{
Log.d("MyCameraApp", "Device has camera");
mCamera = getCameraInstance();
}
mCameraPreview = new Custom_camera_preview(mcontext, mCamera,preview_cb);
FrameLayout preview = (FrameLayout) mContentView.findViewById(R.id.camera_preview);
preview.addView(mCameraPreview);
return mContentView;
}
/** Check if this device has a camera */
private boolean checkCameraHardware(Context context) {
if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){
// this device has a camera
return true;
} else {
// no camera on this device
return false;
}
}
/** A safe way to get an instance of the Camera object. */
public static Camera getCameraInstance(){
Log.d("MyCameraApp", "getCameraInstance");
Camera c = null;
try {
c = Camera.open(); // attempt to get a Camera instance
}
catch (Exception e){
// Camera is not available (in use or does not exist)
Log.d("MyCameraApp", "cannot get camera");
e.printStackTrace();
}
return c; // returns null if camera is unavailable
}
public PreviewCallback preview_cb = new PreviewCallback(){
@Override
public void onPreviewFrame(byte[] data, Camera camera) {
count_down --;
Log.d("preview_cb","preview_cb called clicking photo in "+count_down);
if (count_down == 0){
mCamera.takePicture(null, null, mPicture);
}
}
};
@Override
public void onPreviewFrame(byte[] data, Camera camera) {
//preview frame received.. can click the pic now.
count_down --;
if (count_down == 0){
mCamera.takePicture(null, null, mPicture);
}
}
AutoFocusCallback af_cb = new AutoFocusCallback(){
@Override
public void onAutoFocus(boolean success, Camera camera) {
if(success == true){
camera.takePicture(null, null, mPicture);
}
Log.d("af_cb","autofocus CB called success ="+success);
}
};
PictureCallback mPicture = new PictureCallback() {
@Override
public void onPictureTaken(byte[] data, Camera camera) {
mCamera.stopPreview();
count_down = 30;
fragmentDetails.handle_camera_image(data);
}
};
@Override
public void onPictureTaken(byte[] data, Camera camera) {
Log.d("MyCameraApp", "release camera instance and set image");
fragmentDetails.handle_camera_image(data);
camera.stopPreview();
camera.release();
}
}
| epl-1.0 |
zsmartsystems/com.zsmartsystems.zigbee | com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/command/EzspSetRadioChannelRequest.java | 2705 | /**
* Copyright (c) 2016-2022 by the respective copyright holders.
* 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.zsmartsystems.zigbee.dongle.ember.ezsp.command;
import com.zsmartsystems.zigbee.dongle.ember.ezsp.EzspFrameRequest;
import com.zsmartsystems.zigbee.dongle.ember.internal.serializer.EzspSerializer;
/**
* Class to implement the Ember EZSP command <b>setRadioChannel</b>.
* <p>
* Sets the channel to use for sending and receiving messages. For a list of available radio
* channels, see the technical specification for the RF communication module in your
* Developer Kit.
* <p>
* <b>Note:</b> Care should be taken when using this API, as all devices on a network must use
* the same channel.
* <p>
* This class provides methods for processing EZSP commands.
* <p>
* Note that this code is autogenerated. Manual changes may be overwritten.
*
* @author Chris Jackson - Initial contribution of Java code generator
*/
public class EzspSetRadioChannelRequest extends EzspFrameRequest {
public static final int FRAME_ID = 0x9A;
/**
* Desired radio channel.
* <p>
* EZSP type is <i>uint8_t</i> - Java type is {@link int}
*/
private int channel;
/**
* Serialiser used to serialise to binary line data
*/
private EzspSerializer serializer;
/**
* Request constructor
*/
public EzspSetRadioChannelRequest() {
frameId = FRAME_ID;
serializer = new EzspSerializer();
}
/**
* Desired radio channel.
* <p>
* EZSP type is <i>uint8_t</i> - Java type is {@link int}
*
* @return the current channel as {@link int}
*/
public int getChannel() {
return channel;
}
/**
* Desired radio channel.
*
* @param channel the channel to set as {@link int}
*/
public void setChannel(int channel) {
this.channel = channel;
}
@Override
public int[] serialize() {
// Serialize the header
serializeHeader(serializer);
// Serialize the fields
serializer.serializeUInt8(channel);
return serializer.getPayload();
}
@Override
public String toString() {
final StringBuilder builder = new StringBuilder(79);
builder.append("EzspSetRadioChannelRequest [networkId=");
builder.append(networkId);
builder.append(", channel=");
builder.append(channel);
builder.append(']');
return builder.toString();
}
}
| epl-1.0 |
cmaoling/portfolio | name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/theme/ColorsThemeCSSHandler.java | 2151 | package name.abuchen.portfolio.ui.theme;
import org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler;
import org.eclipse.e4.ui.css.core.engine.CSSEngine;
import org.eclipse.e4.ui.css.swt.helpers.CSSSWTColorHelper;
import org.w3c.dom.css.CSSValue;
import name.abuchen.portfolio.ui.util.Colors;
@SuppressWarnings("restriction")
public class ColorsThemeCSSHandler implements ICSSPropertyHandler
{
@Override
public boolean applyCSSProperty(Object element, String property, CSSValue value, String pseudo, CSSEngine engine)
throws Exception
{
if (element instanceof ColorsThemeElementAdapter)
{
Colors.Theme theme = ((ColorsThemeElementAdapter) element).getColorsTheme();
switch (property)
{
case "default-foreground": //$NON-NLS-1$
theme.setDefaultForeground(CSSSWTColorHelper.getRGBA(value));
break;
case "default-background": //$NON-NLS-1$
theme.setDefaultBackground(CSSSWTColorHelper.getRGBA(value));
break;
case "warning-background": //$NON-NLS-1$
theme.setWarningBackground(CSSSWTColorHelper.getRGBA(value));
break;
case "red-background": //$NON-NLS-1$
theme.setRedBackground(CSSSWTColorHelper.getRGBA(value));
break;
case "green-background": //$NON-NLS-1$
theme.setGreenBackground(CSSSWTColorHelper.getRGBA(value));
break;
case "red-foreground": //$NON-NLS-1$
theme.setRedForeground(CSSSWTColorHelper.getRGBA(value));
break;
case "green-foreground": //$NON-NLS-1$
theme.setGreenForeground(CSSSWTColorHelper.getRGBA(value));
break;
case "hyperlink": //$NON-NLS-1$
theme.setHyperlink(CSSSWTColorHelper.getRGBA(value));
break;
default:
}
}
return false;
}
}
| epl-1.0 |
R-Brain/codenvy | wsmaster/codenvy-hosted-machine-authentication/src/main/java/com/codenvy/machine/authentication/server/MachineTokenPermissionsFilter.java | 2229 | /*******************************************************************************
* Copyright (c) [2012] - [2017] 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 com.codenvy.machine.authentication.server;
import org.eclipse.che.api.core.ApiException;
import org.eclipse.che.api.core.ForbiddenException;
import org.eclipse.che.commons.env.EnvironmentContext;
import org.eclipse.che.commons.subject.Subject;
import org.eclipse.che.everrest.CheMethodInvokerFilter;
import org.everrest.core.Filter;
import org.everrest.core.resource.GenericResourceMethod;
import javax.ws.rs.Path;
import static com.codenvy.api.workspace.server.WorkspaceDomain.DOMAIN_ID;
import static com.codenvy.api.workspace.server.WorkspaceDomain.USE;
/**
* Restricts access to methods of {@link com.codenvy.machine.authentication.server.MachineTokenService} by user's permissions
*
* @author Max Shaposhnik (mshaposhnik@codenvy.com)
*/
@Filter
@Path("/machine/token{path:(/.*)?}")
public class MachineTokenPermissionsFilter extends CheMethodInvokerFilter {
@Override
protected void filter(GenericResourceMethod genericResourceMethod, Object[] arguments) throws ApiException {
final String methodName = genericResourceMethod.getMethod().getName();
final Subject currentSubject = EnvironmentContext.getCurrent().getSubject();
String action;
String workspaceId;
switch (methodName) {
case "getMachineToken": {
workspaceId = ((String)arguments[0]);
action = USE;
break;
}
case "getUser": {
return;
}
default:
throw new ForbiddenException("The user does not have permission to perform this operation");
}
currentSubject.checkPermission(DOMAIN_ID, workspaceId, action);
}
}
| epl-1.0 |
zsmartsystems/com.zsmartsystems.zigbee | com.zsmartsystems.zigbee.console.ember/src/main/java/com/zsmartsystems/zigbee/console/ember/EmberConsoleTransientKeyCommand.java | 2215 | /**
* Copyright (c) 2016-2022 by the respective copyright holders.
* 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.zsmartsystems.zigbee.console.ember;
import java.io.PrintStream;
import com.zsmartsystems.zigbee.IeeeAddress;
import com.zsmartsystems.zigbee.ZigBeeNetworkManager;
import com.zsmartsystems.zigbee.dongle.ember.EmberNcp;
import com.zsmartsystems.zigbee.dongle.ember.ezsp.structure.EmberStatus;
import com.zsmartsystems.zigbee.security.ZigBeeKey;
/**
* Handles management of NCP transient link keys
*
* @author Chris Jackson
*
*/
public class EmberConsoleTransientKeyCommand extends EmberConsoleAbstractCommand {
@Override
public String getCommand() {
return "ncptransientkey";
}
@Override
public String getDescription() {
return "Adds a transient link key to the NCP";
}
@Override
public String getSyntax() {
return "IEEEADDRESS KEYDATA";
}
@Override
public String getHelp() {
return "";
}
@Override
public void process(ZigBeeNetworkManager networkManager, String[] args, PrintStream out)
throws IllegalArgumentException {
if (args.length < 2 || args.length > 3) {
throw new IllegalArgumentException("Incorrect number of arguments.");
}
IeeeAddress partner;
try {
partner = new IeeeAddress(args[1]);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Partner address is incorrect format.");
}
ZigBeeKey transientKey;
try {
transientKey = new ZigBeeKey(args[2]);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Transient key is incorrect format.");
}
EmberNcp ncp = getEmberNcp(networkManager);
EmberStatus status = ncp.addTransientLinkKey(partner, transientKey);
out.println("Ember transient key for address " + partner + " resulted in " + status);
}
}
| epl-1.0 |
gorkem/java-language-server | org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/corext/refactoring/nls/changes/CreateFileChange.java | 7192 | /*******************************************************************************
* Copyright (c) 2000, 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
*
* Originally copied from org.eclipse.jdt.internal.corext.refactoring.nls.changes.CreateFileChange
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.ls.core.internal.corext.refactoring.nls.changes;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import org.eclipse.core.filesystem.EFS;
import org.eclipse.core.filesystem.IFileInfo;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.core.runtime.content.IContentType;
import org.eclipse.jdt.core.IJavaModelStatusConstants;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.core.manipulation.util.BasicElementLabels;
import org.eclipse.jdt.ls.core.internal.Messages;
import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
import org.eclipse.ltk.core.refactoring.resource.DeleteResourceChange;
import org.eclipse.ltk.core.refactoring.resource.ResourceChange;
public class CreateFileChange extends ResourceChange {
private String fChangeName;
private IPath fPath;
private String fSource;
private String fEncoding;
private boolean fExplicitEncoding;
private long fStampToRestore;
public CreateFileChange(IPath path, String source, String encoding) {
this(path, source, encoding, IResource.NULL_STAMP);
}
public CreateFileChange(IPath path, String source, String encoding, long stampToRestore) {
Assert.isNotNull(path, "path"); //$NON-NLS-1$
Assert.isNotNull(source, "source"); //$NON-NLS-1$
fPath= path;
fSource= source;
fEncoding= encoding;
fExplicitEncoding= fEncoding != null;
fStampToRestore= stampToRestore;
}
/*
private CreateFileChange(IPath path, String source, String encoding, long stampToRestore, boolean explicit) {
Assert.isNotNull(path, "path"); //$NON-NLS-1$
Assert.isNotNull(source, "source"); //$NON-NLS-1$
Assert.isNotNull(encoding, "encoding"); //$NON-NLS-1$
fPath= path;
fSource= source;
fEncoding= encoding;
fStampToRestore= stampToRestore;
fExplicitEncoding= explicit;
}
*/
protected void setEncoding(String encoding, boolean explicit) {
Assert.isNotNull(encoding, "encoding"); //$NON-NLS-1$
fEncoding= encoding;
fExplicitEncoding= explicit;
}
@Override
public String getName() {
if (fChangeName == null) {
return Messages.format(NLSChangesMessages.createFile_Create_file, BasicElementLabels.getPathLabel(fPath, false));
} else {
return fChangeName;
}
}
public void setName(String name) {
fChangeName= name;
}
protected void setSource(String source) {
fSource= source;
}
protected String getSource() {
return fSource;
}
protected void setPath(IPath path) {
fPath= path;
}
public IPath getPath() {
return fPath;
}
@Override
protected IResource getModifiedResource() {
return ResourcesPlugin.getWorkspace().getRoot().getFile(fPath);
}
@Override
public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException {
RefactoringStatus result= new RefactoringStatus();
IFile file= ResourcesPlugin.getWorkspace().getRoot().getFile(fPath);
URI location= file.getLocationURI();
if (location == null) {
result.addFatalError(Messages.format(
NLSChangesMessages.CreateFileChange_error_unknownLocation,
BasicElementLabels.getPathLabel(file.getFullPath(), false)));
return result;
}
IFileInfo jFile= EFS.getStore(location).fetchInfo();
if (jFile.exists()) {
result.addFatalError(Messages.format(
NLSChangesMessages.CreateFileChange_error_exists,
BasicElementLabels.getPathLabel(file.getFullPath(), false)));
return result;
}
return result;
}
@Override
public Change perform(IProgressMonitor pm) throws CoreException, OperationCanceledException {
InputStream is= null;
try {
pm.beginTask(NLSChangesMessages.createFile_creating_resource, 3);
initializeEncoding();
IFile file= getOldFile(new SubProgressMonitor(pm, 1));
/*
if (file.exists()) {
CompositeChange composite= new CompositeChange(getName());
composite.add(new DeleteFileChange(file));
composite.add(new CreateFileChange(fPath, fSource, fEncoding, fStampToRestore, fExplicitEncoding));
pm.worked(1);
return composite.perform(new SubProgressMonitor(pm, 1));
} else { */
try {
is= new ByteArrayInputStream(fSource.getBytes(fEncoding));
file.create(is, false, new SubProgressMonitor(pm, 1));
if (fStampToRestore != IResource.NULL_STAMP) {
file.revertModificationStamp(fStampToRestore);
}
if (fExplicitEncoding) {
file.setCharset(fEncoding, new SubProgressMonitor(pm, 1));
} else {
pm.worked(1);
}
return new DeleteResourceChange(file.getFullPath(), true);
} catch (UnsupportedEncodingException e) {
throw new JavaModelException(e, IJavaModelStatusConstants.IO_EXCEPTION);
}
} finally {
try {
if (is != null) {
is.close();
}
} catch (IOException ioe) {
throw new JavaModelException(ioe, IJavaModelStatusConstants.IO_EXCEPTION);
} finally {
pm.done();
}
}
}
protected IFile getOldFile(IProgressMonitor pm) throws OperationCanceledException {
pm.beginTask("", 1); //$NON-NLS-1$
try {
return ResourcesPlugin.getWorkspace().getRoot().getFile(fPath);
} finally {
pm.done();
}
}
private void initializeEncoding() {
if (fEncoding == null) {
fExplicitEncoding= false;
IFile file= ResourcesPlugin.getWorkspace().getRoot().getFile(fPath);
if (file != null) {
try {
if (file.exists()) {
fEncoding= file.getCharset(false);
if (fEncoding == null) {
fEncoding= file.getCharset(true);
} else {
fExplicitEncoding= true;
}
} else {
IContentType contentType= Platform.getContentTypeManager().findContentTypeFor(file.getName());
if (contentType != null) {
fEncoding= contentType.getDefaultCharset();
}
if (fEncoding == null) {
fEncoding= file.getCharset(true);
}
}
} catch (CoreException e) {
fEncoding= ResourcesPlugin.getEncoding();
fExplicitEncoding= true;
}
} else {
fEncoding= ResourcesPlugin.getEncoding();
fExplicitEncoding= true;
}
}
Assert.isNotNull(fEncoding);
}
}
| epl-1.0 |
gorkem/java-language-server | org.eclipse.jdt.ls.tests/src/org/eclipse/jdt/ls/core/internal/Util.java | 1207 | /*******************************************************************************
* Copyright (c) 2016-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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.ls.core.internal;
public final class Util {
private Util() {
// private constructor - only static methods are expected
}
public static String convertToIndependentLineDelimiter(String source) {
if (source.indexOf('\n') == -1 && source.indexOf('\r') == -1) {
return source;
}
StringBuilder buffer = new StringBuilder();
for (int i = 0, length = source.length(); i < length; i++) {
char car = source.charAt(i);
if (car == '\r') {
buffer.append('\n');
if (i < length-1 && source.charAt(i+1) == '\n') {
i++; // skip \n after \r
}
} else {
buffer.append(car);
}
}
return buffer.toString();
}
}
| epl-1.0 |
kawasima/enkan | kotowari-scaffold/src/main/java/kotowari/scaffold/command/ScaffoldCommandRegister.java | 13835 | package kotowari.scaffold.command;
import com.github.javaparser.ASTHelper;
import com.github.javaparser.ast.ImportDeclaration;
import enkan.component.ApplicationComponent;
import enkan.component.DataSourceComponent;
import enkan.exception.FalteringEnvironmentException;
import enkan.exception.UnreachableException;
import enkan.system.EnkanSystem;
import enkan.system.Repl;
import enkan.system.repl.SystemCommandRegister;
import kotowari.scaffold.model.EntityField;
import kotowari.scaffold.task.*;
import kotowari.scaffold.util.BasePackageDetector;
import kotowari.scaffold.util.EntitySourceAnalyzer;
import net.sf.jsqlparser.JSQLParserException;
import net.sf.jsqlparser.parser.CCJSqlParserUtil;
import net.sf.jsqlparser.statement.create.table.CreateTable;
import net.unit8.amagicman.Generator;
import net.unit8.amagicman.PathResolver;
import net.unit8.amagicman.PathResolverImpl;
import net.unit8.amagicman.helper.ClassReplaceVisitor;
import net.unit8.amagicman.task.ContentsReplaceTask;
import net.unit8.amagicman.task.JavaByTemplateTask;
import net.unit8.amagicman.task.RewriteJavaSourceTask;
import net.unit8.amagicman.util.CaseConverter;
import net.unit8.erebus.Erebus;
import org.eclipse.aether.collection.DependencyCollectionException;
import org.eclipse.aether.resolution.DependencyResolutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.sql.DataSource;
import java.io.File;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* Registers commands to REPL for scaffold.
*
* @author kawasima
*/
@SuppressWarnings("ALL")
public class ScaffoldCommandRegister implements SystemCommandRegister {
private static final Logger LOG = LoggerFactory.getLogger(ScaffoldCommandRegister.class);
PathResolver pathResolver = new PathResolverImpl(null, "META-INF/amagicman/templates", null);
protected DataSource findDataSource(EnkanSystem system) {
Optional<DataSource> datasource = system.getAllComponents().stream()
.filter(DataSourceComponent.class::isInstance)
.map(DataSourceComponent.class::cast)
.map(DataSourceComponent::getDataSource)
.filter(Objects::nonNull)
.findFirst();
return datasource.orElseThrow(() ->
new IllegalStateException("Application must be started"));
}
protected String findApplicationFactoryPath(EnkanSystem system) {
String factoryClassName = system.getAllComponents().stream()
.filter(c -> c instanceof ApplicationComponent)
.map(c -> ((ApplicationComponent) c).getFactoryClassName())
.findFirst()
.orElseThrow(() -> new IllegalStateException("Application must be started"));
return factoryClassName.replace('.', '/') + ".java";
}
private Generator tableGenerator(String sql, DataSource ds) {
try {
CreateTable stmt = (CreateTable) CCJSqlParserUtil.parse("CREATE TABLE " + sql);
return new Generator()
.writing("migration", g -> g.task(
new FlywayTask("src/main/java", stmt.getTable().getName(), "CREATE TABLE " + sql)));
} catch (JSQLParserException e) {
throw new IllegalArgumentException("Statement generating a table is wrong syntax.", e);
}
}
private String convertToPathString(String packageName) {
return Arrays.stream(packageName.split("\\."))
.filter(s -> !s.isEmpty())
.collect(Collectors.joining("/"));
}
private File getEntitySource(String pkgPath, String tableName) {
try {
return pathResolver.destinationAsFile("src/main/java/" + pkgPath + "/entity/" + CaseConverter.pascalCase(tableName) + ".java");
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
private Generator crudGenerator(String tableName, DataSource ds) {
String pkgName = BasePackageDetector.detect();
String pkgPath = convertToPathString(pkgName);
return new Generator()
.writing("entity", g -> g.task(new DomaEntityTask("src/main/java", tableName, ds)))
.writing("java", g -> {
String className = CaseConverter.pascalCase(tableName);
List<EntityField> fields = new ArrayList<>();
g.task(pathResolver -> {
File entitySource = getEntitySource(pkgPath, tableName);
fields.addAll(new EntitySourceAnalyzer().analyze(entitySource));
});
//noinspection unchecked
g.task(new JavaByTemplateTask(
"src/main/java/scaffold/crud/controller/UserController.java",
"src/main/java/" + pkgPath
+ "/controller/" + className + "Controller.java",
cu -> cu.accept(new ClassReplaceVisitor(
"scaffold.crud.", pkgName,
"user", tableName), null)));
g.task(new FormTask(pkgName, tableName, fields));
//noinspection unchecked
g.task(new JavaByTemplateTask(
"src/main/java/scaffold/crud/dao/UserDao.java",
"src/main/java/" + pkgPath
+ "/dao/" + className + "Dao.java",
cu -> cu.accept(new ClassReplaceVisitor(
"scaffold.crud.", pkgName,
"user", tableName), null)));
String formBase = "src/main/java/" + pkgPath + "/form/FormBase.java";
if (!Files.exists(Paths.get(formBase))) {
//noinspection unchecked
g.task(new JavaByTemplateTask(
"src/main/java/scaffold/crud/form/FormBase.java",
formBase,
cu -> cu.accept(new ClassReplaceVisitor(
"scaffold.crud.", pkgName, "user", "tableName"), null)));
}
})
.writing("ftl", g -> {
Stream.of("edit.ftl", "list.ftl", "new.ftl", "show.ftl").forEach(ftl ->
g.task(new ContentsReplaceTask(
"src/main/resources/templates/user/" + ftl,
"src/main/resources/templates/"
+ CaseConverter.camelCase(tableName)
+ "/" + ftl,
line -> line.replaceAll("user", CaseConverter.camelCase(tableName))
)));
List<EntityField> fields = new ArrayList<>();
g.task(pathResolver -> {
File entitySource = getEntitySource(pkgPath, tableName);
fields.addAll(new EntitySourceAnalyzer().analyze(entitySource));
});
PatternTemplateTask formPartialTask = new PatternTemplateTask("src/main/resources/templates/" + CaseConverter.camelCase(tableName) + "/_form.ftl",
tableName, fields);
formPartialTask
.addMapping(String.class, "src/main/resources/templates/parts/textfield.ftl")
.addMapping(Integer.class, "src/main/resources/templates/parts/textfield.ftl")
.addMapping(Long.class, "src/main/resources/templates/parts/textfield.ftl");
g.task(formPartialTask);
PatternTemplateTask showPartialTask = new PatternTemplateTask("src/main/resources/templates/" + CaseConverter.camelCase(tableName) + "/_show.ftl",
tableName, fields);
showPartialTask
.addMapping(String.class, "src/main/resources/templates/parts/text.ftl")
.addMapping(Integer.class, "src/main/resources/templates/parts/text.ftl")
.addMapping(Long.class, "src/main/resources/templates/parts/text.ftl");
g.task(showPartialTask);
String defaultLayout = "src/main/resources/templates/layout/defaultLayout.ftl";
if (!Files.exists(Paths.get(defaultLayout))) {
g.task(new ContentsReplaceTask(
defaultLayout,
defaultLayout,
line -> line
));
}
})
.writing("sql", g -> Stream.of("selectAll.sql", "selectById.sql").forEach(sql ->
g.task(new ContentsReplaceTask(
"src/main/resources/META-INF/scaffold/crud/dao/UserDao/" + sql,
"src/main/resources/META-INF/" + convertToPathString(pkgName)
+ "/dao/" + CaseConverter.pascalCase(tableName) + "Dao/" + sql,
line -> line.replaceAll("user", tableName)
))));
}
private Generator configureApplicationFactory(Generator gen, String tableName, EnkanSystem system) {
String path = findApplicationFactoryPath(system);
return gen.writing("app", g -> g.task(new RewriteJavaSourceTask("src/main/java/" + path, cu -> {
String controllerClassName = CaseConverter.pascalCase(tableName) + "Controller";
String pkgName = BasePackageDetector.detect();
cu.getImports().add(
new ImportDeclaration(
ASTHelper.createNameExpr(pkgName + "controller." + controllerClassName),
false, false));
cu.accept(new AppendRoutingVisitor(controllerClassName),
new RoutingDefineContext());
})));
}
private void withClassLoader(ClassLoader loader, Runnable runnable) {
ClassLoader orig = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(loader);
try {
runnable.run();
} finally {
Thread.currentThread().setContextClassLoader(orig);
}
}
public void setPathResolver(PathResolver resolver) {
this.pathResolver = resolver;
}
@Override
public void register(Repl repl) {
Erebus erebus = new Erebus.Builder().build();
final ClassLoader scaffoldLoader;
try {
URL[] urls = erebus.resolveAsFiles("net.unit8.enkan:kotowari-crud-scaffold:0.10.0")
.stream()
.map(File::toURI)
.map(uri -> {
try {
return uri.toURL();
} catch (MalformedURLException e) {
throw new UnreachableException(e);
}})
.toArray(URL[]::new);
scaffoldLoader = new URLClassLoader(urls, Thread.currentThread().getContextClassLoader());
} catch (DependencyCollectionException | DependencyResolutionException e) {
throw new FalteringEnvironmentException(e);
}
repl.registerCommand("generate", (system, transport, args) -> {
if (args.length == 0) {
transport.sendOut("Usage: generate [target] [options]");
return true;
}
switch(args[0]) {
case "table":
if (args.length > 1) {
tableGenerator(
Arrays.stream(args)
.skip(1)
.collect(Collectors.joining(" ")),
findDataSource(system))
.setPathResolver(pathResolver)
.addTaskListener(new LoggingTaskListener(transport))
.invoke();
transport.sendOut("Generated table " + args[1]);
} else {
transport.sendOut("Usage: generate table [CREATE TABLE statement]");
}
break;
case "crud":
if (args.length > 1) {
withClassLoader(scaffoldLoader, () -> {
Generator g = crudGenerator(args[1], findDataSource(system));
configureApplicationFactory(g, args[1], system);
g.setPathResolver(pathResolver)
.addTaskListener(new LoggingTaskListener(transport))
.invoke();
});
transport.sendOut("Generated CRUD " + args[1]);
} else {
transport.sendOut("Usage: generate crud [tableName]");
}
break;
default:
transport.sendOut(String.format(Locale.US, "%s is not found.", args[0]));
}
return true;
});
}
}
| epl-1.0 |
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs | jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/tools/EclipseLinkJPQLQueryHelper.java | 5874 | /*******************************************************************************
* Copyright (c) 2011, 2013 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
*
******************************************************************************/
package org.eclipse.persistence.jpa.jpql.tools;
import org.eclipse.persistence.jpa.jpql.AbstractEclipseLinkSemanticValidator;
import org.eclipse.persistence.jpa.jpql.EclipseLinkGrammarValidator;
import org.eclipse.persistence.jpa.jpql.EclipseLinkSemanticValidatorExtension;
import org.eclipse.persistence.jpa.jpql.parser.JPQLGrammar;
import org.eclipse.persistence.jpa.jpql.tools.model.EclipseLinkJPQLQueryBuilder;
import org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder;
import org.eclipse.persistence.jpa.jpql.tools.spi.IQuery;
/**
* This helper can perform the following operations over a JPQL query:
* <ul>
* <li>Calculates the result type of a query: {@link #getResultType()};</li>
* <li>Calculates the type of an input parameter: {@link #getParameterType(String)}.</li>
* <li>Calculates the possible choices to complete the query from a given
* position (used for content assist): {@link #buildContentAssistProposals(int)}.</li>
* <li>Validates the query by introspecting it grammatically and semantically:
* <ul>
* <li>{@link #validate()},</li>
* <li>{@link #validateGrammar()},</li>
* <li>{@link #validateSemantic()}.</li>
* </ul>
* </li>
* <li>Refactoring support:
* <ul>
* <li>{@link #buildBasicRefactoringTool()} provides support for generating the delta of the
* refactoring operation through a collection of {@link TextEdit} objects.</li>
* <li>{@link #buildRefactoringTool()} provides support for refactoring the JPQL query through
* the editable {@link org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject StateObject} and
* once all refactoring operations have been executed, the {@link org.eclipse.persistence.jpa.
* jpql.model.IJPQLQueryFormatter IJPQLQueryFormatter} will generate a new string representation
* of the JPQL query.</li>
* </ul>
* </li>
* </ul>
*
* This helper should be used when the JPQL query is written using the JPQL grammar defined in the
* Java Persistence functional specification 2.1 and it contains the additional support provided by
* EclipseLink.<p>
* <p>
* Provisional API: This interface is part of an interim API that is still under development and
* expected to change significantly before reaching stability. It is available at this early stage
* to solicit feedback from pioneering adopters on the understanding that any code that uses this
* API will almost certainly be broken (repeatedly) as the API evolves.
*
* @version 2.5
* @since 2.4
* @author Pascal Filion
*/
public class EclipseLinkJPQLQueryHelper extends AbstractJPQLQueryHelper {
/**
* Creates a new <code>EclipseLinkJPQLQueryHelper</code>.
*
* @param jpqlGrammar The {@link JPQLGrammar} that will determine how to parse JPQL queries
*/
public EclipseLinkJPQLQueryHelper(JPQLGrammar jpqlGrammar) {
super(jpqlGrammar);
}
/**
* Creates a new <code>EclipseLinkJPQLQueryHelper</code>.
*
* @param queryContext The context used to query information about the JPQL query
*/
public EclipseLinkJPQLQueryHelper(JPQLQueryContext queryContext) {
super(queryContext);
}
/**
* {@inheritDoc}
*/
@Override
public BasicRefactoringTool buildBasicRefactoringTool() {
return new EclipseLinkBasicRefactoringTool(
getQuery().getExpression(),
getGrammar(),
getProvider()
);
}
/**
* {@inheritDoc}
*/
@Override
protected AbstractContentAssistVisitor buildContentAssistVisitor(JPQLQueryContext queryContext) {
return new EclipseLinkContentAssistVisitor(queryContext);
}
/**
* Creates a new {@link EclipseLinkSemanticValidatorExtension}, which will provide additional
* support for non-JPA related information.
*
* @return Either a new concrete instance of {@link EclipseLinkSemanticValidatorExtension} or
* {@link EclipseLinkSemanticValidatorExtension#NULL_EXTENSION} if none is required
*/
protected EclipseLinkSemanticValidatorExtension buildEclipseLinkSemanticValidatorExtension() {
return EclipseLinkSemanticValidatorExtension.NULL_EXTENSION;
}
/**
* {@inheritDoc}
*/
@Override
protected EclipseLinkGrammarValidator buildGrammarValidator(JPQLGrammar jpqlGrammar) {
return new EclipseLinkGrammarValidator(jpqlGrammar);
}
/**
* {@inheritDoc}
*/
@Override
protected JPQLQueryContext buildJPQLQueryContext(JPQLGrammar jpqlGrammar) {
return new EclipseLinkJPQLQueryContext(jpqlGrammar);
}
/**
* Creates the right {@link IJPQLQueryBuilder} based on the JPQL grammar.
*
* @return A new concrete instance of {@link IJPQLQueryBuilder}
*/
protected IJPQLQueryBuilder buildQueryBuilder() {
return new EclipseLinkJPQLQueryBuilder(getGrammar());
}
/**
* {@inheritDoc}
*/
@Override
public RefactoringTool buildRefactoringTool() {
IQuery query = getQuery();
return new DefaultRefactoringTool(
query.getProvider(),
buildQueryBuilder(),
query.getExpression()
);
}
/**
* {@inheritDoc}
*/
@Override
protected AbstractEclipseLinkSemanticValidator buildSemanticValidator(JPQLQueryContext queryContext) {
return new EclipseLinkSemanticValidator(
queryContext,
buildEclipseLinkSemanticValidatorExtension()
);
}
} | epl-1.0 |
debabratahazra/DS | designstudio/components/tapmenu/ui/com.odcgroup.menu.editor/src/main/java/com/odcgroup/menu/editor/properties/MenuPropertiesViewActionHandler.java | 12137 | package com.odcgroup.menu.editor.properties;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IActionBars;
import com.odcgroup.workbench.ui.help.IOfsHelpContextIds;
import com.odcgroup.workbench.ui.help.OfsHelpHelper;
public class MenuPropertiesViewActionHandler {
/**
*
*/
private class SelectAllActionHandler extends Action {
/* (non-Javadoc)
* @see org.eclipse.jface.action.Action#runWithEvent(org.eclipse.swt.widgets.Event)
*/
public void runWithEvent(Event event) {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
if (activeTextControl instanceof Text)
((Text) activeTextControl).selectAll();
if (activeTextControl instanceof StyledText)
((StyledText) activeTextControl).selectAll();
return;
}
if (selectAllAction != null) {
selectAllAction.runWithEvent(event);
return;
} else {
return;
}
}
/**
*
*/
public void updateEnabledState() {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
setEnabled(true);
return;
}
if (selectAllAction != null) {
setEnabled(selectAllAction.isEnabled());
return;
} else {
setEnabled(false);
return;
}
}
/**
*
*/
protected SelectAllActionHandler() {
super("Select All");
setId("TextSelectAllActionHandler");
setEnabled(false);
}
}
private class PasteActionHandler extends Action {
/* (non-Javadoc)
* @see org.eclipse.jface.action.Action#runWithEvent(org.eclipse.swt.widgets.Event)
*/
public void runWithEvent(Event event) {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
if (activeTextControl instanceof Text)
((Text) activeTextControl).paste();
if (activeTextControl instanceof StyledText)
((StyledText) activeTextControl).paste();
return;
}
if (pasteAction != null) {
pasteAction.runWithEvent(event);
return;
} else {
return;
}
}
/**
*
*/
public void updateEnabledState() {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
setEnabled(true);
return;
}
if (pasteAction != null) {
setEnabled(pasteAction.isEnabled());
return;
} else {
setEnabled(false);
return;
}
}
/**
*
*/
protected PasteActionHandler() {
super("Paste");
setId("TextPasteActionHandler");
setEnabled(false);
}
}
private class CopyActionHandler extends Action {
/* (non-Javadoc)
* @see org.eclipse.jface.action.Action#runWithEvent(org.eclipse.swt.widgets.Event)
*/
public void runWithEvent(Event event) {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
if (activeTextControl instanceof Text)
((Text) activeTextControl).copy();
if (activeTextControl instanceof StyledText)
((StyledText) activeTextControl).copy();
return;
}
if (copyAction != null) {
copyAction.runWithEvent(event);
return;
} else {
return;
}
}
public void updateEnabledState() {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
setEnabled(true);
return;
}
if (copyAction != null) {
setEnabled(copyAction.isEnabled());
return;
} else {
setEnabled(false);
return;
}
}
protected CopyActionHandler() {
super("Copy");
setId("TextCopyActionHandler");
setEnabled(false);
}
}
private class CutActionHandler extends Action {
public void runWithEvent(Event event) {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
if (activeTextControl instanceof Text)
((Text) activeTextControl).cut();
if (activeTextControl instanceof StyledText)
((StyledText) activeTextControl).cut();
return;
}
if (cutAction != null) {
cutAction.runWithEvent(event);
return;
} else {
return;
}
}
public void updateEnabledState() {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
setEnabled(true);
return;
}
if (cutAction != null) {
setEnabled(cutAction.isEnabled());
return;
} else {
setEnabled(false);
return;
}
}
protected CutActionHandler() {
super("Cut");
setId("TextCutActionHandler");
setEnabled(false);
}
}
private class DeleteActionHandler extends Action {
public void runWithEvent(Event event) {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
if (activeTextControl instanceof Text)
((Text) activeTextControl).clearSelection();
if (!(activeTextControl instanceof StyledText))
;
return;
}
if (deleteAction != null) {
deleteAction.runWithEvent(event);
return;
} else {
return;
}
}
public void updateEnabledState() {
if (activeTextControl != null && !activeTextControl.isDisposed()) {
setEnabled(true);
return;
}
if (deleteAction != null) {
setEnabled(deleteAction.isEnabled());
return;
} else {
setEnabled(false);
return;
}
}
protected DeleteActionHandler() {
super("Delete");
setId("TextDeleteActionHandler");
setEnabled(false);
}
}
private class PropertyChangeListener implements IPropertyChangeListener {
public void propertyChange(PropertyChangeEvent event) {
if (activeTextControl != null)
return;
if (event.getProperty().equals("enabled")) {
Boolean bool = (Boolean) event.getNewValue();
actionHandler.setEnabled(bool.booleanValue());
}
}
private IAction actionHandler;
protected PropertyChangeListener(IAction actionHandler) {
this.actionHandler = actionHandler;
}
}
/**
*
*/
private class TextControlListener implements Listener {
public void handleEvent(Event event) {
switch (event.type) {
case 26: // '\032'
activeTextControl = (Control) event.widget;
updateActionsEnableState();
break;
case 27: // '\033'
activeTextControl = null;
updateActionsEnableState();
break;
}
}
private TextControlListener() {
}
}
/**
* @param actionBar
*/
public MenuPropertiesViewActionHandler(IActionBars actionBar) {
textDeleteAction = new DeleteActionHandler();
textCutAction = new CutActionHandler();
textCopyAction = new CopyActionHandler();
textPasteAction = new PasteActionHandler();
textSelectAllAction = new SelectAllActionHandler();
deleteActionListener = new PropertyChangeListener(textDeleteAction);
cutActionListener = new PropertyChangeListener(textCutAction);
copyActionListener = new PropertyChangeListener(textCopyAction);
pasteActionListener = new PropertyChangeListener(textPasteAction);
selectAllActionListener = new PropertyChangeListener(
textSelectAllAction);
textControlListener = new TextControlListener();
mouseAdapter = new MouseAdapter() {
public void mouseUp(MouseEvent e) {
updateActionsEnableState();
}
};
keyAdapter = new KeyAdapter() {
public void keyReleased(KeyEvent e) {
updateActionsEnableState();
}
};
actionBar.setGlobalActionHandler("cut", textCutAction);
actionBar.setGlobalActionHandler("copy", textCopyAction);
actionBar.setGlobalActionHandler("paste", textPasteAction);
actionBar.setGlobalActionHandler("selectAll", textSelectAllAction);
actionBar.setGlobalActionHandler("delete", textDeleteAction);
actionBar.getToolBarManager().add(OfsHelpHelper.createHelpAction(IOfsHelpContextIds.PAGEFLOW_PROPERTIES));
}
/**
* @param textControl
*/
public void addText(Text textControl) {
if (textControl == null) {
return;
} else {
activeTextControl = textControl;
textControl.addListener(26, textControlListener);
textControl.addListener(27, textControlListener);
textControl.addKeyListener(keyAdapter);
textControl.addMouseListener(mouseAdapter);
return;
}
}
/**
* @param control
*/
public void addControl(Control control) {
if (control == null)
return;
if (control instanceof Text) {
addText((Text) control);
return;
}
if (control instanceof StyledText) {
activeTextControl = control;
control.addListener(26, textControlListener);
control.addListener(27, textControlListener);
control.addKeyListener(keyAdapter);
control.addMouseListener(mouseAdapter);
}
}
/**
*
*/
public void dispose() {
setCutAction(null);
setCopyAction(null);
setPasteAction(null);
setSelectAllAction(null);
setDeleteAction(null);
}
/**
* @param control
*/
public void removeControl(Control control) {
if (control == null) {
return;
} else {
control.removeListener(26, textControlListener);
control.removeListener(27, textControlListener);
control.removeMouseListener(mouseAdapter);
control.removeKeyListener(keyAdapter);
activeTextControl = null;
updateActionsEnableState();
return;
}
}
/**
* @param action
*/
public void setCopyAction(IAction action) {
if (copyAction == action)
return;
if (copyAction != null)
copyAction.removePropertyChangeListener(copyActionListener);
copyAction = action;
if (copyAction != null)
copyAction.addPropertyChangeListener(copyActionListener);
textCopyAction.updateEnabledState();
}
/**
* @param action
*/
public void setCutAction(IAction action) {
if (cutAction == action)
return;
if (cutAction != null)
cutAction.removePropertyChangeListener(cutActionListener);
cutAction = action;
if (cutAction != null)
cutAction.addPropertyChangeListener(cutActionListener);
textCutAction.updateEnabledState();
}
/**
* @param action
*/
public void setPasteAction(IAction action) {
if (pasteAction == action)
return;
if (pasteAction != null)
pasteAction.removePropertyChangeListener(pasteActionListener);
pasteAction = action;
if (pasteAction != null)
pasteAction.addPropertyChangeListener(pasteActionListener);
textPasteAction.updateEnabledState();
}
/**
* @param action
*/
public void setSelectAllAction(IAction action) {
if (selectAllAction == action)
return;
if (selectAllAction != null)
selectAllAction
.removePropertyChangeListener(selectAllActionListener);
selectAllAction = action;
if (selectAllAction != null)
selectAllAction.addPropertyChangeListener(selectAllActionListener);
textSelectAllAction.updateEnabledState();
}
/**
* @param action
*/
public void setDeleteAction(IAction action) {
if (deleteAction == action)
return;
if (deleteAction != null)
deleteAction.removePropertyChangeListener(deleteActionListener);
deleteAction = action;
if (deleteAction != null)
deleteAction.addPropertyChangeListener(deleteActionListener);
textDeleteAction.updateEnabledState();
}
/**
*
*/
void updateActionsEnableState() {
textCutAction.updateEnabledState();
textCopyAction.updateEnabledState();
textPasteAction.updateEnabledState();
textSelectAllAction.updateEnabledState();
textDeleteAction.updateEnabledState();
}
private DeleteActionHandler textDeleteAction;
private CutActionHandler textCutAction;
private CopyActionHandler textCopyAction;
private PasteActionHandler textPasteAction;
private SelectAllActionHandler textSelectAllAction;
IAction deleteAction;
IAction cutAction;
IAction copyAction;
IAction pasteAction;
IAction selectAllAction;
private IPropertyChangeListener deleteActionListener;
private IPropertyChangeListener cutActionListener;
private IPropertyChangeListener copyActionListener;
private IPropertyChangeListener pasteActionListener;
private IPropertyChangeListener selectAllActionListener;
private Listener textControlListener;
Control activeTextControl;
private MouseAdapter mouseAdapter;
private KeyAdapter keyAdapter;
}
| epl-1.0 |
Axellience/emfgwt | emf-ecore/src/main/java/org/eclipse/emf/ecore/xml/namespace/util/XMLNamespaceValidator.java | 6961 | /**
* Copyright (c) 2005-2010 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 - Initial API and implementation
*/
package org.eclipse.emf.ecore.xml.namespace.util;
import java.util.Map;
import org.eclipse.emf.common.util.BasicDiagnostic;
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.eclipse.emf.ecore.util.EObjectValidator;
import org.eclipse.emf.ecore.xml.namespace.*;
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator;
/**
* <!-- begin-user-doc -->
* The <b>Validator</b> for the model.
* <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage
* @generated
*/
public class XMLNamespaceValidator extends EObjectValidator
{
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final XMLNamespaceValidator INSTANCE = new XMLNamespaceValidator();
/**
* A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source} of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.emf.common.util.Diagnostic#getSource()
* @see org.eclipse.emf.common.util.Diagnostic#getCode()
* @generated
*/
public static final String DIAGNOSTIC_SOURCE = "org.eclipse.emf.ecore.xml.namespace";
/**
* A constant with a fixed name that can be used as the base value for additional hand written constants.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0;
/**
* A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT;
/**
* The cached base package validator.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected XMLTypeValidator xmlTypeValidator;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public XMLNamespaceValidator()
{
super();
xmlTypeValidator = XMLTypeValidator.INSTANCE;
}
/**
* Returns the package of this validator switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EPackage getEPackage()
{
return XMLNamespacePackage.eINSTANCE;
}
/**
* Calls <code>validateXXX</code> for the corresponding classifier of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context)
{
switch (classifierID)
{
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT:
return validateXMLNamespaceDocumentRoot((XMLNamespaceDocumentRoot)value, diagnostics, context);
case XMLNamespacePackage.SPACE_TYPE:
return validateSpaceType((SpaceType)value, diagnostics, context);
case XMLNamespacePackage.LANG_TYPE:
return validateLangType((String)value, diagnostics, context);
case XMLNamespacePackage.LANG_TYPE_NULL:
return validateLangTypeNull((String)value, diagnostics, context);
case XMLNamespacePackage.SPACE_TYPE_OBJECT:
return validateSpaceTypeObject((SpaceType)value, diagnostics, context);
default:
return true;
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateXMLNamespaceDocumentRoot(XMLNamespaceDocumentRoot xmlNamespaceDocumentRoot, DiagnosticChain diagnostics, Map<Object, Object> context)
{
return validate_EveryDefaultConstraint(xmlNamespaceDocumentRoot, diagnostics, context);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateSpaceType(SpaceType spaceType, DiagnosticChain diagnostics, Map<Object, Object> context)
{
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateLangType(String langType, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = validateLangType_MemberTypes(langType, diagnostics, context);
return result;
}
/**
* Validates the MemberTypes constraint of '<em>Lang Type</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateLangType_MemberTypes(String langType, DiagnosticChain diagnostics, Map<Object, Object> context)
{
if (diagnostics != null)
{
BasicDiagnostic tempDiagnostics = new BasicDiagnostic();
if (XMLTypePackage.Literals.LANGUAGE.isInstance(langType))
{
if (xmlTypeValidator.validateLanguage(langType, tempDiagnostics, context)) return true;
}
if (XMLNamespacePackage.Literals.LANG_TYPE_NULL.isInstance(langType))
{
if (validateLangTypeNull(langType, tempDiagnostics, context)) return true;
}
for (Diagnostic diagnostic : tempDiagnostics.getChildren())
{
diagnostics.add(diagnostic);
}
}
else
{
if (XMLTypePackage.Literals.LANGUAGE.isInstance(langType))
{
if (xmlTypeValidator.validateLanguage(langType, null, context)) return true;
}
if (XMLNamespacePackage.Literals.LANG_TYPE_NULL.isInstance(langType))
{
if (validateLangTypeNull(langType, null, context)) return true;
}
}
return false;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateLangTypeNull(String langTypeNull, DiagnosticChain diagnostics, Map<Object, Object> context)
{
return true;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateSpaceTypeObject(SpaceType spaceTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context)
{
return true;
}
/**
* Returns the resource locator that will be used to fetch messages for this validator's diagnostics.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
@Override
public ResourceLocator getResourceLocator()
{
return EcorePlugin.INSTANCE;
}
} //XMLNamespaceValidator
| epl-1.0 |
codenvy/che-core | che-core-git-server/src/main/java/com/codenvy/ide/git/VFSPermissionsFilter.java | 9545 | /*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* 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:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package com.codenvy.ide.git;
import org.eclipse.che.api.auth.shared.dto.Credentials;
import org.eclipse.che.api.core.ConflictException;
import org.eclipse.che.api.core.ForbiddenException;
import org.eclipse.che.api.core.NotFoundException;
import org.eclipse.che.api.core.ServerException;
import org.eclipse.che.api.core.UnauthorizedException;
import org.eclipse.che.api.core.rest.HttpJsonHelper;
import org.eclipse.che.api.core.rest.shared.dto.Link;
import org.eclipse.che.commons.lang.Pair;
import org.eclipse.che.commons.user.User;
import org.eclipse.che.api.auth.shared.dto.Token;
import org.eclipse.che.commons.env.EnvironmentContext;
import org.eclipse.che.commons.json.JsonHelper;
import org.eclipse.che.commons.json.JsonParseException;
import org.eclipse.che.commons.user.UserImpl;
import org.eclipse.che.dto.server.DtoFactory;
import org.apache.commons.codec.binary.Base64;
import org.everrest.core.impl.provider.json.JsonValue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.net.URLEncoder;
import java.nio.file.Paths;
import java.util.Collections;
import java.util.regex.Matcher;
/**
* If user doesn't have permissions to repository, filter will deny request with 403.
* Filter tries to access api/vfs for given project and if no access, request
*
* will be denied with 403 FORBIDDEN.
*
* @author Max Shaposhnik
*/
@Singleton
public class VFSPermissionsFilter implements Filter {
@Inject
@Named("api.endpoint")
String apiEndPoint;
@Inject
@Named("vfs.local.fs_root_dir")
String vfsRoot;
@Inject
@Named("git.server.uri.prefix")
String gitServerUriPrefix;
private static final Logger LOG = LoggerFactory.getLogger(VFSPermissionsFilter.class);
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest)request;
int tokenPlace;
String lastTokenBeforePath = "/" + gitServerUriPrefix + "/";
if ((tokenPlace = req.getRequestURL().indexOf(lastTokenBeforePath)) != -1) {
//get path to project
String url = req.getRequestURL().substring(tokenPlace + lastTokenBeforePath.length());
url = url.replaceFirst("/info/refs", "");
url = url.replaceFirst("/git-upload-pack", "");
//adaptation to fs
url = url.replaceAll("/", Matcher.quoteReplacement(File.separator));
//search for dotVFS directory
File projectDirectory = Paths.get(vfsRoot, url).toFile();
String auth;
String userName = "";
String password = "";
if ((auth = req.getHeader("authorization")) != null) {
//get encoded password phrase
String userAndPasswordEncoded = auth.substring(6);
// decode Base64 user:password
String userAndPasswordDecoded = new String(Base64.decodeBase64(userAndPasswordEncoded));
//get username and password separator ':'
int betweenUserAndPassword = userAndPasswordDecoded.indexOf(':');
//get username - it is before first ':'
userName = userAndPasswordDecoded.substring(0, betweenUserAndPassword);
//get password - it is after first ':'
password = userAndPasswordDecoded.substring(betweenUserAndPassword + 1);
}
// Check if user authenticated and has permissions to project, or send response code 403
boolean needLogout = false;
String token = null;
User user;
try {
if (!userName.isEmpty()) {
if (password.equals("x-che")) { // internal SSO
token = userName;
} else {
token = getToken(userName, password);
if (token == null) {
((HttpServletResponse)response).sendError(HttpServletResponse.SC_FORBIDDEN);
return;
}
needLogout = true;
}
user = getUserBySSO(token);
EnvironmentContext.getCurrent().setUser(user);
}
if (!hasAccessToItem(projectDirectory.getParentFile().getName(), projectDirectory.getName())) {
if (!userName.isEmpty()) {
// Authenticated but no access
((HttpServletResponse)response).sendError(HttpServletResponse.SC_FORBIDDEN);
return;
} else {
// Not authenticated, try again with credentials
((HttpServletResponse)response).addHeader("Cache-Control", "private");
((HttpServletResponse)response).addHeader("WWW-Authenticate", "Basic");
((HttpServletResponse)response).sendError(HttpServletResponse.SC_UNAUTHORIZED);
return;
}
}
} finally {
if (needLogout) {
logout();
}
EnvironmentContext.reset();
}
}
chain.doFilter(req, response);
}
@Override
public void destroy() {
}
private User getUserBySSO(String token) throws ServletException {
try {
String response = HttpJsonHelper.requestString(apiEndPoint + "/internal/sso/server/" + token,
"GET", null, Pair.of("clienturl", URLEncoder.encode(apiEndPoint, "UTF-8")));
JsonValue value = JsonHelper.parseJson(response);
return new UserImpl(value.getElement("name").getStringValue(),
value.getElement("id").getStringValue(),
value.getElement("token").getStringValue(),
Collections.<String>emptySet(),
value.getElement("temporary").getBooleanValue());
} catch (ForbiddenException | UnauthorizedException | ServerException un) {
return null;
} catch (ConflictException | NotFoundException | IOException | JsonParseException e) {
LOG.warn(e.getLocalizedMessage());
throw new ServletException(e.getMessage(), e);
}
}
private String getToken(String username, String password) throws ServletException {
try {
Token token = HttpJsonHelper.request(Token.class,
DtoFactory.getInstance().createDto(Link.class).withMethod("POST")
.withHref(apiEndPoint + "/auth/login/"),
DtoFactory.getInstance().createDto(Credentials.class)
.withUsername(username).withPassword(password));
return token.getValue();
} catch (ForbiddenException | UnauthorizedException un) {
return null;
} catch (ConflictException | ServerException | NotFoundException | IOException e) {
LOG.warn(e.getLocalizedMessage());
throw new ServletException(e.getMessage(), e);
}
}
private boolean hasAccessToItem(String workspaceId, String projectName) throws ServletException {
// Trying to access http://codenvy.com/api/vfs/workspacecs037e4z3mp867le/v2/itembypath/projectname
// we dont need any entity, just to know if we have access or no.
try {
HttpJsonHelper.requestString(apiEndPoint + "/vfs/" + workspaceId + "/v2/itembypath/" + projectName,
"GET", null);
return true;
} catch (ForbiddenException | UnauthorizedException un) {
return false;
} catch (ConflictException | ServerException | NotFoundException | IOException e) {
LOG.warn(e.getLocalizedMessage());
throw new ServletException(e.getMessage(), e);
}
}
private void logout() {
try {
HttpJsonHelper.requestString(apiEndPoint + "/auth/logout/","GET", null);
} catch (ForbiddenException | UnauthorizedException un) {
// OK already logout
} catch (ConflictException | ServerException | NotFoundException | IOException e) {
LOG.warn(e.getLocalizedMessage());
}
}
}
| epl-1.0 |
debrief/debrief | org.mwc.cmap.legacy/src/MWC/GUI/Tools/Operations/CloneUtil.java | 2175 | /*
* Debrief - the Open Source Maritime Analysis Application
* http://debrief.info
*
* (C) 2000-2016, Deep Blue C Technology Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Eclipse Public License v1.0
* (http://www.eclipse.org/legal/epl-v10.html)
*
* 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.
*/
package MWC.GUI.Tools.Operations;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectStreamClass;
import MWC.GUI.Plottable;
/**
* @author Ayesha
*
*/
public class CloneUtil {
//////////////////////////////////////////////
// clone items, using "Serializable" interface
/////////////////////////////////////////////////
static public Plottable cloneThis(final Plottable item) {
Plottable res = null;
try {
final ByteArrayOutputStream bas = new ByteArrayOutputStream();
final ObjectOutputStream oos = new ObjectOutputStream(bas);
oos.writeObject(item);
// get closure
oos.close();
bas.close();
// now get the item
final byte[] bt = bas.toByteArray();
// and read it back in as a new item
final ByteArrayInputStream bis = new ByteArrayInputStream(bt);
// create the reader with class loader from original ClassLoader
final ObjectInputStream iis = new ObjectInputStream(bis) {
@Override
protected Class<?> resolveClass(final ObjectStreamClass desc)
throws IOException, ClassNotFoundException {
return item.getClass().getClassLoader().loadClass(desc.getName());
}
};
// and read it in
final Object oj = iis.readObject();
// get more closure
bis.close();
iis.close();
if (oj instanceof Plottable) {
res = (Plottable) oj;
}
} catch (final Exception e) {
MWC.Utilities.Errors.Trace.trace(e);
}
return res;
}
}
| epl-1.0 |
DavidGutknecht/elexis-3-base | bundles/at.medevit.elexis.tarmed.model/src-gen/ch/fd/invoice450/response/AgreementMethodType.java | 4230 | //
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2020.05.20 um 02:13:04 PM CEST
//
package ch.fd.invoice450.response;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java-Klasse für AgreementMethodType complex type.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
*
* <pre>
* <complexType name="AgreementMethodType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="KA-Nonce" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
* <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
* <element name="OriginatorKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
* <element name="RecipientKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
* </sequence>
* <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AgreementMethodType", namespace = "http://www.w3.org/2001/04/xmlenc#", propOrder = {
"content"
})
public class AgreementMethodType {
@XmlElementRefs({
@XmlElementRef(name = "KA-Nonce", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class, required = false),
@XmlElementRef(name = "RecipientKeyInfo", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class, required = false),
@XmlElementRef(name = "OriginatorKeyInfo", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class, required = false)
})
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
@XmlAttribute(name = "Algorithm", required = true)
@XmlSchemaType(name = "anyURI")
protected String algorithm;
/**
* Gets the value of the content property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
* {@link Object }
* {@link JAXBElement }{@code <}{@link byte[]}{@code >}
* {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
* {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
/**
* Ruft den Wert der algorithm-Eigenschaft ab.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAlgorithm() {
return algorithm;
}
/**
* Legt den Wert der algorithm-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAlgorithm(String value) {
this.algorithm = value;
}
}
| epl-1.0 |
pepezhao/linghongbao | src/net/tsz/afinal/core/Arrays.java | 81596 | /*
* 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 net.tsz.afinal.core;
import java.io.Serializable;
import java.lang.reflect.Array;
import java.util.AbstractList;
import java.util.Comparator;
import java.util.List;
import java.util.RandomAccess;
/**
* {@code Arrays} contains static methods which operate on arrays.
*
* @since 1.2
*/
public class Arrays {
private static class ArrayList<E> extends AbstractList<E> implements
List<E>, Serializable, RandomAccess {
private static final long serialVersionUID = -2764017481108945198L;
private final E[] a;
ArrayList(E[] storage) {
if (storage == null) {
throw new NullPointerException();
}
a = storage;
}
@Override
public boolean contains(Object object) {
if (object != null) {
for (E element : a) {
if (object.equals(element)) {
return true;
}
}
} else {
for (E element : a) {
if (element == null) {
return true;
}
}
}
return false;
}
@Override
public E get(int location) {
try {
return a[location];
} catch (ArrayIndexOutOfBoundsException e) {
// throw
// java.util.ArrayList.throwIndexOutOfBoundsException(location,
// a.length);
throw e;
}
}
@Override
public int indexOf(Object object) {
if (object != null) {
for (int i = 0; i < a.length; i++) {
if (object.equals(a[i])) {
return i;
}
}
} else {
for (int i = 0; i < a.length; i++) {
if (a[i] == null) {
return i;
}
}
}
return -1;
}
@Override
public int lastIndexOf(Object object) {
if (object != null) {
for (int i = a.length - 1; i >= 0; i--) {
if (object.equals(a[i])) {
return i;
}
}
} else {
for (int i = a.length - 1; i >= 0; i--) {
if (a[i] == null) {
return i;
}
}
}
return -1;
}
@Override
public E set(int location, E object) {
E result = a[location];
a[location] = object;
return result;
}
@Override
public int size() {
return a.length;
}
@Override
public Object[] toArray() {
return a.clone();
}
@SuppressWarnings("unchecked")
@Override
public <T> T[] toArray(T[] contents) {
int size = size();
if (size > contents.length) {
Class<?> ct = contents.getClass().getComponentType();
contents = (T[]) Array.newInstance(ct, size);
}
System.arraycopy(a, 0, contents, 0, size);
if (size < contents.length) {
contents[size] = null;
}
return contents;
}
}
private Arrays() {
/* empty */
}
/**
* Returns a {@code List} of the objects in the specified array. The size of
* the {@code List} cannot be modified, i.e. adding and removing are
* unsupported, but the elements can be set. Setting an element modifies the
* underlying array.
*
* @param array
* the array.
* @return a {@code List} of the elements of the specified array.
*/
public static <T> List<T> asList(T... array) {
return new ArrayList<T>(array);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}. Searching in an unsorted array has an undefined result.
* It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
*/
public static int binarySearch(byte[] array, byte value) {
return binarySearch(array, 0, array.length, value);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, in the range specified by fromIndex (inclusive) and
* toIndex (exclusive). Searching in an unsorted array has an undefined
* result. It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param startIndex
* the inclusive start index.
* @param endIndex
* the exclusive start index.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws IllegalArgumentException
* if {@code startIndex > endIndex}
* @throws ArrayIndexOutOfBoundsException
* if {@code startIndex < 0 || endIndex > array.length}
* @since 1.6
*/
public static int binarySearch(byte[] array, int startIndex, int endIndex,
byte value) {
checkBinarySearchBounds(startIndex, endIndex, array.length);
int lo = startIndex;
int hi = endIndex - 1;
while (lo <= hi) {
int mid = (lo + hi) >>> 1;
byte midVal = array[mid];
if (midVal < value) {
lo = mid + 1;
} else if (midVal > value) {
hi = mid - 1;
} else {
return mid; // value found
}
}
return ~lo; // value not present
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}. Searching in an unsorted array has an undefined result.
* It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
*/
public static int binarySearch(char[] array, char value) {
return binarySearch(array, 0, array.length, value);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, in the range specified by fromIndex (inclusive) and
* toIndex (exclusive). Searching in an unsorted array has an undefined
* result. It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param startIndex
* the inclusive start index.
* @param endIndex
* the exclusive start index.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws IllegalArgumentException
* if {@code startIndex > endIndex}
* @throws ArrayIndexOutOfBoundsException
* if {@code startIndex < 0 || endIndex > array.length}
* @since 1.6
*/
public static int binarySearch(char[] array, int startIndex, int endIndex,
char value) {
checkBinarySearchBounds(startIndex, endIndex, array.length);
int lo = startIndex;
int hi = endIndex - 1;
while (lo <= hi) {
int mid = (lo + hi) >>> 1;
char midVal = array[mid];
if (midVal < value) {
lo = mid + 1;
} else if (midVal > value) {
hi = mid - 1;
} else {
return mid; // value found
}
}
return ~lo; // value not present
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}. Searching in an unsorted array has an undefined result.
* It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
*/
public static int binarySearch(double[] array, double value) {
return binarySearch(array, 0, array.length, value);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, in the range specified by fromIndex (inclusive) and
* toIndex (exclusive). Searching in an unsorted array has an undefined
* result. It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param startIndex
* the inclusive start index.
* @param endIndex
* the exclusive start index.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws IllegalArgumentException
* if {@code startIndex > endIndex}
* @throws ArrayIndexOutOfBoundsException
* if {@code startIndex < 0 || endIndex > array.length}
* @since 1.6
*/
public static int binarySearch(double[] array, int startIndex,
int endIndex, double value) {
checkBinarySearchBounds(startIndex, endIndex, array.length);
int lo = startIndex;
int hi = endIndex - 1;
while (lo <= hi) {
int mid = (lo + hi) >>> 1;
double midVal = array[mid];
if (midVal < value) {
lo = mid + 1;
} else if (midVal > value) {
hi = mid - 1;
} else if (midVal != 0 && midVal == value) {
return mid; // value found
} else { // Either midVal and value are == 0 or at least one is NaN
long midValBits = Double.doubleToLongBits(midVal);
long valueBits = Double.doubleToLongBits(value);
if (midValBits < valueBits) {
lo = mid + 1; // (-0.0, 0.0) or (not NaN, NaN); midVal < val
} else if (midValBits > valueBits) {
hi = mid - 1; // (0.0, -0.0) or (NaN, not NaN); midVal > val
} else {
return mid; // bit patterns are equal; value found
}
}
}
return ~lo; // value not present
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}. Searching in an unsorted array has an undefined result.
* It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
*/
public static int binarySearch(float[] array, float value) {
return binarySearch(array, 0, array.length, value);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, in the range specified by fromIndex (inclusive) and
* toIndex (exclusive). Searching in an unsorted array has an undefined
* result. It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param startIndex
* the inclusive start index.
* @param endIndex
* the exclusive start index.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws IllegalArgumentException
* if {@code startIndex > endIndex}
* @throws ArrayIndexOutOfBoundsException
* if {@code startIndex < 0 || endIndex > array.length}
* @since 1.6
*/
public static int binarySearch(float[] array, int startIndex, int endIndex,
float value) {
checkBinarySearchBounds(startIndex, endIndex, array.length);
int lo = startIndex;
int hi = endIndex - 1;
while (lo <= hi) {
int mid = (lo + hi) >>> 1;
float midVal = array[mid];
if (midVal < value) {
lo = mid + 1;
} else if (midVal > value) {
hi = mid - 1;
} else if (midVal != 0 && midVal == value) {
return mid; // value found
} else { // Either midVal and value are == 0 or at least one is NaN
int midValBits = Float.floatToIntBits(midVal);
int valueBits = Float.floatToIntBits(value);
if (midValBits < valueBits) {
lo = mid + 1; // (-0.0, 0.0) or (not NaN, NaN); midVal < val
} else if (midValBits > valueBits) {
hi = mid - 1; // (0.0, -0.0) or (NaN, not NaN); midVal > val
} else {
return mid; // bit patterns are equal; value found
}
}
}
return ~lo; // value not present
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}. Searching in an unsorted array has an undefined result.
* It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
*/
public static int binarySearch(int[] array, int value) {
return binarySearch(array, 0, array.length, value);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, in the range specified by fromIndex (inclusive) and
* toIndex (exclusive). Searching in an unsorted array has an undefined
* result. It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param startIndex
* the inclusive start index.
* @param endIndex
* the exclusive start index.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws IllegalArgumentException
* if {@code startIndex > endIndex}
* @throws ArrayIndexOutOfBoundsException
* if {@code startIndex < 0 || endIndex > array.length}
* @since 1.6
*/
public static int binarySearch(int[] array, int startIndex, int endIndex,
int value) {
checkBinarySearchBounds(startIndex, endIndex, array.length);
int lo = startIndex;
int hi = endIndex - 1;
while (lo <= hi) {
int mid = (lo + hi) >>> 1;
int midVal = array[mid];
if (midVal < value) {
lo = mid + 1;
} else if (midVal > value) {
hi = mid - 1;
} else {
return mid; // value found
}
}
return ~lo; // value not present
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}. Searching in an unsorted array has an undefined result.
* It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
*/
public static int binarySearch(long[] array, long value) {
return binarySearch(array, 0, array.length, value);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, in the range specified by fromIndex (inclusive) and
* toIndex (exclusive). Searching in an unsorted array has an undefined
* result. It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param startIndex
* the inclusive start index.
* @param endIndex
* the exclusive start index.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws IllegalArgumentException
* if {@code startIndex > endIndex}
* @throws ArrayIndexOutOfBoundsException
* if {@code startIndex < 0 || endIndex > array.length}
* @since 1.6
*/
public static int binarySearch(long[] array, int startIndex, int endIndex,
long value) {
checkBinarySearchBounds(startIndex, endIndex, array.length);
int lo = startIndex;
int hi = endIndex - 1;
while (lo <= hi) {
int mid = (lo + hi) >>> 1;
long midVal = array[mid];
if (midVal < value) {
lo = mid + 1;
} else if (midVal > value) {
hi = mid - 1;
} else {
return mid; // value found
}
}
return ~lo; // value not present
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}. Searching in an unsorted array has an undefined result.
* It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws ClassCastException
* if an element in the array or the search element does not
* implement {@code Comparable}, or cannot be compared to each
* other.
*/
public static int binarySearch(Object[] array, Object value) {
return binarySearch(array, 0, array.length, value);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, in the range specified by fromIndex (inclusive) and
* toIndex (exclusive). Searching in an unsorted array has an undefined
* result. It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param startIndex
* the inclusive start index.
* @param endIndex
* the exclusive start index.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws ClassCastException
* if an element in the array or the search element does not
* implement {@code Comparable}, or cannot be compared to each
* other.
* @throws IllegalArgumentException
* if {@code startIndex > endIndex}
* @throws ArrayIndexOutOfBoundsException
* if {@code startIndex < 0 || endIndex > array.length}
* @since 1.6
*/
@SuppressWarnings("unchecked")
public static int binarySearch(Object[] array, int startIndex,
int endIndex, Object value) {
checkBinarySearchBounds(startIndex, endIndex, array.length);
int lo = startIndex;
int hi = endIndex - 1;
while (lo <= hi) {
int mid = (lo + hi) >>> 1;
@SuppressWarnings("rawtypes")
int midValCmp = ((Comparable) array[mid]).compareTo(value);
if (midValCmp < 0) {
lo = mid + 1;
} else if (midValCmp > 0) {
hi = mid - 1;
} else {
return mid; // value found
}
}
return ~lo; // value not present
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, using {@code comparator} to compare elements. Searching in
* an unsorted array has an undefined result. It's also undefined which
* element is found if there are multiple occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param value
* the element to find.
* @param comparator
* the {@code Comparator} used to compare the elements.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws ClassCastException
* if an element in the array or the search element does not
* implement {@code Comparable}, or cannot be compared to each
* other.
*/
public static <T> int binarySearch(T[] array, T value,
Comparator<? super T> comparator) {
return binarySearch(array, 0, array.length, value, comparator);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, in the range specified by fromIndex (inclusive) and
* toIndex (exclusive), using {@code comparator} to compare elements.
* Searching in an unsorted array has an undefined result. It's also
* undefined which element is found if there are multiple occurrences of the
* same element.
*
* @param array
* the sorted array to search.
* @param startIndex
* the inclusive start index.
* @param endIndex
* the exclusive start index.
* @param value
* the element to find.
* @param comparator
* the {@code Comparator} used to compare the elements.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws ClassCastException
* if an element in the array or the search element does not
* implement {@code Comparable}, or cannot be compared to each
* other.
* @throws IllegalArgumentException
* if {@code startIndex > endIndex}
* @throws ArrayIndexOutOfBoundsException
* if {@code startIndex < 0 || endIndex > array.length}
* @since 1.6
*/
public static <T> int binarySearch(T[] array, int startIndex, int endIndex,
T value, Comparator<? super T> comparator) {
if (comparator == null) {
return binarySearch(array, startIndex, endIndex, value);
}
checkBinarySearchBounds(startIndex, endIndex, array.length);
int lo = startIndex;
int hi = endIndex - 1;
while (lo <= hi) {
int mid = (lo + hi) >>> 1;
int midValCmp = comparator.compare(array[mid], value);
if (midValCmp < 0) {
lo = mid + 1;
} else if (midValCmp > 0) {
hi = mid - 1;
} else {
return mid; // value found
}
}
return ~lo; // value not present
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}. Searching in an unsorted array has an undefined result.
* It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
*/
public static int binarySearch(short[] array, short value) {
return binarySearch(array, 0, array.length, value);
}
/**
* Performs a binary search for {@code value} in the ascending sorted array
* {@code array}, in the range specified by fromIndex (inclusive) and
* toIndex (exclusive). Searching in an unsorted array has an undefined
* result. It's also undefined which element is found if there are multiple
* occurrences of the same element.
*
* @param array
* the sorted array to search.
* @param startIndex
* the inclusive start index.
* @param endIndex
* the exclusive start index.
* @param value
* the element to find.
* @return the non-negative index of the element, or a negative index which
* is {@code -index - 1} where the element would be inserted.
* @throws IllegalArgumentException
* if {@code startIndex > endIndex}
* @throws ArrayIndexOutOfBoundsException
* if {@code startIndex < 0 || endIndex > array.length}
* @since 1.6
*/
public static int binarySearch(short[] array, int startIndex, int endIndex,
short value) {
checkBinarySearchBounds(startIndex, endIndex, array.length);
int lo = startIndex;
int hi = endIndex - 1;
while (lo <= hi) {
int mid = (lo + hi) >>> 1;
short midVal = array[mid];
if (midVal < value) {
lo = mid + 1;
} else if (midVal > value) {
hi = mid - 1;
} else {
return mid; // value found
}
}
return ~lo; // value not present
}
private static void checkBinarySearchBounds(int startIndex, int endIndex,
int length) {
if (startIndex > endIndex) {
throw new IllegalArgumentException();
}
if (startIndex < 0 || endIndex > length) {
throw new ArrayIndexOutOfBoundsException();
}
}
/**
* Fills the specified array with the specified element.
*
* @param array
* the {@code byte} array to fill.
* @param value
* the {@code byte} element.
*/
public static void fill(byte[] array, byte value) {
for (int i = 0; i < array.length; i++) {
array[i] = value;
}
}
/**
* Fills the specified array with the specified element.
*
* @param array
* the {@code int} array to fill.
* @param value
* the {@code int} element.
*/
public static void fill(int[] array, int value) {
for (int i = 0; i < array.length; i++) {
array[i] = value;
}
}
/**
* Fills the specified array with the specified element.
*
* @param array
* the {@code boolean} array to fill.
* @param value
* the {@code boolean} element.
*/
public static void fill(boolean[] array, boolean value) {
for (int i = 0; i < array.length; i++) {
array[i] = value;
}
}
/**
* Fills the specified array with the specified element.
*
* @param array
* the {@code Object} array to fill.
* @param value
* the {@code Object} element.
*/
public static void fill(Object[] array, Object value) {
for (int i = 0; i < array.length; i++) {
array[i] = value;
}
}
/**
* Returns a hash code based on the contents of the given array. For any two
* {@code boolean} arrays {@code a} and {@code b}, if
* {@code Arrays.equals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.hashCode(a)} equals
* {@code Arrays.hashCode(b)}.
* <p>
* The value returned by this method is the same value as the
* {@link List#hashCode()} method which is invoked on a {@link List}
* containing a sequence of {@link Boolean} instances representing the
* elements of array in the same order. If the array is {@code null}, the
* return value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int hashCode(boolean[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (boolean element : array) {
// 1231, 1237 are hash code values for boolean value
hashCode = 31 * hashCode + (element ? 1231 : 1237);
}
return hashCode;
}
/**
* Returns a hash code based on the contents of the given array. For any two
* not-null {@code int} arrays {@code a} and {@code b}, if
* {@code Arrays.equals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.hashCode(a)} equals
* {@code Arrays.hashCode(b)}.
* <p>
* The value returned by this method is the same value as the
* {@link List#hashCode()} method which is invoked on a {@link List}
* containing a sequence of {@link Integer} instances representing the
* elements of array in the same order. If the array is {@code null}, the
* return value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int hashCode(int[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (int element : array) {
// the hash code value for integer value is integer value itself
hashCode = 31 * hashCode + element;
}
return hashCode;
}
/**
* Returns a hash code based on the contents of the given array. For any two
* {@code short} arrays {@code a} and {@code b}, if
* {@code Arrays.equals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.hashCode(a)} equals
* {@code Arrays.hashCode(b)}.
* <p>
* The value returned by this method is the same value as the
* {@link List#hashCode()} method which is invoked on a {@link List}
* containing a sequence of {@link Short} instances representing the
* elements of array in the same order. If the array is {@code null}, the
* return value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int hashCode(short[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (short element : array) {
// the hash code value for short value is its integer value
hashCode = 31 * hashCode + element;
}
return hashCode;
}
/**
* Returns a hash code based on the contents of the given array. For any two
* {@code char} arrays {@code a} and {@code b}, if
* {@code Arrays.equals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.hashCode(a)} equals
* {@code Arrays.hashCode(b)}.
* <p>
* The value returned by this method is the same value as the
* {@link List#hashCode()} method which is invoked on a {@link List}
* containing a sequence of {@link Character} instances representing the
* elements of array in the same order. If the array is {@code null}, the
* return value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int hashCode(char[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (char element : array) {
// the hash code value for char value is its integer value
hashCode = 31 * hashCode + element;
}
return hashCode;
}
/**
* Returns a hash code based on the contents of the given array. For any two
* {@code byte} arrays {@code a} and {@code b}, if
* {@code Arrays.equals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.hashCode(a)} equals
* {@code Arrays.hashCode(b)}.
* <p>
* The value returned by this method is the same value as the
* {@link List#hashCode()} method which is invoked on a {@link List}
* containing a sequence of {@link Byte} instances representing the elements
* of array in the same order. If the array is {@code null}, the return
* value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int hashCode(byte[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (byte element : array) {
// the hash code value for byte value is its integer value
hashCode = 31 * hashCode + element;
}
return hashCode;
}
/**
* Returns a hash code based on the contents of the given array. For any two
* {@code long} arrays {@code a} and {@code b}, if
* {@code Arrays.equals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.hashCode(a)} equals
* {@code Arrays.hashCode(b)}.
* <p>
* The value returned by this method is the same value as the
* {@link List#hashCode()} method which is invoked on a {@link List}
* containing a sequence of {@link Long} instances representing the elements
* of array in the same order. If the array is {@code null}, the return
* value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int hashCode(long[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (long elementValue : array) {
/*
* the hash code value for long value is (int) (value ^ (value >>>
* 32))
*/
hashCode = 31 * hashCode
+ (int) (elementValue ^ (elementValue >>> 32));
}
return hashCode;
}
/**
* Returns a hash code based on the contents of the given array. For any two
* {@code float} arrays {@code a} and {@code b}, if
* {@code Arrays.equals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.hashCode(a)} equals
* {@code Arrays.hashCode(b)}.
* <p>
* The value returned by this method is the same value as the
* {@link List#hashCode()} method which is invoked on a {@link List}
* containing a sequence of {@link Float} instances representing the
* elements of array in the same order. If the array is {@code null}, the
* return value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int hashCode(float[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (float element : array) {
/*
* the hash code value for float value is
* Float.floatToIntBits(value)
*/
hashCode = 31 * hashCode + Float.floatToIntBits(element);
}
return hashCode;
}
/**
* Returns a hash code based on the contents of the given array. For any two
* {@code double} arrays {@code a} and {@code b}, if
* {@code Arrays.equals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.hashCode(a)} equals
* {@code Arrays.hashCode(b)}.
* <p>
* The value returned by this method is the same value as the
* {@link List#hashCode()} method which is invoked on a {@link List}
* containing a sequence of {@link Double} instances representing the
* elements of array in the same order. If the array is {@code null}, the
* return value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int hashCode(double[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (double element : array) {
long v = Double.doubleToLongBits(element);
/*
* the hash code value for double value is (int) (v ^ (v >>> 32))
* where v = Double.doubleToLongBits(value)
*/
hashCode = 31 * hashCode + (int) (v ^ (v >>> 32));
}
return hashCode;
}
/**
* Returns a hash code based on the contents of the given array. If the
* array contains other arrays as its elements, the hash code is based on
* their identities not their contents. So it is acceptable to invoke this
* method on an array that contains itself as an element, either directly or
* indirectly.
* <p>
* For any two arrays {@code a} and {@code b}, if
* {@code Arrays.equals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.hashCode(a)} equals
* {@code Arrays.hashCode(b)}.
* <p>
* The value returned by this method is the same value as the method
* Arrays.asList(array).hashCode(). If the array is {@code null}, the return
* value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int hashCode(Object[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (Object element : array) {
int elementHashCode;
if (element == null) {
elementHashCode = 0;
} else {
elementHashCode = (element).hashCode();
}
hashCode = 31 * hashCode + elementHashCode;
}
return hashCode;
}
/**
* Returns a hash code based on the "deep contents" of the given array. If
* the array contains other arrays as its elements, the hash code is based
* on their contents not their identities. So it is not acceptable to invoke
* this method on an array that contains itself as an element, either
* directly or indirectly.
* <p>
* For any two arrays {@code a} and {@code b}, if
* {@code Arrays.deepEquals(a, b)} returns {@code true}, it means that the
* return value of {@code Arrays.deepHashCode(a)} equals
* {@code Arrays.deepHashCode(b)}.
* <p>
* The computation of the value returned by this method is similar to that
* of the value returned by {@link List#hashCode()} invoked on a
* {@link List} containing a sequence of instances representing the elements
* of array in the same order. The difference is: If an element e of array
* is itself an array, its hash code is computed by calling the appropriate
* overloading of {@code Arrays.hashCode(e)} if e is an array of a primitive
* type, or by calling {@code Arrays.deepHashCode(e)} recursively if e is an
* array of a reference type. The value returned by this method is the same
* value as the method {@code Arrays.asList(array).hashCode()}. If the array
* is {@code null}, the return value is 0.
*
* @param array
* the array whose hash code to compute.
* @return the hash code for {@code array}.
*/
public static int deepHashCode(Object[] array) {
if (array == null) {
return 0;
}
int hashCode = 1;
for (Object element : array) {
int elementHashCode = deepHashCodeElement(element);
hashCode = 31 * hashCode + elementHashCode;
}
return hashCode;
}
private static int deepHashCodeElement(Object element) {
Class<?> cl;
if (element == null) {
return 0;
}
cl = element.getClass().getComponentType();
if (cl == null) {
return element.hashCode();
}
/*
* element is an array
*/
if (!cl.isPrimitive()) {
return deepHashCode((Object[]) element);
}
if (cl.equals(int.class)) {
return hashCode((int[]) element);
}
if (cl.equals(char.class)) {
return hashCode((char[]) element);
}
if (cl.equals(boolean.class)) {
return hashCode((boolean[]) element);
}
if (cl.equals(byte.class)) {
return hashCode((byte[]) element);
}
if (cl.equals(long.class)) {
return hashCode((long[]) element);
}
if (cl.equals(float.class)) {
return hashCode((float[]) element);
}
if (cl.equals(double.class)) {
return hashCode((double[]) element);
}
return hashCode((short[]) element);
}
/**
* Compares the two arrays.
*
* @param array1
* the first {@code byte} array.
* @param array2
* the second {@code byte} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal, {@code false} otherwise.
*/
public static boolean equals(byte[] array1, byte[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
if (array1[i] != array2[i]) {
return false;
}
}
return true;
}
/**
* Compares the two arrays.
*
* @param array1
* the first {@code short} array.
* @param array2
* the second {@code short} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal, {@code false} otherwise.
*/
public static boolean equals(short[] array1, short[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
if (array1[i] != array2[i]) {
return false;
}
}
return true;
}
/**
* Compares the two arrays.
*
* @param array1
* the first {@code char} array.
* @param array2
* the second {@code char} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal, {@code false} otherwise.
*/
public static boolean equals(char[] array1, char[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
if (array1[i] != array2[i]) {
return false;
}
}
return true;
}
/**
* Compares the two arrays.
*
* @param array1
* the first {@code int} array.
* @param array2
* the second {@code int} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal, {@code false} otherwise.
*/
public static boolean equals(int[] array1, int[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
if (array1[i] != array2[i]) {
return false;
}
}
return true;
}
/**
* Compares the two arrays.
*
* @param array1
* the first {@code long} array.
* @param array2
* the second {@code long} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal, {@code false} otherwise.
*/
public static boolean equals(long[] array1, long[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
if (array1[i] != array2[i]) {
return false;
}
}
return true;
}
/**
* Compares the two arrays. The values are compared in the same manner as
* {@code Float.equals()}.
*
* @param array1
* the first {@code float} array.
* @param array2
* the second {@code float} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal, {@code false} otherwise.
* @see Float#equals(Object)
*/
public static boolean equals(float[] array1, float[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
if (Float.floatToIntBits(array1[i]) != Float
.floatToIntBits(array2[i])) {
return false;
}
}
return true;
}
/**
* Compares the two arrays. The values are compared in the same manner as
* {@code Double.equals()}.
*
* @param array1
* the first {@code double} array.
* @param array2
* the second {@code double} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal, {@code false} otherwise.
* @see Double#equals(Object)
*/
public static boolean equals(double[] array1, double[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
if (Double.doubleToLongBits(array1[i]) != Double
.doubleToLongBits(array2[i])) {
return false;
}
}
return true;
}
/**
* Compares the two arrays.
*
* @param array1
* the first {@code boolean} array.
* @param array2
* the second {@code boolean} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal, {@code false} otherwise.
*/
public static boolean equals(boolean[] array1, boolean[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
if (array1[i] != array2[i]) {
return false;
}
}
return true;
}
/**
* Compares the two arrays.
*
* @param array1
* the first {@code Object} array.
* @param array2
* the second {@code Object} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal according to {@code equals()}, {@code false}
* otherwise.
*/
public static boolean equals(Object[] array1, Object[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
Object e1 = array1[i], e2 = array2[i];
if (!(e1 == null ? e2 == null : e1.equals(e2))) {
return false;
}
}
return true;
}
/**
* Returns {@code true} if the two given arrays are deeply equal to one
* another. Unlike the method
* {@code equals(Object[] array1, Object[] array2)}, this method is
* appropriate for use for nested arrays of arbitrary depth.
* <p>
* Two array references are considered deeply equal if they are both
* {@code null}, or if they refer to arrays that have the same length and
* the elements at each index in the two arrays are equal.
* <p>
* Two {@code null} elements {@code element1} and {@code element2} are
* possibly deeply equal if any of the following conditions satisfied:
* <p>
* {@code element1} and {@code element2} are both arrays of object reference
* types, and {@code Arrays.deepEquals(element1, element2)} would return
* {@code true}.
* <p>
* {@code element1} and {@code element2} are arrays of the same primitive
* type, and the appropriate overloading of
* {@code Arrays.equals(element1, element2)} would return {@code true}.
* <p>
* {@code element1 == element2}
* <p>
* {@code element1.equals(element2)} would return {@code true}.
* <p>
* Note that this definition permits {@code null} elements at any depth.
* <p>
* If either of the given arrays contain themselves as elements, the
* behavior of this method is uncertain.
*
* @param array1
* the first {@code Object} array.
* @param array2
* the second {@code Object} array.
* @return {@code true} if both arrays are {@code null} or if the arrays
* have the same length and the elements at each index in the two
* arrays are equal according to {@code equals()}, {@code false}
* otherwise.
*/
public static boolean deepEquals(Object[] array1, Object[] array2) {
if (array1 == array2) {
return true;
}
if (array1 == null || array2 == null || array1.length != array2.length) {
return false;
}
for (int i = 0; i < array1.length; i++) {
Object e1 = array1[i], e2 = array2[i];
if (!deepEqualsElements(e1, e2)) {
return false;
}
}
return true;
}
private static boolean deepEqualsElements(Object e1, Object e2) {
Class<?> cl1, cl2;
if (e1 == e2) {
return true;
}
if (e1 == null || e2 == null) {
return false;
}
cl1 = e1.getClass().getComponentType();
cl2 = e2.getClass().getComponentType();
if (cl1 != cl2) {
return false;
}
if (cl1 == null) {
return e1.equals(e2);
}
/*
* compare as arrays
*/
if (!cl1.isPrimitive()) {
return deepEquals((Object[]) e1, (Object[]) e2);
}
if (cl1.equals(int.class)) {
return equals((int[]) e1, (int[]) e2);
}
if (cl1.equals(char.class)) {
return equals((char[]) e1, (char[]) e2);
}
if (cl1.equals(boolean.class)) {
return equals((boolean[]) e1, (boolean[]) e2);
}
if (cl1.equals(byte.class)) {
return equals((byte[]) e1, (byte[]) e2);
}
if (cl1.equals(long.class)) {
return equals((long[]) e1, (long[]) e2);
}
if (cl1.equals(float.class)) {
return equals((float[]) e1, (float[]) e2);
}
if (cl1.equals(double.class)) {
return equals((double[]) e1, (double[]) e2);
}
return equals((short[]) e1, (short[]) e2);
}
/**
* Sorts the specified range in the array in ascending numerical order.
*
* @param array
* the {@code byte} array to be sorted.
* @param start
* the start index to sort.
* @param end
* the last + 1 index to sort.
* @throws IllegalArgumentException
* if {@code start > end}.
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0} or {@code end > array.length}.
*/
/**
* Creates a {@code String} representation of the {@code boolean[]} passed.
* The result is surrounded by brackets ({@code "[]"}), each element is
* converted to a {@code String} via the {@link String#valueOf(boolean)} and
* separated by {@code ", "}. If the array is {@code null}, then
* {@code "null"} is returned.
*
* @param array
* the {@code boolean} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String toString(boolean[] array) {
if (array == null) {
return "null";
}
if (array.length == 0) {
return "[]";
}
StringBuilder sb = new StringBuilder(array.length * 7);
sb.append('[');
sb.append(array[0]);
for (int i = 1; i < array.length; i++) {
sb.append(", ");
sb.append(array[i]);
}
sb.append(']');
return sb.toString();
}
/**
* Creates a {@code String} representation of the {@code byte[]} passed. The
* result is surrounded by brackets ({@code "[]"}), each element is
* converted to a {@code String} via the {@link String#valueOf(int)} and
* separated by {@code ", "}. If the array is {@code null}, then
* {@code "null"} is returned.
*
* @param array
* the {@code byte} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String toString(byte[] array) {
if (array == null) {
return "null";
}
if (array.length == 0) {
return "[]";
}
StringBuilder sb = new StringBuilder(array.length * 6);
sb.append('[');
sb.append(array[0]);
for (int i = 1; i < array.length; i++) {
sb.append(", ");
sb.append(array[i]);
}
sb.append(']');
return sb.toString();
}
/**
* Creates a {@code String} representation of the {@code char[]} passed. The
* result is surrounded by brackets ({@code "[]"}), each element is
* converted to a {@code String} via the {@link String#valueOf(char)} and
* separated by {@code ", "}. If the array is {@code null}, then
* {@code "null"} is returned.
*
* @param array
* the {@code char} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String toString(char[] array) {
if (array == null) {
return "null";
}
if (array.length == 0) {
return "[]";
}
StringBuilder sb = new StringBuilder(array.length * 3);
sb.append('[');
sb.append(array[0]);
for (int i = 1; i < array.length; i++) {
sb.append(", ");
sb.append(array[i]);
}
sb.append(']');
return sb.toString();
}
/**
* Creates a {@code String} representation of the {@code double[]} passed.
* The result is surrounded by brackets ({@code "[]"}), each element is
* converted to a {@code String} via the {@link String#valueOf(double)} and
* separated by {@code ", "}. If the array is {@code null}, then
* {@code "null"} is returned.
*
* @param array
* the {@code double} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String toString(double[] array) {
if (array == null) {
return "null";
}
if (array.length == 0) {
return "[]";
}
StringBuilder sb = new StringBuilder(array.length * 7);
sb.append('[');
sb.append(array[0]);
for (int i = 1; i < array.length; i++) {
sb.append(", ");
sb.append(array[i]);
}
sb.append(']');
return sb.toString();
}
/**
* Creates a {@code String} representation of the {@code float[]} passed.
* The result is surrounded by brackets ({@code "[]"}), each element is
* converted to a {@code String} via the {@link String#valueOf(float)} and
* separated by {@code ", "}. If the array is {@code null}, then
* {@code "null"} is returned.
*
* @param array
* the {@code float} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String toString(float[] array) {
if (array == null) {
return "null";
}
if (array.length == 0) {
return "[]";
}
StringBuilder sb = new StringBuilder(array.length * 7);
sb.append('[');
sb.append(array[0]);
for (int i = 1; i < array.length; i++) {
sb.append(", ");
sb.append(array[i]);
}
sb.append(']');
return sb.toString();
}
/**
* Creates a {@code String} representation of the {@code int[]} passed. The
* result is surrounded by brackets ({@code "[]"}), each element is
* converted to a {@code String} via the {@link String#valueOf(int)} and
* separated by {@code ", "}. If the array is {@code null}, then
* {@code "null"} is returned.
*
* @param array
* the {@code int} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String toString(int[] array) {
if (array == null) {
return "null";
}
if (array.length == 0) {
return "[]";
}
StringBuilder sb = new StringBuilder(array.length * 6);
sb.append('[');
sb.append(array[0]);
for (int i = 1; i < array.length; i++) {
sb.append(", ");
sb.append(array[i]);
}
sb.append(']');
return sb.toString();
}
/**
* Creates a {@code String} representation of the {@code long[]} passed. The
* result is surrounded by brackets ({@code "[]"}), each element is
* converted to a {@code String} via the {@link String#valueOf(long)} and
* separated by {@code ", "}. If the array is {@code null}, then
* {@code "null"} is returned.
*
* @param array
* the {@code long} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String toString(long[] array) {
if (array == null) {
return "null";
}
if (array.length == 0) {
return "[]";
}
StringBuilder sb = new StringBuilder(array.length * 6);
sb.append('[');
sb.append(array[0]);
for (int i = 1; i < array.length; i++) {
sb.append(", ");
sb.append(array[i]);
}
sb.append(']');
return sb.toString();
}
/**
* Creates a {@code String} representation of the {@code short[]} passed.
* The result is surrounded by brackets ({@code "[]"}), each element is
* converted to a {@code String} via the {@link String#valueOf(int)} and
* separated by {@code ", "}. If the array is {@code null}, then
* {@code "null"} is returned.
*
* @param array
* the {@code short} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String toString(short[] array) {
if (array == null) {
return "null";
}
if (array.length == 0) {
return "[]";
}
StringBuilder sb = new StringBuilder(array.length * 6);
sb.append('[');
sb.append(array[0]);
for (int i = 1; i < array.length; i++) {
sb.append(", ");
sb.append(array[i]);
}
sb.append(']');
return sb.toString();
}
/**
* Creates a {@code String} representation of the {@code Object[]} passed.
* The result is surrounded by brackets ({@code "[]"}), each element is
* converted to a {@code String} via the {@link String#valueOf(Object)} and
* separated by {@code ", "}. If the array is {@code null}, then
* {@code "null"} is returned.
*
* @param array
* the {@code Object} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String toString(Object[] array) {
if (array == null) {
return "null";
}
if (array.length == 0) {
return "[]";
}
StringBuilder sb = new StringBuilder(array.length * 7);
sb.append('[');
sb.append(array[0]);
for (int i = 1; i < array.length; i++) {
sb.append(", ");
sb.append(array[i]);
}
sb.append(']');
return sb.toString();
}
/**
* Creates a <i>"deep"</i> {@code String} representation of the
* {@code Object[]} passed, such that if the array contains other arrays,
* the {@code String} representation of those arrays is generated as well.
* <p>
* If any of the elements are primitive arrays, the generation is delegated
* to the other {@code toString} methods in this class. If any element
* contains a reference to the original array, then it will be represented
* as {@code "[...]"}. If an element is an {@code Object[]}, then its
* representation is generated by a recursive call to this method. All other
* elements are converted via the {@link String#valueOf(Object)} method.
*
* @param array
* the {@code Object} array to convert.
* @return the {@code String} representation of {@code array}.
* @since 1.5
*/
public static String deepToString(Object[] array) {
// Special case null to prevent NPE
if (array == null) {
return "null";
}
// delegate this to the recursive method
StringBuilder buf = new StringBuilder(array.length * 9);
deepToStringImpl(array, new Object[] { array }, buf);
return buf.toString();
}
/**
* Implementation method used by {@link #deepToString(Object[])}.
*
* @param array
* the {@code Object[]} to dive into.
* @param origArrays
* the original {@code Object[]}; used to test for self
* references.
* @param sb
* the {@code StringBuilder} instance to append to or
* {@code null} one hasn't been created yet.
* @return the result.
* @see #deepToString(Object[])
*/
private static void deepToStringImpl(Object[] array, Object[] origArrays,
StringBuilder sb) {
if (array == null) {
sb.append("null");
return;
}
sb.append('[');
for (int i = 0; i < array.length; i++) {
if (i != 0) {
sb.append(", ");
}
// establish current element
Object elem = array[i];
if (elem == null) {
// element is null
sb.append("null");
} else {
// get the Class of the current element
Class<?> elemClass = elem.getClass();
if (elemClass.isArray()) {
// element is an array type
// get the declared Class of the array (element)
Class<?> elemElemClass = elemClass.getComponentType();
if (elemElemClass.isPrimitive()) {
// element is a primitive array
if (boolean.class.equals(elemElemClass)) {
sb.append(toString((boolean[]) elem));
} else if (byte.class.equals(elemElemClass)) {
sb.append(toString((byte[]) elem));
} else if (char.class.equals(elemElemClass)) {
sb.append(toString((char[]) elem));
} else if (double.class.equals(elemElemClass)) {
sb.append(toString((double[]) elem));
} else if (float.class.equals(elemElemClass)) {
sb.append(toString((float[]) elem));
} else if (int.class.equals(elemElemClass)) {
sb.append(toString((int[]) elem));
} else if (long.class.equals(elemElemClass)) {
sb.append(toString((long[]) elem));
} else if (short.class.equals(elemElemClass)) {
sb.append(toString((short[]) elem));
} else {
// no other possible primitives, so we assert that
throw new AssertionError();
}
} else {
// element is an Object[], so we assert that
assert elem instanceof Object[];
if (deepToStringImplContains(origArrays, elem)) {
sb.append("[...]");
} else {
Object[] newArray = (Object[]) elem;
Object[] newOrigArrays = new Object[origArrays.length + 1];
System.arraycopy(origArrays, 0, newOrigArrays, 0,
origArrays.length);
newOrigArrays[origArrays.length] = newArray;
// make the recursive call to this method
deepToStringImpl(newArray, newOrigArrays, sb);
}
}
} else { // element is NOT an array, just an Object
sb.append(array[i]);
}
}
}
sb.append(']');
}
/**
* Utility method used to assist the implementation of
* {@link #deepToString(Object[])}.
*
* @param origArrays
* An array of Object[] references.
* @param array
* An Object[] reference to look for in {@code origArrays}.
* @return A value of {@code true} if {@code array} is an element in
* {@code origArrays}.
*/
private static boolean deepToStringImplContains(Object[] origArrays,
Object array) {
if (origArrays == null || origArrays.length == 0) {
return false;
}
for (Object element : origArrays) {
if (element == array) {
return true;
}
}
return false;
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code false}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static boolean[] copyOf(boolean[] original, int newLength) {
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength);
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code (byte) 0}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static byte[] copyOf(byte[] original, int newLength) {
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength);
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code '\\u0000'}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static char[] copyOf(char[] original, int newLength) {
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength);
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code 0.0d}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static double[] copyOf(double[] original, int newLength) {
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength);
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code 0.0f}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static float[] copyOf(float[] original, int newLength) {
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength);
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code 0}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static int[] copyOf(int[] original, int newLength) {
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength);
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code 0L}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static long[] copyOf(long[] original, int newLength) {
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength);
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code (short) 0}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static short[] copyOf(short[] original, int newLength) {
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength);
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code null}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static <T> T[] copyOf(T[] original, int newLength) {
if (original == null) {
throw new NullPointerException();
}
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength);
}
/**
* Copies {@code newLength} elements from {@code original} into a new array.
* If {@code newLength} is greater than {@code original.length}, the result
* is padded with the value {@code null}.
*
* @param original
* the original array
* @param newLength
* the length of the new array
* @param newType
* the class of the new array
* @return the new array
* @throws NegativeArraySizeException
* if {@code newLength < 0}
* @throws NullPointerException
* if {@code original == null}
* @throws ArrayStoreException
* if a value in {@code original} is incompatible with T
* @since 1.6
*/
public static <T, U> T[] copyOf(U[] original, int newLength,
Class<? extends T[]> newType) {
// We use the null pointer check in copyOfRange for exception priority
// compatibility.
if (newLength < 0) {
throw new NegativeArraySizeException();
}
return copyOfRange(original, 0, newLength, newType);
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code false}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static boolean[] copyOfRange(boolean[] original, int start, int end) {
if (start > end) {
throw new IllegalArgumentException();
}
int originalLength = original.length;
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
boolean[] result = new boolean[resultLength];
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code (byte) 0}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static byte[] copyOfRange(byte[] original, int start, int end) {
if (start > end) {
throw new IllegalArgumentException();
}
int originalLength = original.length;
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
byte[] result = new byte[resultLength];
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code '\\u0000'}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static char[] copyOfRange(char[] original, int start, int end) {
if (start > end) {
throw new IllegalArgumentException();
}
int originalLength = original.length;
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
char[] result = new char[resultLength];
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code 0.0d}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static double[] copyOfRange(double[] original, int start, int end) {
if (start > end) {
throw new IllegalArgumentException();
}
int originalLength = original.length;
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
double[] result = new double[resultLength];
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code 0.0f}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static float[] copyOfRange(float[] original, int start, int end) {
if (start > end) {
throw new IllegalArgumentException();
}
int originalLength = original.length;
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
float[] result = new float[resultLength];
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code 0}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static int[] copyOfRange(int[] original, int start, int end) {
if (start > end) {
throw new IllegalArgumentException();
}
int originalLength = original.length;
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
int[] result = new int[resultLength];
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code 0L}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static long[] copyOfRange(long[] original, int start, int end) {
if (start > end) {
throw new IllegalArgumentException();
}
int originalLength = original.length;
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
long[] result = new long[resultLength];
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code (short) 0}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
public static short[] copyOfRange(short[] original, int start, int end) {
if (start > end) {
throw new IllegalArgumentException();
}
int originalLength = original.length;
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
short[] result = new short[resultLength];
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code null}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @since 1.6
*/
@SuppressWarnings("unchecked")
public static <T> T[] copyOfRange(T[] original, int start, int end) {
int originalLength = original.length; // For exception priority
// compatibility.
if (start > end) {
throw new IllegalArgumentException();
}
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
T[] result = (T[]) Array.newInstance(original.getClass()
.getComponentType(), resultLength);
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
/**
* Copies elements from {@code original} into a new array, from indexes
* start (inclusive) to end (exclusive). The original order of elements is
* preserved. If {@code end} is greater than {@code original.length}, the
* result is padded with the value {@code null}.
*
* @param original
* the original array
* @param start
* the start index, inclusive
* @param end
* the end index, exclusive
* @return the new array
* @throws ArrayIndexOutOfBoundsException
* if {@code start < 0 || start > original.length}
* @throws IllegalArgumentException
* if {@code start > end}
* @throws NullPointerException
* if {@code original == null}
* @throws ArrayStoreException
* if a value in {@code original} is incompatible with T
* @since 1.6
*/
@SuppressWarnings("unchecked")
public static <T, U> T[] copyOfRange(U[] original, int start, int end,
Class<? extends T[]> newType) {
if (start > end) {
throw new IllegalArgumentException();
}
int originalLength = original.length;
if (start < 0 || start > originalLength) {
throw new ArrayIndexOutOfBoundsException();
}
int resultLength = end - start;
int copyLength = Math.min(resultLength, originalLength - start);
T[] result = (T[]) Array.newInstance(newType.getComponentType(),
resultLength);
System.arraycopy(original, start, result, 0, copyLength);
return result;
}
}
| epl-1.0 |
forge/javaee-descriptors | api/src/main/java/org/jboss/shrinkwrap/descriptor/api/facespartialresponse22/package-info.java | 155 | /**
* Provides the interfaces and enumeration types as defined in the schema
*/
package org.jboss.shrinkwrap.descriptor.api.facespartialresponse22;
| epl-1.0 |
debrief/debrief | org.mwc.asset.legacy/src/ASSET/Util/MonteCarlo/XMLOperation.java | 1146 | /*******************************************************************************
* Debrief - the Open Source Maritime Analysis Application
* http://debrief.info
*
* (C) 2000-2020, Deep Blue C Technology Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Eclipse Public License v1.0
* (http://www.eclipse.org/legal/epl-v10.html)
*
* 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.
*******************************************************************************/
package ASSET.Util.MonteCarlo;
public interface XMLOperation {
/**
* clone operation, to produce an identical copy
*
*/
public Object clone();
/**
* return the current value of this permutation
*
*/
public String getValue();
/**
* merge ourselves with the supplied operation
*
*/
public void merge(XMLOperation other);
/**
* produce a new value for this operation
*
*/
public void newPermutation();
}
| epl-1.0 |
ttimbul/eclipse.wst | bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/filter/StringMatcher.java | 11261 | /*******************************************************************************
* Copyright (c) 2011 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.wst.sse.ui.internal.filter;
import java.util.Vector;
/**
* A string pattern matcher. Supports '*' and '?' wildcards.
*/
public class StringMatcher {
protected String fPattern;
protected int fLength; // pattern length
protected boolean fIgnoreWildCards;
protected boolean fIgnoreCase;
protected boolean fHasLeadingStar;
protected boolean fHasTrailingStar;
protected String fSegments[]; //the given pattern is split into * separated segments
/* boundary value beyond which we don't need to search in the text */
protected int fBound= 0;
protected static final char fSingleWildCard= '\u0000';
public static class Position {
int start; //inclusive
int end; //exclusive
public Position(int start, int end) {
this.start= start;
this.end= end;
}
public int getStart() {
return start;
}
public int getEnd() {
return end;
}
}
/**
* StringMatcher constructor takes in a String object that is a simple
* pattern. The pattern may contain '*' for 0 and many characters and
* '?' for exactly one character.
*
* Literal '*' and '?' characters must be escaped in the pattern
* e.g., "\*" means literal "*", etc.
*
* Escaping any other character (including the escape character itself),
* just results in that character in the pattern.
* e.g., "\a" means "a" and "\\" means "\"
*
* If invoking the StringMatcher with string literals in Java, don't forget
* escape characters are represented by "\\".
*
* @param pattern the pattern to match text against
* @param ignoreCase if true, case is ignored
* @param ignoreWildCards if true, wild cards and their escape sequences are ignored
* (everything is taken literally).
*/
public StringMatcher(String pattern, boolean ignoreCase, boolean ignoreWildCards) {
if (pattern == null)
throw new IllegalArgumentException();
fIgnoreCase= ignoreCase;
fIgnoreWildCards= ignoreWildCards;
fPattern= pattern;
fLength= pattern.length();
if (fIgnoreWildCards) {
parseNoWildCards();
} else {
parseWildCards();
}
}
/**
* Find the first occurrence of the pattern between <code>start</code)(inclusive)
* and <code>end</code>(exclusive).
* @param text the String object to search in
* @param start the starting index of the search range, inclusive
* @param end the ending index of the search range, exclusive
* @return an <code>StringMatcher.Position</code> object that keeps the starting
* (inclusive) and ending positions (exclusive) of the first occurrence of the
* pattern in the specified range of the text; return null if not found or subtext
* is empty (start==end). A pair of zeros is returned if pattern is empty string
* Note that for pattern like "*abc*" with leading and trailing stars, position of "abc"
* is returned. For a pattern like"*??*" in text "abcdf", (1,3) is returned
*/
public StringMatcher.Position find(String text, int start, int end) {
if (text == null)
throw new IllegalArgumentException();
int tlen= text.length();
if (start < 0)
start= 0;
if (end > tlen)
end= tlen;
if (end < 0 ||start >= end )
return null;
if (fLength == 0)
return new Position(start, start);
if (fIgnoreWildCards) {
int x= posIn(text, start, end);
if (x < 0)
return null;
return new Position(x, x+fLength);
}
int segCount= fSegments.length;
if (segCount == 0)//pattern contains only '*'(s)
return new Position (start, end);
int curPos= start;
int matchStart= -1;
int i;
for (i= 0; i < segCount && curPos < end; ++i) {
String current= fSegments[i];
int nextMatch= regExpPosIn(text, curPos, end, current);
if (nextMatch < 0 )
return null;
if(i == 0)
matchStart= nextMatch;
curPos= nextMatch + current.length();
}
if (i < segCount)
return null;
return new Position(matchStart, curPos);
}
/**
* match the given <code>text</code> with the pattern
* @return true if matched eitherwise false
* @param text a String object
*/
public boolean match(String text) {
return match(text, 0, text.length());
}
/**
* Given the starting (inclusive) and the ending (exclusive) positions in the
* <code>text</code>, determine if the given substring matches with aPattern
* @return true if the specified portion of the text matches the pattern
* @param text a String object that contains the substring to match
* @param start marks the starting position (inclusive) of the substring
* @param end marks the ending index (exclusive) of the substring
*/
public boolean match(String text, int start, int end) {
if (null == text)
throw new IllegalArgumentException();
if (start > end)
return false;
if (fIgnoreWildCards)
return (end - start == fLength) && fPattern.regionMatches(fIgnoreCase, 0, text, start, fLength);
int segCount= fSegments.length;
if (segCount == 0 && (fHasLeadingStar || fHasTrailingStar)) // pattern contains only '*'(s)
return true;
if (start == end)
return fLength == 0;
if (fLength == 0)
return start == end;
int tlen= text.length();
if (start < 0)
start= 0;
if (end > tlen)
end= tlen;
int tCurPos= start;
int bound= end - fBound;
if ( bound < 0)
return false;
int i=0;
String current= fSegments[i];
int segLength= current.length();
/* process first segment */
if (!fHasLeadingStar){
if(!regExpRegionMatches(text, start, current, 0, segLength)) {
return false;
} else {
++i;
tCurPos= tCurPos + segLength;
}
}
if ((fSegments.length == 1) && (!fHasLeadingStar) && (!fHasTrailingStar)) {
// only one segment to match, no wildcards specified
return tCurPos == end;
}
/* process middle segments */
while (i < segCount) {
current= fSegments[i];
int currentMatch;
int k= current.indexOf(fSingleWildCard);
if (k < 0) {
currentMatch= textPosIn(text, tCurPos, end, current);
if (currentMatch < 0)
return false;
} else {
currentMatch= regExpPosIn(text, tCurPos, end, current);
if (currentMatch < 0)
return false;
}
tCurPos= currentMatch + current.length();
i++;
}
/* process final segment */
if (!fHasTrailingStar && tCurPos != end) {
int clen= current.length();
return regExpRegionMatches(text, end - clen, current, 0, clen);
}
return i == segCount ;
}
/**
* This method parses the given pattern into segments seperated by wildcard '*' characters.
* Since wildcards are not being used in this case, the pattern consists of a single segment.
*/
private void parseNoWildCards() {
fSegments= new String[1];
fSegments[0]= fPattern;
fBound= fLength;
}
/**
* Parses the given pattern into segments seperated by wildcard '*' characters.
*/
private void parseWildCards() {
if(fPattern.startsWith("*"))//$NON-NLS-1$
fHasLeadingStar= true;
if(fPattern.endsWith("*")) {//$NON-NLS-1$
/* make sure it's not an escaped wildcard */
if (fLength > 1 && fPattern.charAt(fLength - 2) != '\\') {
fHasTrailingStar= true;
}
}
Vector temp= new Vector();
int pos= 0;
StringBuffer buf= new StringBuffer();
while (pos < fLength) {
char c= fPattern.charAt(pos++);
switch (c) {
case '\\':
if (pos >= fLength) {
buf.append(c);
} else {
char next= fPattern.charAt(pos++);
/* if it's an escape sequence */
if (next == '*' || next == '?' || next == '\\') {
buf.append(next);
} else {
/* not an escape sequence, just insert literally */
buf.append(c);
buf.append(next);
}
}
break;
case '*':
if (buf.length() > 0) {
/* new segment */
temp.addElement(buf.toString());
fBound += buf.length();
buf.setLength(0);
}
break;
case '?':
/* append special character representing single match wildcard */
buf.append(fSingleWildCard);
break;
default:
buf.append(c);
}
}
/* add last buffer to segment list */
if (buf.length() > 0) {
temp.addElement(buf.toString());
fBound += buf.length();
}
fSegments= new String[temp.size()];
temp.copyInto(fSegments);
}
/**
* @param text a string which contains no wildcard
* @param start the starting index in the text for search, inclusive
* @param end the stopping point of search, exclusive
* @return the starting index in the text of the pattern , or -1 if not found
*/
protected int posIn(String text, int start, int end) {//no wild card in pattern
int max= end - fLength;
if (!fIgnoreCase) {
int i= text.indexOf(fPattern, start);
if (i == -1 || i > max)
return -1;
return i;
}
for (int i= start; i <= max; ++i) {
if (text.regionMatches(true, i, fPattern, 0, fLength))
return i;
}
return -1;
}
/**
* @param text a simple regular expression that may only contain '?'(s)
* @param start the starting index in the text for search, inclusive
* @param end the stopping point of search, exclusive
* @param p a simple regular expression that may contains '?'
* @return the starting index in the text of the pattern , or -1 if not found
*/
protected int regExpPosIn(String text, int start, int end, String p) {
int plen= p.length();
int max= end - plen;
for (int i= start; i <= max; ++i) {
if (regExpRegionMatches(text, i, p, 0, plen))
return i;
}
return -1;
}
protected boolean regExpRegionMatches(String text, int tStart, String p, int pStart, int plen) {
while (plen-- > 0) {
char tchar= text.charAt(tStart++);
char pchar= p.charAt(pStart++);
/* process wild cards */
if (!fIgnoreWildCards) {
/* skip single wild cards */
if (pchar == fSingleWildCard) {
continue;
}
}
if (pchar == tchar)
continue;
if (fIgnoreCase) {
if (Character.toUpperCase(tchar) == Character.toUpperCase(pchar))
continue;
// comparing after converting to upper case doesn't handle all cases;
// also compare after converting to lower case
if (Character.toLowerCase(tchar) == Character.toLowerCase(pchar))
continue;
}
return false;
}
return true;
}
/**
* @param text the string to match
* @param start the starting index in the text for search, inclusive
* @param end the stopping point of search, exclusive
* @param p a string that has no wildcard
* @return the starting index in the text of the pattern , or -1 if not found
*/
protected int textPosIn(String text, int start, int end, String p) {
int plen= p.length();
int max= end - plen;
if (!fIgnoreCase) {
int i= text.indexOf(p, start);
if (i == -1 || i > max)
return -1;
return i;
}
for (int i= start; i <= max; ++i) {
if (text.regionMatches(true, i, p, 0, plen))
return i;
}
return -1;
}
}
| epl-1.0 |
debabratahazra/DS | designstudio/components/t24/core/com.odcgroup.t24.enquiry.model/src-gen/com/odcgroup/t24/enquiry/enquiry/EnquiryPackage.java | 343983 | /**
*/
package com.odcgroup.t24.enquiry.enquiry;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
* <!-- begin-user-doc -->
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
* <li>each enum,</li>
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.EnquiryFactory
* @model kind="package"
* @generated
*/
public interface EnquiryPackage extends EPackage
{
/**
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNAME = "enquiry";
/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://www.odcgroup.com/t24/Enquiry";
/**
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_PREFIX = "enquiry";
/**
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EnquiryPackage eINSTANCE = com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl.init();
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.EnquiryImpl <em>Enquiry</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEnquiry()
* @generated
*/
int ENQUIRY = 0;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__NAME = 0;
/**
* The feature id for the '<em><b>File Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__FILE_NAME = 1;
/**
* The feature id for the '<em><b>Metamodel Version</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__METAMODEL_VERSION = 2;
/**
* The feature id for the '<em><b>Header</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__HEADER = 3;
/**
* The feature id for the '<em><b>Description</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__DESCRIPTION = 4;
/**
* The feature id for the '<em><b>Server Mode</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__SERVER_MODE = 5;
/**
* The feature id for the '<em><b>Enquiry Mode</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__ENQUIRY_MODE = 6;
/**
* The feature id for the '<em><b>Companies</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__COMPANIES = 7;
/**
* The feature id for the '<em><b>Account Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__ACCOUNT_FIELD = 8;
/**
* The feature id for the '<em><b>Customer Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__CUSTOMER_FIELD = 9;
/**
* The feature id for the '<em><b>Zero Records Display</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__ZERO_RECORDS_DISPLAY = 10;
/**
* The feature id for the '<em><b>No Selection</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__NO_SELECTION = 11;
/**
* The feature id for the '<em><b>Show All Books</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__SHOW_ALL_BOOKS = 12;
/**
* The feature id for the '<em><b>Start Line</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__START_LINE = 13;
/**
* The feature id for the '<em><b>End Line</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__END_LINE = 14;
/**
* The feature id for the '<em><b>Build Routines</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__BUILD_ROUTINES = 15;
/**
* The feature id for the '<em><b>Fixed Selections</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__FIXED_SELECTIONS = 16;
/**
* The feature id for the '<em><b>Fixed Sorts</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__FIXED_SORTS = 17;
/**
* The feature id for the '<em><b>Custom Selection</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__CUSTOM_SELECTION = 18;
/**
* The feature id for the '<em><b>Fields</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__FIELDS = 19;
/**
* The feature id for the '<em><b>Toolbar</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__TOOLBAR = 20;
/**
* The feature id for the '<em><b>Tools</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__TOOLS = 21;
/**
* The feature id for the '<em><b>Target</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__TARGET = 22;
/**
* The feature id for the '<em><b>Drill Downs</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__DRILL_DOWNS = 23;
/**
* The feature id for the '<em><b>Security</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__SECURITY = 24;
/**
* The feature id for the '<em><b>Graph</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__GRAPH = 25;
/**
* The feature id for the '<em><b>Web Service</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__WEB_SERVICE = 26;
/**
* The feature id for the '<em><b>Generate IFP</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__GENERATE_IFP = 27;
/**
* The feature id for the '<em><b>File Version</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__FILE_VERSION = 28;
/**
* The feature id for the '<em><b>Attributes</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__ATTRIBUTES = 29;
/**
* The feature id for the '<em><b>Introspection Messages</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY__INTROSPECTION_MESSAGES = 30;
/**
* The number of structural features of the '<em>Enquiry</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY_FEATURE_COUNT = 31;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CompaniesImpl <em>Companies</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CompaniesImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCompanies()
* @generated
*/
int COMPANIES = 1;
/**
* The feature id for the '<em><b>All</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPANIES__ALL = 0;
/**
* The feature id for the '<em><b>Code</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPANIES__CODE = 1;
/**
* The number of structural features of the '<em>Companies</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPANIES_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.EnquiryHeaderImpl <em>Header</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryHeaderImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEnquiryHeader()
* @generated
*/
int ENQUIRY_HEADER = 2;
/**
* The feature id for the '<em><b>Label</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY_HEADER__LABEL = 0;
/**
* The feature id for the '<em><b>Column</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY_HEADER__COLUMN = 1;
/**
* The feature id for the '<em><b>Line</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY_HEADER__LINE = 2;
/**
* The number of structural features of the '<em>Header</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY_HEADER_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TargetImpl <em>Target</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TargetImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTarget()
* @generated
*/
int TARGET = 3;
/**
* The feature id for the '<em><b>Application</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TARGET__APPLICATION = 0;
/**
* The feature id for the '<em><b>Screen</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TARGET__SCREEN = 1;
/**
* The feature id for the '<em><b>Mappings</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TARGET__MAPPINGS = 2;
/**
* The number of structural features of the '<em>Target</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TARGET_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TargetMappingImpl <em>Target Mapping</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TargetMappingImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTargetMapping()
* @generated
*/
int TARGET_MAPPING = 4;
/**
* The feature id for the '<em><b>From Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TARGET_MAPPING__FROM_FIELD = 0;
/**
* The feature id for the '<em><b>To Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TARGET_MAPPING__TO_FIELD = 1;
/**
* The number of structural features of the '<em>Target Mapping</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TARGET_MAPPING_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ParametersImpl <em>Parameters</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ParametersImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getParameters()
* @generated
*/
int PARAMETERS = 5;
/**
* The feature id for the '<em><b>Function</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETERS__FUNCTION = 0;
/**
* The feature id for the '<em><b>Auto</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETERS__AUTO = 1;
/**
* The feature id for the '<em><b>Run Immediately</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETERS__RUN_IMMEDIATELY = 2;
/**
* The feature id for the '<em><b>Pw Activity</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETERS__PW_ACTIVITY = 3;
/**
* The feature id for the '<em><b>Field Name</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETERS__FIELD_NAME = 4;
/**
* The feature id for the '<em><b>Variable</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETERS__VARIABLE = 5;
/**
* The number of structural features of the '<em>Parameters</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETERS_FEATURE_COUNT = 6;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DrillDownImpl <em>Drill Down</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DrillDownImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDrillDown()
* @generated
*/
int DRILL_DOWN = 6;
/**
* The feature id for the '<em><b>Drill name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN__DRILL_NAME = 0;
/**
* The feature id for the '<em><b>Description</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN__DESCRIPTION = 1;
/**
* The feature id for the '<em><b>Label Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN__LABEL_FIELD = 2;
/**
* The feature id for the '<em><b>Image</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN__IMAGE = 3;
/**
* The feature id for the '<em><b>Info</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN__INFO = 4;
/**
* The feature id for the '<em><b>Criteria</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN__CRITERIA = 5;
/**
* The feature id for the '<em><b>Parameters</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN__PARAMETERS = 6;
/**
* The feature id for the '<em><b>Type</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN__TYPE = 7;
/**
* The number of structural features of the '<em>Drill Down</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN_FEATURE_COUNT = 8;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DrillDownTypeImpl <em>Drill Down Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DrillDownTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDrillDownType()
* @generated
*/
int DRILL_DOWN_TYPE = 7;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN_TYPE__PROPERTY = 0;
/**
* The number of structural features of the '<em>Drill Down Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN_TYPE_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DrillDownStringTypeImpl <em>Drill Down String Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DrillDownStringTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDrillDownStringType()
* @generated
*/
int DRILL_DOWN_STRING_TYPE = 8;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN_STRING_TYPE__PROPERTY = DRILL_DOWN_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN_STRING_TYPE__VALUE = DRILL_DOWN_TYPE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Drill Down String Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN_STRING_TYPE_FEATURE_COUNT = DRILL_DOWN_TYPE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ApplicationTypeImpl <em>Application Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ApplicationTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getApplicationType()
* @generated
*/
int APPLICATION_TYPE = 9;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Application Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ScreenTypeImpl <em>Screen Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ScreenTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getScreenType()
* @generated
*/
int SCREEN_TYPE = 10;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SCREEN_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SCREEN_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Screen Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SCREEN_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.EnquiryTypeImpl <em>Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEnquiryType()
* @generated
*/
int ENQUIRY_TYPE = 11;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENQUIRY_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FromFieldTypeImpl <em>From Field Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FromFieldTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFromFieldType()
* @generated
*/
int FROM_FIELD_TYPE = 12;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FROM_FIELD_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FROM_FIELD_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>From Field Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FROM_FIELD_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CompositeScreenTypeImpl <em>Composite Screen Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CompositeScreenTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCompositeScreenType()
* @generated
*/
int COMPOSITE_SCREEN_TYPE = 13;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPOSITE_SCREEN_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPOSITE_SCREEN_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Composite Screen Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPOSITE_SCREEN_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TabbedScreenTypeImpl <em>Tabbed Screen Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TabbedScreenTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTabbedScreenType()
* @generated
*/
int TABBED_SCREEN_TYPE = 14;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TABBED_SCREEN_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TABBED_SCREEN_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Tabbed Screen Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TABBED_SCREEN_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ViewTypeImpl <em>View Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ViewTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getViewType()
* @generated
*/
int VIEW_TYPE = 15;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int VIEW_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int VIEW_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>View Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int VIEW_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.QuitSEETypeImpl <em>Quit SEE Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.QuitSEETypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getQuitSEEType()
* @generated
*/
int QUIT_SEE_TYPE = 16;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int QUIT_SEE_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int QUIT_SEE_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Quit SEE Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int QUIT_SEE_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BlankTypeImpl <em>Blank Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BlankTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBlankType()
* @generated
*/
int BLANK_TYPE = 17;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BLANK_TYPE__PROPERTY = DRILL_DOWN_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BLANK_TYPE__VALUE = DRILL_DOWN_TYPE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Blank Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BLANK_TYPE_FEATURE_COUNT = DRILL_DOWN_TYPE_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.PWProcessTypeImpl <em>PW Process Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.PWProcessTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getPWProcessType()
* @generated
*/
int PW_PROCESS_TYPE = 18;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PW_PROCESS_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PW_PROCESS_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>PW Process Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PW_PROCESS_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DownloadTypeImpl <em>Download Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DownloadTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDownloadType()
* @generated
*/
int DOWNLOAD_TYPE = 19;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DOWNLOAD_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DOWNLOAD_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Download Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DOWNLOAD_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RunTypeImpl <em>Run Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RunTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRunType()
* @generated
*/
int RUN_TYPE = 20;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int RUN_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int RUN_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Run Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int RUN_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.UtilTypeImpl <em>Util Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.UtilTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getUtilType()
* @generated
*/
int UTIL_TYPE = 21;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int UTIL_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int UTIL_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Util Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int UTIL_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.JavaScriptTypeImpl <em>Java Script Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.JavaScriptTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getJavaScriptType()
* @generated
*/
int JAVA_SCRIPT_TYPE = 22;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int JAVA_SCRIPT_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int JAVA_SCRIPT_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Java Script Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int JAVA_SCRIPT_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ShouldBeChangedTypeImpl <em>Should Be Changed Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ShouldBeChangedTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getShouldBeChangedType()
* @generated
*/
int SHOULD_BE_CHANGED_TYPE = 23;
/**
* The feature id for the '<em><b>Property</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SHOULD_BE_CHANGED_TYPE__PROPERTY = DRILL_DOWN_STRING_TYPE__PROPERTY;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SHOULD_BE_CHANGED_TYPE__VALUE = DRILL_DOWN_STRING_TYPE__VALUE;
/**
* The number of structural features of the '<em>Should Be Changed Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SHOULD_BE_CHANGED_TYPE_FEATURE_COUNT = DRILL_DOWN_STRING_TYPE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DrillDownOptionImpl <em>Drill Down Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DrillDownOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDrillDownOption()
* @generated
*/
int DRILL_DOWN_OPTION = 24;
/**
* The number of structural features of the '<em>Drill Down Option</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DRILL_DOWN_OPTION_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CompositeScreenOptionImpl <em>Composite Screen Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CompositeScreenOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCompositeScreenOption()
* @generated
*/
int COMPOSITE_SCREEN_OPTION = 25;
/**
* The feature id for the '<em><b>Composite Screen</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPOSITE_SCREEN_OPTION__COMPOSITE_SCREEN = DRILL_DOWN_OPTION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Reference</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPOSITE_SCREEN_OPTION__REFERENCE = DRILL_DOWN_OPTION_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Field Parameter</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPOSITE_SCREEN_OPTION__FIELD_PARAMETER = DRILL_DOWN_OPTION_FEATURE_COUNT + 2;
/**
* The number of structural features of the '<em>Composite Screen Option</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPOSITE_SCREEN_OPTION_FEATURE_COUNT = DRILL_DOWN_OPTION_FEATURE_COUNT + 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TabOptionImpl <em>Tab Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TabOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTabOption()
* @generated
*/
int TAB_OPTION = 26;
/**
* The feature id for the '<em><b>Tab Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TAB_OPTION__TAB_NAME = DRILL_DOWN_OPTION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Reference</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TAB_OPTION__REFERENCE = DRILL_DOWN_OPTION_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Field Parameter</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TAB_OPTION__FIELD_PARAMETER = DRILL_DOWN_OPTION_FEATURE_COUNT + 2;
/**
* The number of structural features of the '<em>Tab Option</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TAB_OPTION_FEATURE_COUNT = DRILL_DOWN_OPTION_FEATURE_COUNT + 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ViewOptionImpl <em>View Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ViewOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getViewOption()
* @generated
*/
int VIEW_OPTION = 27;
/**
* The number of structural features of the '<em>View Option</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int VIEW_OPTION_FEATURE_COUNT = DRILL_DOWN_OPTION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.QuitSEEOptionImpl <em>Quit SEE Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.QuitSEEOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getQuitSEEOption()
* @generated
*/
int QUIT_SEE_OPTION = 28;
/**
* The number of structural features of the '<em>Quit SEE Option</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int QUIT_SEE_OPTION_FEATURE_COUNT = DRILL_DOWN_OPTION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ReferenceImpl <em>Reference</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ReferenceImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getReference()
* @generated
*/
int REFERENCE = 29;
/**
* The feature id for the '<em><b>File</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REFERENCE__FILE = 0;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REFERENCE__FIELD = 1;
/**
* The number of structural features of the '<em>Reference</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REFERENCE_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ParameterImpl <em>Parameter</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ParameterImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getParameter()
* @generated
*/
int PARAMETER = 30;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETER__FIELD = 0;
/**
* The number of structural features of the '<em>Parameter</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETER_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SelectionCriteriaImpl <em>Selection Criteria</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SelectionCriteriaImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelectionCriteria()
* @generated
*/
int SELECTION_CRITERIA = 31;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION_CRITERIA__FIELD = 0;
/**
* The feature id for the '<em><b>Operand</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION_CRITERIA__OPERAND = 1;
/**
* The feature id for the '<em><b>Values</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION_CRITERIA__VALUES = 2;
/**
* The number of structural features of the '<em>Selection Criteria</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION_CRITERIA_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SecurityImpl <em>Security</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SecurityImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSecurity()
* @generated
*/
int SECURITY = 32;
/**
* The feature id for the '<em><b>Application</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SECURITY__APPLICATION = 0;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SECURITY__FIELD = 1;
/**
* The feature id for the '<em><b>Abort</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SECURITY__ABORT = 2;
/**
* The number of structural features of the '<em>Security</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SECURITY_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.GraphImpl <em>Graph</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.GraphImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getGraph()
* @generated
*/
int GRAPH = 33;
/**
* The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH__TYPE = 0;
/**
* The feature id for the '<em><b>Labels</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH__LABELS = 1;
/**
* The feature id for the '<em><b>Dimension</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH__DIMENSION = 2;
/**
* The feature id for the '<em><b>Margins</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH__MARGINS = 3;
/**
* The feature id for the '<em><b>Scale</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH__SCALE = 4;
/**
* The feature id for the '<em><b>Legend</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH__LEGEND = 5;
/**
* The feature id for the '<em><b>XAxis</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH__XAXIS = 6;
/**
* The feature id for the '<em><b>YAxis</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH__YAXIS = 7;
/**
* The feature id for the '<em><b>ZAxis</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH__ZAXIS = 8;
/**
* The number of structural features of the '<em>Graph</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GRAPH_FEATURE_COUNT = 9;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.AxisImpl <em>Axis</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.AxisImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getAxis()
* @generated
*/
int AXIS = 34;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int AXIS__FIELD = 0;
/**
* The feature id for the '<em><b>Display Legend</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int AXIS__DISPLAY_LEGEND = 1;
/**
* The feature id for the '<em><b>Show Grid</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int AXIS__SHOW_GRID = 2;
/**
* The number of structural features of the '<em>Axis</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int AXIS_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DimensionImpl <em>Dimension</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DimensionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDimension()
* @generated
*/
int DIMENSION = 35;
/**
* The feature id for the '<em><b>Width</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DIMENSION__WIDTH = 0;
/**
* The feature id for the '<em><b>Height</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DIMENSION__HEIGHT = 1;
/**
* The feature id for the '<em><b>Orientation</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DIMENSION__ORIENTATION = 2;
/**
* The number of structural features of the '<em>Dimension</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DIMENSION_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LabelImpl <em>Label</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LabelImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLabel()
* @generated
*/
int LABEL = 36;
/**
* The feature id for the '<em><b>Description</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LABEL__DESCRIPTION = 0;
/**
* The feature id for the '<em><b>Position</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LABEL__POSITION = 1;
/**
* The number of structural features of the '<em>Label</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LABEL_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.PositionImpl <em>Position</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.PositionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getPosition()
* @generated
*/
int POSITION = 37;
/**
* The feature id for the '<em><b>X</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int POSITION__X = 0;
/**
* The feature id for the '<em><b>Y</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int POSITION__Y = 1;
/**
* The number of structural features of the '<em>Position</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int POSITION_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LegendImpl <em>Legend</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LegendImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLegend()
* @generated
*/
int LEGEND = 38;
/**
* The feature id for the '<em><b>X</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LEGEND__X = 0;
/**
* The feature id for the '<em><b>Y</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LEGEND__Y = 1;
/**
* The number of structural features of the '<em>Legend</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LEGEND_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.MarginsImpl <em>Margins</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.MarginsImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getMargins()
* @generated
*/
int MARGINS = 39;
/**
* The feature id for the '<em><b>Top</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MARGINS__TOP = 0;
/**
* The feature id for the '<em><b>Bottom</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MARGINS__BOTTOM = 1;
/**
* The feature id for the '<em><b>Left</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MARGINS__LEFT = 2;
/**
* The feature id for the '<em><b>Right</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MARGINS__RIGHT = 3;
/**
* The number of structural features of the '<em>Margins</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MARGINS_FEATURE_COUNT = 4;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ScaleImpl <em>Scale</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ScaleImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getScale()
* @generated
*/
int SCALE = 40;
/**
* The feature id for the '<em><b>X</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SCALE__X = 0;
/**
* The feature id for the '<em><b>Y</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SCALE__Y = 1;
/**
* The number of structural features of the '<em>Scale</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SCALE_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RoutineImpl <em>Routine</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RoutineImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRoutine()
* @generated
*/
int ROUTINE = 41;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ROUTINE__NAME = 0;
/**
* The number of structural features of the '<em>Routine</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ROUTINE_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.JBCRoutineImpl <em>JBC Routine</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.JBCRoutineImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getJBCRoutine()
* @generated
*/
int JBC_ROUTINE = 42;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int JBC_ROUTINE__NAME = ROUTINE__NAME;
/**
* The number of structural features of the '<em>JBC Routine</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int JBC_ROUTINE_FEATURE_COUNT = ROUTINE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.JavaRoutineImpl <em>Java Routine</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.JavaRoutineImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getJavaRoutine()
* @generated
*/
int JAVA_ROUTINE = 43;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int JAVA_ROUTINE__NAME = ROUTINE__NAME;
/**
* The number of structural features of the '<em>Java Routine</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int JAVA_ROUTINE_FEATURE_COUNT = ROUTINE_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FixedSelectionImpl <em>Fixed Selection</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FixedSelectionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFixedSelection()
* @generated
*/
int FIXED_SELECTION = 44;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIXED_SELECTION__FIELD = 0;
/**
* The feature id for the '<em><b>Operand</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIXED_SELECTION__OPERAND = 1;
/**
* The feature id for the '<em><b>Values</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIXED_SELECTION__VALUES = 2;
/**
* The number of structural features of the '<em>Fixed Selection</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIXED_SELECTION_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FixedSortImpl <em>Fixed Sort</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FixedSortImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFixedSort()
* @generated
*/
int FIXED_SORT = 45;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIXED_SORT__FIELD = 0;
/**
* The feature id for the '<em><b>Order</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIXED_SORT__ORDER = 1;
/**
* The number of structural features of the '<em>Fixed Sort</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIXED_SORT_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SelectionExpressionImpl <em>Selection Expression</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SelectionExpressionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelectionExpression()
* @generated
*/
int SELECTION_EXPRESSION = 46;
/**
* The feature id for the '<em><b>Selection</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION_EXPRESSION__SELECTION = 0;
/**
* The number of structural features of the '<em>Selection Expression</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION_EXPRESSION_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SelectionImpl <em>Selection</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SelectionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelection()
* @generated
*/
int SELECTION = 47;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION__FIELD = 0;
/**
* The feature id for the '<em><b>Mandatory</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION__MANDATORY = 1;
/**
* The feature id for the '<em><b>Popup Drop Down</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION__POPUP_DROP_DOWN = 2;
/**
* The feature id for the '<em><b>Label</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION__LABEL = 3;
/**
* The feature id for the '<em><b>Operands</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION__OPERANDS = 4;
/**
* The feature id for the '<em><b>Operator</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION__OPERATOR = 5;
/**
* The number of structural features of the '<em>Selection</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION_FEATURE_COUNT = 6;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FileVersionImpl <em>File Version</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FileVersionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFileVersion()
* @generated
*/
int FILE_VERSION = 48;
/**
* The feature id for the '<em><b>Values</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FILE_VERSION__VALUES = 0;
/**
* The number of structural features of the '<em>File Version</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FILE_VERSION_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.OperationImpl <em>Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.OperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getOperation()
* @generated
*/
int OPERATION = 49;
/**
* The number of structural features of the '<em>Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int OPERATION_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BreakOperationImpl <em>Break Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BreakOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakOperation()
* @generated
*/
int BREAK_OPERATION = 50;
/**
* The number of structural features of the '<em>Break Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BREAK_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BreakOnChangeOperationImpl <em>Break On Change Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BreakOnChangeOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakOnChangeOperation()
* @generated
*/
int BREAK_ON_CHANGE_OPERATION = 51;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BREAK_ON_CHANGE_OPERATION__FIELD = BREAK_OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Break On Change Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BREAK_ON_CHANGE_OPERATION_FEATURE_COUNT = BREAK_OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BreakLineOperationImpl <em>Break Line Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BreakLineOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakLineOperation()
* @generated
*/
int BREAK_LINE_OPERATION = 52;
/**
* The feature id for the '<em><b>Line</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BREAK_LINE_OPERATION__LINE = BREAK_OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Break Line Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BREAK_LINE_OPERATION_FEATURE_COUNT = BREAK_OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CalcOperationImpl <em>Calc Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CalcOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCalcOperation()
* @generated
*/
int CALC_OPERATION = 53;
/**
* The feature id for the '<em><b>Field</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CALC_OPERATION__FIELD = OPERATION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Operator</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CALC_OPERATION__OPERATOR = OPERATION_FEATURE_COUNT + 1;
/**
* The number of structural features of the '<em>Calc Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CALC_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ConstantOperationImpl <em>Constant Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ConstantOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getConstantOperation()
* @generated
*/
int CONSTANT_OPERATION = 54;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CONSTANT_OPERATION__VALUE = OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Constant Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CONSTANT_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LabelOperationImpl <em>Label Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LabelOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLabelOperation()
* @generated
*/
int LABEL_OPERATION = 55;
/**
* The feature id for the '<em><b>Label</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LABEL_OPERATION__LABEL = OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Label Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LABEL_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DateOperationImpl <em>Date Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DateOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDateOperation()
* @generated
*/
int DATE_OPERATION = 56;
/**
* The number of structural features of the '<em>Date Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DATE_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DecisionOperationImpl <em>Decision Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DecisionOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDecisionOperation()
* @generated
*/
int DECISION_OPERATION = 57;
/**
* The feature id for the '<em><b>Left Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DECISION_OPERATION__LEFT_FIELD = OPERATION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Operand</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DECISION_OPERATION__OPERAND = OPERATION_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Right Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DECISION_OPERATION__RIGHT_FIELD = OPERATION_FEATURE_COUNT + 2;
/**
* The feature id for the '<em><b>First Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DECISION_OPERATION__FIRST_FIELD = OPERATION_FEATURE_COUNT + 3;
/**
* The feature id for the '<em><b>Second Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DECISION_OPERATION__SECOND_FIELD = OPERATION_FEATURE_COUNT + 4;
/**
* The number of structural features of the '<em>Decision Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DECISION_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 5;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DescriptorOperationImpl <em>Descriptor Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DescriptorOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDescriptorOperation()
* @generated
*/
int DESCRIPTOR_OPERATION = 58;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DESCRIPTOR_OPERATION__FIELD = OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Descriptor Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DESCRIPTOR_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TodayOperationImpl <em>Today Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TodayOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTodayOperation()
* @generated
*/
int TODAY_OPERATION = 59;
/**
* The number of structural features of the '<em>Today Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TODAY_OPERATION_FEATURE_COUNT = DATE_OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LWDOperationImpl <em>LWD Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LWDOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLWDOperation()
* @generated
*/
int LWD_OPERATION = 60;
/**
* The number of structural features of the '<em>LWD Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LWD_OPERATION_FEATURE_COUNT = DATE_OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.NWDOperationImpl <em>NWD Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.NWDOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getNWDOperation()
* @generated
*/
int NWD_OPERATION = 61;
/**
* The number of structural features of the '<em>NWD Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int NWD_OPERATION_FEATURE_COUNT = DATE_OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldOperationImpl <em>Field Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldOperation()
* @generated
*/
int FIELD_OPERATION = 62;
/**
* The number of structural features of the '<em>Field Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ApplicationFieldNameOperationImpl <em>Application Field Name Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ApplicationFieldNameOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getApplicationFieldNameOperation()
* @generated
*/
int APPLICATION_FIELD_NAME_OPERATION = 63;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_FIELD_NAME_OPERATION__FIELD = FIELD_OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Application Field Name Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int APPLICATION_FIELD_NAME_OPERATION_FEATURE_COUNT = FIELD_OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldNumberOperationImpl <em>Field Number Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldNumberOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldNumberOperation()
* @generated
*/
int FIELD_NUMBER_OPERATION = 64;
/**
* The feature id for the '<em><b>Number</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_NUMBER_OPERATION__NUMBER = FIELD_OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Field Number Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_NUMBER_OPERATION_FEATURE_COUNT = FIELD_OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldExtractOperationImpl <em>Field Extract Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldExtractOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldExtractOperation()
* @generated
*/
int FIELD_EXTRACT_OPERATION = 65;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_EXTRACT_OPERATION__FIELD = FIELD_OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Field Extract Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_EXTRACT_OPERATION_FEATURE_COUNT = FIELD_OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SelectionOperationImpl <em>Selection Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SelectionOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelectionOperation()
* @generated
*/
int SELECTION_OPERATION = 66;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION_OPERATION__FIELD = OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Selection Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SELECTION_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SystemOperationImpl <em>System Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SystemOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSystemOperation()
* @generated
*/
int SYSTEM_OPERATION = 67;
/**
* The number of structural features of the '<em>System Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SYSTEM_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.UserOperationImpl <em>User Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.UserOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getUserOperation()
* @generated
*/
int USER_OPERATION = 68;
/**
* The number of structural features of the '<em>User Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int USER_OPERATION_FEATURE_COUNT = SYSTEM_OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CompanyOperationImpl <em>Company Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CompanyOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCompanyOperation()
* @generated
*/
int COMPANY_OPERATION = 69;
/**
* The number of structural features of the '<em>Company Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMPANY_OPERATION_FEATURE_COUNT = SYSTEM_OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LanguageOperationImpl <em>Language Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LanguageOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLanguageOperation()
* @generated
*/
int LANGUAGE_OPERATION = 70;
/**
* The number of structural features of the '<em>Language Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LANGUAGE_OPERATION_FEATURE_COUNT = SYSTEM_OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LocalCurrencyOperationImpl <em>Local Currency Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LocalCurrencyOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLocalCurrencyOperation()
* @generated
*/
int LOCAL_CURRENCY_OPERATION = 71;
/**
* The number of structural features of the '<em>Local Currency Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int LOCAL_CURRENCY_OPERATION_FEATURE_COUNT = SYSTEM_OPERATION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TotalOperationImpl <em>Total Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TotalOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTotalOperation()
* @generated
*/
int TOTAL_OPERATION = 72;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TOTAL_OPERATION__FIELD = OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Total Operation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TOTAL_OPERATION_FEATURE_COUNT = OPERATION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ConversionImpl <em>Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getConversion()
* @generated
*/
int CONVERSION = 73;
/**
* The number of structural features of the '<em>Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CONVERSION_FEATURE_COUNT = 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ExtractConversionImpl <em>Extract Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ExtractConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getExtractConversion()
* @generated
*/
int EXTRACT_CONVERSION = 74;
/**
* The feature id for the '<em><b>From</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int EXTRACT_CONVERSION__FROM = CONVERSION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>To</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int EXTRACT_CONVERSION__TO = CONVERSION_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Delimiter</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int EXTRACT_CONVERSION__DELIMITER = CONVERSION_FEATURE_COUNT + 2;
/**
* The number of structural features of the '<em>Extract Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int EXTRACT_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DecryptConversionImpl <em>Decrypt Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DecryptConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDecryptConversion()
* @generated
*/
int DECRYPT_CONVERSION = 75;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DECRYPT_CONVERSION__FIELD = CONVERSION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Decrypt Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DECRYPT_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ReplaceConversionImpl <em>Replace Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ReplaceConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getReplaceConversion()
* @generated
*/
int REPLACE_CONVERSION = 76;
/**
* The feature id for the '<em><b>Old Data</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REPLACE_CONVERSION__OLD_DATA = CONVERSION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>New Data</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REPLACE_CONVERSION__NEW_DATA = CONVERSION_FEATURE_COUNT + 1;
/**
* The number of structural features of the '<em>Replace Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REPLACE_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ConvertConversionImpl <em>Convert Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ConvertConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getConvertConversion()
* @generated
*/
int CONVERT_CONVERSION = 77;
/**
* The feature id for the '<em><b>Old Data</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CONVERT_CONVERSION__OLD_DATA = CONVERSION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>New Data</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CONVERT_CONVERSION__NEW_DATA = CONVERSION_FEATURE_COUNT + 1;
/**
* The number of structural features of the '<em>Convert Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CONVERT_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ValueConversionImpl <em>Value Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ValueConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getValueConversion()
* @generated
*/
int VALUE_CONVERSION = 78;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int VALUE_CONVERSION__VALUE = CONVERSION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Sub Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int VALUE_CONVERSION__SUB_VALUE = CONVERSION_FEATURE_COUNT + 1;
/**
* The number of structural features of the '<em>Value Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int VALUE_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.JulianConversionImpl <em>Julian Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.JulianConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getJulianConversion()
* @generated
*/
int JULIAN_CONVERSION = 79;
/**
* The number of structural features of the '<em>Julian Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int JULIAN_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BasicConversionImpl <em>Basic Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BasicConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBasicConversion()
* @generated
*/
int BASIC_CONVERSION = 80;
/**
* The feature id for the '<em><b>Instruction</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BASIC_CONVERSION__INSTRUCTION = CONVERSION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Basic Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BASIC_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BasicOConversionImpl <em>Basic OConversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BasicOConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBasicOConversion()
* @generated
*/
int BASIC_OCONVERSION = 81;
/**
* The feature id for the '<em><b>Instruction</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BASIC_OCONVERSION__INSTRUCTION = BASIC_CONVERSION__INSTRUCTION;
/**
* The number of structural features of the '<em>Basic OConversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BASIC_OCONVERSION_FEATURE_COUNT = BASIC_CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BasicIConversionImpl <em>Basic IConversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BasicIConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBasicIConversion()
* @generated
*/
int BASIC_ICONVERSION = 82;
/**
* The feature id for the '<em><b>Instruction</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BASIC_ICONVERSION__INSTRUCTION = BASIC_CONVERSION__INSTRUCTION;
/**
* The number of structural features of the '<em>Basic IConversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BASIC_ICONVERSION_FEATURE_COUNT = BASIC_CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.GetFromConversionImpl <em>Get From Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.GetFromConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getGetFromConversion()
* @generated
*/
int GET_FROM_CONVERSION = 83;
/**
* The feature id for the '<em><b>Application</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GET_FROM_CONVERSION__APPLICATION = CONVERSION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GET_FROM_CONVERSION__FIELD = CONVERSION_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Language</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GET_FROM_CONVERSION__LANGUAGE = CONVERSION_FEATURE_COUNT + 2;
/**
* The number of structural features of the '<em>Get From Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GET_FROM_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RateConversionImpl <em>Rate Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RateConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRateConversion()
* @generated
*/
int RATE_CONVERSION = 84;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int RATE_CONVERSION__FIELD = CONVERSION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Rate Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int RATE_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CalcFixedRateConversionImpl <em>Calc Fixed Rate Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CalcFixedRateConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCalcFixedRateConversion()
* @generated
*/
int CALC_FIXED_RATE_CONVERSION = 85;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CALC_FIXED_RATE_CONVERSION__FIELD = RATE_CONVERSION__FIELD;
/**
* The number of structural features of the '<em>Calc Fixed Rate Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CALC_FIXED_RATE_CONVERSION_FEATURE_COUNT = RATE_CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.GetFixedRateConversionImpl <em>Get Fixed Rate Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.GetFixedRateConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getGetFixedRateConversion()
* @generated
*/
int GET_FIXED_RATE_CONVERSION = 86;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GET_FIXED_RATE_CONVERSION__FIELD = RATE_CONVERSION__FIELD;
/**
* The number of structural features of the '<em>Get Fixed Rate Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GET_FIXED_RATE_CONVERSION_FEATURE_COUNT = RATE_CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.GetFixedCurrencyConversionImpl <em>Get Fixed Currency Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.GetFixedCurrencyConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getGetFixedCurrencyConversion()
* @generated
*/
int GET_FIXED_CURRENCY_CONVERSION = 87;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GET_FIXED_CURRENCY_CONVERSION__FIELD = RATE_CONVERSION__FIELD;
/**
* The number of structural features of the '<em>Get Fixed Currency Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int GET_FIXED_CURRENCY_CONVERSION_FEATURE_COUNT = RATE_CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.AbsConversionImpl <em>Abs Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.AbsConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getAbsConversion()
* @generated
*/
int ABS_CONVERSION = 88;
/**
* The number of structural features of the '<em>Abs Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ABS_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.MatchFieldImpl <em>Match Field</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.MatchFieldImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getMatchField()
* @generated
*/
int MATCH_FIELD = 89;
/**
* The feature id for the '<em><b>Pattern</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MATCH_FIELD__PATTERN = CONVERSION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MATCH_FIELD__VALUE = CONVERSION_FEATURE_COUNT + 1;
/**
* The number of structural features of the '<em>Match Field</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MATCH_FIELD_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CallRoutineImpl <em>Call Routine</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CallRoutineImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCallRoutine()
* @generated
*/
int CALL_ROUTINE = 90;
/**
* The feature id for the '<em><b>Routine</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CALL_ROUTINE__ROUTINE = CONVERSION_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Call Routine</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CALL_ROUTINE_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RepeatConversionImpl <em>Repeat Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RepeatConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRepeatConversion()
* @generated
*/
int REPEAT_CONVERSION = 91;
/**
* The number of structural features of the '<em>Repeat Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REPEAT_CONVERSION_FEATURE_COUNT = CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RepeatOnNullConversionImpl <em>Repeat On Null Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RepeatOnNullConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRepeatOnNullConversion()
* @generated
*/
int REPEAT_ON_NULL_CONVERSION = 92;
/**
* The number of structural features of the '<em>Repeat On Null Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REPEAT_ON_NULL_CONVERSION_FEATURE_COUNT = REPEAT_CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RepeatEveryConversionImpl <em>Repeat Every Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RepeatEveryConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRepeatEveryConversion()
* @generated
*/
int REPEAT_EVERY_CONVERSION = 93;
/**
* The number of structural features of the '<em>Repeat Every Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REPEAT_EVERY_CONVERSION_FEATURE_COUNT = REPEAT_CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RepeatSubConversionImpl <em>Repeat Sub Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RepeatSubConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRepeatSubConversion()
* @generated
*/
int REPEAT_SUB_CONVERSION = 94;
/**
* The number of structural features of the '<em>Repeat Sub Conversion</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int REPEAT_SUB_CONVERSION_FEATURE_COUNT = REPEAT_CONVERSION_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldImpl <em>Field</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getField()
* @generated
*/
int FIELD = 95;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__NAME = 0;
/**
* The feature id for the '<em><b>Label</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__LABEL = 1;
/**
* The feature id for the '<em><b>Comments</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__COMMENTS = 2;
/**
* The feature id for the '<em><b>Display Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__DISPLAY_TYPE = 3;
/**
* The feature id for the '<em><b>Format</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__FORMAT = 4;
/**
* The feature id for the '<em><b>Break Condition</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__BREAK_CONDITION = 5;
/**
* The feature id for the '<em><b>Length</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__LENGTH = 6;
/**
* The feature id for the '<em><b>Alignment</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__ALIGNMENT = 7;
/**
* The feature id for the '<em><b>Comma Separator</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__COMMA_SEPARATOR = 8;
/**
* The feature id for the '<em><b>Number Of Decimals</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__NUMBER_OF_DECIMALS = 9;
/**
* The feature id for the '<em><b>Escape Sequence</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__ESCAPE_SEQUENCE = 10;
/**
* The feature id for the '<em><b>Fmt Mask</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__FMT_MASK = 11;
/**
* The feature id for the '<em><b>Display Section</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__DISPLAY_SECTION = 12;
/**
* The feature id for the '<em><b>Position</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__POSITION = 13;
/**
* The feature id for the '<em><b>Column Width</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__COLUMN_WIDTH = 14;
/**
* The feature id for the '<em><b>Spool Break</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__SPOOL_BREAK = 15;
/**
* The feature id for the '<em><b>Single Multi</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__SINGLE_MULTI = 16;
/**
* The feature id for the '<em><b>Hidden</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__HIDDEN = 17;
/**
* The feature id for the '<em><b>No Header</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__NO_HEADER = 18;
/**
* The feature id for the '<em><b>No Column Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__NO_COLUMN_LABEL = 19;
/**
* The feature id for the '<em><b>Operation</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__OPERATION = 20;
/**
* The feature id for the '<em><b>Conversion</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__CONVERSION = 21;
/**
* The feature id for the '<em><b>Attributes</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD__ATTRIBUTES = 22;
/**
* The number of structural features of the '<em>Field</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_FEATURE_COUNT = 23;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BreakConditionImpl <em>Break Condition</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BreakConditionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakCondition()
* @generated
*/
int BREAK_CONDITION = 96;
/**
* The feature id for the '<em><b>Break</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BREAK_CONDITION__BREAK = 0;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BREAK_CONDITION__FIELD = 1;
/**
* The number of structural features of the '<em>Break Condition</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BREAK_CONDITION_FEATURE_COUNT = 2;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldPositionImpl <em>Field Position</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldPositionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldPosition()
* @generated
*/
int FIELD_POSITION = 97;
/**
* The feature id for the '<em><b>Page Throw</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_POSITION__PAGE_THROW = 0;
/**
* The feature id for the '<em><b>Column</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_POSITION__COLUMN = 1;
/**
* The feature id for the '<em><b>Relative</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_POSITION__RELATIVE = 2;
/**
* The feature id for the '<em><b>Line</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_POSITION__LINE = 3;
/**
* The feature id for the '<em><b>Multi Line</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_POSITION__MULTI_LINE = 4;
/**
* The number of structural features of the '<em>Field Position</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FIELD_POSITION_FEATURE_COUNT = 5;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FormatImpl <em>Format</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FormatImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFormat()
* @generated
*/
int FORMAT = 98;
/**
* The feature id for the '<em><b>Format</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FORMAT__FORMAT = 0;
/**
* The feature id for the '<em><b>Field</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FORMAT__FIELD = 1;
/**
* The feature id for the '<em><b>Pattern</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FORMAT__PATTERN = 2;
/**
* The number of structural features of the '<em>Format</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int FORMAT_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ToolImpl <em>Tool</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ToolImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTool()
* @generated
*/
int TOOL = 99;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TOOL__NAME = 0;
/**
* The feature id for the '<em><b>Label</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TOOL__LABEL = 1;
/**
* The feature id for the '<em><b>Command</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TOOL__COMMAND = 2;
/**
* The number of structural features of the '<em>Tool</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int TOOL_FEATURE_COUNT = 3;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.WebServiceImpl <em>Web Service</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.WebServiceImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getWebService()
* @generated
*/
int WEB_SERVICE = 100;
/**
* The feature id for the '<em><b>Publish Web Service</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WEB_SERVICE__PUBLISH_WEB_SERVICE = 0;
/**
* The feature id for the '<em><b>Web Service Names</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WEB_SERVICE__WEB_SERVICE_NAMES = 1;
/**
* The feature id for the '<em><b>Web Service Activity</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WEB_SERVICE__WEB_SERVICE_ACTIVITY = 2;
/**
* The feature id for the '<em><b>Web Service Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WEB_SERVICE__WEB_SERVICE_DESCRIPTION = 3;
/**
* The number of structural features of the '<em>Web Service</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WEB_SERVICE_FEATURE_COUNT = 4;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.EnquiryMode <em>Mode</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.EnquiryMode
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEnquiryMode()
* @generated
*/
int ENQUIRY_MODE = 101;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.AlignmentKind <em>Alignment Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.AlignmentKind
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getAlignmentKind()
* @generated
*/
int ALIGNMENT_KIND = 102;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.BreakKind <em>Break Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.BreakKind
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakKind()
* @generated
*/
int BREAK_KIND = 103;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.CurrencyPattern <em>Currency Pattern</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.CurrencyPattern
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCurrencyPattern()
* @generated
*/
int CURRENCY_PATTERN = 104;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.DecisionOperand <em>Decision Operand</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.DecisionOperand
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDecisionOperand()
* @generated
*/
int DECISION_OPERAND = 105;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.DisplaySectionKind <em>Display Section Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.DisplaySectionKind
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDisplaySectionKind()
* @generated
*/
int DISPLAY_SECTION_KIND = 106;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.FieldFormat <em>Field Format</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.FieldFormat
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldFormat()
* @generated
*/
int FIELD_FORMAT = 107;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.FunctionKind <em>Function Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.FunctionKind
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFunctionKind()
* @generated
*/
int FUNCTION_KIND = 108;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.SelectionOperator <em>Selection Operator</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.SelectionOperator
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelectionOperator()
* @generated
*/
int SELECTION_OPERATOR = 109;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.CriteriaOperator <em>Criteria Operator</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.CriteriaOperator
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCriteriaOperator()
* @generated
*/
int CRITERIA_OPERATOR = 110;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.ProcessingMode <em>Processing Mode</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.ProcessingMode
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getProcessingMode()
* @generated
*/
int PROCESSING_MODE = 111;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.SortOrder <em>Sort Order</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.SortOrder
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSortOrder()
* @generated
*/
int SORT_ORDER = 112;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.AndOr <em>And Or</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.AndOr
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getAndOr()
* @generated
*/
int AND_OR = 113;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.FileVersionOption <em>File Version Option</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.FileVersionOption
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFileVersionOption()
* @generated
*/
int FILE_VERSION_OPTION = 114;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.EscapeSequence <em>Escape Sequence</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.EscapeSequence
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEscapeSequence()
* @generated
*/
int ESCAPE_SEQUENCE = 115;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.Orientation <em>Orientation</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.Orientation
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getOrientation()
* @generated
*/
int ORIENTATION = 116;
/**
* The meta object id for the '{@link com.odcgroup.t24.enquiry.enquiry.ServerMode <em>Server Mode</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.ServerMode
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getServerMode()
* @generated
*/
int SERVER_MODE = 117;
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry <em>Enquiry</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Enquiry</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry
* @generated
*/
EClass getEnquiry();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getName()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_Name();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getFileName <em>File Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>File Name</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getFileName()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_FileName();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getMetamodelVersion <em>Metamodel Version</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Metamodel Version</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getMetamodelVersion()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_MetamodelVersion();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getHeader <em>Header</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Header</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getHeader()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_Header();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getDescription <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Description</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getDescription()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_Description();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getServerMode <em>Server Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Server Mode</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getServerMode()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_ServerMode();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getEnquiryMode <em>Enquiry Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Enquiry Mode</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getEnquiryMode()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_EnquiryMode();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getCompanies <em>Companies</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Companies</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getCompanies()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_Companies();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getAccountField <em>Account Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Account Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getAccountField()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_AccountField();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getCustomerField <em>Customer Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Customer Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getCustomerField()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_CustomerField();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getZeroRecordsDisplay <em>Zero Records Display</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Zero Records Display</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getZeroRecordsDisplay()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_ZeroRecordsDisplay();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getNoSelection <em>No Selection</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>No Selection</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getNoSelection()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_NoSelection();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getShowAllBooks <em>Show All Books</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Show All Books</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getShowAllBooks()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_ShowAllBooks();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getStartLine <em>Start Line</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Start Line</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getStartLine()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_StartLine();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getEndLine <em>End Line</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>End Line</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getEndLine()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_EndLine();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getBuildRoutines <em>Build Routines</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Build Routines</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getBuildRoutines()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_BuildRoutines();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getFixedSelections <em>Fixed Selections</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Fixed Selections</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getFixedSelections()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_FixedSelections();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getFixedSorts <em>Fixed Sorts</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Fixed Sorts</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getFixedSorts()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_FixedSorts();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getCustomSelection <em>Custom Selection</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Custom Selection</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getCustomSelection()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_CustomSelection();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getFields <em>Fields</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Fields</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getFields()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_Fields();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getToolbar <em>Toolbar</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Toolbar</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getToolbar()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_Toolbar();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getTools <em>Tools</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Tools</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getTools()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_Tools();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getTarget <em>Target</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Target</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getTarget()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_Target();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getDrillDowns <em>Drill Downs</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Drill Downs</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getDrillDowns()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_DrillDowns();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getSecurity <em>Security</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Security</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getSecurity()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_Security();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getGraph <em>Graph</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Graph</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getGraph()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_Graph();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getWebService <em>Web Service</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Web Service</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getWebService()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_WebService();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getGenerateIFP <em>Generate IFP</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Generate IFP</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getGenerateIFP()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_GenerateIFP();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getFileVersion <em>File Version</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>File Version</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getFileVersion()
* @see #getEnquiry()
* @generated
*/
EReference getEnquiry_FileVersion();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getAttributes <em>Attributes</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Attributes</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getAttributes()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_Attributes();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.Enquiry#getIntrospectionMessages <em>Introspection Messages</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Introspection Messages</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Enquiry#getIntrospectionMessages()
* @see #getEnquiry()
* @generated
*/
EAttribute getEnquiry_IntrospectionMessages();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Companies <em>Companies</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Companies</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Companies
* @generated
*/
EClass getCompanies();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Companies#getAll <em>All</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>All</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Companies#getAll()
* @see #getCompanies()
* @generated
*/
EAttribute getCompanies_All();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.Companies#getCode <em>Code</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Code</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Companies#getCode()
* @see #getCompanies()
* @generated
*/
EAttribute getCompanies_Code();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.EnquiryHeader <em>Header</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Header</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.EnquiryHeader
* @generated
*/
EClass getEnquiryHeader();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.EnquiryHeader#getLabel <em>Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Label</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.EnquiryHeader#getLabel()
* @see #getEnquiryHeader()
* @generated
*/
EReference getEnquiryHeader_Label();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.EnquiryHeader#getColumn <em>Column</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Column</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.EnquiryHeader#getColumn()
* @see #getEnquiryHeader()
* @generated
*/
EAttribute getEnquiryHeader_Column();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.EnquiryHeader#getLine <em>Line</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Line</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.EnquiryHeader#getLine()
* @see #getEnquiryHeader()
* @generated
*/
EAttribute getEnquiryHeader_Line();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Target <em>Target</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Target</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Target
* @generated
*/
EClass getTarget();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Target#getApplication <em>Application</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Application</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Target#getApplication()
* @see #getTarget()
* @generated
*/
EAttribute getTarget_Application();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Target#getScreen <em>Screen</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Screen</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Target#getScreen()
* @see #getTarget()
* @generated
*/
EAttribute getTarget_Screen();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Target#getMappings <em>Mappings</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Mappings</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Target#getMappings()
* @see #getTarget()
* @generated
*/
EReference getTarget_Mappings();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.TargetMapping <em>Target Mapping</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Target Mapping</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TargetMapping
* @generated
*/
EClass getTargetMapping();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.TargetMapping#getFromField <em>From Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>From Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TargetMapping#getFromField()
* @see #getTargetMapping()
* @generated
*/
EAttribute getTargetMapping_FromField();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.TargetMapping#getToField <em>To Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>To Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TargetMapping#getToField()
* @see #getTargetMapping()
* @generated
*/
EAttribute getTargetMapping_ToField();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Parameters <em>Parameters</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Parameters</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Parameters
* @generated
*/
EClass getParameters();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Parameters#getFunction <em>Function</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Function</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Parameters#getFunction()
* @see #getParameters()
* @generated
*/
EAttribute getParameters_Function();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Parameters#isAuto <em>Auto</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Auto</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Parameters#isAuto()
* @see #getParameters()
* @generated
*/
EAttribute getParameters_Auto();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Parameters#isRunImmediately <em>Run Immediately</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Run Immediately</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Parameters#isRunImmediately()
* @see #getParameters()
* @generated
*/
EAttribute getParameters_RunImmediately();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Parameters#getPwActivity <em>Pw Activity</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Pw Activity</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Parameters#getPwActivity()
* @see #getParameters()
* @generated
*/
EAttribute getParameters_PwActivity();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.Parameters#getFieldName <em>Field Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Field Name</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Parameters#getFieldName()
* @see #getParameters()
* @generated
*/
EAttribute getParameters_FieldName();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.Parameters#getVariable <em>Variable</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Variable</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Parameters#getVariable()
* @see #getParameters()
* @generated
*/
EAttribute getParameters_Variable();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.DrillDown <em>Drill Down</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Drill Down</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDown
* @generated
*/
EClass getDrillDown();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DrillDown#getDrill_name <em>Drill name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Drill name</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDown#getDrill_name()
* @see #getDrillDown()
* @generated
*/
EAttribute getDrillDown_Drill_name();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.DrillDown#getDescription <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Description</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDown#getDescription()
* @see #getDrillDown()
* @generated
*/
EReference getDrillDown_Description();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DrillDown#getLabelField <em>Label Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Label Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDown#getLabelField()
* @see #getDrillDown()
* @generated
*/
EAttribute getDrillDown_LabelField();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DrillDown#getImage <em>Image</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Image</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDown#getImage()
* @see #getDrillDown()
* @generated
*/
EAttribute getDrillDown_Image();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DrillDown#getInfo <em>Info</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Info</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDown#getInfo()
* @see #getDrillDown()
* @generated
*/
EAttribute getDrillDown_Info();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.DrillDown#getCriteria <em>Criteria</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Criteria</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDown#getCriteria()
* @see #getDrillDown()
* @generated
*/
EReference getDrillDown_Criteria();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.DrillDown#getParameters <em>Parameters</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Parameters</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDown#getParameters()
* @see #getDrillDown()
* @generated
*/
EReference getDrillDown_Parameters();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.DrillDown#getType <em>Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDown#getType()
* @see #getDrillDown()
* @generated
*/
EReference getDrillDown_Type();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.DrillDownType <em>Drill Down Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Drill Down Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDownType
* @generated
*/
EClass getDrillDownType();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DrillDownType#getProperty <em>Property</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Property</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDownType#getProperty()
* @see #getDrillDownType()
* @generated
*/
EAttribute getDrillDownType_Property();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.DrillDownStringType <em>Drill Down String Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Drill Down String Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDownStringType
* @generated
*/
EClass getDrillDownStringType();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DrillDownStringType#getValue <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Value</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDownStringType#getValue()
* @see #getDrillDownStringType()
* @generated
*/
EAttribute getDrillDownStringType_Value();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ApplicationType <em>Application Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ApplicationType
* @generated
*/
EClass getApplicationType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ScreenType <em>Screen Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Screen Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ScreenType
* @generated
*/
EClass getScreenType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.EnquiryType <em>Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.EnquiryType
* @generated
*/
EClass getEnquiryType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.FromFieldType <em>From Field Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>From Field Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FromFieldType
* @generated
*/
EClass getFromFieldType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.CompositeScreenType <em>Composite Screen Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Composite Screen Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CompositeScreenType
* @generated
*/
EClass getCompositeScreenType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.TabbedScreenType <em>Tabbed Screen Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Tabbed Screen Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TabbedScreenType
* @generated
*/
EClass getTabbedScreenType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ViewType <em>View Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>View Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ViewType
* @generated
*/
EClass getViewType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.QuitSEEType <em>Quit SEE Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Quit SEE Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.QuitSEEType
* @generated
*/
EClass getQuitSEEType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.BlankType <em>Blank Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Blank Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BlankType
* @generated
*/
EClass getBlankType();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.BlankType#getValue <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Value</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BlankType#getValue()
* @see #getBlankType()
* @generated
*/
EAttribute getBlankType_Value();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.PWProcessType <em>PW Process Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>PW Process Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.PWProcessType
* @generated
*/
EClass getPWProcessType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.DownloadType <em>Download Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Download Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DownloadType
* @generated
*/
EClass getDownloadType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.RunType <em>Run Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Run Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.RunType
* @generated
*/
EClass getRunType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.UtilType <em>Util Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Util Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.UtilType
* @generated
*/
EClass getUtilType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.JavaScriptType <em>Java Script Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Java Script Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.JavaScriptType
* @generated
*/
EClass getJavaScriptType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ShouldBeChangedType <em>Should Be Changed Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Should Be Changed Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ShouldBeChangedType
* @generated
*/
EClass getShouldBeChangedType();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.DrillDownOption <em>Drill Down Option</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Drill Down Option</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DrillDownOption
* @generated
*/
EClass getDrillDownOption();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.CompositeScreenOption <em>Composite Screen Option</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Composite Screen Option</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CompositeScreenOption
* @generated
*/
EClass getCompositeScreenOption();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.CompositeScreenOption#getCompositeScreen <em>Composite Screen</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Composite Screen</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CompositeScreenOption#getCompositeScreen()
* @see #getCompositeScreenOption()
* @generated
*/
EAttribute getCompositeScreenOption_CompositeScreen();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.CompositeScreenOption#getReference <em>Reference</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Reference</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CompositeScreenOption#getReference()
* @see #getCompositeScreenOption()
* @generated
*/
EReference getCompositeScreenOption_Reference();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.CompositeScreenOption#getFieldParameter <em>Field Parameter</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Field Parameter</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CompositeScreenOption#getFieldParameter()
* @see #getCompositeScreenOption()
* @generated
*/
EReference getCompositeScreenOption_FieldParameter();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.TabOption <em>Tab Option</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Tab Option</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TabOption
* @generated
*/
EClass getTabOption();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.TabOption#getTabName <em>Tab Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Tab Name</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TabOption#getTabName()
* @see #getTabOption()
* @generated
*/
EAttribute getTabOption_TabName();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.TabOption#getReference <em>Reference</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Reference</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TabOption#getReference()
* @see #getTabOption()
* @generated
*/
EReference getTabOption_Reference();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.TabOption#getFieldParameter <em>Field Parameter</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Field Parameter</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TabOption#getFieldParameter()
* @see #getTabOption()
* @generated
*/
EReference getTabOption_FieldParameter();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ViewOption <em>View Option</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>View Option</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ViewOption
* @generated
*/
EClass getViewOption();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.QuitSEEOption <em>Quit SEE Option</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Quit SEE Option</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.QuitSEEOption
* @generated
*/
EClass getQuitSEEOption();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Reference <em>Reference</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Reference</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Reference
* @generated
*/
EClass getReference();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Reference#getFile <em>File</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>File</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Reference#getFile()
* @see #getReference()
* @generated
*/
EAttribute getReference_File();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Reference#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Reference#getField()
* @see #getReference()
* @generated
*/
EAttribute getReference_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Parameter <em>Parameter</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Parameter</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Parameter
* @generated
*/
EClass getParameter();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Parameter#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Parameter#getField()
* @see #getParameter()
* @generated
*/
EAttribute getParameter_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.SelectionCriteria <em>Selection Criteria</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Selection Criteria</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SelectionCriteria
* @generated
*/
EClass getSelectionCriteria();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.SelectionCriteria#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SelectionCriteria#getField()
* @see #getSelectionCriteria()
* @generated
*/
EAttribute getSelectionCriteria_Field();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.SelectionCriteria#getOperand <em>Operand</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Operand</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SelectionCriteria#getOperand()
* @see #getSelectionCriteria()
* @generated
*/
EAttribute getSelectionCriteria_Operand();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.SelectionCriteria#getValues <em>Values</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Values</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SelectionCriteria#getValues()
* @see #getSelectionCriteria()
* @generated
*/
EAttribute getSelectionCriteria_Values();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Security <em>Security</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Security</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Security
* @generated
*/
EClass getSecurity();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Security#getApplication <em>Application</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Application</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Security#getApplication()
* @see #getSecurity()
* @generated
*/
EAttribute getSecurity_Application();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Security#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Security#getField()
* @see #getSecurity()
* @generated
*/
EAttribute getSecurity_Field();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Security#isAbort <em>Abort</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Abort</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Security#isAbort()
* @see #getSecurity()
* @generated
*/
EAttribute getSecurity_Abort();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Graph <em>Graph</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Graph</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph
* @generated
*/
EClass getGraph();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Graph#getType <em>Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph#getType()
* @see #getGraph()
* @generated
*/
EAttribute getGraph_Type();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Graph#getLabels <em>Labels</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Labels</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph#getLabels()
* @see #getGraph()
* @generated
*/
EReference getGraph_Labels();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Graph#getDimension <em>Dimension</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Dimension</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph#getDimension()
* @see #getGraph()
* @generated
*/
EReference getGraph_Dimension();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Graph#getMargins <em>Margins</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Margins</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph#getMargins()
* @see #getGraph()
* @generated
*/
EReference getGraph_Margins();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Graph#getScale <em>Scale</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Scale</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph#getScale()
* @see #getGraph()
* @generated
*/
EReference getGraph_Scale();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Graph#getLegend <em>Legend</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Legend</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph#getLegend()
* @see #getGraph()
* @generated
*/
EReference getGraph_Legend();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Graph#getXAxis <em>XAxis</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>XAxis</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph#getXAxis()
* @see #getGraph()
* @generated
*/
EReference getGraph_XAxis();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Graph#getYAxis <em>YAxis</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>YAxis</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph#getYAxis()
* @see #getGraph()
* @generated
*/
EReference getGraph_YAxis();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Graph#getZAxis <em>ZAxis</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>ZAxis</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Graph#getZAxis()
* @see #getGraph()
* @generated
*/
EReference getGraph_ZAxis();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Axis <em>Axis</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Axis</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Axis
* @generated
*/
EClass getAxis();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Axis#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Axis#getField()
* @see #getAxis()
* @generated
*/
EAttribute getAxis_Field();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Axis#isDisplayLegend <em>Display Legend</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Display Legend</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Axis#isDisplayLegend()
* @see #getAxis()
* @generated
*/
EAttribute getAxis_DisplayLegend();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Axis#isShowGrid <em>Show Grid</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Show Grid</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Axis#isShowGrid()
* @see #getAxis()
* @generated
*/
EAttribute getAxis_ShowGrid();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Dimension <em>Dimension</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Dimension</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Dimension
* @generated
*/
EClass getDimension();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Dimension#getWidth <em>Width</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Width</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Dimension#getWidth()
* @see #getDimension()
* @generated
*/
EAttribute getDimension_Width();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Dimension#getHeight <em>Height</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Height</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Dimension#getHeight()
* @see #getDimension()
* @generated
*/
EAttribute getDimension_Height();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Dimension#getOrientation <em>Orientation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Orientation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Dimension#getOrientation()
* @see #getDimension()
* @generated
*/
EAttribute getDimension_Orientation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Label <em>Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Label</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Label
* @generated
*/
EClass getLabel();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Label#getDescription <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Description</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Label#getDescription()
* @see #getLabel()
* @generated
*/
EReference getLabel_Description();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Label#getPosition <em>Position</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Position</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Label#getPosition()
* @see #getLabel()
* @generated
*/
EReference getLabel_Position();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Position <em>Position</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Position</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Position
* @generated
*/
EClass getPosition();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Position#getX <em>X</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>X</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Position#getX()
* @see #getPosition()
* @generated
*/
EAttribute getPosition_X();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Position#getY <em>Y</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Y</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Position#getY()
* @see #getPosition()
* @generated
*/
EAttribute getPosition_Y();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Legend <em>Legend</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Legend</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Legend
* @generated
*/
EClass getLegend();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Legend#getX <em>X</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>X</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Legend#getX()
* @see #getLegend()
* @generated
*/
EAttribute getLegend_X();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Legend#getY <em>Y</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Y</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Legend#getY()
* @see #getLegend()
* @generated
*/
EAttribute getLegend_Y();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Margins <em>Margins</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Margins</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Margins
* @generated
*/
EClass getMargins();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Margins#getTop <em>Top</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Top</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Margins#getTop()
* @see #getMargins()
* @generated
*/
EAttribute getMargins_Top();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Margins#getBottom <em>Bottom</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Bottom</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Margins#getBottom()
* @see #getMargins()
* @generated
*/
EAttribute getMargins_Bottom();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Margins#getLeft <em>Left</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Left</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Margins#getLeft()
* @see #getMargins()
* @generated
*/
EAttribute getMargins_Left();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Margins#getRight <em>Right</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Right</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Margins#getRight()
* @see #getMargins()
* @generated
*/
EAttribute getMargins_Right();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Scale <em>Scale</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Scale</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Scale
* @generated
*/
EClass getScale();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Scale#getX <em>X</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>X</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Scale#getX()
* @see #getScale()
* @generated
*/
EAttribute getScale_X();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Scale#getY <em>Y</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Y</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Scale#getY()
* @see #getScale()
* @generated
*/
EAttribute getScale_Y();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Routine <em>Routine</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Routine</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Routine
* @generated
*/
EClass getRoutine();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Routine#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Routine#getName()
* @see #getRoutine()
* @generated
*/
EAttribute getRoutine_Name();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.JBCRoutine <em>JBC Routine</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>JBC Routine</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.JBCRoutine
* @generated
*/
EClass getJBCRoutine();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.JavaRoutine <em>Java Routine</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Java Routine</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.JavaRoutine
* @generated
*/
EClass getJavaRoutine();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.FixedSelection <em>Fixed Selection</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Fixed Selection</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FixedSelection
* @generated
*/
EClass getFixedSelection();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FixedSelection#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FixedSelection#getField()
* @see #getFixedSelection()
* @generated
*/
EAttribute getFixedSelection_Field();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FixedSelection#getOperand <em>Operand</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Operand</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FixedSelection#getOperand()
* @see #getFixedSelection()
* @generated
*/
EAttribute getFixedSelection_Operand();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.FixedSelection#getValues <em>Values</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Values</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FixedSelection#getValues()
* @see #getFixedSelection()
* @generated
*/
EAttribute getFixedSelection_Values();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.FixedSort <em>Fixed Sort</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Fixed Sort</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FixedSort
* @generated
*/
EClass getFixedSort();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FixedSort#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FixedSort#getField()
* @see #getFixedSort()
* @generated
*/
EAttribute getFixedSort_Field();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FixedSort#getOrder <em>Order</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Order</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FixedSort#getOrder()
* @see #getFixedSort()
* @generated
*/
EAttribute getFixedSort_Order();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.SelectionExpression <em>Selection Expression</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Selection Expression</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SelectionExpression
* @generated
*/
EClass getSelectionExpression();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.SelectionExpression#getSelection <em>Selection</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Selection</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SelectionExpression#getSelection()
* @see #getSelectionExpression()
* @generated
*/
EReference getSelectionExpression_Selection();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Selection <em>Selection</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Selection</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Selection
* @generated
*/
EClass getSelection();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Selection#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Selection#getField()
* @see #getSelection()
* @generated
*/
EAttribute getSelection_Field();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Selection#getMandatory <em>Mandatory</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Mandatory</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Selection#getMandatory()
* @see #getSelection()
* @generated
*/
EAttribute getSelection_Mandatory();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Selection#getPopupDropDown <em>Popup Drop Down</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Popup Drop Down</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Selection#getPopupDropDown()
* @see #getSelection()
* @generated
*/
EAttribute getSelection_PopupDropDown();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Selection#getLabel <em>Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Label</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Selection#getLabel()
* @see #getSelection()
* @generated
*/
EReference getSelection_Label();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.Selection#getOperands <em>Operands</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Operands</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Selection#getOperands()
* @see #getSelection()
* @generated
*/
EAttribute getSelection_Operands();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Selection#getOperator <em>Operator</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Operator</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Selection#getOperator()
* @see #getSelection()
* @generated
*/
EAttribute getSelection_Operator();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.FileVersion <em>File Version</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>File Version</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FileVersion
* @generated
*/
EClass getFileVersion();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.FileVersion#getValues <em>Values</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Values</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FileVersion#getValues()
* @see #getFileVersion()
* @generated
*/
EAttribute getFileVersion_Values();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Operation <em>Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Operation
* @generated
*/
EClass getOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.BreakOperation <em>Break Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Break Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BreakOperation
* @generated
*/
EClass getBreakOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.BreakOnChangeOperation <em>Break On Change Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Break On Change Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BreakOnChangeOperation
* @generated
*/
EClass getBreakOnChangeOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.BreakOnChangeOperation#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BreakOnChangeOperation#getField()
* @see #getBreakOnChangeOperation()
* @generated
*/
EAttribute getBreakOnChangeOperation_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.BreakLineOperation <em>Break Line Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Break Line Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BreakLineOperation
* @generated
*/
EClass getBreakLineOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.BreakLineOperation#getLine <em>Line</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Line</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BreakLineOperation#getLine()
* @see #getBreakLineOperation()
* @generated
*/
EAttribute getBreakLineOperation_Line();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.CalcOperation <em>Calc Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Calc Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CalcOperation
* @generated
*/
EClass getCalcOperation();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.CalcOperation#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CalcOperation#getField()
* @see #getCalcOperation()
* @generated
*/
EAttribute getCalcOperation_Field();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.CalcOperation#getOperator <em>Operator</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Operator</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CalcOperation#getOperator()
* @see #getCalcOperation()
* @generated
*/
EAttribute getCalcOperation_Operator();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ConstantOperation <em>Constant Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Constant Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ConstantOperation
* @generated
*/
EClass getConstantOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ConstantOperation#getValue <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Value</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ConstantOperation#getValue()
* @see #getConstantOperation()
* @generated
*/
EAttribute getConstantOperation_Value();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.LabelOperation <em>Label Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Label Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.LabelOperation
* @generated
*/
EClass getLabelOperation();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.LabelOperation#getLabel <em>Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Label</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.LabelOperation#getLabel()
* @see #getLabelOperation()
* @generated
*/
EReference getLabelOperation_Label();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.DateOperation <em>Date Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Date Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DateOperation
* @generated
*/
EClass getDateOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.DecisionOperation <em>Decision Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Decision Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DecisionOperation
* @generated
*/
EClass getDecisionOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getLeftField <em>Left Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Left Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getLeftField()
* @see #getDecisionOperation()
* @generated
*/
EAttribute getDecisionOperation_LeftField();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getOperand <em>Operand</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Operand</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getOperand()
* @see #getDecisionOperation()
* @generated
*/
EAttribute getDecisionOperation_Operand();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getRightField <em>Right Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Right Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getRightField()
* @see #getDecisionOperation()
* @generated
*/
EAttribute getDecisionOperation_RightField();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getFirstField <em>First Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>First Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getFirstField()
* @see #getDecisionOperation()
* @generated
*/
EAttribute getDecisionOperation_FirstField();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getSecondField <em>Second Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Second Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DecisionOperation#getSecondField()
* @see #getDecisionOperation()
* @generated
*/
EAttribute getDecisionOperation_SecondField();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.DescriptorOperation <em>Descriptor Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Descriptor Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DescriptorOperation
* @generated
*/
EClass getDescriptorOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DescriptorOperation#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DescriptorOperation#getField()
* @see #getDescriptorOperation()
* @generated
*/
EAttribute getDescriptorOperation_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.TodayOperation <em>Today Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Today Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TodayOperation
* @generated
*/
EClass getTodayOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.LWDOperation <em>LWD Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>LWD Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.LWDOperation
* @generated
*/
EClass getLWDOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.NWDOperation <em>NWD Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>NWD Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.NWDOperation
* @generated
*/
EClass getNWDOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.FieldOperation <em>Field Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Field Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldOperation
* @generated
*/
EClass getFieldOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ApplicationFieldNameOperation <em>Application Field Name Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Application Field Name Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ApplicationFieldNameOperation
* @generated
*/
EClass getApplicationFieldNameOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ApplicationFieldNameOperation#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ApplicationFieldNameOperation#getField()
* @see #getApplicationFieldNameOperation()
* @generated
*/
EAttribute getApplicationFieldNameOperation_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.FieldNumberOperation <em>Field Number Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Field Number Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldNumberOperation
* @generated
*/
EClass getFieldNumberOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FieldNumberOperation#getNumber <em>Number</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Number</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldNumberOperation#getNumber()
* @see #getFieldNumberOperation()
* @generated
*/
EAttribute getFieldNumberOperation_Number();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.FieldExtractOperation <em>Field Extract Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Field Extract Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldExtractOperation
* @generated
*/
EClass getFieldExtractOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FieldExtractOperation#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldExtractOperation#getField()
* @see #getFieldExtractOperation()
* @generated
*/
EAttribute getFieldExtractOperation_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.SelectionOperation <em>Selection Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Selection Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SelectionOperation
* @generated
*/
EClass getSelectionOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.SelectionOperation#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SelectionOperation#getField()
* @see #getSelectionOperation()
* @generated
*/
EAttribute getSelectionOperation_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.SystemOperation <em>System Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>System Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SystemOperation
* @generated
*/
EClass getSystemOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.UserOperation <em>User Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>User Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.UserOperation
* @generated
*/
EClass getUserOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.CompanyOperation <em>Company Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Company Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CompanyOperation
* @generated
*/
EClass getCompanyOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.LanguageOperation <em>Language Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Language Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.LanguageOperation
* @generated
*/
EClass getLanguageOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.LocalCurrencyOperation <em>Local Currency Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Local Currency Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.LocalCurrencyOperation
* @generated
*/
EClass getLocalCurrencyOperation();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.TotalOperation <em>Total Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Total Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TotalOperation
* @generated
*/
EClass getTotalOperation();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.TotalOperation#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.TotalOperation#getField()
* @see #getTotalOperation()
* @generated
*/
EAttribute getTotalOperation_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Conversion <em>Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Conversion
* @generated
*/
EClass getConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ExtractConversion <em>Extract Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Extract Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ExtractConversion
* @generated
*/
EClass getExtractConversion();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ExtractConversion#getFrom <em>From</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>From</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ExtractConversion#getFrom()
* @see #getExtractConversion()
* @generated
*/
EAttribute getExtractConversion_From();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ExtractConversion#getTo <em>To</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>To</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ExtractConversion#getTo()
* @see #getExtractConversion()
* @generated
*/
EAttribute getExtractConversion_To();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ExtractConversion#getDelimiter <em>Delimiter</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Delimiter</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ExtractConversion#getDelimiter()
* @see #getExtractConversion()
* @generated
*/
EAttribute getExtractConversion_Delimiter();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.DecryptConversion <em>Decrypt Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Decrypt Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DecryptConversion
* @generated
*/
EClass getDecryptConversion();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.DecryptConversion#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DecryptConversion#getField()
* @see #getDecryptConversion()
* @generated
*/
EAttribute getDecryptConversion_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ReplaceConversion <em>Replace Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Replace Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ReplaceConversion
* @generated
*/
EClass getReplaceConversion();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ReplaceConversion#getOldData <em>Old Data</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Old Data</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ReplaceConversion#getOldData()
* @see #getReplaceConversion()
* @generated
*/
EAttribute getReplaceConversion_OldData();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ReplaceConversion#getNewData <em>New Data</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>New Data</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ReplaceConversion#getNewData()
* @see #getReplaceConversion()
* @generated
*/
EAttribute getReplaceConversion_NewData();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ConvertConversion <em>Convert Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Convert Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ConvertConversion
* @generated
*/
EClass getConvertConversion();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ConvertConversion#getOldData <em>Old Data</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Old Data</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ConvertConversion#getOldData()
* @see #getConvertConversion()
* @generated
*/
EAttribute getConvertConversion_OldData();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ConvertConversion#getNewData <em>New Data</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>New Data</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ConvertConversion#getNewData()
* @see #getConvertConversion()
* @generated
*/
EAttribute getConvertConversion_NewData();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.ValueConversion <em>Value Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Value Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ValueConversion
* @generated
*/
EClass getValueConversion();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ValueConversion#getValue <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Value</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ValueConversion#getValue()
* @see #getValueConversion()
* @generated
*/
EAttribute getValueConversion_Value();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.ValueConversion#getSubValue <em>Sub Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sub Value</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ValueConversion#getSubValue()
* @see #getValueConversion()
* @generated
*/
EAttribute getValueConversion_SubValue();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.JulianConversion <em>Julian Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Julian Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.JulianConversion
* @generated
*/
EClass getJulianConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.BasicConversion <em>Basic Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Basic Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BasicConversion
* @generated
*/
EClass getBasicConversion();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.BasicConversion#getInstruction <em>Instruction</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Instruction</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BasicConversion#getInstruction()
* @see #getBasicConversion()
* @generated
*/
EAttribute getBasicConversion_Instruction();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.BasicOConversion <em>Basic OConversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Basic OConversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BasicOConversion
* @generated
*/
EClass getBasicOConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.BasicIConversion <em>Basic IConversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Basic IConversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BasicIConversion
* @generated
*/
EClass getBasicIConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.GetFromConversion <em>Get From Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Get From Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.GetFromConversion
* @generated
*/
EClass getGetFromConversion();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.GetFromConversion#getApplication <em>Application</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Application</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.GetFromConversion#getApplication()
* @see #getGetFromConversion()
* @generated
*/
EAttribute getGetFromConversion_Application();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.GetFromConversion#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.GetFromConversion#getField()
* @see #getGetFromConversion()
* @generated
*/
EAttribute getGetFromConversion_Field();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.GetFromConversion#isLanguage <em>Language</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Language</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.GetFromConversion#isLanguage()
* @see #getGetFromConversion()
* @generated
*/
EAttribute getGetFromConversion_Language();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.RateConversion <em>Rate Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Rate Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.RateConversion
* @generated
*/
EClass getRateConversion();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.RateConversion#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.RateConversion#getField()
* @see #getRateConversion()
* @generated
*/
EAttribute getRateConversion_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.CalcFixedRateConversion <em>Calc Fixed Rate Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Calc Fixed Rate Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CalcFixedRateConversion
* @generated
*/
EClass getCalcFixedRateConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.GetFixedRateConversion <em>Get Fixed Rate Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Get Fixed Rate Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.GetFixedRateConversion
* @generated
*/
EClass getGetFixedRateConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.GetFixedCurrencyConversion <em>Get Fixed Currency Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Get Fixed Currency Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.GetFixedCurrencyConversion
* @generated
*/
EClass getGetFixedCurrencyConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.AbsConversion <em>Abs Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Abs Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.AbsConversion
* @generated
*/
EClass getAbsConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.MatchField <em>Match Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Match Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.MatchField
* @generated
*/
EClass getMatchField();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.MatchField#getPattern <em>Pattern</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Pattern</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.MatchField#getPattern()
* @see #getMatchField()
* @generated
*/
EAttribute getMatchField_Pattern();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.MatchField#getValue <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Value</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.MatchField#getValue()
* @see #getMatchField()
* @generated
*/
EAttribute getMatchField_Value();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.CallRoutine <em>Call Routine</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Call Routine</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CallRoutine
* @generated
*/
EClass getCallRoutine();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.CallRoutine#getRoutine <em>Routine</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Routine</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CallRoutine#getRoutine()
* @see #getCallRoutine()
* @generated
*/
EReference getCallRoutine_Routine();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.RepeatConversion <em>Repeat Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Repeat Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.RepeatConversion
* @generated
*/
EClass getRepeatConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.RepeatOnNullConversion <em>Repeat On Null Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Repeat On Null Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.RepeatOnNullConversion
* @generated
*/
EClass getRepeatOnNullConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.RepeatEveryConversion <em>Repeat Every Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Repeat Every Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.RepeatEveryConversion
* @generated
*/
EClass getRepeatEveryConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.RepeatSubConversion <em>Repeat Sub Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Repeat Sub Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.RepeatSubConversion
* @generated
*/
EClass getRepeatSubConversion();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Field <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field
* @generated
*/
EClass getField();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getName()
* @see #getField()
* @generated
*/
EAttribute getField_Name();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Field#getLabel <em>Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Label</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getLabel()
* @see #getField()
* @generated
*/
EReference getField_Label();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getComments <em>Comments</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Comments</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getComments()
* @see #getField()
* @generated
*/
EAttribute getField_Comments();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getDisplayType <em>Display Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Display Type</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getDisplayType()
* @see #getField()
* @generated
*/
EAttribute getField_DisplayType();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Field#getFormat <em>Format</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Format</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getFormat()
* @see #getField()
* @generated
*/
EReference getField_Format();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Field#getBreakCondition <em>Break Condition</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Break Condition</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getBreakCondition()
* @see #getField()
* @generated
*/
EReference getField_BreakCondition();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getLength <em>Length</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Length</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getLength()
* @see #getField()
* @generated
*/
EAttribute getField_Length();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getAlignment <em>Alignment</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Alignment</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getAlignment()
* @see #getField()
* @generated
*/
EAttribute getField_Alignment();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getCommaSeparator <em>Comma Separator</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Comma Separator</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getCommaSeparator()
* @see #getField()
* @generated
*/
EAttribute getField_CommaSeparator();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getNumberOfDecimals <em>Number Of Decimals</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Number Of Decimals</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getNumberOfDecimals()
* @see #getField()
* @generated
*/
EAttribute getField_NumberOfDecimals();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getEscapeSequence <em>Escape Sequence</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Escape Sequence</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getEscapeSequence()
* @see #getField()
* @generated
*/
EAttribute getField_EscapeSequence();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getFmtMask <em>Fmt Mask</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Fmt Mask</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getFmtMask()
* @see #getField()
* @generated
*/
EAttribute getField_FmtMask();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getDisplaySection <em>Display Section</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Display Section</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getDisplaySection()
* @see #getField()
* @generated
*/
EAttribute getField_DisplaySection();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Field#getPosition <em>Position</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Position</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getPosition()
* @see #getField()
* @generated
*/
EReference getField_Position();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getColumnWidth <em>Column Width</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Column Width</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getColumnWidth()
* @see #getField()
* @generated
*/
EAttribute getField_ColumnWidth();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getSpoolBreak <em>Spool Break</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Spool Break</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getSpoolBreak()
* @see #getField()
* @generated
*/
EAttribute getField_SpoolBreak();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getSingleMulti <em>Single Multi</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Single Multi</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getSingleMulti()
* @see #getField()
* @generated
*/
EAttribute getField_SingleMulti();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getHidden <em>Hidden</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Hidden</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getHidden()
* @see #getField()
* @generated
*/
EAttribute getField_Hidden();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getNoHeader <em>No Header</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>No Header</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getNoHeader()
* @see #getField()
* @generated
*/
EAttribute getField_NoHeader();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Field#getNoColumnLabel <em>No Column Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>No Column Label</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getNoColumnLabel()
* @see #getField()
* @generated
*/
EAttribute getField_NoColumnLabel();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Field#getOperation <em>Operation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Operation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getOperation()
* @see #getField()
* @generated
*/
EReference getField_Operation();
/**
* Returns the meta object for the containment reference list '{@link com.odcgroup.t24.enquiry.enquiry.Field#getConversion <em>Conversion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Conversion</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getConversion()
* @see #getField()
* @generated
*/
EReference getField_Conversion();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.Field#getAttributes <em>Attributes</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Attributes</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Field#getAttributes()
* @see #getField()
* @generated
*/
EAttribute getField_Attributes();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.BreakCondition <em>Break Condition</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Break Condition</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BreakCondition
* @generated
*/
EClass getBreakCondition();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.BreakCondition#getBreak <em>Break</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Break</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BreakCondition#getBreak()
* @see #getBreakCondition()
* @generated
*/
EAttribute getBreakCondition_Break();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.BreakCondition#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BreakCondition#getField()
* @see #getBreakCondition()
* @generated
*/
EAttribute getBreakCondition_Field();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.FieldPosition <em>Field Position</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Field Position</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldPosition
* @generated
*/
EClass getFieldPosition();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FieldPosition#getPageThrow <em>Page Throw</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Page Throw</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldPosition#getPageThrow()
* @see #getFieldPosition()
* @generated
*/
EAttribute getFieldPosition_PageThrow();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FieldPosition#getColumn <em>Column</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Column</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldPosition#getColumn()
* @see #getFieldPosition()
* @generated
*/
EAttribute getFieldPosition_Column();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FieldPosition#getRelative <em>Relative</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Relative</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldPosition#getRelative()
* @see #getFieldPosition()
* @generated
*/
EAttribute getFieldPosition_Relative();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FieldPosition#getLine <em>Line</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Line</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldPosition#getLine()
* @see #getFieldPosition()
* @generated
*/
EAttribute getFieldPosition_Line();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.FieldPosition#getMultiLine <em>Multi Line</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Multi Line</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldPosition#getMultiLine()
* @see #getFieldPosition()
* @generated
*/
EAttribute getFieldPosition_MultiLine();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Format <em>Format</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Format</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Format
* @generated
*/
EClass getFormat();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Format#getFormat <em>Format</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Format</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Format#getFormat()
* @see #getFormat()
* @generated
*/
EAttribute getFormat_Format();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Format#getField <em>Field</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Field</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Format#getField()
* @see #getFormat()
* @generated
*/
EAttribute getFormat_Field();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Format#getPattern <em>Pattern</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Pattern</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Format#getPattern()
* @see #getFormat()
* @generated
*/
EAttribute getFormat_Pattern();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.Tool <em>Tool</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Tool</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Tool
* @generated
*/
EClass getTool();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.Tool#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Tool#getName()
* @see #getTool()
* @generated
*/
EAttribute getTool_Name();
/**
* Returns the meta object for the containment reference '{@link com.odcgroup.t24.enquiry.enquiry.Tool#getLabel <em>Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Label</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Tool#getLabel()
* @see #getTool()
* @generated
*/
EReference getTool_Label();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.Tool#getCommand <em>Command</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Command</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Tool#getCommand()
* @see #getTool()
* @generated
*/
EAttribute getTool_Command();
/**
* Returns the meta object for class '{@link com.odcgroup.t24.enquiry.enquiry.WebService <em>Web Service</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Web Service</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.WebService
* @generated
*/
EClass getWebService();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.WebService#getPublishWebService <em>Publish Web Service</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Publish Web Service</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.WebService#getPublishWebService()
* @see #getWebService()
* @generated
*/
EAttribute getWebService_PublishWebService();
/**
* Returns the meta object for the attribute list '{@link com.odcgroup.t24.enquiry.enquiry.WebService#getWebServiceNames <em>Web Service Names</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Web Service Names</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.WebService#getWebServiceNames()
* @see #getWebService()
* @generated
*/
EAttribute getWebService_WebServiceNames();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.WebService#getWebServiceActivity <em>Web Service Activity</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Web Service Activity</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.WebService#getWebServiceActivity()
* @see #getWebService()
* @generated
*/
EAttribute getWebService_WebServiceActivity();
/**
* Returns the meta object for the attribute '{@link com.odcgroup.t24.enquiry.enquiry.WebService#getWebServiceDescription <em>Web Service Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Web Service Description</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.WebService#getWebServiceDescription()
* @see #getWebService()
* @generated
*/
EAttribute getWebService_WebServiceDescription();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.EnquiryMode <em>Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Mode</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.EnquiryMode
* @generated
*/
EEnum getEnquiryMode();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.AlignmentKind <em>Alignment Kind</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Alignment Kind</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.AlignmentKind
* @generated
*/
EEnum getAlignmentKind();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.BreakKind <em>Break Kind</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Break Kind</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.BreakKind
* @generated
*/
EEnum getBreakKind();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.CurrencyPattern <em>Currency Pattern</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Currency Pattern</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CurrencyPattern
* @generated
*/
EEnum getCurrencyPattern();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.DecisionOperand <em>Decision Operand</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Decision Operand</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DecisionOperand
* @generated
*/
EEnum getDecisionOperand();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.DisplaySectionKind <em>Display Section Kind</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Display Section Kind</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.DisplaySectionKind
* @generated
*/
EEnum getDisplaySectionKind();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.FieldFormat <em>Field Format</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Field Format</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FieldFormat
* @generated
*/
EEnum getFieldFormat();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.FunctionKind <em>Function Kind</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Function Kind</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FunctionKind
* @generated
*/
EEnum getFunctionKind();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.SelectionOperator <em>Selection Operator</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Selection Operator</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SelectionOperator
* @generated
*/
EEnum getSelectionOperator();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.CriteriaOperator <em>Criteria Operator</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Criteria Operator</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.CriteriaOperator
* @generated
*/
EEnum getCriteriaOperator();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.ProcessingMode <em>Processing Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Processing Mode</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ProcessingMode
* @generated
*/
EEnum getProcessingMode();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.SortOrder <em>Sort Order</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Sort Order</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.SortOrder
* @generated
*/
EEnum getSortOrder();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.AndOr <em>And Or</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>And Or</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.AndOr
* @generated
*/
EEnum getAndOr();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.FileVersionOption <em>File Version Option</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>File Version Option</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.FileVersionOption
* @generated
*/
EEnum getFileVersionOption();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.EscapeSequence <em>Escape Sequence</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Escape Sequence</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.EscapeSequence
* @generated
*/
EEnum getEscapeSequence();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.Orientation <em>Orientation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Orientation</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.Orientation
* @generated
*/
EEnum getOrientation();
/**
* Returns the meta object for enum '{@link com.odcgroup.t24.enquiry.enquiry.ServerMode <em>Server Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Server Mode</em>'.
* @see com.odcgroup.t24.enquiry.enquiry.ServerMode
* @generated
*/
EEnum getServerMode();
/**
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the factory that creates the instances of the model.
* @generated
*/
EnquiryFactory getEnquiryFactory();
/**
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
* <li>each enum,</li>
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
* @generated
*/
interface Literals
{
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.EnquiryImpl <em>Enquiry</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEnquiry()
* @generated
*/
EClass ENQUIRY = eINSTANCE.getEnquiry();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__NAME = eINSTANCE.getEnquiry_Name();
/**
* The meta object literal for the '<em><b>File Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__FILE_NAME = eINSTANCE.getEnquiry_FileName();
/**
* The meta object literal for the '<em><b>Metamodel Version</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__METAMODEL_VERSION = eINSTANCE.getEnquiry_MetamodelVersion();
/**
* The meta object literal for the '<em><b>Header</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__HEADER = eINSTANCE.getEnquiry_Header();
/**
* The meta object literal for the '<em><b>Description</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__DESCRIPTION = eINSTANCE.getEnquiry_Description();
/**
* The meta object literal for the '<em><b>Server Mode</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__SERVER_MODE = eINSTANCE.getEnquiry_ServerMode();
/**
* The meta object literal for the '<em><b>Enquiry Mode</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__ENQUIRY_MODE = eINSTANCE.getEnquiry_EnquiryMode();
/**
* The meta object literal for the '<em><b>Companies</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__COMPANIES = eINSTANCE.getEnquiry_Companies();
/**
* The meta object literal for the '<em><b>Account Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__ACCOUNT_FIELD = eINSTANCE.getEnquiry_AccountField();
/**
* The meta object literal for the '<em><b>Customer Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__CUSTOMER_FIELD = eINSTANCE.getEnquiry_CustomerField();
/**
* The meta object literal for the '<em><b>Zero Records Display</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__ZERO_RECORDS_DISPLAY = eINSTANCE.getEnquiry_ZeroRecordsDisplay();
/**
* The meta object literal for the '<em><b>No Selection</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__NO_SELECTION = eINSTANCE.getEnquiry_NoSelection();
/**
* The meta object literal for the '<em><b>Show All Books</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__SHOW_ALL_BOOKS = eINSTANCE.getEnquiry_ShowAllBooks();
/**
* The meta object literal for the '<em><b>Start Line</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__START_LINE = eINSTANCE.getEnquiry_StartLine();
/**
* The meta object literal for the '<em><b>End Line</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__END_LINE = eINSTANCE.getEnquiry_EndLine();
/**
* The meta object literal for the '<em><b>Build Routines</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__BUILD_ROUTINES = eINSTANCE.getEnquiry_BuildRoutines();
/**
* The meta object literal for the '<em><b>Fixed Selections</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__FIXED_SELECTIONS = eINSTANCE.getEnquiry_FixedSelections();
/**
* The meta object literal for the '<em><b>Fixed Sorts</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__FIXED_SORTS = eINSTANCE.getEnquiry_FixedSorts();
/**
* The meta object literal for the '<em><b>Custom Selection</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__CUSTOM_SELECTION = eINSTANCE.getEnquiry_CustomSelection();
/**
* The meta object literal for the '<em><b>Fields</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__FIELDS = eINSTANCE.getEnquiry_Fields();
/**
* The meta object literal for the '<em><b>Toolbar</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__TOOLBAR = eINSTANCE.getEnquiry_Toolbar();
/**
* The meta object literal for the '<em><b>Tools</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__TOOLS = eINSTANCE.getEnquiry_Tools();
/**
* The meta object literal for the '<em><b>Target</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__TARGET = eINSTANCE.getEnquiry_Target();
/**
* The meta object literal for the '<em><b>Drill Downs</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__DRILL_DOWNS = eINSTANCE.getEnquiry_DrillDowns();
/**
* The meta object literal for the '<em><b>Security</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__SECURITY = eINSTANCE.getEnquiry_Security();
/**
* The meta object literal for the '<em><b>Graph</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__GRAPH = eINSTANCE.getEnquiry_Graph();
/**
* The meta object literal for the '<em><b>Web Service</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__WEB_SERVICE = eINSTANCE.getEnquiry_WebService();
/**
* The meta object literal for the '<em><b>Generate IFP</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__GENERATE_IFP = eINSTANCE.getEnquiry_GenerateIFP();
/**
* The meta object literal for the '<em><b>File Version</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY__FILE_VERSION = eINSTANCE.getEnquiry_FileVersion();
/**
* The meta object literal for the '<em><b>Attributes</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__ATTRIBUTES = eINSTANCE.getEnquiry_Attributes();
/**
* The meta object literal for the '<em><b>Introspection Messages</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY__INTROSPECTION_MESSAGES = eINSTANCE.getEnquiry_IntrospectionMessages();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CompaniesImpl <em>Companies</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CompaniesImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCompanies()
* @generated
*/
EClass COMPANIES = eINSTANCE.getCompanies();
/**
* The meta object literal for the '<em><b>All</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COMPANIES__ALL = eINSTANCE.getCompanies_All();
/**
* The meta object literal for the '<em><b>Code</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COMPANIES__CODE = eINSTANCE.getCompanies_Code();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.EnquiryHeaderImpl <em>Header</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryHeaderImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEnquiryHeader()
* @generated
*/
EClass ENQUIRY_HEADER = eINSTANCE.getEnquiryHeader();
/**
* The meta object literal for the '<em><b>Label</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENQUIRY_HEADER__LABEL = eINSTANCE.getEnquiryHeader_Label();
/**
* The meta object literal for the '<em><b>Column</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY_HEADER__COLUMN = eINSTANCE.getEnquiryHeader_Column();
/**
* The meta object literal for the '<em><b>Line</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENQUIRY_HEADER__LINE = eINSTANCE.getEnquiryHeader_Line();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TargetImpl <em>Target</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TargetImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTarget()
* @generated
*/
EClass TARGET = eINSTANCE.getTarget();
/**
* The meta object literal for the '<em><b>Application</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute TARGET__APPLICATION = eINSTANCE.getTarget_Application();
/**
* The meta object literal for the '<em><b>Screen</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute TARGET__SCREEN = eINSTANCE.getTarget_Screen();
/**
* The meta object literal for the '<em><b>Mappings</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference TARGET__MAPPINGS = eINSTANCE.getTarget_Mappings();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TargetMappingImpl <em>Target Mapping</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TargetMappingImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTargetMapping()
* @generated
*/
EClass TARGET_MAPPING = eINSTANCE.getTargetMapping();
/**
* The meta object literal for the '<em><b>From Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute TARGET_MAPPING__FROM_FIELD = eINSTANCE.getTargetMapping_FromField();
/**
* The meta object literal for the '<em><b>To Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute TARGET_MAPPING__TO_FIELD = eINSTANCE.getTargetMapping_ToField();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ParametersImpl <em>Parameters</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ParametersImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getParameters()
* @generated
*/
EClass PARAMETERS = eINSTANCE.getParameters();
/**
* The meta object literal for the '<em><b>Function</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute PARAMETERS__FUNCTION = eINSTANCE.getParameters_Function();
/**
* The meta object literal for the '<em><b>Auto</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute PARAMETERS__AUTO = eINSTANCE.getParameters_Auto();
/**
* The meta object literal for the '<em><b>Run Immediately</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute PARAMETERS__RUN_IMMEDIATELY = eINSTANCE.getParameters_RunImmediately();
/**
* The meta object literal for the '<em><b>Pw Activity</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute PARAMETERS__PW_ACTIVITY = eINSTANCE.getParameters_PwActivity();
/**
* The meta object literal for the '<em><b>Field Name</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute PARAMETERS__FIELD_NAME = eINSTANCE.getParameters_FieldName();
/**
* The meta object literal for the '<em><b>Variable</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute PARAMETERS__VARIABLE = eINSTANCE.getParameters_Variable();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DrillDownImpl <em>Drill Down</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DrillDownImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDrillDown()
* @generated
*/
EClass DRILL_DOWN = eINSTANCE.getDrillDown();
/**
* The meta object literal for the '<em><b>Drill name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DRILL_DOWN__DRILL_NAME = eINSTANCE.getDrillDown_Drill_name();
/**
* The meta object literal for the '<em><b>Description</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference DRILL_DOWN__DESCRIPTION = eINSTANCE.getDrillDown_Description();
/**
* The meta object literal for the '<em><b>Label Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DRILL_DOWN__LABEL_FIELD = eINSTANCE.getDrillDown_LabelField();
/**
* The meta object literal for the '<em><b>Image</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DRILL_DOWN__IMAGE = eINSTANCE.getDrillDown_Image();
/**
* The meta object literal for the '<em><b>Info</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DRILL_DOWN__INFO = eINSTANCE.getDrillDown_Info();
/**
* The meta object literal for the '<em><b>Criteria</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference DRILL_DOWN__CRITERIA = eINSTANCE.getDrillDown_Criteria();
/**
* The meta object literal for the '<em><b>Parameters</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference DRILL_DOWN__PARAMETERS = eINSTANCE.getDrillDown_Parameters();
/**
* The meta object literal for the '<em><b>Type</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference DRILL_DOWN__TYPE = eINSTANCE.getDrillDown_Type();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DrillDownTypeImpl <em>Drill Down Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DrillDownTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDrillDownType()
* @generated
*/
EClass DRILL_DOWN_TYPE = eINSTANCE.getDrillDownType();
/**
* The meta object literal for the '<em><b>Property</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DRILL_DOWN_TYPE__PROPERTY = eINSTANCE.getDrillDownType_Property();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DrillDownStringTypeImpl <em>Drill Down String Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DrillDownStringTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDrillDownStringType()
* @generated
*/
EClass DRILL_DOWN_STRING_TYPE = eINSTANCE.getDrillDownStringType();
/**
* The meta object literal for the '<em><b>Value</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DRILL_DOWN_STRING_TYPE__VALUE = eINSTANCE.getDrillDownStringType_Value();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ApplicationTypeImpl <em>Application Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ApplicationTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getApplicationType()
* @generated
*/
EClass APPLICATION_TYPE = eINSTANCE.getApplicationType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ScreenTypeImpl <em>Screen Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ScreenTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getScreenType()
* @generated
*/
EClass SCREEN_TYPE = eINSTANCE.getScreenType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.EnquiryTypeImpl <em>Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEnquiryType()
* @generated
*/
EClass ENQUIRY_TYPE = eINSTANCE.getEnquiryType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FromFieldTypeImpl <em>From Field Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FromFieldTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFromFieldType()
* @generated
*/
EClass FROM_FIELD_TYPE = eINSTANCE.getFromFieldType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CompositeScreenTypeImpl <em>Composite Screen Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CompositeScreenTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCompositeScreenType()
* @generated
*/
EClass COMPOSITE_SCREEN_TYPE = eINSTANCE.getCompositeScreenType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TabbedScreenTypeImpl <em>Tabbed Screen Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TabbedScreenTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTabbedScreenType()
* @generated
*/
EClass TABBED_SCREEN_TYPE = eINSTANCE.getTabbedScreenType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ViewTypeImpl <em>View Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ViewTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getViewType()
* @generated
*/
EClass VIEW_TYPE = eINSTANCE.getViewType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.QuitSEETypeImpl <em>Quit SEE Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.QuitSEETypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getQuitSEEType()
* @generated
*/
EClass QUIT_SEE_TYPE = eINSTANCE.getQuitSEEType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BlankTypeImpl <em>Blank Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BlankTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBlankType()
* @generated
*/
EClass BLANK_TYPE = eINSTANCE.getBlankType();
/**
* The meta object literal for the '<em><b>Value</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute BLANK_TYPE__VALUE = eINSTANCE.getBlankType_Value();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.PWProcessTypeImpl <em>PW Process Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.PWProcessTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getPWProcessType()
* @generated
*/
EClass PW_PROCESS_TYPE = eINSTANCE.getPWProcessType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DownloadTypeImpl <em>Download Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DownloadTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDownloadType()
* @generated
*/
EClass DOWNLOAD_TYPE = eINSTANCE.getDownloadType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RunTypeImpl <em>Run Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RunTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRunType()
* @generated
*/
EClass RUN_TYPE = eINSTANCE.getRunType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.UtilTypeImpl <em>Util Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.UtilTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getUtilType()
* @generated
*/
EClass UTIL_TYPE = eINSTANCE.getUtilType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.JavaScriptTypeImpl <em>Java Script Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.JavaScriptTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getJavaScriptType()
* @generated
*/
EClass JAVA_SCRIPT_TYPE = eINSTANCE.getJavaScriptType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ShouldBeChangedTypeImpl <em>Should Be Changed Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ShouldBeChangedTypeImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getShouldBeChangedType()
* @generated
*/
EClass SHOULD_BE_CHANGED_TYPE = eINSTANCE.getShouldBeChangedType();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DrillDownOptionImpl <em>Drill Down Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DrillDownOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDrillDownOption()
* @generated
*/
EClass DRILL_DOWN_OPTION = eINSTANCE.getDrillDownOption();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CompositeScreenOptionImpl <em>Composite Screen Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CompositeScreenOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCompositeScreenOption()
* @generated
*/
EClass COMPOSITE_SCREEN_OPTION = eINSTANCE.getCompositeScreenOption();
/**
* The meta object literal for the '<em><b>Composite Screen</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COMPOSITE_SCREEN_OPTION__COMPOSITE_SCREEN = eINSTANCE.getCompositeScreenOption_CompositeScreen();
/**
* The meta object literal for the '<em><b>Reference</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference COMPOSITE_SCREEN_OPTION__REFERENCE = eINSTANCE.getCompositeScreenOption_Reference();
/**
* The meta object literal for the '<em><b>Field Parameter</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference COMPOSITE_SCREEN_OPTION__FIELD_PARAMETER = eINSTANCE.getCompositeScreenOption_FieldParameter();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TabOptionImpl <em>Tab Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TabOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTabOption()
* @generated
*/
EClass TAB_OPTION = eINSTANCE.getTabOption();
/**
* The meta object literal for the '<em><b>Tab Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute TAB_OPTION__TAB_NAME = eINSTANCE.getTabOption_TabName();
/**
* The meta object literal for the '<em><b>Reference</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference TAB_OPTION__REFERENCE = eINSTANCE.getTabOption_Reference();
/**
* The meta object literal for the '<em><b>Field Parameter</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference TAB_OPTION__FIELD_PARAMETER = eINSTANCE.getTabOption_FieldParameter();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ViewOptionImpl <em>View Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ViewOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getViewOption()
* @generated
*/
EClass VIEW_OPTION = eINSTANCE.getViewOption();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.QuitSEEOptionImpl <em>Quit SEE Option</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.QuitSEEOptionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getQuitSEEOption()
* @generated
*/
EClass QUIT_SEE_OPTION = eINSTANCE.getQuitSEEOption();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ReferenceImpl <em>Reference</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ReferenceImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getReference()
* @generated
*/
EClass REFERENCE = eINSTANCE.getReference();
/**
* The meta object literal for the '<em><b>File</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute REFERENCE__FILE = eINSTANCE.getReference_File();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute REFERENCE__FIELD = eINSTANCE.getReference_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ParameterImpl <em>Parameter</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ParameterImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getParameter()
* @generated
*/
EClass PARAMETER = eINSTANCE.getParameter();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute PARAMETER__FIELD = eINSTANCE.getParameter_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SelectionCriteriaImpl <em>Selection Criteria</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SelectionCriteriaImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelectionCriteria()
* @generated
*/
EClass SELECTION_CRITERIA = eINSTANCE.getSelectionCriteria();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SELECTION_CRITERIA__FIELD = eINSTANCE.getSelectionCriteria_Field();
/**
* The meta object literal for the '<em><b>Operand</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SELECTION_CRITERIA__OPERAND = eINSTANCE.getSelectionCriteria_Operand();
/**
* The meta object literal for the '<em><b>Values</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SELECTION_CRITERIA__VALUES = eINSTANCE.getSelectionCriteria_Values();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SecurityImpl <em>Security</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SecurityImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSecurity()
* @generated
*/
EClass SECURITY = eINSTANCE.getSecurity();
/**
* The meta object literal for the '<em><b>Application</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SECURITY__APPLICATION = eINSTANCE.getSecurity_Application();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SECURITY__FIELD = eINSTANCE.getSecurity_Field();
/**
* The meta object literal for the '<em><b>Abort</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SECURITY__ABORT = eINSTANCE.getSecurity_Abort();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.GraphImpl <em>Graph</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.GraphImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getGraph()
* @generated
*/
EClass GRAPH = eINSTANCE.getGraph();
/**
* The meta object literal for the '<em><b>Type</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute GRAPH__TYPE = eINSTANCE.getGraph_Type();
/**
* The meta object literal for the '<em><b>Labels</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GRAPH__LABELS = eINSTANCE.getGraph_Labels();
/**
* The meta object literal for the '<em><b>Dimension</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GRAPH__DIMENSION = eINSTANCE.getGraph_Dimension();
/**
* The meta object literal for the '<em><b>Margins</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GRAPH__MARGINS = eINSTANCE.getGraph_Margins();
/**
* The meta object literal for the '<em><b>Scale</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GRAPH__SCALE = eINSTANCE.getGraph_Scale();
/**
* The meta object literal for the '<em><b>Legend</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GRAPH__LEGEND = eINSTANCE.getGraph_Legend();
/**
* The meta object literal for the '<em><b>XAxis</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GRAPH__XAXIS = eINSTANCE.getGraph_XAxis();
/**
* The meta object literal for the '<em><b>YAxis</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GRAPH__YAXIS = eINSTANCE.getGraph_YAxis();
/**
* The meta object literal for the '<em><b>ZAxis</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GRAPH__ZAXIS = eINSTANCE.getGraph_ZAxis();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.AxisImpl <em>Axis</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.AxisImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getAxis()
* @generated
*/
EClass AXIS = eINSTANCE.getAxis();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute AXIS__FIELD = eINSTANCE.getAxis_Field();
/**
* The meta object literal for the '<em><b>Display Legend</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute AXIS__DISPLAY_LEGEND = eINSTANCE.getAxis_DisplayLegend();
/**
* The meta object literal for the '<em><b>Show Grid</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute AXIS__SHOW_GRID = eINSTANCE.getAxis_ShowGrid();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DimensionImpl <em>Dimension</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DimensionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDimension()
* @generated
*/
EClass DIMENSION = eINSTANCE.getDimension();
/**
* The meta object literal for the '<em><b>Width</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DIMENSION__WIDTH = eINSTANCE.getDimension_Width();
/**
* The meta object literal for the '<em><b>Height</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DIMENSION__HEIGHT = eINSTANCE.getDimension_Height();
/**
* The meta object literal for the '<em><b>Orientation</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DIMENSION__ORIENTATION = eINSTANCE.getDimension_Orientation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LabelImpl <em>Label</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LabelImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLabel()
* @generated
*/
EClass LABEL = eINSTANCE.getLabel();
/**
* The meta object literal for the '<em><b>Description</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference LABEL__DESCRIPTION = eINSTANCE.getLabel_Description();
/**
* The meta object literal for the '<em><b>Position</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference LABEL__POSITION = eINSTANCE.getLabel_Position();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.PositionImpl <em>Position</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.PositionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getPosition()
* @generated
*/
EClass POSITION = eINSTANCE.getPosition();
/**
* The meta object literal for the '<em><b>X</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute POSITION__X = eINSTANCE.getPosition_X();
/**
* The meta object literal for the '<em><b>Y</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute POSITION__Y = eINSTANCE.getPosition_Y();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LegendImpl <em>Legend</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LegendImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLegend()
* @generated
*/
EClass LEGEND = eINSTANCE.getLegend();
/**
* The meta object literal for the '<em><b>X</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute LEGEND__X = eINSTANCE.getLegend_X();
/**
* The meta object literal for the '<em><b>Y</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute LEGEND__Y = eINSTANCE.getLegend_Y();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.MarginsImpl <em>Margins</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.MarginsImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getMargins()
* @generated
*/
EClass MARGINS = eINSTANCE.getMargins();
/**
* The meta object literal for the '<em><b>Top</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute MARGINS__TOP = eINSTANCE.getMargins_Top();
/**
* The meta object literal for the '<em><b>Bottom</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute MARGINS__BOTTOM = eINSTANCE.getMargins_Bottom();
/**
* The meta object literal for the '<em><b>Left</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute MARGINS__LEFT = eINSTANCE.getMargins_Left();
/**
* The meta object literal for the '<em><b>Right</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute MARGINS__RIGHT = eINSTANCE.getMargins_Right();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ScaleImpl <em>Scale</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ScaleImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getScale()
* @generated
*/
EClass SCALE = eINSTANCE.getScale();
/**
* The meta object literal for the '<em><b>X</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SCALE__X = eINSTANCE.getScale_X();
/**
* The meta object literal for the '<em><b>Y</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SCALE__Y = eINSTANCE.getScale_Y();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RoutineImpl <em>Routine</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RoutineImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRoutine()
* @generated
*/
EClass ROUTINE = eINSTANCE.getRoutine();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ROUTINE__NAME = eINSTANCE.getRoutine_Name();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.JBCRoutineImpl <em>JBC Routine</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.JBCRoutineImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getJBCRoutine()
* @generated
*/
EClass JBC_ROUTINE = eINSTANCE.getJBCRoutine();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.JavaRoutineImpl <em>Java Routine</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.JavaRoutineImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getJavaRoutine()
* @generated
*/
EClass JAVA_ROUTINE = eINSTANCE.getJavaRoutine();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FixedSelectionImpl <em>Fixed Selection</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FixedSelectionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFixedSelection()
* @generated
*/
EClass FIXED_SELECTION = eINSTANCE.getFixedSelection();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIXED_SELECTION__FIELD = eINSTANCE.getFixedSelection_Field();
/**
* The meta object literal for the '<em><b>Operand</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIXED_SELECTION__OPERAND = eINSTANCE.getFixedSelection_Operand();
/**
* The meta object literal for the '<em><b>Values</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIXED_SELECTION__VALUES = eINSTANCE.getFixedSelection_Values();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FixedSortImpl <em>Fixed Sort</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FixedSortImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFixedSort()
* @generated
*/
EClass FIXED_SORT = eINSTANCE.getFixedSort();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIXED_SORT__FIELD = eINSTANCE.getFixedSort_Field();
/**
* The meta object literal for the '<em><b>Order</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIXED_SORT__ORDER = eINSTANCE.getFixedSort_Order();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SelectionExpressionImpl <em>Selection Expression</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SelectionExpressionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelectionExpression()
* @generated
*/
EClass SELECTION_EXPRESSION = eINSTANCE.getSelectionExpression();
/**
* The meta object literal for the '<em><b>Selection</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference SELECTION_EXPRESSION__SELECTION = eINSTANCE.getSelectionExpression_Selection();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SelectionImpl <em>Selection</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SelectionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelection()
* @generated
*/
EClass SELECTION = eINSTANCE.getSelection();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SELECTION__FIELD = eINSTANCE.getSelection_Field();
/**
* The meta object literal for the '<em><b>Mandatory</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SELECTION__MANDATORY = eINSTANCE.getSelection_Mandatory();
/**
* The meta object literal for the '<em><b>Popup Drop Down</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SELECTION__POPUP_DROP_DOWN = eINSTANCE.getSelection_PopupDropDown();
/**
* The meta object literal for the '<em><b>Label</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference SELECTION__LABEL = eINSTANCE.getSelection_Label();
/**
* The meta object literal for the '<em><b>Operands</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SELECTION__OPERANDS = eINSTANCE.getSelection_Operands();
/**
* The meta object literal for the '<em><b>Operator</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SELECTION__OPERATOR = eINSTANCE.getSelection_Operator();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FileVersionImpl <em>File Version</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FileVersionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFileVersion()
* @generated
*/
EClass FILE_VERSION = eINSTANCE.getFileVersion();
/**
* The meta object literal for the '<em><b>Values</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FILE_VERSION__VALUES = eINSTANCE.getFileVersion_Values();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.OperationImpl <em>Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.OperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getOperation()
* @generated
*/
EClass OPERATION = eINSTANCE.getOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BreakOperationImpl <em>Break Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BreakOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakOperation()
* @generated
*/
EClass BREAK_OPERATION = eINSTANCE.getBreakOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BreakOnChangeOperationImpl <em>Break On Change Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BreakOnChangeOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakOnChangeOperation()
* @generated
*/
EClass BREAK_ON_CHANGE_OPERATION = eINSTANCE.getBreakOnChangeOperation();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute BREAK_ON_CHANGE_OPERATION__FIELD = eINSTANCE.getBreakOnChangeOperation_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BreakLineOperationImpl <em>Break Line Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BreakLineOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakLineOperation()
* @generated
*/
EClass BREAK_LINE_OPERATION = eINSTANCE.getBreakLineOperation();
/**
* The meta object literal for the '<em><b>Line</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute BREAK_LINE_OPERATION__LINE = eINSTANCE.getBreakLineOperation_Line();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CalcOperationImpl <em>Calc Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CalcOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCalcOperation()
* @generated
*/
EClass CALC_OPERATION = eINSTANCE.getCalcOperation();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute CALC_OPERATION__FIELD = eINSTANCE.getCalcOperation_Field();
/**
* The meta object literal for the '<em><b>Operator</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute CALC_OPERATION__OPERATOR = eINSTANCE.getCalcOperation_Operator();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ConstantOperationImpl <em>Constant Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ConstantOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getConstantOperation()
* @generated
*/
EClass CONSTANT_OPERATION = eINSTANCE.getConstantOperation();
/**
* The meta object literal for the '<em><b>Value</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute CONSTANT_OPERATION__VALUE = eINSTANCE.getConstantOperation_Value();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LabelOperationImpl <em>Label Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LabelOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLabelOperation()
* @generated
*/
EClass LABEL_OPERATION = eINSTANCE.getLabelOperation();
/**
* The meta object literal for the '<em><b>Label</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference LABEL_OPERATION__LABEL = eINSTANCE.getLabelOperation_Label();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DateOperationImpl <em>Date Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DateOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDateOperation()
* @generated
*/
EClass DATE_OPERATION = eINSTANCE.getDateOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DecisionOperationImpl <em>Decision Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DecisionOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDecisionOperation()
* @generated
*/
EClass DECISION_OPERATION = eINSTANCE.getDecisionOperation();
/**
* The meta object literal for the '<em><b>Left Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DECISION_OPERATION__LEFT_FIELD = eINSTANCE.getDecisionOperation_LeftField();
/**
* The meta object literal for the '<em><b>Operand</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DECISION_OPERATION__OPERAND = eINSTANCE.getDecisionOperation_Operand();
/**
* The meta object literal for the '<em><b>Right Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DECISION_OPERATION__RIGHT_FIELD = eINSTANCE.getDecisionOperation_RightField();
/**
* The meta object literal for the '<em><b>First Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DECISION_OPERATION__FIRST_FIELD = eINSTANCE.getDecisionOperation_FirstField();
/**
* The meta object literal for the '<em><b>Second Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DECISION_OPERATION__SECOND_FIELD = eINSTANCE.getDecisionOperation_SecondField();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DescriptorOperationImpl <em>Descriptor Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DescriptorOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDescriptorOperation()
* @generated
*/
EClass DESCRIPTOR_OPERATION = eINSTANCE.getDescriptorOperation();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DESCRIPTOR_OPERATION__FIELD = eINSTANCE.getDescriptorOperation_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TodayOperationImpl <em>Today Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TodayOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTodayOperation()
* @generated
*/
EClass TODAY_OPERATION = eINSTANCE.getTodayOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LWDOperationImpl <em>LWD Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LWDOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLWDOperation()
* @generated
*/
EClass LWD_OPERATION = eINSTANCE.getLWDOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.NWDOperationImpl <em>NWD Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.NWDOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getNWDOperation()
* @generated
*/
EClass NWD_OPERATION = eINSTANCE.getNWDOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldOperationImpl <em>Field Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldOperation()
* @generated
*/
EClass FIELD_OPERATION = eINSTANCE.getFieldOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ApplicationFieldNameOperationImpl <em>Application Field Name Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ApplicationFieldNameOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getApplicationFieldNameOperation()
* @generated
*/
EClass APPLICATION_FIELD_NAME_OPERATION = eINSTANCE.getApplicationFieldNameOperation();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute APPLICATION_FIELD_NAME_OPERATION__FIELD = eINSTANCE.getApplicationFieldNameOperation_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldNumberOperationImpl <em>Field Number Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldNumberOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldNumberOperation()
* @generated
*/
EClass FIELD_NUMBER_OPERATION = eINSTANCE.getFieldNumberOperation();
/**
* The meta object literal for the '<em><b>Number</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD_NUMBER_OPERATION__NUMBER = eINSTANCE.getFieldNumberOperation_Number();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldExtractOperationImpl <em>Field Extract Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldExtractOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldExtractOperation()
* @generated
*/
EClass FIELD_EXTRACT_OPERATION = eINSTANCE.getFieldExtractOperation();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD_EXTRACT_OPERATION__FIELD = eINSTANCE.getFieldExtractOperation_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SelectionOperationImpl <em>Selection Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SelectionOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelectionOperation()
* @generated
*/
EClass SELECTION_OPERATION = eINSTANCE.getSelectionOperation();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SELECTION_OPERATION__FIELD = eINSTANCE.getSelectionOperation_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.SystemOperationImpl <em>System Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.SystemOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSystemOperation()
* @generated
*/
EClass SYSTEM_OPERATION = eINSTANCE.getSystemOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.UserOperationImpl <em>User Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.UserOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getUserOperation()
* @generated
*/
EClass USER_OPERATION = eINSTANCE.getUserOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CompanyOperationImpl <em>Company Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CompanyOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCompanyOperation()
* @generated
*/
EClass COMPANY_OPERATION = eINSTANCE.getCompanyOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LanguageOperationImpl <em>Language Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LanguageOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLanguageOperation()
* @generated
*/
EClass LANGUAGE_OPERATION = eINSTANCE.getLanguageOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.LocalCurrencyOperationImpl <em>Local Currency Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.LocalCurrencyOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getLocalCurrencyOperation()
* @generated
*/
EClass LOCAL_CURRENCY_OPERATION = eINSTANCE.getLocalCurrencyOperation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.TotalOperationImpl <em>Total Operation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.TotalOperationImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTotalOperation()
* @generated
*/
EClass TOTAL_OPERATION = eINSTANCE.getTotalOperation();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute TOTAL_OPERATION__FIELD = eINSTANCE.getTotalOperation_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ConversionImpl <em>Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getConversion()
* @generated
*/
EClass CONVERSION = eINSTANCE.getConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ExtractConversionImpl <em>Extract Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ExtractConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getExtractConversion()
* @generated
*/
EClass EXTRACT_CONVERSION = eINSTANCE.getExtractConversion();
/**
* The meta object literal for the '<em><b>From</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute EXTRACT_CONVERSION__FROM = eINSTANCE.getExtractConversion_From();
/**
* The meta object literal for the '<em><b>To</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute EXTRACT_CONVERSION__TO = eINSTANCE.getExtractConversion_To();
/**
* The meta object literal for the '<em><b>Delimiter</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute EXTRACT_CONVERSION__DELIMITER = eINSTANCE.getExtractConversion_Delimiter();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.DecryptConversionImpl <em>Decrypt Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.DecryptConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDecryptConversion()
* @generated
*/
EClass DECRYPT_CONVERSION = eINSTANCE.getDecryptConversion();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute DECRYPT_CONVERSION__FIELD = eINSTANCE.getDecryptConversion_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ReplaceConversionImpl <em>Replace Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ReplaceConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getReplaceConversion()
* @generated
*/
EClass REPLACE_CONVERSION = eINSTANCE.getReplaceConversion();
/**
* The meta object literal for the '<em><b>Old Data</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute REPLACE_CONVERSION__OLD_DATA = eINSTANCE.getReplaceConversion_OldData();
/**
* The meta object literal for the '<em><b>New Data</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute REPLACE_CONVERSION__NEW_DATA = eINSTANCE.getReplaceConversion_NewData();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ConvertConversionImpl <em>Convert Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ConvertConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getConvertConversion()
* @generated
*/
EClass CONVERT_CONVERSION = eINSTANCE.getConvertConversion();
/**
* The meta object literal for the '<em><b>Old Data</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute CONVERT_CONVERSION__OLD_DATA = eINSTANCE.getConvertConversion_OldData();
/**
* The meta object literal for the '<em><b>New Data</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute CONVERT_CONVERSION__NEW_DATA = eINSTANCE.getConvertConversion_NewData();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ValueConversionImpl <em>Value Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ValueConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getValueConversion()
* @generated
*/
EClass VALUE_CONVERSION = eINSTANCE.getValueConversion();
/**
* The meta object literal for the '<em><b>Value</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute VALUE_CONVERSION__VALUE = eINSTANCE.getValueConversion_Value();
/**
* The meta object literal for the '<em><b>Sub Value</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute VALUE_CONVERSION__SUB_VALUE = eINSTANCE.getValueConversion_SubValue();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.JulianConversionImpl <em>Julian Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.JulianConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getJulianConversion()
* @generated
*/
EClass JULIAN_CONVERSION = eINSTANCE.getJulianConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BasicConversionImpl <em>Basic Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BasicConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBasicConversion()
* @generated
*/
EClass BASIC_CONVERSION = eINSTANCE.getBasicConversion();
/**
* The meta object literal for the '<em><b>Instruction</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute BASIC_CONVERSION__INSTRUCTION = eINSTANCE.getBasicConversion_Instruction();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BasicOConversionImpl <em>Basic OConversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BasicOConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBasicOConversion()
* @generated
*/
EClass BASIC_OCONVERSION = eINSTANCE.getBasicOConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BasicIConversionImpl <em>Basic IConversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BasicIConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBasicIConversion()
* @generated
*/
EClass BASIC_ICONVERSION = eINSTANCE.getBasicIConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.GetFromConversionImpl <em>Get From Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.GetFromConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getGetFromConversion()
* @generated
*/
EClass GET_FROM_CONVERSION = eINSTANCE.getGetFromConversion();
/**
* The meta object literal for the '<em><b>Application</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute GET_FROM_CONVERSION__APPLICATION = eINSTANCE.getGetFromConversion_Application();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute GET_FROM_CONVERSION__FIELD = eINSTANCE.getGetFromConversion_Field();
/**
* The meta object literal for the '<em><b>Language</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute GET_FROM_CONVERSION__LANGUAGE = eINSTANCE.getGetFromConversion_Language();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RateConversionImpl <em>Rate Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RateConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRateConversion()
* @generated
*/
EClass RATE_CONVERSION = eINSTANCE.getRateConversion();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute RATE_CONVERSION__FIELD = eINSTANCE.getRateConversion_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CalcFixedRateConversionImpl <em>Calc Fixed Rate Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CalcFixedRateConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCalcFixedRateConversion()
* @generated
*/
EClass CALC_FIXED_RATE_CONVERSION = eINSTANCE.getCalcFixedRateConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.GetFixedRateConversionImpl <em>Get Fixed Rate Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.GetFixedRateConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getGetFixedRateConversion()
* @generated
*/
EClass GET_FIXED_RATE_CONVERSION = eINSTANCE.getGetFixedRateConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.GetFixedCurrencyConversionImpl <em>Get Fixed Currency Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.GetFixedCurrencyConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getGetFixedCurrencyConversion()
* @generated
*/
EClass GET_FIXED_CURRENCY_CONVERSION = eINSTANCE.getGetFixedCurrencyConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.AbsConversionImpl <em>Abs Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.AbsConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getAbsConversion()
* @generated
*/
EClass ABS_CONVERSION = eINSTANCE.getAbsConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.MatchFieldImpl <em>Match Field</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.MatchFieldImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getMatchField()
* @generated
*/
EClass MATCH_FIELD = eINSTANCE.getMatchField();
/**
* The meta object literal for the '<em><b>Pattern</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute MATCH_FIELD__PATTERN = eINSTANCE.getMatchField_Pattern();
/**
* The meta object literal for the '<em><b>Value</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute MATCH_FIELD__VALUE = eINSTANCE.getMatchField_Value();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.CallRoutineImpl <em>Call Routine</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.CallRoutineImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCallRoutine()
* @generated
*/
EClass CALL_ROUTINE = eINSTANCE.getCallRoutine();
/**
* The meta object literal for the '<em><b>Routine</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference CALL_ROUTINE__ROUTINE = eINSTANCE.getCallRoutine_Routine();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RepeatConversionImpl <em>Repeat Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RepeatConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRepeatConversion()
* @generated
*/
EClass REPEAT_CONVERSION = eINSTANCE.getRepeatConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RepeatOnNullConversionImpl <em>Repeat On Null Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RepeatOnNullConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRepeatOnNullConversion()
* @generated
*/
EClass REPEAT_ON_NULL_CONVERSION = eINSTANCE.getRepeatOnNullConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RepeatEveryConversionImpl <em>Repeat Every Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RepeatEveryConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRepeatEveryConversion()
* @generated
*/
EClass REPEAT_EVERY_CONVERSION = eINSTANCE.getRepeatEveryConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.RepeatSubConversionImpl <em>Repeat Sub Conversion</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.RepeatSubConversionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getRepeatSubConversion()
* @generated
*/
EClass REPEAT_SUB_CONVERSION = eINSTANCE.getRepeatSubConversion();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldImpl <em>Field</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getField()
* @generated
*/
EClass FIELD = eINSTANCE.getField();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__NAME = eINSTANCE.getField_Name();
/**
* The meta object literal for the '<em><b>Label</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference FIELD__LABEL = eINSTANCE.getField_Label();
/**
* The meta object literal for the '<em><b>Comments</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__COMMENTS = eINSTANCE.getField_Comments();
/**
* The meta object literal for the '<em><b>Display Type</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__DISPLAY_TYPE = eINSTANCE.getField_DisplayType();
/**
* The meta object literal for the '<em><b>Format</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference FIELD__FORMAT = eINSTANCE.getField_Format();
/**
* The meta object literal for the '<em><b>Break Condition</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference FIELD__BREAK_CONDITION = eINSTANCE.getField_BreakCondition();
/**
* The meta object literal for the '<em><b>Length</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__LENGTH = eINSTANCE.getField_Length();
/**
* The meta object literal for the '<em><b>Alignment</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__ALIGNMENT = eINSTANCE.getField_Alignment();
/**
* The meta object literal for the '<em><b>Comma Separator</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__COMMA_SEPARATOR = eINSTANCE.getField_CommaSeparator();
/**
* The meta object literal for the '<em><b>Number Of Decimals</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__NUMBER_OF_DECIMALS = eINSTANCE.getField_NumberOfDecimals();
/**
* The meta object literal for the '<em><b>Escape Sequence</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__ESCAPE_SEQUENCE = eINSTANCE.getField_EscapeSequence();
/**
* The meta object literal for the '<em><b>Fmt Mask</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__FMT_MASK = eINSTANCE.getField_FmtMask();
/**
* The meta object literal for the '<em><b>Display Section</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__DISPLAY_SECTION = eINSTANCE.getField_DisplaySection();
/**
* The meta object literal for the '<em><b>Position</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference FIELD__POSITION = eINSTANCE.getField_Position();
/**
* The meta object literal for the '<em><b>Column Width</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__COLUMN_WIDTH = eINSTANCE.getField_ColumnWidth();
/**
* The meta object literal for the '<em><b>Spool Break</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__SPOOL_BREAK = eINSTANCE.getField_SpoolBreak();
/**
* The meta object literal for the '<em><b>Single Multi</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__SINGLE_MULTI = eINSTANCE.getField_SingleMulti();
/**
* The meta object literal for the '<em><b>Hidden</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__HIDDEN = eINSTANCE.getField_Hidden();
/**
* The meta object literal for the '<em><b>No Header</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__NO_HEADER = eINSTANCE.getField_NoHeader();
/**
* The meta object literal for the '<em><b>No Column Label</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__NO_COLUMN_LABEL = eINSTANCE.getField_NoColumnLabel();
/**
* The meta object literal for the '<em><b>Operation</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference FIELD__OPERATION = eINSTANCE.getField_Operation();
/**
* The meta object literal for the '<em><b>Conversion</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference FIELD__CONVERSION = eINSTANCE.getField_Conversion();
/**
* The meta object literal for the '<em><b>Attributes</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD__ATTRIBUTES = eINSTANCE.getField_Attributes();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.BreakConditionImpl <em>Break Condition</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.BreakConditionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakCondition()
* @generated
*/
EClass BREAK_CONDITION = eINSTANCE.getBreakCondition();
/**
* The meta object literal for the '<em><b>Break</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute BREAK_CONDITION__BREAK = eINSTANCE.getBreakCondition_Break();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute BREAK_CONDITION__FIELD = eINSTANCE.getBreakCondition_Field();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FieldPositionImpl <em>Field Position</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FieldPositionImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldPosition()
* @generated
*/
EClass FIELD_POSITION = eINSTANCE.getFieldPosition();
/**
* The meta object literal for the '<em><b>Page Throw</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD_POSITION__PAGE_THROW = eINSTANCE.getFieldPosition_PageThrow();
/**
* The meta object literal for the '<em><b>Column</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD_POSITION__COLUMN = eINSTANCE.getFieldPosition_Column();
/**
* The meta object literal for the '<em><b>Relative</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD_POSITION__RELATIVE = eINSTANCE.getFieldPosition_Relative();
/**
* The meta object literal for the '<em><b>Line</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD_POSITION__LINE = eINSTANCE.getFieldPosition_Line();
/**
* The meta object literal for the '<em><b>Multi Line</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FIELD_POSITION__MULTI_LINE = eINSTANCE.getFieldPosition_MultiLine();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.FormatImpl <em>Format</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.FormatImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFormat()
* @generated
*/
EClass FORMAT = eINSTANCE.getFormat();
/**
* The meta object literal for the '<em><b>Format</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FORMAT__FORMAT = eINSTANCE.getFormat_Format();
/**
* The meta object literal for the '<em><b>Field</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FORMAT__FIELD = eINSTANCE.getFormat_Field();
/**
* The meta object literal for the '<em><b>Pattern</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute FORMAT__PATTERN = eINSTANCE.getFormat_Pattern();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.ToolImpl <em>Tool</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.ToolImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getTool()
* @generated
*/
EClass TOOL = eINSTANCE.getTool();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute TOOL__NAME = eINSTANCE.getTool_Name();
/**
* The meta object literal for the '<em><b>Label</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference TOOL__LABEL = eINSTANCE.getTool_Label();
/**
* The meta object literal for the '<em><b>Command</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute TOOL__COMMAND = eINSTANCE.getTool_Command();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.impl.WebServiceImpl <em>Web Service</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.impl.WebServiceImpl
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getWebService()
* @generated
*/
EClass WEB_SERVICE = eINSTANCE.getWebService();
/**
* The meta object literal for the '<em><b>Publish Web Service</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WEB_SERVICE__PUBLISH_WEB_SERVICE = eINSTANCE.getWebService_PublishWebService();
/**
* The meta object literal for the '<em><b>Web Service Names</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WEB_SERVICE__WEB_SERVICE_NAMES = eINSTANCE.getWebService_WebServiceNames();
/**
* The meta object literal for the '<em><b>Web Service Activity</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WEB_SERVICE__WEB_SERVICE_ACTIVITY = eINSTANCE.getWebService_WebServiceActivity();
/**
* The meta object literal for the '<em><b>Web Service Description</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WEB_SERVICE__WEB_SERVICE_DESCRIPTION = eINSTANCE.getWebService_WebServiceDescription();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.EnquiryMode <em>Mode</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.EnquiryMode
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEnquiryMode()
* @generated
*/
EEnum ENQUIRY_MODE = eINSTANCE.getEnquiryMode();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.AlignmentKind <em>Alignment Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.AlignmentKind
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getAlignmentKind()
* @generated
*/
EEnum ALIGNMENT_KIND = eINSTANCE.getAlignmentKind();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.BreakKind <em>Break Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.BreakKind
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getBreakKind()
* @generated
*/
EEnum BREAK_KIND = eINSTANCE.getBreakKind();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.CurrencyPattern <em>Currency Pattern</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.CurrencyPattern
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCurrencyPattern()
* @generated
*/
EEnum CURRENCY_PATTERN = eINSTANCE.getCurrencyPattern();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.DecisionOperand <em>Decision Operand</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.DecisionOperand
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDecisionOperand()
* @generated
*/
EEnum DECISION_OPERAND = eINSTANCE.getDecisionOperand();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.DisplaySectionKind <em>Display Section Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.DisplaySectionKind
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getDisplaySectionKind()
* @generated
*/
EEnum DISPLAY_SECTION_KIND = eINSTANCE.getDisplaySectionKind();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.FieldFormat <em>Field Format</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.FieldFormat
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFieldFormat()
* @generated
*/
EEnum FIELD_FORMAT = eINSTANCE.getFieldFormat();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.FunctionKind <em>Function Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.FunctionKind
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFunctionKind()
* @generated
*/
EEnum FUNCTION_KIND = eINSTANCE.getFunctionKind();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.SelectionOperator <em>Selection Operator</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.SelectionOperator
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSelectionOperator()
* @generated
*/
EEnum SELECTION_OPERATOR = eINSTANCE.getSelectionOperator();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.CriteriaOperator <em>Criteria Operator</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.CriteriaOperator
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getCriteriaOperator()
* @generated
*/
EEnum CRITERIA_OPERATOR = eINSTANCE.getCriteriaOperator();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.ProcessingMode <em>Processing Mode</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.ProcessingMode
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getProcessingMode()
* @generated
*/
EEnum PROCESSING_MODE = eINSTANCE.getProcessingMode();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.SortOrder <em>Sort Order</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.SortOrder
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getSortOrder()
* @generated
*/
EEnum SORT_ORDER = eINSTANCE.getSortOrder();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.AndOr <em>And Or</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.AndOr
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getAndOr()
* @generated
*/
EEnum AND_OR = eINSTANCE.getAndOr();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.FileVersionOption <em>File Version Option</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.FileVersionOption
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getFileVersionOption()
* @generated
*/
EEnum FILE_VERSION_OPTION = eINSTANCE.getFileVersionOption();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.EscapeSequence <em>Escape Sequence</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.EscapeSequence
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getEscapeSequence()
* @generated
*/
EEnum ESCAPE_SEQUENCE = eINSTANCE.getEscapeSequence();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.Orientation <em>Orientation</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.Orientation
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getOrientation()
* @generated
*/
EEnum ORIENTATION = eINSTANCE.getOrientation();
/**
* The meta object literal for the '{@link com.odcgroup.t24.enquiry.enquiry.ServerMode <em>Server Mode</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.odcgroup.t24.enquiry.enquiry.ServerMode
* @see com.odcgroup.t24.enquiry.enquiry.impl.EnquiryPackageImpl#getServerMode()
* @generated
*/
EEnum SERVER_MODE = eINSTANCE.getServerMode();
}
} //EnquiryPackage
| epl-1.0 |
jarrah42/eavp | org.eclipse.eavp.geometry.view.javafx.test/src/org/eclipse/eavp/geometry/view/javafx/display/test/FXColorOptionTester.java | 2160 | /*******************************************************************************
* Copyright (c) 2016 UT-Battelle, 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
*
* Contributors:
* Robert Smith
*******************************************************************************/
package org.eclipse.eavp.geometry.view.javafx.display.test;
import static org.junit.Assert.assertTrue;
import org.eclipse.eavp.geometry.view.javafx.display.FXColorOption;
import org.eclipse.eavp.geometry.view.javafx.render.FXMeshCache;
import org.eclipse.eavp.geometry.view.javafx.render.FXRenderObject;
import org.eclipse.eavp.geometry.view.model.impl.ColorOptionImpl;
import org.eclipse.january.geometry.GeometryFactory;
import org.eclipse.january.geometry.Shape;
import org.junit.Ignore;
import org.junit.Test;
import javafx.scene.shape.MeshView;
/**
* A class to test the functionality of the FXColorDecorator.
*
* @author Robert Smith
*
*/
public class FXColorOptionTester {
/**
* Check that the decorator will set the object's material correctly.
*/
@Test @Ignore
public void checkMesh() {
// Create a render object
Shape shape = GeometryFactory.eINSTANCE.createShape();
FXRenderObject object = new FXRenderObject(
GeometryFactory.eINSTANCE.createCube(), new FXMeshCache());
// Create a color decorator for it
FXColorOption decorator = new FXColorOption(object);
// Set the color
object.setProperty(ColorOptionImpl.PROPERTY_NAME_RED, 200);
object.setProperty(ColorOptionImpl.PROPERTY_NAME_GREEN, 100);
object.setProperty(ColorOptionImpl.PROPERTY_NAME_BLUE, 0);
// We cannot test PhongMaterials for equality as JavaFX does not
// overload equals() or provide methods for getting a PhongMaterial's
// attributes, so instead just check that the decorator returned a
// meshview.
assertTrue(object.getMesh().getChildren().get(0) instanceof MeshView);
}
}
| epl-1.0 |
sunix/che-plugins | plugin-runner/che-plugin-runner-ext-runner/src/main/java/org/eclipse/che/ide/ext/runner/client/tabs/properties/panel/common/RAM.java | 2168 | /*******************************************************************************
* Copyright (c) 2012-2015 Codenvy, S.A.
* 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:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.ide.ext.runner.client.tabs.properties.panel.common;
import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;
/**
* Enums which store information about memory size.
*
* @author Dmitry Shnurenko
*/
public enum RAM {
MB_128(128),
MB_256(256),
MB_512(512),
MB_1024(1024),
MB_2048(2048),
MB_4096(4096),
MB_8192(8192),
DEFAULT(1024);
private final int size;
RAM(int size) {
this.size = size;
}
/** @return integer value of enum. */
public int getValue() {
return size;
}
/** {@inheritDoc} */
@Nonnull
@Override
public String toString() {
return size + " mib";
}
/**
* Returns an instance of {@link RAM} using special memory string value.
*
* @param inputMemory
* value of string for which need return {@link RAM} enum
* @return an instance {@link RAM}
*/
@Nonnull
public static RAM detect(@Nonnull String inputMemory) {
for (RAM size : RAM.values()) {
if (inputMemory.equals(size.toString())) {
return size;
}
}
return DEFAULT;
}
/**
* Returns an instance of {@link RAM} using integer value.
*
* @param value
* value of integer for which need return {@link RAM} enum
* @return an instance {@link RAM}
*/
@Nonnull
public static RAM detect(@Nonnegative int value) {
for (RAM size : RAM.values()) {
if (size.getValue() == value) {
return size;
}
}
return DEFAULT;
}
} | epl-1.0 |
trajano/doxdb | doxdb-rest/src/main/java/net/trajano/doxdb/ejb/DoxImport.java | 297 | package net.trajano.doxdb.ejb;
import java.util.Date;
import javax.ejb.Local;
import javax.json.JsonObject;
@Local
public interface DoxImport {
JsonObject exportDox(String exportPath,
String schema,
Date fromLastUpdatedOn);
JsonObject importDox(String importPath);
}
| epl-1.0 |
asupdev/asup | org.asup.fw.util/src/org/asup/fw/util/QStringUtil.java | 1776 | /**
* Copyright (c) 2012, 2014 Sme.UP 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.asup.fw.util;
import org.asup.fw.core.QService;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>String Util</b></em>'.
* <!-- end-user-doc -->
*
*
* @see org.asup.fw.util.QFrameworkUtilPackage#getStringUtil()
* @model interface="true" abstract="true"
* @generated
*/
public interface QStringUtil extends QService {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model required="true" stringRequired="true"
* @generated
*/
String firstToUpper(String string);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model required="true" stringRequired="true"
* @generated
*/
String removeFirstChar(String string);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model required="true" stringRequired="true"
* @generated
*/
String removeLastChar(String string);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model required="true" stringRequired="true"
* @generated
*/
String trimL(String string);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model required="true" stringRequired="true"
* @generated
*/
String trimR(String string);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model required="true" stringRequired="true" charsRequired="true" timesRequired="true" beforeRequired="true"
* @generated
*/
String appendChars(String string, String chars, int times, boolean before);
} // QStringUtil
| epl-1.0 |
KwygonJin/hello-world | LessonThreading/src/com/myThreadsLists/MyThreadExecutorForArrayList.java | 1136 | package com.myThreadsLists;
public class MyThreadExecutorForArrayList {
public static void main(String[] args) {
int arrLength = 10;
ArrayListGame<Integer> game = new ArrayListGame<Integer>(arrLength);
//ArrayList<Integer> arrayList = new ArrayList<Integer>();
Thread threadProducer = new Thread(new Runnable() {
@Override
public void run() {
try {
game.producer(5);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
});
threadProducer.setPriority(Thread.MAX_PRIORITY);
threadProducer.start();
Thread threadConsumer = new Thread(new Runnable() {
@Override
public void run() {
try {
game.consumer(0);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
});
threadConsumer.setPriority(Thread.MIN_PRIORITY);
threadConsumer.start();
for (int i = 6; i < 100; i++) {
new Thread(new Runnable() {
@Override
public void run() {
try {
game.producer(7);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}).start();
}
}
}
| epl-1.0 |
cbaerikebc/kapua | qa/src/test/java/org/eclipse/kapua/service/user/integration/RunUserServiceI9nTest.java | 1047 | /*******************************************************************************
* Copyright (c) 2011, 2016 Eurotech and/or its affiliates 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:
* Eurotech - initial API and implementation
*
*******************************************************************************/
package org.eclipse.kapua.service.user.integration;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "classpath:features",
glue = "org.eclipse.kapua.service.user.steps",
plugin = {"pretty", "html:target/cucumber/UserServiceI9n",
"json:target/UserServiceI9n_cucumber.json"},
monochrome=true)
public class RunUserServiceI9nTest { }
| epl-1.0 |
xiaohanz/softcontroller | opendaylight/config/yang-jmx-generator/src/main/java/org/opendaylight/controller/config/yangjmxgenerator/attribute/ListAttribute.java | 3665 | /*
* 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.config.yangjmxgenerator.attribute;
import javax.management.openmbean.ArrayType;
import javax.management.openmbean.OpenDataException;
import javax.management.openmbean.OpenType;
import org.opendaylight.controller.config.yangjmxgenerator.TypeProviderWrapper;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
public class ListAttribute extends AbstractAttribute {
private final String nullableDescription, nullableDefault;
private final AttributeIfc innerAttribute;
public static ListAttribute create(ListSchemaNode node,
TypeProviderWrapper typeProvider) {
AttributeIfc innerAttribute = TOAttribute.create(node, typeProvider);
return new ListAttribute(node, innerAttribute, node.getDescription());
}
public static ListAttribute create(LeafListSchemaNode node,
TypeProviderWrapper typeProvider) {
AttributeIfc innerAttribute = new JavaAttribute(node, typeProvider);
return new ListAttribute(node, innerAttribute, node.getDescription());
}
ListAttribute(DataSchemaNode attrNode, AttributeIfc innerAttribute,
String description) {
super(attrNode);
this.nullableDescription = description;
this.innerAttribute = innerAttribute;
this.nullableDefault = null;
}
@Override
public String getNullableDescription() {
return nullableDescription;
}
@Override
public String getNullableDefault() {
return nullableDefault;
}
public AttributeIfc getInnerAttribute() {
return innerAttribute;
}
@Override
public String toString() {
return "ListAttribute{" + getAttributeYangName() + "," + "to="
+ innerAttribute + '}';
}
@Override
public int hashCode() {
int result = super.hashCode();
result = 31
* result
+ (nullableDescription != null ? nullableDescription.hashCode()
: 0);
result = 31 * result
+ (nullableDefault != null ? nullableDefault.hashCode() : 0);
return result;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
if (!super.equals(o))
return false;
ListAttribute that = (ListAttribute) o;
if (nullableDefault != null ? !nullableDefault
.equals(that.nullableDefault) : that.nullableDefault != null)
return false;
if (nullableDescription != null ? !nullableDescription
.equals(that.nullableDescription)
: that.nullableDescription != null)
return false;
return true;
}
@Override
public ArrayType<?> getOpenType() {
OpenType<?> inerOpenType = innerAttribute.getOpenType();
try {
return new ArrayType<>(1, inerOpenType);
} catch (OpenDataException e) {
throw new RuntimeException("Unable to create " + ArrayType.class
+ " with inner element of type " + inerOpenType, e);
}
}
}
| epl-1.0 |
cschwer/com.zsmartsystems.zigbee | com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/internal/EmberStackConfiguration.java | 4187 | /**
* Copyright (c) 2016-2019 by the respective copyright holders.
* 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.zsmartsystems.zigbee.dongle.ember.internal;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import com.zsmartsystems.zigbee.dongle.ember.EmberNcp;
import com.zsmartsystems.zigbee.dongle.ember.ezsp.structure.EzspConfigId;
import com.zsmartsystems.zigbee.dongle.ember.ezsp.structure.EzspDecisionId;
import com.zsmartsystems.zigbee.dongle.ember.ezsp.structure.EzspPolicyId;
import com.zsmartsystems.zigbee.dongle.ember.ezsp.structure.EzspStatus;
/**
* This class provides utility functions to configure, and read the configuration from the Ember stack.
*
* @author Chris Jackson
*
*/
public class EmberStackConfiguration {
/**
* The {@link EmberNcp} used to send the EZSP frames to the NCP
*/
private EmberNcp ncp;
/**
* Constructor to set the {@link EmberNcp}
*
* @param ncp the {@link EmberNcp} used to communicate with the NCP
*/
public EmberStackConfiguration(EmberNcp ncp) {
this.ncp = ncp;
}
/**
* Configuration utility. Takes a {@link Map} of {@link EzspConfigId} to {@link Integer} and will work through
* setting them before returning.
*
* @param configuration {@link Map} of {@link EzspConfigId} to {@link Integer} with configuration to set
* @return true if all configuration were set successfully
*/
public boolean setConfiguration(Map<EzspConfigId, Integer> configuration) {
boolean success = true;
for (Entry<EzspConfigId, Integer> config : configuration.entrySet()) {
if (ncp.setConfiguration(config.getKey(), config.getValue()) != EzspStatus.EZSP_SUCCESS) {
success = false;
}
}
return success;
}
/**
* Configuration utility. Takes a {@link Set} of {@link EzspConfigId} and will work through
* requesting them before returning.
*
* @param configuration {@link Set} of {@link EzspConfigId} to request
* @return map of configuration data mapping {@link EzspConfigId} to {@link Integer}. Value will be null if error
* occurred.
*/
public Map<EzspConfigId, Integer> getConfiguration(Set<EzspConfigId> configuration) {
Map<EzspConfigId, Integer> response = new HashMap<>();
for (EzspConfigId configId : configuration) {
response.put(configId, ncp.getConfiguration(configId));
}
return response;
}
/**
* Configuration utility. Takes a {@link Map} of {@link EzspConfigId} to {@link EzspDecisionId} and will work
* through setting them before returning.
*
* @param policies {@link Map} of {@link EzspPolicyId} to {@link EzspDecisionId} with configuration to set
* @return true if all policies were set successfully
*/
public boolean setPolicy(Map<EzspPolicyId, EzspDecisionId> policies) {
boolean success = true;
for (Entry<EzspPolicyId, EzspDecisionId> policy : policies.entrySet()) {
if (ncp.setPolicy(policy.getKey(), policy.getValue()) != EzspStatus.EZSP_SUCCESS) {
success = false;
}
}
return success;
}
/**
* Configuration utility. Takes a {@link Set} of {@link EzspPolicyId} and will work through
* requesting them before returning.
*
* @param policies {@link Set} of {@link EzspPolicyId} to request
* @return map of configuration data mapping {@link EzspPolicyId} to {@link EzspDecisionId}. Value will be null if
* error occurred.
*/
public Map<EzspPolicyId, EzspDecisionId> getPolicy(Set<EzspPolicyId> policies) {
Map<EzspPolicyId, EzspDecisionId> response = new HashMap<>();
for (EzspPolicyId policyId : policies) {
response.put(policyId, ncp.getPolicy(policyId));
}
return response;
}
}
| epl-1.0 |
puckpuck/idapi-wrapper | idapi-wrapper/src/com/actuate/aces/idapi/util/ByteArrayDataSource.java | 1080 | /*
* Copyright (c) 2014 Actuate Corporation
*/
package com.actuate.aces.idapi.util;
import javax.activation.DataSource;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class ByteArrayDataSource implements DataSource {
private ByteArrayInputStream inStream;
private String contentType;
private String name = "";
public ByteArrayDataSource(ByteArrayInputStream bais, String contentType) {
inStream = bais;
this.contentType = contentType;
}
public ByteArrayDataSource(byte[] data, String contentType) {
inStream = new ByteArrayInputStream(data);
this.contentType = contentType;
}
public InputStream getInputStream() throws IOException {
inStream.reset();
return inStream;
}
public OutputStream getOutputStream() throws IOException {
throw new IOException("Invalid Operation");
}
public String getContentType() {
return contentType;
}
public void setName(String name) {
if (name != null)
this.name = name;
}
public String getName() {
return name;
}
}
| epl-1.0 |
rkadle/Tank | agent/apiharness/src/test/java/com/intuit/tank/http/soap/SOAPRequestTest.java | 5097 | package com.intuit.tank.http.soap;
/*
* #%L
* Intuit Tank Agent (apiharness)
* %%
* Copyright (C) 2011 - 2015 Intuit 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
* #L%
*/
import org.apache.commons.httpclient.HttpClient;
import org.junit.*;
import com.intuit.tank.http.soap.SOAPRequest;
import static org.junit.Assert.*;
/**
* The class <code>SOAPRequestTest</code> contains tests for the class <code>{@link SOAPRequest}</code>.
*
* @generatedBy CodePro at 12/16/14 4:29 PM
*/
public class SOAPRequestTest {
/**
* Run the SOAPRequest(HttpClient) constructor test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 4:29 PM
*/
@Test
public void testSOAPRequest_1()
throws Exception {
HttpClient client = new HttpClient();
SOAPRequest result = new SOAPRequest(client);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.ExceptionInInitializerError
assertNotNull(result);
}
/**
* Run the SOAPRequest(HttpClient) constructor test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 4:29 PM
*/
@Test
public void testSOAPRequest_2()
throws Exception {
HttpClient client = new HttpClient();
SOAPRequest result = new SOAPRequest(client);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient
assertNotNull(result);
}
/**
* Run the SOAPRequest(HttpClient) constructor test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 4:29 PM
*/
@Test
public void testSOAPRequest_3()
throws Exception {
HttpClient client = new HttpClient();
SOAPRequest result = new SOAPRequest(client);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient
assertNotNull(result);
}
/**
* Run the SOAPRequest(HttpClient) constructor test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 4:29 PM
*/
@Test
public void testSOAPRequest_4()
throws Exception {
HttpClient client = new HttpClient();
SOAPRequest result = new SOAPRequest(client);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient
assertNotNull(result);
}
/**
* Run the SOAPRequest(HttpClient) constructor test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 4:29 PM
*/
@Test
public void testSOAPRequest_5()
throws Exception {
HttpClient client = new HttpClient();
SOAPRequest result = new SOAPRequest(client);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient
assertNotNull(result);
}
/**
* Run the String getKey(String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 4:29 PM
*/
@Test
public void testGetKey_1()
throws Exception {
SOAPRequest fixture = new SOAPRequest(new HttpClient());
String key = "";
String result = fixture.getKey(key);
}
/**
* Run the void setKey(String,String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 4:29 PM
*/
@Test
public void testSetKey_1()
throws Exception {
SOAPRequest fixture = new SOAPRequest(new HttpClient());
String key = "";
String value = "";
fixture.setKey(key, value);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient
}
/**
* Run the void setNamespace(String,String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 12/16/14 4:29 PM
*/
@Test
public void testSetNamespace_1()
throws Exception {
SOAPRequest fixture = new SOAPRequest(new HttpClient());
String name = "";
String value = "";
fixture.setNamespace(name, value);
// An unexpected exception was thrown in user code while executing this test:
// java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient
}
} | epl-1.0 |
arcanefoam/jgrapht | jgrapht-core/src/main/java/org/jgrapht/graph/builder/AbstractGraphBuilder.java | 5784 | /* ==========================================
* JGraphT : a free Java graph-theory library
* ==========================================
*
* Project Info: http://jgrapht.sourceforge.net/
* Project Creator: Barak Naveh (http://sourceforge.net/users/barak_naveh)
*
* (C) Copyright 2003-2008, by Barak Naveh and Contributors.
*
* This program and the accompanying materials are dual-licensed under
* either
*
* (a) the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation, or (at your option) any
* later version.
*
* or (per the licensee's choosing)
*
* (b) the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation.
*/
/* ---------------------
* GraphBuilderBase.java
* ---------------------
* (C) Copyright 2015, by Andrew Chen and Contributors.
*
* Original Author: Andrew Chen <llkiwi2006@gmail.com>
* Contributor(s): -
*
* $Id$
*
* Changes
* -------
* 12-Jan-2015 : Initial revision (AC);
*
*/
package org.jgrapht.graph.builder;
import org.jgrapht.*;
import org.jgrapht.graph.*;
/**
* Base class for builders of {@link Graph}
*
* @see DirectedGraphBuilderBase
* @see UndirectedGraphBuilderBase
*/
public abstract class AbstractGraphBuilder<V,
E, G extends Graph<V, E>, B extends AbstractGraphBuilder<V, E, G, B>>
{
protected final G graph;
/**
* Creates a builder based on {@code baseGraph}. {@code baseGraph} must be
* mutable.
*
* @param baseGraph the graph object to base building on
*/
public AbstractGraphBuilder(G baseGraph)
{
this.graph = baseGraph;
}
/**
* @return the {@code this} object.
*/
protected abstract B self();
/**
* Adds {@code vertex} to the graph being built.
*
* @param vertex the vertex to add
*
* @return this builder object
*
* @see Graph#addVertex(Object)
*/
public B addVertex(V vertex)
{
this.graph.addVertex(vertex);
return this.self();
}
/**
* Adds each vertex of {@code vertices} to the graph being built.
*
* @param vertices the vertices to add
*
* @return this builder object
*
* @see #addVertex(Object)
*/
public B addVertices(V ... vertices)
{
for (V vertex : vertices) {
this.addVertex(vertex);
}
return this.self();
}
/**
* Adds an edge to the graph being built. The source and target vertices are
* added to the graph, if not already included.
*
* @param source source vertex of the edge.
* @param target target vertex of the edge.
*
* @return this builder object
*
* @see Graphs#addEdgeWithVertices(Graph, Object, Object)
*/
public B addEdge(V source, V target)
{
Graphs.addEdgeWithVertices(this.graph, source, target);
return this.self();
}
/**
* Adds a chain of edges to the graph being built. The vertices are added to
* the graph, if not already included.
*
* @return this builder object
*
* @see #addEdge(Object, Object)
*/
public B addEdgeChain(V first, V second, V ... rest)
{
this.addEdge(first, second);
V last = second;
for (V vertex : rest) {
this.addEdge(last, vertex);
last = vertex;
}
return this.self();
}
/**
* Adds all the vertices and all the edges of the {@code sourceGraph} to the
* graph being built.
*
* @return this builder object
*
* @see Graphs#addGraph(Graph, Graph)
*/
public B addGraph(Graph<? extends V, ? extends E> sourceGraph)
{
Graphs.addGraph(this.graph, sourceGraph);
return this.self();
}
/**
* Removes {@code vertex} from the graph being built, if such vertex exist
* in graph.
*
* @param vertex the vertex to remove
*
* @return this builder object
*
* @see Graph#removeVertex(Object)
*/
public B removeVertex(V vertex)
{
this.graph.removeVertex(vertex);
return this.self();
}
/**
* Removes each vertex of {@code vertices} from the graph being built, if
* such vertices exist in graph.
*
* @param vertices the vertices to remove
*
* @return this builder object
*
* @see #removeVertex(Object)
*/
public B removeVertices(V ... vertices)
{
for (V vertex : vertices) {
this.removeVertex(vertex);
}
return this.self();
}
/**
* Removes an edge going from source vertex to target vertex from the graph
* being built, if such vertices and such edge exist in the graph.
*
* @param source source vertex of the edge.
* @param target target vertex of the edge.
*
* @return this builder object
*
* @see Graph#removeVertex(Object)
*/
public B removeEdge(V source, V target)
{
this.graph.removeEdge(source, target);
return this.self();
}
/**
* Build the graph. Calling any method (including this method) on this
* builder object after calling this method is undefined behaviour.
*
* @return the built graph.
*/
public G build()
{
return this.graph;
}
/**
* Build an unmodifiable version graph. Calling any method (including this
* method) on this builder object after calling this method is undefined
* behaviour.
*
* @return the built unmodifiable graph.
*
* @see #build()
*/
public UnmodifiableGraph<V, E> buildUnmodifiable()
{
return new UnmodifiableGraph<>(this.graph);
}
}
// End GraphBuilderBase.java
| epl-1.0 |
iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest10508.java | 2331 | /**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation, version 2.
*
* The Benchmark 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. See the
* GNU General Public License for more details
*
* @author Dave Wichers <a href="https://www.aspectsecurity.com">Aspect Security</a>
* @created 2015
*/
package org.owasp.benchmark.testcode;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/BenchmarkTest10508")
public class BenchmarkTest10508 extends HttpServlet {
private static final long serialVersionUID = 1L;
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doPost(request, response);
}
@Override
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
java.util.Map<String,String[]> map = request.getParameterMap();
String param = "";
if (!map.isEmpty()) {
param = map.get("foo")[0];
}
String bar = new Test().doSomething(param);
try {
java.security.MessageDigest md = java.security.MessageDigest.getInstance("MD5");
} catch (java.security.NoSuchAlgorithmException e) {
System.out.println("Problem executing hash - TestCase");
throw new ServletException(e);
}
response.getWriter().println("Hash Test java.security.MessageDigest.getInstance(java.lang.String) executed");
} // end doPost
private class Test {
public String doSomething(String param) throws ServletException, IOException {
String bar = param.split(" ")[0];
return bar;
}
} // end innerclass Test
} // end DataflowThruInnerClass
| gpl-2.0 |
flyroom/PeerfactSimKOM_Clone | src/org/peerfact/impl/overlay/informationdissemination/psense/OutgoingMessageBean.java | 5401 | /*
* Copyright (c) 2012-2013 Open Source Community - <http://www.peerfact.org>
* Copyright (c) 2011-2012 University of Paderborn - UPB
* Copyright (c) 2005-2011 KOM - Multimedia Communications Lab
*
* This file is part of PeerfactSim.KOM.
*
* PeerfactSim.KOM is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* PeerfactSim.KOM 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. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PeerfactSim.KOM. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.peerfact.impl.overlay.informationdissemination.psense;
import java.util.List;
import org.peerfact.impl.overlay.informationdissemination.psense.messages.AbstractPSenseMsg;
import org.peerfact.impl.overlay.informationdissemination.psense.messages.ForwardMsg;
import org.peerfact.impl.overlay.informationdissemination.psense.messages.PositionUpdateMsg;
import org.peerfact.impl.overlay.informationdissemination.psense.messages.SensorRequestMsg;
import org.peerfact.impl.overlay.informationdissemination.psense.messages.SensorResponseMsg;
/**
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* This part of the Simulator is not maintained in the current version of
* PeerfactSim.KOM. There is no intention of the authors to fix this
* circumstances, since the changes needed are huge compared to overall benefit.
*
* If you want it to work correctly, you are free to make the specific changes
* and provide it to the community.
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!
*
* Combine the message, the receiverList and the contact information to the
* receiver of the message. <br>
* The given receiverList should have the same Pointer as the List in message.
* For {@link SensorRequestMsg} and {@link SensorResponseMsg}, should this
* <code>null</code> or an empty list. This has the advantage, that a message
* must be delete, that the receiver stay up to date.
*
* @author Christoph Münker <peerfact@kom.tu-darmstadt.de>
* @version 09/15/2010
*/
public class OutgoingMessageBean {
/**
* The contact information to the receiver of the content of this stored
* message.
*/
private final PSenseContact contact;
/**
* List of receivers to this message
*/
private final List<PSenseID> receivers;
/**
* The message that is to store.
*/
private final AbstractPSenseMsg msg;
/**
* Constructor of this class, it sets the attributes of this class with the
* given parameters.
*
* @param contact
* The contact information from the receiver of the content of
* this message.
* @param receivers
* A list of the receivers of this message. (only used for
* {@link PositionUpdateMsg}s and {@link ForwardMsg}s. For other
* message should be used <code>null</code> or an empty list.
* @param msg
* The message that is to store.
*/
public OutgoingMessageBean(PSenseContact contact, List<PSenseID> receivers,
AbstractPSenseMsg msg) {
this.contact = contact;
this.msg = msg;
this.receivers = receivers;
}
/**
* Gets the contact from the receiver of the content of the message
*
* @return The contact to the receiver of the content of the message
*/
public PSenseContact getContact() {
return contact;
}
/**
* Gets a list of receivers of this message
*
* @return list of receivers of this message
*/
public List<PSenseID> getReceivers() {
return receivers;
}
/**
* Gets the message, that is stored in this bean
*
* @return The message, that is stored in this bean
*/
public AbstractPSenseMsg getMessage() {
return msg;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((contact == null) ? 0 : contact.hashCode());
result = prime * result + ((msg == null) ? 0 : msg.hashCode());
result = prime * result
+ ((receivers == null) ? 0 : receivers.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
OutgoingMessageBean other = (OutgoingMessageBean) obj;
if (contact == null) {
if (other.contact != null) {
return false;
}
} else if (!contact.equals(other.contact)) {
return false;
}
if (msg == null) {
if (other.msg != null) {
return false;
}
} else if (!msg.equals(other.msg)) {
return false;
}
if (receivers == null) {
if (other.receivers != null) {
return false;
}
} else if (!receivers.equals(other.receivers)) {
return false;
}
return true;
}
@Override
public String toString() {
StringBuffer temp = new StringBuffer();
temp.append("[ contact: ");
temp.append(getContact());
temp.append(", msg: ");
temp.append(getMessage());
temp.append(", receivers: ");
temp.append(getReceivers());
temp.append(" ]");
return temp.toString();
}
}
| gpl-2.0 |
alessandrocolantoni/mandragora | src/test/java/it/aco/mandragora/vo/MovieVOPK.java | 1018 | package it.aco.mandragora.vo;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
@Embeddable
public class MovieVOPK implements Serializable{
/**
*
*/
private static final long serialVersionUID = -8798317080998439832L;
@Column(name="ID_MOVIE")
private Integer idMovie;
@ManyToOne(targetEntity=ProducerVO.class, fetch=FetchType.LAZY)
@JoinColumns({ @JoinColumn(name="ID_PRODUCER", referencedColumnName="ID_PRODUCER") })
private ProducerVO producerVO;
public Integer getIdMovie() {
return idMovie;
}
public void setIdMovie(Integer idMovie) {
this.idMovie = idMovie;
}
public ProducerVO getProducerVO() {
return producerVO;
}
public void setProducerVO(ProducerVO producerVO) {
this.producerVO = producerVO;
}
}
| gpl-2.0 |
Lotusun/OfficeHelper | src/main/java/com/charlesdream/office/word/enums/WdDocumentMedium.java | 2020 | package com.charlesdream.office.word.enums;
import com.charlesdream.office.BaseEnum;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* Specifies the type of document to which you are applying a theme.
* <p>
*
* @author Charles Cui on 3/4/16.
* @since 1.0
*/
public enum WdDocumentMedium implements BaseEnum {
/**
* Document.
*
* @since 1.0
*/
wdDocument(1),
/**
* E-mail message.
*
* @since 1.0
*/
wdEmailMessage(0),
/**
* Web page.
*
* @since 1.0
*/
wdWebPage(2);
private static final Map<Integer, WdDocumentMedium> lookup;
static {
lookup = new HashMap<>();
for (WdDocumentMedium e : EnumSet.allOf(WdDocumentMedium.class)) {
lookup.put(e.value(), e);
}
}
private final int value;
WdDocumentMedium(int value) {
this.value = value;
}
/**
* Find the enum type by its value.
*
* @param value The enum value.
* @return The enum type, or null if this enum value does not exists.
* @since 1.0
*/
public static WdDocumentMedium find(int value) {
WdDocumentMedium result = lookup.get(value);
return result;
}
/**
* Find the enum type by its value, with the default value.
*
* @param value The enum value.
* @param defaultValue The default return value if the enum value does not exists.
* @return The enum type, or the default value if this enum value does not exists.
* @since 1.0
*/
public static WdDocumentMedium find(int value, WdDocumentMedium defaultValue) {
WdDocumentMedium result = WdDocumentMedium.find(value);
if (result == null) {
result = defaultValue;
}
return result;
}
/**
* Get the value of a enum type.
*
* @return The value of a enum type.
* @since 1.0
*/
public int value() {
return this.value;
}
}
| gpl-2.0 |
Daniel-Dos/SpringFrameworkTutorial | Spring-Transaction Management/ProgramaticTransactionManagement/src/com/tutorialspoint/springframework/transactionmanagement/programatictransactionmanagement/StudentJDBCTemplate.java | 2244 | package com.tutorialspoint.springframework.transactionmanagement.programatictransactionmanagement;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionDefinition;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.DefaultTransactionDefinition;
/**
* @author daniel
* Daniel-Dos
* daniel.dias.analistati@gmail.com
*/
public class StudentJDBCTemplate implements StudentDAO {
private DataSource dataSource;
private JdbcTemplate jdbcTemplateObject;
private PlatformTransactionManager transactionManager;
@Override
public void setDataSource(DataSource dataSource) {
this.dataSource = dataSource;
this.jdbcTemplateObject = new JdbcTemplate(dataSource);
}
public void setTransactionManager(PlatformTransactionManager transactionManager) {
this.transactionManager = transactionManager;
}
@Override
public void create(String name, Integer age, Integer marks, Integer year) {
TransactionDefinition def = new DefaultTransactionDefinition();
TransactionStatus status = transactionManager.getTransaction(def);
try {
String SQL1 = "insert into Student (nome,idade) values (?,?)";
jdbcTemplateObject.update(SQL1,name,age);
// Get te lastet student id to be used in Marks table
String SQL2 = "select max(id) from Student";
int sid = jdbcTemplateObject.queryForObject(SQL2, Integer.class);
String SQL3 = "insert into Marks(sid,marks,year) values (?,?,?)";
jdbcTemplateObject.update(SQL3,sid,marks,year);
System.out.println("Create Name = " + name + ", Age = " + age);
transactionManager.commit(status);
} catch(DataAccessException e) {
System.out.println("Error in crating record, rolling back");
transactionManager.rollback(status);
throw e;
}
return;
}
@Override
public List<StudentMarks> listStudents() {
String SQL = "select * from Student, Marks where Student.id=Marks.sid";
List<StudentMarks> studentMarks = jdbcTemplateObject.query(SQL, new StudentMarksMapper());
return studentMarks;
}
} | gpl-2.0 |
carloscastellanos/BodyDaemon | BodyDaemon/cc/bodyd/xml/XmlDataEventListener.java | 757 | /*
// Copyright (C) 2005 by Carlos Castellanos
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2 of the License, or (at your
// option) any later version.
//
// This program 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. See the GNU General
// Public License for more details.
*/
package cc.bodyd.xml;
import java.util.Hashtable;
import java.util.EventListener;
public interface XmlDataEventListener extends EventListener
{
public abstract void xmlDataEvent(Hashtable data);
}
| gpl-2.0 |
lucenacaio/AtidDesktop | src/org/atid/editor/actions/SetSimpleActivityStaticAction.java | 1836 | /*
* Copyright (C) 2008-2010 Martin Riesz <riesz.martin at gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.atid.editor.actions;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import org.atid.editor.Root;
import org.atid.editor.commands.SetUnsetSimpleActivityStaticCommand;
import org.atid.petrinet.SimpleActivityNode;
import org.atid.util.GraphicsTools;
/**
*
* @author Martin Riesz <riesz.martin at gmail.com>
*/
public class SetSimpleActivityStaticAction extends AbstractAction {
private Root root;
public SetSimpleActivityStaticAction(Root root) {
this.root = root;
String name = "Set/unset SimpleActivity static";
putValue(NAME, name);
putValue(SHORT_DESCRIPTION, name);
putValue(SMALL_ICON, GraphicsTools.getIcon("atid/staticplace.gif"));
setEnabled(false);
}
public void actionPerformed(ActionEvent e) {
if (root.getClickedElement() instanceof SimpleActivityNode) {
SimpleActivityNode simpleActivityNode = (SimpleActivityNode) root.getClickedElement();
root.getUndoManager().executeCommand(new SetUnsetSimpleActivityStaticCommand(simpleActivityNode));
}
}
}
| gpl-2.0 |
cfloersch/JSONMarshaller | src/test/java/org/xpertss/json/desc/entity/InterfaceEntity.java | 196 | /**
* Created By: cfloersch
* Date: 6/13/2014
* Copyright 2013 XpertSoftware
*/
package org.xpertss.json.desc.entity;
import xpertss.json.Entity;
@Entity
public interface InterfaceEntity {}
| gpl-2.0 |
christianchristensen/resin | modules/quercus/src/com/caucho/quercus/expr/ThisFieldVarExpr.java | 5029 | /*
* Copyright (c) 1998-2010 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Resin Open Source 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, or any warranty
* of NON-INFRINGEMENT. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License
* along with Resin Open Source; if not, write to the
*
* Free Software Foundation, Inc.
* 59 Temple Place, Suite 330
* Boston, MA 02111-1307 USA
*
* @author Scott Ferguson
*/
package com.caucho.quercus.expr;
import java.io.IOException;
import java.util.ArrayList;
import com.caucho.quercus.Location;
import com.caucho.quercus.env.Env;
import com.caucho.quercus.env.StringValue;
import com.caucho.quercus.env.Value;
import com.caucho.quercus.env.Var;
import com.caucho.quercus.parser.QuercusParser;
import com.caucho.util.L10N;
/**
* Represents a PHP field reference.
*/
public class ThisFieldVarExpr extends AbstractVarExpr {
private static final L10N L = new L10N(ObjectFieldVarExpr.class);
protected final ThisExpr _qThis;
protected final Expr _nameExpr;
public ThisFieldVarExpr(ThisExpr qThis, Expr nameExpr)
{
_qThis = qThis;
_nameExpr = nameExpr;
}
//
// function call creation
//
/**
* Creates a function call expression
*/
@Override
public Expr createCall(QuercusParser parser,
Location location,
ArrayList<Expr> args)
throws IOException
{
ExprFactory factory = parser.getExprFactory();
return factory.createThisMethod(location, _qThis, _nameExpr, args);
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
@Override
public Value evalArg(Env env, boolean isTop)
{
Value value = env.getThis();
return value.getThisFieldArg(env, _nameExpr.evalStringValue(env));
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
@Override
public Var evalVar(Env env)
{
// quercus/0d1k
Value value = env.getThis();
return value.getThisFieldVar(env, _nameExpr.evalStringValue(env));
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
@Override
public Value eval(Env env)
{
Value obj = env.getThis();
return obj.getThisField(env, _nameExpr.evalStringValue(env));
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
@Override
public Value evalAssignValue(Env env, Value value)
{
Value obj = env.getThis();
obj.putThisField(env, _nameExpr.evalStringValue(env), value);
return value;
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
@Override
public Value evalAssignRef(Env env, Value value)
{
Value obj = env.getThis();
obj.putThisField(env, _nameExpr.evalStringValue(env), value);
return value;
}
/**
* Evaluates as an array index assign ($a[index] = value).
*/
@Override
public Value evalArrayAssign(Env env, Value index, Value value)
{
Value obj = env.getThis();
StringValue name = _nameExpr.evalStringValue(env);
Value fieldVar = obj.getThisFieldVar(env, name);
// php/03mn
return fieldVar.put(index, value);
}
/**
* Evaluates the expression, creating an array if the field is unset.
*
* @param env the calling environment.
*
* @return the expression value.
*/
public Value evalArray(Env env)
{
Value obj = env.getThis();
return obj.getThisFieldArray(env, _nameExpr.evalStringValue(env));
}
/**
* Evaluates the expression, creating an object if the field is unset.
*
* @param env the calling environment.
*
* @return the expression value.
*/
public Value evalObject(Env env)
{
Value obj = env.getThis();
return obj.getThisFieldObject(env, _nameExpr.evalStringValue(env));
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
public void evalUnset(Env env)
{
Value obj = env.getThis();
obj.unsetThisField(_nameExpr.evalStringValue(env));
}
public String toString()
{
return "$this->{" + _nameExpr + "}";
}
}
| gpl-2.0 |
ptidej/SmellDetectionCaller | PADL Creator C++ (Eclipse)/src/padl/cpp/kernel/impl/Destructor.java | 1316 | /*******************************************************************************
* Copyright (c) 2001-2014 Yann-Gaël Guéhéneuc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v2.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Contributors:
* Yann-Gaël Guéhéneuc and others, see in file; API and its implementation
******************************************************************************/
package padl.cpp.kernel.impl;
import padl.cpp.kernel.IDestructor;
import padl.kernel.IElementMarker;
import padl.kernel.IMethod;
import padl.kernel.impl.Constructor;
/**
* @author Sébastien Robidoux
* @since 2004/08/10
* Simple Copy/Paste of Constructor
*/
class Destructor extends Constructor implements IElementMarker, IDestructor {
private static final long serialVersionUID = 6658205364561982696L;
public Destructor(final char[] anID, final char[] aName) {
super(anID);
this.setName(aName);
}
public Destructor(final char[] anID, final IMethod anAttachedMethod) {
super(anID, anAttachedMethod);
}
public Destructor(final IMethod anAttachedMethod) {
super(anAttachedMethod);
}
}
| gpl-2.0 |
ctalau/javainthebrowser | src/javac/javax/lang/model/type/TypeVisitor.java | 6371 | /**
* This file was changed in order to make it compilable
* with GWT and to integrate it in the JavaInTheBrowser
* project (http://javainthebrowser.appspot.com).
*
* Date: 2013-05-14
*/
/*
* Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package javac.javax.lang.model.type;
/**
* A visitor of types, in the style of the
* visitor design pattern. Classes implementing this
* interface are used to operate on a type when the kind of
* type is unknown at compile time. When a visitor is passed to a
* type's {@link TypeMirror#accept accept} method, the <tt>visit<i>XYZ</i></tt>
* method most applicable to that type is invoked.
*
* <p> Classes implementing this interface may or may not throw a
* {@code NullPointerException} if the additional parameter {@code p}
* is {@code null}; see documentation of the implementing class for
* details.
*
* <p> <b>WARNING:</b> It is possible that methods will be added to
* this interface to accommodate new, currently unknown, language
* structures added to future versions of the Java™ programming
* language. Therefore, visitor classes directly implementing this
* interface may be source incompatible with future versions of the
* platform. To avoid this source incompatibility, visitor
* implementations are encouraged to instead extend the appropriate
* abstract visitor class that implements this interface. However, an
* API should generally use this visitor interface as the type for
* parameters, return type, etc. rather than one of the abstract
* classes.
*
* @param <R> the return type of this visitor's methods. Use {@link
* Void} for visitors that do not need to return results.
* @param <P> the type of the additional parameter to this visitor's
* methods. Use {@code Void} for visitors that do not need an
* additional parameter.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @author Peter von der Ahé
* @since 1.6
*/
public interface TypeVisitor<R, P> {
/**
* Visits a type.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visit(TypeMirror t, P p);
/**
* A convenience method equivalent to {@code v.visit(t, null)}.
* @param t the element to visit
* @return a visitor-specified result
*/
R visit(TypeMirror t);
/**
* Visits a primitive type.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visitPrimitive(PrimitiveType t, P p);
/**
* Visits the null type.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visitNull(NullType t, P p);
/**
* Visits an array type.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visitArray(ArrayType t, P p);
/**
* Visits a declared type.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visitDeclared(DeclaredType t, P p);
/**
* Visits an error type.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visitError(ErrorType t, P p);
/**
* Visits a type variable.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visitTypeVariable(TypeVariable t, P p);
/**
* Visits a wildcard type.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visitWildcard(WildcardType t, P p);
/**
* Visits an executable type.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visitExecutable(ExecutableType t, P p);
/**
* Visits a {@link NoType} instance.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
*/
R visitNoType(NoType t, P p);
/**
* Visits an unknown kind of type.
* This can occur if the language evolves and new kinds
* of types are added to the {@code TypeMirror} hierarchy.
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
* @throws UnknownTypeException
* a visitor implementation may optionally throw this exception
*/
R visitUnknown(TypeMirror t, P p);
/**
* Visits a union type.
*
* @param t the type to visit
* @param p a visitor-specified parameter
* @return a visitor-specified result
* @since 1.7
*/
R visitUnion(UnionType t, P p);
}
| gpl-2.0 |
ppartida/com.fifino.gptw | src/main/java/com/fifino/gptw/helpers/GPTWHint.java | 378 | package com.fifino.gptw.helpers;
/**
* Created by porfiriopartida on 9/27/2015.
*/
public class GPTWHint {
public String hint;
public int color;
public GPTWHint(String hint, int color){
this.hint = hint;
this.color = color;
}
public int getColor() {
return color;
}
public String getHint() {
return hint;
}
}
| gpl-2.0 |
jmuthu/OpenRate | src/main/java/OpenRate/cache/CustomerCache.java | 39943 | /* ====================================================================
* Limited Evaluation License:
*
* This software is open source, but licensed. The license with this package
* is an evaluation license, which may not be used for productive systems. If
* you want a full license, please contact us.
*
* The exclusive owner of this work is the OpenRate project.
* This work, including all associated documents and components
* is Copyright of the OpenRate project 2006-2014.
*
* The following restrictions apply unless they are expressly relaxed in a
* contractual agreement between the license holder or one of its officially
* assigned agents and you or your organisation:
*
* 1) This work may not be disclosed, either in full or in part, in any form
* electronic or physical, to any third party. This includes both in the
* form of source code and compiled modules.
* 2) This work contains trade secrets in the form of architecture, algorithms
* methods and technologies. These trade secrets may not be disclosed to
* third parties in any form, either directly or in summary or paraphrased
* form, nor may these trade secrets be used to construct products of a
* similar or competing nature either by you or third parties.
* 3) This work may not be included in full or in part in any application.
* 4) You may not remove or alter any proprietary legends or notices contained
* in or on this work.
* 5) This software may not be reverse-engineered or otherwise decompiled, if
* you received this work in a compiled form.
* 6) This work is licensed, not sold. Possession of this software does not
* imply or grant any right to you.
* 7) You agree to disclose any changes to this work to the copyright holder
* and that the copyright holder may include any such changes at its own
* discretion into the work
* 8) You agree not to derive other works from the trade secrets in this work,
* and that any such derivation may make you liable to pay damages to the
* copyright holder
* 9) You agree to use this software exclusively for evaluation purposes, and
* that you shall not use this software to derive commercial profit or
* support your business or personal activities.
*
* This software is provided "as is" and any expressed or impled warranties,
* including, but not limited to, the impled warranties of merchantability
* and fitness for a particular purpose are disclaimed. In no event shall
* The OpenRate Project or its officially assigned agents be liable to 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 any business interruption) however caused
* and on 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.
* This software contains portions by The Apache Software Foundation, Robert
* Half International.
* ====================================================================
*/
package OpenRate.cache;
import OpenRate.OpenRate;
import OpenRate.db.DBUtil;
import OpenRate.exception.InitializationException;
import OpenRate.lang.ProductList;
import OpenRate.utils.PropertyUtils;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
/**
* This class implements a cache of customer information for use in
* rating based on product instances. No product history is kept, and therefore
* rating can only be done at the current state of the information. This means
* that this class is of limited value for rating delayed usage, as it is not
* guaranteed that the record will be rated using the products that were in
* use at the time of the record creation. If you need a fully historicised
* version, use the "CustomerCacheAudited" cache instead.
*
* The customer information can be recovered from either files or DataBase
* data sources.
*
* There are some limitations in this cache implementation for simplicity, which
* are not present in the CustomerCacheAudited module:
* - Aliases are not time bound. This means that an alias can only ever be
* attached to one account and no re-use can be permitted. A common way of
* overcoming this limitation is to lookup the external key in an instance
* of a "ValiditySegmentCache" to perform a translation from the external
* key to the internal key, and then use the internal key as the alias.
* - Subscriptions are not supported. That means that for instance, you cannot
* own more than one instance of a real-life level product, as there is
* no way of partitioning products to aliases. This has the effect of "mixing"
* all the products that an account has for all of the aliases. The only
* level of partitioning that is available is at Service level. This means
* that a product can be assigned a "Service", and for rating purposes, only
* products matching a particular service are recovered.
*
* ------------------------------ File Interface -------------------------------
*
* The verbs in the file are:
*
* 01 = Add Customer Account
* 02 = Add Customer Product
* 03 = Modify Customer Product
* 04 = Change Customer Identifier
* 05 = Add Alias
* 06 = Add/Modify ERA
*
* Verb descriptions:
*
* 01, Add Customer Account
* Record format:
* 01;CustomerIdentifier;ValidFrom;ValidTo;BalanceGroup
*
* 02, Add Customer Product
* Record format:
* 02;CustomerIdentifier;Service;ProductIdentifier;ValidFrom;ValidTo
*
* 03, Modify Customer Product
* Record format:
* 03;CustomerIdentifier;Service;ProductIdentifier;ValidFrom*;ValidTo*
* (* means that the field is optional, filling it will change the
* value, leaving it blank leaves the previous value)
*
* 04, Change Customer Identifier
* Record format:
* 04;CustomerIdentifierOld;CustomerIdentifierNew
*
* 05, Add Alias
* Record format:
* 05;Alias;CustomerIdentifier
*
* 06, Add/Modify ERA
* Record format:
* 06;CustomerIdentifier;ERA_ID;Value
*
* ------------------------------- DB Interface --------------------------------
*
* If the loading is done from a DB, the queries that are executed are:
*
* AliasSelectQuery: This query should return a list of the aliases that are
* to be associated with each account. The query should return:
*
* 1) ALIAS
* 2) CUSTOMER_IDENTIFIER
*
* CustomerSelectStatement: This query returns a list of all of the customer
* accounts that the system should handle. The query should return:
*
* 1) CUSTOMER_IDENTIFIER
* 2) VALID_FROM (YYYYMMDDHHMMSS)
* 3) VALID_TO (YYYYMMDDHHMMSS)
* 4) BALANCE_GROUP
*
* ProductSelectQuery: This query returns a list of all the products that are
* associated with a customer account. The query should return:
*
* 1) CUSTOMER_IDENTIFIER
* 2) SERVICE
* 3) PRODUCT_NAME
* 4) VALID_FROM (YYYYMMDDHHMMSS)
* 5) VALID_TO (YYYYMMDDHHMMSS)
*
* ERASelectQuery: This query returns a list of the ERAs (Extended Rating
* Attributes) associated with the account. The query should return:
*
* 1) CUSTOMER_IDENTIFIER
* 2) ERA_NAME
* 3) ERA_VALUE
*
* @author i.sparkes
*/
public class CustomerCache
extends AbstractSyncLoaderCache
{
// Used to allow alias maps - takes a alias and maps to a poid.
private ConcurrentHashMap<String, String> aliasCache;
// The CustIDCache holds the aliases for the account
private ConcurrentHashMap<String, CustInfo> CustIDCache;
/**
* The alias data select query is used to recover alias information from the
* database. Aliases are the keys used to locate the customer account to use
* for rating the traffic
*/
protected static String aliasSelectQuery;
/**
* prepared statement for the alias query
*/
protected static PreparedStatement stmtAliasSelectQuery;
/**
* The customer data select query is used to recover customer information
* from the database
*/
protected static String customerSelectQuery;
/**
* prepared statement for the customer data query
*/
protected static PreparedStatement stmtCustomerSelectQuery;
/**
* The product data select query is used to recover the product infromation
* from the database and associate it to the account
*/
protected static String productSelectQuery;
/**
* prepared statement for the product query
*/
protected static PreparedStatement stmtProductSelectQuery;
/**
* The ERA data select query is used to recover the "Extended Rating
* Attribute" information from the database and associate it to the account
*/
protected static String eraSelectQuery;
/**
* prepared statement for the ERA query
*/
protected static PreparedStatement stmtERASelectQuery;
/**
* The internal date format is the format that by default will be used when
* interpreting dates that come in the queries. The value here is the default
* value, but this can be changed.
*/
protected String internalDateFormat = "yyyyMMddHHmmss";
/**
* The CustInfo structure holds the information about the customer account,
* including the validity dates, the product list and the balance group
* reference. Note that we are using the dates as long integers to reduce
* the total amount of storage that is required.
*/
private class CustInfo
{
private long UTCValidFrom;
private long UTCValidTo;
private ArrayList<CustProductInfo> CPI = null;
private int ProductCount = 0;
private int BalanceGroup = 0;
private ConcurrentHashMap<String, String> ERAList = null;
}
/**
* The CustProductInfo structure holds the information about the products the,
* customer has, including the validity dates. Note that we are using long integers
* for the dates to reduce storage requirements.
*/
private class CustProductInfo
{
private String ProductID=null;
private String Service=null;
private long UTCValidFrom;
private long UTCValidTo;
}
/** Constructor
* Creates a new instance of the Customer Cache. The Cache
* contains all of the Customer IDs that have been cached.
*/
public CustomerCache()
{
super();
CustIDCache = new ConcurrentHashMap<>(5000);
aliasCache = new ConcurrentHashMap<>(5000);
}
/**
* Add an alias to the customer cache. An alias is a representation of any
* identifier that can be used to locate the account
*
* @param alias The identifier that should be used to locate the account
* @param CustId The account that should be located
*/
public void addAlias(String alias, String CustId)
{
// Update the alias list
if (!aliasCache.containsKey(alias))
{
aliasCache.put(alias,CustId);
}
else
{
// Otherwise write an error and ignore it
OpenRate.getOpenRateFrameworkLog().error("Alias ID <" + alias + "> already exists.");
}
}
/**
* Add a Customer object into the CustomerCache.
*
* @param CustId The customer identifier
* @param ValidFrom Valid from date of the customer relationship
* @param ValidTo Valid to date of the customer relationship
* @param BalanceGroup The ID of the counter balance group
*/
public void addCustId(String CustId,long ValidFrom,long ValidTo,int BalanceGroup)
{
CustInfo tmpCustInfo;
// See if we already have ID for this customer
if (!CustIDCache.containsKey(CustId))
{
// Check validity dates
if (ValidTo <= ValidFrom)
{
// Otherwise write an error and ignore it
OpenRate.getOpenRateFrameworkLog().error("Customer ID <" + CustId + "> valid from <" + ValidFrom + "> is after valid to <" + ValidTo + ">. Add failed.");
return;
}
// Create the new entry for the customer ID
tmpCustInfo = new CustInfo();
tmpCustInfo.CPI = new ArrayList<>();
tmpCustInfo.ERAList = new ConcurrentHashMap<>(10);
tmpCustInfo.UTCValidFrom = ValidFrom;
tmpCustInfo.UTCValidTo = ValidTo;
tmpCustInfo.BalanceGroup = BalanceGroup;
CustIDCache.put(CustId,tmpCustInfo);
}
else
{
// Otherwise write an error and ignore it
OpenRate.getOpenRateFrameworkLog().error("Customer ID <" + CustId + "> already exists. Add failed.");
}
}
/**
* Set the date format we are using
*
* @param newDateFormat The new format of the date
*/
public void setDateFormat(String newDateFormat)
{
internalDateFormat = newDateFormat;
}
/**
* Add a CPI (CustomerProductInstance) value into the CustomerCache
*
* @param CustId The customer ID to add the product to
* @param Service The service of the product
* @param ProdID The product identifier
* @param ValidFrom The start of the product validity
* @param ValidTo The end of the product validity
*/
public void addCPI(String CustId, String Service, String ProdID, long ValidFrom, long ValidTo)
{
CustInfo tmpCustInfo;
CustProductInfo tmpCPI;
// See if we already have ID for this customer
if (CustIDCache.containsKey(CustId))
{
// Check validity dates
if (ValidTo <= ValidFrom)
{
// Otherwise write an error and ignore it
OpenRate.getOpenRateFrameworkLog().error("Customer ID <" + CustId + "> product <" + ProdID + "> valid from <" + ValidFrom + "> is after valid to <" + ValidTo + ">. Add failed.");
return;
}
// Create the new entry for the customer ID
tmpCustInfo = CustIDCache.get(CustId);
tmpCPI = new CustProductInfo();
tmpCPI.Service = Service;
tmpCPI.ProductID = ProdID;
tmpCPI.UTCValidFrom = ValidFrom;
tmpCPI.UTCValidTo = ValidTo;
tmpCustInfo.CPI.add(tmpCustInfo.ProductCount,tmpCPI);
tmpCustInfo.ProductCount++;
}
else
{
// Otherwise write an error and ignore it
OpenRate.getOpenRateFrameworkLog().error("Customer ID <" + CustId + "> not found. Add CPI failed.");
}
}
/**
* Add an ERA (Extended Rating Attribute) object to the account. ERAs are
* used to control rating, for example Closed User Groups are modelled using
* these.
*
* @param CustId The customer to add the ERA to
* @param ERA_ID The key of the ERA
* @param Value The value of the ERA
*/
public void addERA(String CustId, String ERA_ID, String Value)
{
CustInfo tmpCustInfo;
// See if we already have ID for this customer
if (CustIDCache.containsKey(CustId))
{
// Create the new entry for the customer ID
tmpCustInfo = CustIDCache.get(CustId);
tmpCustInfo.ERAList.put(ERA_ID,Value);
}
else
{
// Otherwise write an error and ignore it
OpenRate.getOpenRateFrameworkLog().error("Customer ID <" + CustId + "> not found. Add/modify ERA failed.");
}
}
/**
* Recover a customer ID from the cache using the alias.
*
* @param alias The alias to lookup
* @return The internal customer ID
*/
public String getCustId(String alias)
{
String CustPoid;
// See if we already have ID for this customer
if (aliasCache.containsKey(alias))
{
// Get the poid from the alias
CustPoid = aliasCache.get(alias);
return CustPoid;
}
else
{
return null;
}
}
/**
* Get the products that are attached to the customer account, using the
* alias to locate the account
*
* @param alias The alias to the customer account
* @param Service The service
* @param CDRDate The date to retrieve the products for
* @return The product list
*/
public ProductList getProducts(String alias, String Service, long CDRDate)
{
ProductList tmpProductList;
String CustPoid;
CustInfo tmpCustInfo;
CustProductInfo tmpCPI;
boolean FirstProduct = true;
// Prepare the result
tmpProductList = new ProductList();
// See if we already have ID for this customer
if (aliasCache.containsKey(alias))
{
// Get the poid from the alias
CustPoid = aliasCache.get(alias);
// Get the product information
tmpCustInfo = CustIDCache.get(CustPoid);
// See if the CDR is within the period of validitysetRawProductList
if ( tmpCustInfo.UTCValidFrom <= CDRDate )
{
if (tmpCustInfo.UTCValidTo > CDRDate)
{
// We have validity, get back the product list
for ( int i = 0 ; i < tmpCustInfo.ProductCount ; i ++ )
{
tmpCPI = tmpCustInfo.CPI.get(i);
if (tmpCPI.Service.equals(Service))
{
if ( tmpCPI.UTCValidFrom <= CDRDate )
{
if ( tmpCPI.UTCValidTo > CDRDate )
{
if (FirstProduct)
{
tmpProductList.addProduct(0,tmpCPI.ProductID,null,tmpCPI.Service,tmpCPI.UTCValidFrom,tmpCPI.UTCValidTo,1);
FirstProduct = false;
}
else
{
tmpProductList.addProduct(0,tmpCPI.ProductID,null,tmpCPI.Service,tmpCPI.UTCValidFrom,tmpCPI.UTCValidTo,1);
}
}
}
}
}
tmpProductList.setBalanceGroup(tmpCustInfo.BalanceGroup);
return tmpProductList;
}
}
return null;
}
else
{
// Otherwise write an error and ignore it
OpenRate.getOpenRateFrameworkLog().error("Alias <" + alias + "> not found. Lookup failed.");
}
return null;
}
/**
* Return the value of the balance group so that we are able to update
* it during the logic processing. This is to make sure that we have all
* the information necessary when we start the calculation.
*
* @param CustId The customer ID
* @return The balance group
*/
public int getBalanceGroup(String CustId)
{
CustInfo tmpCustInfo;
// See if we already have ID for this customer
if (CustIDCache.containsKey(CustId))
{
// Get the product information
tmpCustInfo = CustIDCache.get(CustId);
return tmpCustInfo.BalanceGroup;
}
else
{
// Otherwise write an error and ignore it
OpenRate.getOpenRateFrameworkLog().error("Customer ID <" + CustId + "> not found. Lookup failed.");
}
return 0;
}
/**
* Recover an ERA value from the customer cache.
*
* @param CustId The customer ID to recover the ERA for
* @param ERA_ID The key of the ERA to recover
* @return The ERA value
*/
public String getERA(String CustId, String ERA_ID)
{
CustInfo tmpCustInfo;
// See if we already have ID for this customer
if (CustIDCache.containsKey(CustId))
{
// Create the new entry for the customer ID
tmpCustInfo = CustIDCache.get(CustId);
return tmpCustInfo.ERAList.get(ERA_ID);
}
else
{
// Otherwise we don't know the customer ID, return null
return null;
}
}
/**
* Recover an ERA value from the customer cache.
*
* @param CustId The customer ID to recover the ERA for
* @return The ERA value
*/
public List<String> getERAKeys(String CustId)
{
CustInfo tmpCustInfo;
ArrayList<String> keyList = new ArrayList<>();
// See if we already have ID for this customer
if (CustIDCache.containsKey(CustId))
{
// Create the new entry for the customer ID
tmpCustInfo = CustIDCache.get(CustId);
keyList.addAll(tmpCustInfo.ERAList.keySet());
return keyList;
}
else
{
// Otherwise we don't know the customer ID, return null
return null;
}
}
/**
* load the data from a file
*
* @throws InitializationException
*/
@Override
public void loadDataFromFile()
throws InitializationException
{
// Variable declarations
int custLoaded = 0;
int CPILoaded = 0;
int aliasLoaded = 0;
int ERALoaded = 0;
int lineCounter = 0;
BufferedReader inFile;
String tmpFileRecord;
String[] recordFields ;
long tmpFromDate = 0;
long tmpToDate = 0;
SimpleDateFormat sdfInput = new SimpleDateFormat (internalDateFormat);
// Log that we are starting the loading
OpenRate.getOpenRateFrameworkLog().info("Starting Customer Cache Loading from File");
// Try to open the file
try
{
inFile = new BufferedReader(new FileReader(cacheDataFile));
}
catch (FileNotFoundException exFileNotFound)
{
message = "Application is not able to read file <" + cacheDataFile + ">";
OpenRate.getOpenRateFrameworkLog().error(message);
throw new InitializationException(message,
exFileNotFound,
getSymbolicName());
}
// File open, now get the stuff
try
{
while (inFile.ready())
{
tmpFileRecord = inFile.readLine();
lineCounter++;
if ((tmpFileRecord.startsWith("#")) |
tmpFileRecord.trim().equals(""))
{
// Comment line, ignore
}
else
{
recordFields = tmpFileRecord.split(";");
// Work on the different types of records in the file
if ( recordFields[0].equals("01") )
{
// Customer data - prepare the fields
try
{
tmpFromDate = sdfInput.parse(recordFields[2]).getTime()/1000;
tmpToDate = sdfInput.parse(recordFields[3]).getTime()/1000;
}
catch (ParseException ex)
{
OpenRate.getOpenRateFrameworkLog().error("Date formats for record <" + tmpFileRecord + "> on line <" + lineCounter + "> are not correct. Data discarded." );
}
addCustId(recordFields[1],tmpFromDate,tmpToDate,Integer.parseInt(recordFields[4]));
custLoaded++;
// Update status for long operations
if ( (custLoaded % loadingLogNotificationStep) == 0)
{
OpenRate.getOpenRateFrameworkLog().info("Customer Map Data Loaded " + custLoaded + " Customer Records");
}
}
if (recordFields[0].equals("02"))
{
// Customer product - prepare the fields
try
{
tmpFromDate = sdfInput.parse(recordFields[4]).getTime()/1000;
tmpToDate = sdfInput.parse(recordFields[5]).getTime()/1000;
}
catch (ParseException ex)
{
OpenRate.getOpenRateFrameworkLog().error("Date formats for record <" + tmpFileRecord + "> are not correct. Data discarded." );
}
addCPI(recordFields[1],recordFields[2],recordFields[3],tmpFromDate,tmpToDate);
CPILoaded++;
// Update status for long operations
if ( (CPILoaded % loadingLogNotificationStep) == 0)
{
OpenRate.getOpenRateFrameworkLog().info("Customer Map Data Loaded " + CPILoaded + " Product Records");
}
}
if ( recordFields[0].equals("05") )
{
addAlias(recordFields[1],recordFields[2]);
aliasLoaded++;
}
if ( recordFields[0].equals("06") )
{
addERA(recordFields[1],recordFields[2],recordFields[3]);
ERALoaded++;
}
// Other types of record
// ...
}
}
}
catch (IOException ex)
{
OpenRate.getOpenRateFrameworkLog().fatal(
"Error reading input file <" + cacheDataFile +
"> in record <" + lineCounter + ">. IO Error.");
}
catch (ArrayIndexOutOfBoundsException ex)
{
OpenRate.getOpenRateFrameworkLog().fatal(
"Error reading input file <" + cacheDataFile +
"> in record <" + lineCounter + ">. Malformed Record.");
}
finally
{
try
{
inFile.close();
}
catch (IOException ex)
{
OpenRate.getOpenRateFrameworkLog().error("Error closing input file <" + cacheDataFile +
">", ex);
}
}
OpenRate.getOpenRateFrameworkLog().info(
"Customer Cache Data Loading completed. " + lineCounter +
" configuration lines loaded from <" + cacheDataFile +
">");
OpenRate.getOpenRateFrameworkLog().info("Alias Loaded: " + aliasLoaded);
OpenRate.getOpenRateFrameworkLog().info("Customers Loaded: " + custLoaded);
OpenRate.getOpenRateFrameworkLog().info("Products Loaded: " + CPILoaded);
OpenRate.getOpenRateFrameworkLog().info("ERAs Loaded: " + ERALoaded);
}
/**
* Load the data from the defined Data Source DB
*
* @throws InitializationException
*/
@Override
public void loadDataFromDB()
throws InitializationException
{
String ERAValue;
String ERAName;
String prodName;
String service;
long validFrom = 0;
long validTo = 0;
int balGrp;
String tmpBalGrp;
String tmpValidTo;
String tmpValidFrom;
int custLoaded = 0;
int CPILoaded = 0;
int aliasLoaded = 0;
int ERALoaded = 0;
String custId;
String alias;
SimpleDateFormat sdfInput = new SimpleDateFormat (internalDateFormat);
// Log that we are starting the loading
OpenRate.getOpenRateFrameworkLog().info("Starting Customer Cache Loading from DB");
// The datasource property was added to allow database to database
// JDBC adapters to work properly using 1 configuration file.
if(DBUtil.initDataSource(cacheDataSourceName) == null)
{
message = "Could not initialise DB connection <" + cacheDataSourceName + "> to in module <" + getSymbolicName() + ">.";
OpenRate.getOpenRateFrameworkLog().error(message);
throw new InitializationException(message,getSymbolicName());
}
// Try to open the DS
JDBCcon = DBUtil.getConnection(cacheDataSourceName);
// Now prepare the statements
prepareStatements();
// Execute the query
try
{
mrs = stmtAliasSelectQuery.executeQuery();
}
catch (SQLException ex)
{
message = "Error performing SQL for retieving Alias data. message: <" + ex.getMessage() + ">";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// loop through the results for the customer alias cache
try
{
mrs.beforeFirst();
while (mrs.next())
{
aliasLoaded++;
alias = mrs.getString(1);
custId = mrs.getString(2);
// Add the map
addAlias(alias,custId);
}
}
catch (SQLException ex)
{
message = "Error opening Alias Data for <" + cacheDataSourceName + ">";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// Close down stuff
try
{
mrs.close();
}
catch (SQLException ex)
{
message = "Error closing Result Set for Alias information from <" +
cacheDataSourceName + ">";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// Execute the query
try
{
mrs = stmtCustomerSelectQuery.executeQuery();
}
catch (SQLException ex)
{
message = "Error performing SQL for retieving Customer data. message: " + ex.getMessage();
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// loop through the results for the customer alias cache
try
{
mrs.beforeFirst();
while (mrs.next())
{
custLoaded++;
custId = mrs.getString(1);
tmpValidFrom = mrs.getString(2);
tmpValidTo = mrs.getString(3);
tmpBalGrp = mrs.getString(4);
// Customer data - prepare the fields
try
{
validFrom = sdfInput.parse(tmpValidFrom).getTime()/1000;
validTo = sdfInput.parse(tmpValidTo).getTime()/1000;
}
catch (ParseException ex)
{
OpenRate.getOpenRateFrameworkLog().error("Date formats for record <" + custLoaded + "> are not correct. Data discarded." );
}
balGrp = Integer.parseInt(tmpBalGrp);
// Add the map
addCustId(custId,validFrom,validTo,balGrp);
}
}
catch (SQLException ex)
{
message = "Error opening Customer Data for <" + cacheDataSourceName + ">";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// Close down stuff
try
{
mrs.close();
}
catch (SQLException ex)
{
message = "Error closing Result Set for Customer information from <" +
cacheDataSourceName + ">";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// Execute the query
try
{
mrs = stmtProductSelectQuery.executeQuery();
}
catch (SQLException ex)
{
message = "Error performing SQL for retieving Product data. message: " + ex.getMessage();
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// loop through the results for the customer alias cache
try
{
mrs.beforeFirst();
while (mrs.next())
{
CPILoaded++;
custId = mrs.getString(1);
service = mrs.getString(2);
prodName = mrs.getString(3);
tmpValidFrom = mrs.getString(4);
tmpValidTo = mrs.getString(5);
// Customer data - prepare the fields
try
{
validFrom = sdfInput.parse(tmpValidFrom).getTime()/1000;
validTo = sdfInput.parse(tmpValidTo).getTime()/1000;
}
catch (ParseException ex)
{
OpenRate.getOpenRateFrameworkLog().error("Date formats for record <" + custLoaded + "> are not correct. Data discarded." );
}
// Add the map
addCPI(custId,service,prodName,validFrom,validTo);
}
}
catch (SQLException ex)
{
message = "Error opening Product Data for <" + cacheDataSourceName + ">";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// Close down stuff
try
{
mrs.close();
}
catch (SQLException ex)
{
message = "Error closing Result Set for Product information from <" +
cacheDataSourceName + ">";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// Execute the query
try
{
mrs = stmtERASelectQuery.executeQuery();
}
catch (SQLException ex)
{
message = "Error performing SQL for retieving ERA data";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// loop through the results for the customer alias cache
try
{
mrs.beforeFirst();
while (mrs.next())
{
CPILoaded++;
custId = mrs.getString(1);
ERAName = mrs.getString(2);
ERAValue = mrs.getString(3);
// Add the map
addERA(custId,ERAName,ERAValue);
}
}
catch (SQLException ex)
{
message = "Error opening Product Data for <" + cacheDataSourceName + ">";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
// Close down stuff
try
{
mrs.close();
stmtAliasSelectQuery.close();
stmtCustomerSelectQuery.close();
stmtProductSelectQuery.close();
stmtERASelectQuery.close();
JDBCcon.close();
}
catch (SQLException ex)
{
message = "Error closing Search Map Data connection for <" + cacheDataSourceName + ">";
OpenRate.getOpenRateFrameworkLog().fatal(message);
throw new InitializationException(message,ex,getSymbolicName());
}
OpenRate.getOpenRateFrameworkLog().info(
"Customer Cache Data Loading completed from <" + cacheDataSourceName +
">");
OpenRate.getOpenRateFrameworkLog().info("Alias Loaded: " + aliasLoaded);
OpenRate.getOpenRateFrameworkLog().info("Customers Loaded: " + custLoaded);
OpenRate.getOpenRateFrameworkLog().info("Products Loaded: " + CPILoaded);
OpenRate.getOpenRateFrameworkLog().info("ERAs Loaded: " + ERALoaded);
}
/**
* Load the data from the defined Data Source Method
*
* @throws InitializationException
*/
@Override
public void loadDataFromMethod()
throws InitializationException
{
throw new InitializationException("Not implemented yet",getSymbolicName());
}
/**
* Reset the cache
*/
@Override
public void clearCacheObjects()
{
CustIDCache.clear();
aliasCache.clear();
}
// -----------------------------------------------------------------------------
// ---------------- Start of data base data layer functions --------------------
// -----------------------------------------------------------------------------
/**
* get the select statement(s). Implemented as a separate function so that it can
* be overwritten in implementation classes. By default the cache picks up the
* statement with the name "SelectStatement".
*
* @param ResourceName The name of the resource to load for
* @param CacheName The name of the cache to load for
* @return True if the statements were found, otherwise false
* @throws InitializationException
*/
@Override
protected boolean getDataStatements(String ResourceName, String CacheName) throws InitializationException
{
// Get the Select statement
aliasSelectQuery = PropertyUtils.getPropertyUtils().getDataCachePropertyValueDef(ResourceName,
CacheName,
"AliasSelectStatement",
"None");
if (aliasSelectQuery.equalsIgnoreCase("None"))
{
message = "<AliasSelectStatement> for <" + getSymbolicName() + "> missing.";
throw new InitializationException(message,getSymbolicName());
}
customerSelectQuery = PropertyUtils.getPropertyUtils().getDataCachePropertyValueDef(ResourceName,
CacheName,
"CustomerSelectStatement",
"None");
if (customerSelectQuery.equalsIgnoreCase("None"))
{
message = "<CustomerSelectStatement> for <" + getSymbolicName() + "> missing.";
throw new InitializationException(message,getSymbolicName());
}
productSelectQuery = PropertyUtils.getPropertyUtils().getDataCachePropertyValueDef(ResourceName,
CacheName,
"ProductSelectStatement",
"None");
if (productSelectQuery.equalsIgnoreCase("None"))
{
message = "<ProductSelectStatement> for <" + getSymbolicName() + "> missing.";
throw new InitializationException(message,getSymbolicName());
}
eraSelectQuery = PropertyUtils.getPropertyUtils().getDataCachePropertyValueDef(ResourceName,
CacheName,
"ERASelectStatement",
"None");
if (eraSelectQuery.equalsIgnoreCase("None"))
{
message = "<ERASelectStatement> for <" + getSymbolicName() + "> missing.";
throw new InitializationException(message,getSymbolicName());
}
// Normally we should not get here - we should have thrown an exception already
// if anything was missing
if ((aliasSelectQuery.equals("None")) |
(customerSelectQuery.equals("None")) |
(productSelectQuery.equals("None")) |
(eraSelectQuery.equals("None")))
{
return false;
}
else
{
return true;
}
}
/**
* PrepareStatements creates the statements from the SQL expressions
* so that they can be run as needed.
* @throws InitializationException
*/
@Override
protected void prepareStatements()
throws InitializationException
{
try
{
// prepare the SQL for the TestStatement
stmtAliasSelectQuery = JDBCcon.prepareStatement(aliasSelectQuery,
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
}
catch (SQLException ex)
{
message = "Error preparing the statement " + aliasSelectQuery;
OpenRate.getOpenRateFrameworkLog().error(message);
throw new InitializationException(message,ex,getSymbolicName());
}
try
{
// prepare the SQL for the TestStatement
stmtCustomerSelectQuery = JDBCcon.prepareStatement(customerSelectQuery,
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
}
catch (SQLException ex)
{
message = "Error preparing the statement " + customerSelectQuery;
OpenRate.getOpenRateFrameworkLog().error(message);
throw new InitializationException(message,ex,getSymbolicName());
}
try
{
// prepare the SQL for the TestStatement
stmtProductSelectQuery = JDBCcon.prepareStatement(productSelectQuery,
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
}
catch (SQLException ex)
{
message = "Error preparing the statement " + productSelectQuery;
OpenRate.getOpenRateFrameworkLog().error(message);
throw new InitializationException(message,ex,getSymbolicName());
}
try
{
// prepare the SQL for the TestStatement
stmtERASelectQuery = JDBCcon.prepareStatement(eraSelectQuery,
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
}
catch (SQLException ex)
{
message = "Error preparing the statement " + eraSelectQuery;
OpenRate.getOpenRateFrameworkLog().error(message);
throw new InitializationException(message,ex,getSymbolicName());
}
}
}
| gpl-2.0 |
moriyoshi/quercus-gae | src/main/java/com/caucho/quercus/expr/LateStaticBindingFieldGetExpr.java | 5128 | /*
* Copyright (c) 1998-2008 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Resin Open Source 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, or any warranty
* of NON-INFRINGEMENT. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License
* along with Resin Open Source; if not, write to the
*
* Free Software Foundation, Inc.
* 59 Temple Place, Suite 330
* Boston, MA 02111-1307 USA
*
* @author Scott Ferguson
*/
package com.caucho.quercus.expr;
import com.caucho.quercus.Location;
import com.caucho.quercus.env.Env;
import com.caucho.quercus.env.NullValue;
import com.caucho.quercus.env.QuercusClass;
import com.caucho.quercus.env.Value;
import com.caucho.util.L10N;
/**
* Represents a PHP static field reference.
*/
public class LateStaticBindingFieldGetExpr extends AbstractVarExpr {
private static final L10N L = new L10N(LateStaticBindingFieldGetExpr.class);
protected final String _varName;
public LateStaticBindingFieldGetExpr(Location location, String varName)
{
super(location);
_varName = varName;
}
public LateStaticBindingFieldGetExpr(String varName)
{
_varName = varName;
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
public Value eval(Env env)
{
QuercusClass cls = env.getCallingClass();
if (cls == null) {
env.error(getLocation(), L.l("no calling class found"));
return NullValue.NULL;
}
return cls.getStaticField(env, _varName).toValue();
}
/**
* Evaluates the expression as a copy
*
* @param env the calling environment.
*
* @return the expression value.
*/
public Value evalCopy(Env env)
{
QuercusClass cls = env.getCallingClass();
if (cls == null) {
env.error(getLocation(), L.l("no calling class found"));
return NullValue.NULL;
}
return cls.getStaticField(env, _varName).copy();
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
@Override
public Value evalArg(Env env, boolean isTop)
{
QuercusClass cls = env.getCallingClass();
if (cls == null) {
env.error(getLocation(), L.l("no calling class found"));
return NullValue.NULL;
}
return cls.getStaticField(env, _varName);
}
/**
* Evaluates the expression, creating an array for unassigned values.
*
* @param env the calling environment.
*
* @return the expression value.
*/
public Value evalArray(Env env)
{
QuercusClass cls = env.getCallingClass();
if (cls == null) {
env.error(getLocation(), L.l("no calling class found"));
return NullValue.NULL;
}
return cls.getStaticField(env, _varName).getArray();
}
/**
* Evaluates the expression, creating an array for unassigned values.
*
* @param env the calling environment.
*
* @return the expression value.
*/
public Value evalObject(Env env)
{
QuercusClass cls = env.getCallingClass();
if (cls == null) {
env.error(getLocation(), L.l("no calling class found"));
return NullValue.NULL;
}
return cls.getStaticField(env, _varName).getObject(env);
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
public Value evalRef(Env env)
{
QuercusClass cls = env.getCallingClass();
if (cls == null) {
env.error(getLocation(), L.l("no calling class found"));
return NullValue.NULL;
}
return cls.getStaticField(env, _varName);
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
public void evalAssign(Env env, Value value)
{
QuercusClass cls = env.getCallingClass();
if (cls == null) {
env.error(getLocation(), L.l("no calling class found"));
return;
}
cls.getStaticField(env, _varName).set(value);
}
/**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/
public void evalUnset(Env env)
{
env.error(getLocation(),
L.l("{0}::${1}: Cannot unset static variables.",
env.getCallingClass().getName(), _varName));
}
public String toString()
{
return "static::$" + _varName;
}
}
| gpl-2.0 |
biblelamp/JavaExercises | JavaRushTasks/2.JavaCore/src/com/javarush/task/task11/task1110/Solution.java | 587 | package com.javarush.task.task11.task1110;
/*
Не забываем инкапсулировать
*/
public class Solution {
public static void main(String[] args) {
}
public class Cat {
private String name;
private int age, weight, speed;
public Cat(String name, int age, int weight) {
}
public String getName() {
return null;
}
public int getAge() {
return 0;
}
public void setWeight(int weight) {
}
public void setSpeed(int speed) {
}
}
} | gpl-2.0 |
allotory/mellisuga | src/com/mellisuga/servlet/AskServlet.java | 5416 | package com.mellisuga.servlet;
import java.io.IOException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.ibatis.session.SqlSession;
import com.mellisuga.bean.AnswerBean;
import com.mellisuga.bean.QuestionBean;
import com.mellisuga.dao.AnswersDAO;
import com.mellisuga.dao.FollowDAO;
import com.mellisuga.dao.MemberDAO;
import com.mellisuga.dao.QuestionDAO;
import com.mellisuga.dao.TagDAO;
import com.mellisuga.dao.TrendsDAO;
import com.mellisuga.db.DBConnection;
import com.mellisuga.model.Answers;
import com.mellisuga.model.Follow;
import com.mellisuga.model.Member;
import com.mellisuga.model.Question;
import com.mellisuga.model.Tag;
import com.mellisuga.model.Trends;
@WebServlet("/AskServlet")
public class AskServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public AskServlet() {
super();
}
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
}
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("utf-8");
response.setContentType("text/html; charset=utf-8");
Member m = (Member) request.getSession().getAttribute("member");
String question_title = request.getParameter("question_title");
String question_content = request.getParameter("question_original_content");
String tags = request.getParameter("tags");
String is_anonymous = request.getParameter("is_anonymous");
// 更新日期
Date date = new Date();
String dateFormate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
.format(date);
Timestamp now = Timestamp.valueOf(dateFormate);
SqlSession session = null;
try {
session = DBConnection.openDefaultSession();
// 添加问题
QuestionDAO questionDAO = session.getMapper(QuestionDAO.class);
Question question = new Question();
question.setQuestion_title(question_title);
question.setQuestion_content(question_content);
question.setAnswers_num(0);
question.setFollowers_num(0);
question.setLast_updated(now);
question.setScan_num(0);
question.setReply_num(0);
if (is_anonymous != null) {
question.setIs_anonymous(0);
} else {
question.setIs_anonymous(1);
}
question.setMember_id(m.getId());
questionDAO.insertQuestion(question);
session.commit();
// 查询问题 —— 这句话多余~
//Question q = questionDAO.queryQuestionByQUid(question);
// 添加话题
TagDAO tagDAO = session.getMapper(TagDAO.class);
if (tags != null) {
String[] tag_array = tags.split(",");
for (int i = 0; i < tag_array.length; i++) {
Tag tag = new Tag();
tag.setTagname(tag_array[i]);
tag.setQuestion_id(question.getId());
tagDAO.insertTag(tag);
}
}
// 添加动态
TrendsDAO trendsDAO = session.getMapper(TrendsDAO.class);
Trends trends = new Trends();
trends.setTrends_id(question.getId());
// 动态类型—— FollowingQuestion, AgreeWithThisAnswer, AnswerThisQuestion, AskAQuestion
trends.setTrends_type("AskAQuestion");
trends.setTrends_time(now);
trends.setTrends_member(m.getId());
trendsDAO.insertTrends(trends);
// 添加日志
// TODO 数据库表想简单了~
// TODO 数据库表想简单了~
// TODO 数据库表想简单了~
// TODO 数据库表想简单了~
// 更新用户信息(提问数)
MemberDAO memberDAO = session.getMapper(MemberDAO.class);
m.setQuestion_num(m.getQuestion_num() + 1);
memberDAO.updateMember(m);
// 提问用户自动关注问题
FollowDAO followDAO = session.getMapper(FollowDAO.class);
Follow follow = new Follow();
follow.setQuestion_id(question.getId());
follow.setFollower_id(m.getId());
followDAO.insertFollow(follow);
session.commit();
// 重新查询用户信息
m = memberDAO.queryMemberByUserID(m.getId());
// 查询标签
List<Tag> tagList = tagDAO.queryTagByQuestionId(question);
// 查询答案
AnswersDAO answersDAO = session.getMapper(AnswersDAO.class);
List<Answers> answersList = answersDAO.queryAnswerByQuestionId(question);
List<AnswerBean> answerBeanList = new ArrayList<AnswerBean>();
if(answersList != null && !answersList.isEmpty()) {
// 由答案查询答案作者
for(Answers a : answersList) {
AnswerBean answerBean = new AnswerBean();
Member member = memberDAO.queryMemberByUserID(a.getAuthor_id());
answerBean.setAnswer(a);
answerBean.setMember(member);
answerBeanList.add(answerBean);
}
}
QuestionBean questionBean = new QuestionBean();
questionBean.setQuestion(question);
questionBean.setTagList(tagList);
questionBean.setAnswerBeanList(answerBeanList);
request.setAttribute("questionBean", questionBean);
request.getSession().setAttribute("member", m);
request.getRequestDispatcher("/pages/question.jsp")
.forward(request, response);
} catch (Exception e) {
e.printStackTrace();
} finally {
DBConnection.closeSession(session);
}
}
}
| gpl-2.0 |
saces/fred | src/freenet/support/io/TempBucketFactory.java | 18699 | /* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
package freenet.support.io;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.ref.WeakReference;
import java.util.LinkedList;
import java.util.ListIterator;
import java.util.Queue;
import java.util.Random;
import java.util.concurrent.LinkedBlockingQueue;
import com.db4o.ObjectContainer;
import freenet.crypt.RandomSource;
import freenet.support.Executor;
import freenet.support.LogThresholdCallback;
import freenet.support.Logger;
import freenet.support.SizeUtil;
import freenet.support.TimeUtil;
import freenet.support.Logger.LogLevel;
import freenet.support.api.Bucket;
import freenet.support.api.BucketFactory;
import java.util.ArrayList;
/**
* Temporary Bucket Factory
*
* Buckets created by this factory can be either:
* - ArrayBuckets
* OR
* - FileBuckets
*
* ArrayBuckets are used if and only if:
* 1) there is enough room remaining on the pool (@see maxRamUsed and @see bytesInUse)
* 2) the initial size is smaller than (@maxRAMBucketSize)
*
* Depending on how they are used they might switch from one type to another transparently.
*
* Currently they are two factors considered for a migration:
* - if they are long-lived or not (@see RAMBUCKET_MAX_AGE)
* - if their size is over RAMBUCKET_CONVERSION_FACTOR*maxRAMBucketSize
*/
public class TempBucketFactory implements BucketFactory {
public final static long defaultIncrement = 4096;
public final static float DEFAULT_FACTOR = 1.25F;
private final FilenameGenerator filenameGenerator;
private long bytesInUse = 0;
private final RandomSource strongPRNG;
private final Random weakPRNG;
private final Executor executor;
private volatile boolean reallyEncrypt;
/** How big can the defaultSize be for us to consider using RAMBuckets? */
private long maxRAMBucketSize;
/** How much memory do we dedicate to the RAMBucketPool? (in bytes) */
private long maxRamUsed;
/** How old is a long-lived RAMBucket? */
private final int RAMBUCKET_MAX_AGE = 5*60*1000; // 5mins
/** How many times the maxRAMBucketSize can a RAMBucket be before it gets migrated? */
final static int RAMBUCKET_CONVERSION_FACTOR = 4;
final static boolean TRACE_BUCKET_LEAKS = false;
private static volatile boolean logMINOR;
static {
Logger.registerLogThresholdCallback(new LogThresholdCallback(){
@Override
public void shouldUpdate(){
logMINOR = Logger.shouldLog(LogLevel.MINOR, this);
}
});
}
public class TempBucket implements Bucket {
/** The underlying bucket itself */
private Bucket currentBucket;
/** We have to account the size of the underlying bucket ourself in order to be able to access it fast */
private long currentSize;
/** Has an OutputStream been opened at some point? */
private boolean hasWritten;
/** A link to the "real" underlying outputStream, even if we migrated */
private OutputStream os = null;
/** All the open-streams to reset or close on migration or free() */
private final ArrayList<TempBucketInputStream> tbis;
/** An identifier used to know when to deprecate the InputStreams */
private short osIndex;
/** A timestamp used to evaluate the age of the bucket and maybe consider it for a migration */
public final long creationTime;
private boolean hasBeenFreed = false;
private final Throwable tracer;
public TempBucket(long now, Bucket cur) {
if(cur == null)
throw new NullPointerException();
if (TRACE_BUCKET_LEAKS)
tracer = new Throwable();
else
tracer = null;
this.currentBucket = cur;
this.creationTime = now;
this.osIndex = 0;
this.tbis = new ArrayList<TempBucketInputStream>(1);
if(logMINOR) Logger.minor(TempBucket.class, "Created "+this, new Exception("debug"));
}
private synchronized void closeInputStreams(boolean forFree) {
for(ListIterator<TempBucketInputStream> i = tbis.listIterator(); i.hasNext();) {
TempBucketInputStream is = i.next();
if(forFree) {
i.remove();
try {
is.close();
} catch (IOException e) {
Logger.error(this, "Caught "+e+" closing "+is);
}
} else {
try {
is._maybeResetInputStream();
} catch(IOException e) {
i.remove();
Closer.close(is);
}
}
}
}
/** A blocking method to force-migrate from a RAMBucket to a FileBucket */
final void migrateToFileBucket() throws IOException {
Bucket toMigrate = null;
long size;
synchronized(this) {
if(!isRAMBucket() || hasBeenFreed)
// Nothing to migrate! We don't want to switch back to ram, do we?
return;
toMigrate = currentBucket;
Bucket tempFB = _makeFileBucket();
size = currentSize;
if(os != null) {
os.flush();
Closer.close(os);
// DO NOT INCREMENT THE osIndex HERE!
os = tempFB.getOutputStream();
if(size > 0)
BucketTools.copyTo(toMigrate, os, size);
} else {
if(size > 0) {
OutputStream temp = tempFB.getOutputStream();
BucketTools.copyTo(toMigrate, temp, size);
temp.close();
}
}
if(toMigrate.isReadOnly())
tempFB.setReadOnly();
closeInputStreams(false);
currentBucket = tempFB;
// We need streams to be reset to point to the new bucket
}
if(logMINOR)
Logger.minor(this, "We have migrated "+toMigrate.hashCode());
synchronized(ramBucketQueue) {
ramBucketQueue.remove(getReference());
}
// We can free it on-thread as it's a rambucket
toMigrate.free();
// Might have changed already so we can't rely on currentSize!
_hasFreed(size);
}
public synchronized final boolean isRAMBucket() {
return (currentBucket instanceof ArrayBucket);
}
@Override
public synchronized OutputStream getOutputStream() throws IOException {
if(osIndex > 0)
throw new IOException("Only one OutputStream per bucket on "+this+" !");
// Hence we don't need to reset currentSize / _hasTaken() if a bucket is reused.
// FIXME we should migrate to disk rather than throwing.
hasWritten = true;
OutputStream tos = new TempBucketOutputStream(++osIndex);
if(logMINOR)
Logger.minor(this, "Got "+tos+" for "+this, new Exception());
return tos;
}
private class TempBucketOutputStream extends OutputStream {
boolean closed = false;
TempBucketOutputStream(short idx) throws IOException {
if(os == null)
os = currentBucket.getOutputStream();
}
private void _maybeMigrateRamBucket(long futureSize) throws IOException {
if(closed) throw new IOException("Already closed");
if(isRAMBucket()) {
boolean shouldMigrate = false;
boolean isOversized = false;
if(futureSize >= Math.min(Integer.MAX_VALUE, maxRAMBucketSize * RAMBUCKET_CONVERSION_FACTOR)) {
isOversized = true;
shouldMigrate = true;
} else if ((futureSize - currentSize) + bytesInUse >= maxRamUsed)
shouldMigrate = true;
if(shouldMigrate) {
if(logMINOR) {
if(isOversized)
Logger.minor(this, "The bucket "+TempBucket.this+" is over "+SizeUtil.formatSize(maxRAMBucketSize*RAMBUCKET_CONVERSION_FACTOR)+": we will force-migrate it to disk.");
else
Logger.minor(this, "The bucketpool is full: force-migrate before we go over the limit");
}
migrateToFileBucket();
}
}
}
@Override
public final void write(int b) throws IOException {
synchronized(TempBucket.this) {
long futureSize = currentSize + 1;
_maybeMigrateRamBucket(futureSize);
os.write(b);
currentSize = futureSize;
if(isRAMBucket()) // We need to re-check because it might have changed!
_hasTaken(1);
}
}
@Override
public final void write(byte b[], int off, int len) throws IOException {
synchronized(TempBucket.this) {
long futureSize = currentSize + len;
_maybeMigrateRamBucket(futureSize);
os.write(b, off, len);
currentSize = futureSize;
if(isRAMBucket()) // We need to re-check because it might have changed!
_hasTaken(len);
}
}
@Override
public final void flush() throws IOException {
synchronized(TempBucket.this) {
_maybeMigrateRamBucket(currentSize);
if(!closed)
os.flush();
}
}
@Override
public final void close() throws IOException {
synchronized(TempBucket.this) {
if(closed) return;
_maybeMigrateRamBucket(currentSize);
os.flush();
os.close();
os = null;
closed = true;
}
}
}
@Override
public synchronized InputStream getInputStream() throws IOException {
if(!hasWritten)
throw new IOException("No OutputStream has been openned! Why would you want an InputStream then?");
TempBucketInputStream is = new TempBucketInputStream(osIndex);
tbis.add(is);
if(logMINOR)
Logger.minor(this, "Got "+is+" for "+this, new Exception());
return is;
}
private class TempBucketInputStream extends InputStream {
/** The current InputStream we use from the underlying bucket */
private InputStream currentIS;
/** Keep a counter to know where we are on the stream (useful when we have to reset and skip) */
private long index = 0;
/** Will change if a new OutputStream is openned: used to detect deprecation */
private final short idx;
TempBucketInputStream(short idx) throws IOException {
this.idx = idx;
this.currentIS = currentBucket.getInputStream();
}
public void _maybeResetInputStream() throws IOException {
if(idx != osIndex)
close();
else {
Closer.close(currentIS);
currentIS = currentBucket.getInputStream();
long toSkip = index;
while(toSkip > 0) {
toSkip -= currentIS.skip(toSkip);
}
}
}
@Override
public final int read() throws IOException {
synchronized(TempBucket.this) {
int toReturn = currentIS.read();
if(toReturn != -1)
index++;
return toReturn;
}
}
@Override
public int read(byte b[]) throws IOException {
synchronized(TempBucket.this) {
return read(b, 0, b.length);
}
}
@Override
public int read(byte b[], int off, int len) throws IOException {
synchronized(TempBucket.this) {
int toReturn = currentIS.read(b, off, len);
if(toReturn > 0)
index += toReturn;
return toReturn;
}
}
@Override
public long skip(long n) throws IOException {
synchronized(TempBucket.this) {
long skipped = currentIS.skip(n);
index += skipped;
return skipped;
}
}
@Override
public int available() throws IOException {
synchronized(TempBucket.this) {
return currentIS.available();
}
}
@Override
public boolean markSupported() {
return false;
}
@Override
public final void close() throws IOException {
synchronized(TempBucket.this) {
Closer.close(currentIS);
tbis.remove(this);
}
}
}
@Override
public synchronized String getName() {
return currentBucket.getName();
}
@Override
public synchronized long size() {
return currentSize;
}
@Override
public synchronized boolean isReadOnly() {
return currentBucket.isReadOnly();
}
@Override
public synchronized void setReadOnly() {
currentBucket.setReadOnly();
}
@Override
public synchronized void free() {
if(hasBeenFreed) return;
hasBeenFreed = true;
Closer.close(os);
closeInputStreams(true);
currentBucket.free();
if(isRAMBucket()) {
_hasFreed(currentSize);
synchronized(ramBucketQueue) {
ramBucketQueue.remove(getReference());
}
}
}
@Override
public Bucket createShadow() {
return currentBucket.createShadow();
}
@Override
public void removeFrom(ObjectContainer container) {
throw new UnsupportedOperationException();
}
@Override
public void storeTo(ObjectContainer container) {
throw new UnsupportedOperationException();
}
public boolean objectCanNew(ObjectContainer container) {
Logger.error(this, "Not storing TempBucket in database", new Exception("error"));
throw new IllegalStateException();
}
public boolean objectCanUpdate(ObjectContainer container) {
Logger.error(this, "Trying to store a TempBucket!", new Exception("error"));
throw new IllegalStateException();
}
public boolean objectCanActivate(ObjectContainer container) {
Logger.error(this, "Trying to store a TempBucket!", new Exception("error"));
return false;
}
public boolean objectCanDeactivate(ObjectContainer container) {
Logger.error(this, "Trying to store a TempBucket!", new Exception("error"));
return false;
}
private WeakReference<TempBucket> weakRef = new WeakReference<TempBucket>(this);
public WeakReference<TempBucket> getReference() {
return weakRef;
}
@Override
protected void finalize() throws Throwable {
if (!hasBeenFreed) {
if (TRACE_BUCKET_LEAKS)
Logger.error(this, "TempBucket not freed, size=" + size() + ", isRAMBucket=" + isRAMBucket()+" : "+this, tracer);
free();
}
super.finalize();
}
}
// Storage accounting disabled by default.
public TempBucketFactory(Executor executor, FilenameGenerator filenameGenerator, long maxBucketSizeKeptInRam, long maxRamUsed, RandomSource strongPRNG, Random weakPRNG, boolean reallyEncrypt) {
this.filenameGenerator = filenameGenerator;
this.maxRamUsed = maxRamUsed;
this.maxRAMBucketSize = maxBucketSizeKeptInRam;
this.strongPRNG = strongPRNG;
this.weakPRNG = weakPRNG;
this.reallyEncrypt = reallyEncrypt;
this.executor = executor;
}
@Override
public Bucket makeBucket(long size) throws IOException {
return makeBucket(size, DEFAULT_FACTOR, defaultIncrement);
}
public Bucket makeBucket(long size, float factor) throws IOException {
return makeBucket(size, factor, defaultIncrement);
}
private synchronized void _hasTaken(long size) {
bytesInUse += size;
}
private synchronized void _hasFreed(long size) {
bytesInUse -= size;
}
public synchronized long getRamUsed() {
return bytesInUse;
}
public synchronized void setMaxRamUsed(long size) {
maxRamUsed = size;
}
public synchronized long getMaxRamUsed() {
return maxRamUsed;
}
public synchronized void setMaxRAMBucketSize(long size) {
maxRAMBucketSize = size;
}
public synchronized long getMaxRAMBucketSize() {
return maxRAMBucketSize;
}
public void setEncryption(boolean value) {
reallyEncrypt = value;
}
public boolean isEncrypting() {
return reallyEncrypt;
}
static final double MAX_USAGE = 0.9;
/**
* Create a temp bucket
*
* @param size
* Default size
* @param factor
* Factor to increase size by when need more space
* @return A temporary Bucket
* @exception IOException
* If it is not possible to create a temp bucket due to an
* I/O error
*/
public TempBucket makeBucket(long size, float factor, long increment) throws IOException {
Bucket realBucket = null;
boolean useRAMBucket = false;
long now = System.currentTimeMillis();
synchronized(this) {
if((size > 0) && (size <= maxRAMBucketSize) && (bytesInUse <= maxRamUsed)) {
useRAMBucket = true;
} else if(bytesInUse >= maxRamUsed * MAX_USAGE && !runningCleaner) {
runningCleaner = true;
executor.execute(cleaner);
}
}
// Do we want a RAMBucket or a FileBucket?
realBucket = (useRAMBucket ? new ArrayBucket() : _makeFileBucket());
TempBucket toReturn = new TempBucket(now, realBucket);
if(useRAMBucket) { // No need to consider them for migration if they can't be migrated
synchronized(ramBucketQueue) {
ramBucketQueue.add(toReturn.getReference());
}
}
return toReturn;
}
boolean runningCleaner = false;
private final Runnable cleaner = new Runnable() {
@Override
public void run() {
try {
boolean force;
synchronized(TempBucketFactory.this) {
if(!runningCleaner) return;
force = (bytesInUse >= maxRamUsed * MAX_USAGE);
}
while(true) {
if(!cleanBucketQueue(System.currentTimeMillis(), force)) return;
synchronized(TempBucketFactory.this) {
force = (bytesInUse >= maxRamUsed * MAX_USAGE);
if(!force) return;
}
}
} finally {
synchronized(TempBucketFactory.this) {
runningCleaner = false;
}
}
}
};
/** Migrate all long-lived buckets from the queue */
private boolean cleanBucketQueue(long now, boolean force) {
boolean shouldContinue = true;
// create a new list to avoid race-conditions
Queue<TempBucket> toMigrate = null;
if(logMINOR)
Logger.minor(this, "Starting cleanBucketQueue");
do {
synchronized(ramBucketQueue) {
final WeakReference<TempBucket> tmpBucketRef = ramBucketQueue.peek();
if (tmpBucketRef == null)
shouldContinue = false;
else {
TempBucket tmpBucket = tmpBucketRef.get();
if (tmpBucket == null) {
ramBucketQueue.remove(tmpBucketRef);
continue; // ugh. this is freed
}
// Don't access the buckets inside the lock, will deadlock.
if (tmpBucket.creationTime + RAMBUCKET_MAX_AGE > now && !force)
shouldContinue = false;
else {
if (logMINOR)
Logger.minor(this, "The bucket "+tmpBucket+" is " + TimeUtil.formatTime(now - tmpBucket.creationTime)
+ " old: we will force-migrate it to disk.");
ramBucketQueue.remove(tmpBucketRef);
if(toMigrate == null) toMigrate = new LinkedList<TempBucket>();
toMigrate.add(tmpBucket);
force = false;
}
}
}
} while(shouldContinue);
if(toMigrate == null) return false;
if(toMigrate.size() > 0) {
if(logMINOR)
Logger.minor(this, "We are going to migrate " + toMigrate.size() + " RAMBuckets");
for(TempBucket tmpBucket : toMigrate) {
try {
tmpBucket.migrateToFileBucket();
} catch(IOException e) {
Logger.error(tmpBucket, "An IOE occured while migrating long-lived buckets:" + e.getMessage(), e);
}
}
return true;
}
return false;
}
private final Queue<WeakReference<TempBucket>> ramBucketQueue = new LinkedBlockingQueue<WeakReference<TempBucket>>();
private Bucket _makeFileBucket() {
Bucket fileBucket = new TempFileBucket(filenameGenerator.makeRandomFilename(), filenameGenerator, true);
// Do we want it to be encrypted?
return (reallyEncrypt ? new PaddedEphemerallyEncryptedBucket(fileBucket, 1024, strongPRNG, weakPRNG) : fileBucket);
}
}
| gpl-2.0 |
NorthFacing/step-by-Java | java-netty/java-netty-5.x/src/main/java/com/phei/netty/frame/correct/TimeServer.java | 2896 | /*
* Copyright 2013-2018 Lilinfeng.
*
* Licensed 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 com.phei.netty.frame.correct;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.codec.LineBasedFrameDecoder;
import io.netty.handler.codec.string.StringDecoder;
/**
* @author lilinfeng
* @version 1.0
* @date 2014年2月14日
*/
public class TimeServer {
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
int port = 8080;
if (args != null && args.length > 0) {
try {
port = Integer.valueOf(args[0]);
} catch (NumberFormatException e) {
// 采用默认值
}
}
new TimeServer().bind(port);
}
public void bind(int port) throws Exception {
// 配置服务端的NIO线程组
EventLoopGroup bossGroup = new NioEventLoopGroup();
EventLoopGroup workerGroup = new NioEventLoopGroup();
try {
ServerBootstrap b = new ServerBootstrap();
b.group(bossGroup, workerGroup)
.channel(NioServerSocketChannel.class)
.option(ChannelOption.SO_BACKLOG, 1024)
.childHandler(new ChannelInitializer<SocketChannel>() {
@Override
protected void initChannel(SocketChannel sc) throws Exception {
// LineBasedFrameDecoder是以换行符为标志的解码器,如果1024个字节仍然没有换行,就会抛出异常
sc.pipeline().addLast(new LineBasedFrameDecoder(1024));
// StringDecoder将接收到的字符转换成为字符串,handler中就不再需要解码
sc.pipeline().addLast(new StringDecoder());
sc.pipeline().addLast(new TimeServerHandler());
}
});
// 绑定端口,同步等待成功
ChannelFuture f = b.bind(port).sync();
// 等待服务端监听端口关闭
f.channel().closeFuture().sync();
} finally {
// 优雅退出,释放线程池资源
bossGroup.shutdownGracefully();
workerGroup.shutdownGracefully();
}
}
}
| gpl-2.0 |
mfernandez82/casoemp | MiguelCasoEmpresarial/src/Tablas/Pedidos.java | 1844 | package Tablas;
import HelperDb.DbHelper;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
public class Pedidos {
public static final String TABLA = "PEDIDOS";
public static final String PED_ID ="_ID";
public static final String PED_NUMERO ="NUM_PEDIDO";
public static final String PED_ID_CLIENTE ="ID_CLIENTE";
public static final String PED_FECHA ="FECHA_PEDIDO";
public static final String CREAR_TABLA_PEDIDOS ="CREATE TABLE " + TABLA
+ "( "+ PED_ID+" INTEGER PRIMARY KEY AUTOINCREMENT, "
+ PED_NUMERO +" INTEGER, "
+ PED_ID_CLIENTE +" INTEGER, "
+ PED_FECHA +" TEXT); ";
private DbHelper helper;
private SQLiteDatabase db;
public Pedidos(Context context){
helper = new DbHelper(context);
db = helper.getWritableDatabase();
}
public ContentValues generocontentvalores(int num_pedido, int id_cliente, String fecha_pedido)
{
ContentValues valores = new ContentValues();
valores.put(PED_NUMERO, num_pedido);
valores.put(PED_ID_CLIENTE, id_cliente);
valores.put(PED_FECHA, fecha_pedido);
return valores;
}
public void insertar_producto (int num_pedido, int id_cliente, String fecha_pedido)
{
db.insert(TABLA, null, generocontentvalores(num_pedido, id_cliente,fecha_pedido));
}
public void eliminar_pedido(String numero_pedido )
{
db.delete(TABLA, PED_NUMERO +"=?", new String[] {numero_pedido});
}
public Cursor cargarCursorClientes(){
String[] columnas = new String[] {PED_ID+" AS _id ", PED_NUMERO , PED_ID_CLIENTE, PED_FECHA};
return db.query(TABLA, columnas, null, null, null, null, null);
}
}
| gpl-2.0 |
sangminLeeKoreaUniv/LyricsGathering | LyricsGathering/src/kr/ac/korea/dmqm/searchLyrics/SearchUtil.java | 1536 | package kr.ac.korea.dmqm.searchLyrics;
import java.util.ArrayList;
import java.util.List;
import com.omt.lyrics.SearchLyrics;
import com.omt.lyrics.beans.Lyrics;
import com.omt.lyrics.beans.LyricsServiceBean;
import com.omt.lyrics.beans.SearchLyricsBean;
import com.omt.lyrics.exception.SearchLyricsException;
import com.omt.lyrics.util.Services;
import com.omt.lyrics.util.Sites;
public class SearchUtil {
public static List<Lyrics> getLyricsBySites(String name, String album,
String artist, Sites sites) {
List<Lyrics> lyrics = new ArrayList<Lyrics>();
SearchLyrics searchLyrics = new SearchLyrics();
SearchLyricsBean bean = new SearchLyricsBean();
bean.setTopMaxResult(1);
bean.setSongArtist(artist);
bean.setSongName(name);
bean.setSongAlbum(album);
bean.setSites(sites);
try {
lyrics = searchLyrics.searchLyrics(bean);
} catch (Exception e) {
// Do noting tell them lyrics not found
}
return lyrics;
}
public static List<Lyrics> getLyricsByService(String name, String album,
String artist) {
List<Lyrics> lyrics = new ArrayList<Lyrics>();
SearchLyrics searchLyrics = new SearchLyrics();
LyricsServiceBean bean = new LyricsServiceBean();
bean.setSongName(name);
bean.setSongAlbum(album);
bean.setSongArtist(artist);
bean.setServices(Services.LYRICSWIKIA);
try {
lyrics = searchLyrics.searchLyrics(bean);
} catch (SearchLyricsException e) {
// Do noting tell them lyrics not found
}
return lyrics;
}
}
| gpl-2.0 |