repo_name stringlengths 7 104 | file_path stringlengths 13 198 | context stringlengths 67 7.15k | import_statement stringlengths 16 4.43k | code stringlengths 40 6.98k | prompt stringlengths 227 8.27k | next_line stringlengths 8 795 |
|---|---|---|---|---|---|---|
xm-online/xm-lep | xm-lep-groovy/src/main/java/com/icthh/xm/lep/groovy/ExecutionStrategy.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepInvocationCauseException.java
// public class LepInvocationCauseException extends Exception {
//
// /**
// * Serial UID.
// */
// private static final long serialVersionUID = -6216272704551111089L;
//
// /**
// * This field holds the... | import com.icthh.xm.lep.api.LepInvocationCauseException;
import com.icthh.xm.lep.api.LepManagerService;
import com.icthh.xm.lep.api.LepMethod;
import com.icthh.xm.lep.api.LepResourceKey;
import java.util.function.Supplier; | package com.icthh.xm.lep.groovy;
/**
* The {@link ExecutionStrategy} interface.
*/
public interface ExecutionStrategy<E, K extends LepResourceKey> {
/**
* Executes LEP resource using some executor.
*
* @param resourceKey LEP resource key
* @param method LEP m... | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepInvocationCauseException.java
// public class LepInvocationCauseException extends Exception {
//
// /**
// * Serial UID.
// */
// private static final long serialVersionUID = -6216272704551111089L;
//
// /**
// * This field holds the... | LepManagerService managerService, |
xm-online/xm-lep | xm-lep-groovy/src/main/java/com/icthh/xm/lep/groovy/ExecutionStrategy.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepInvocationCauseException.java
// public class LepInvocationCauseException extends Exception {
//
// /**
// * Serial UID.
// */
// private static final long serialVersionUID = -6216272704551111089L;
//
// /**
// * This field holds the... | import com.icthh.xm.lep.api.LepInvocationCauseException;
import com.icthh.xm.lep.api.LepManagerService;
import com.icthh.xm.lep.api.LepMethod;
import com.icthh.xm.lep.api.LepResourceKey;
import java.util.function.Supplier; | package com.icthh.xm.lep.groovy;
/**
* The {@link ExecutionStrategy} interface.
*/
public interface ExecutionStrategy<E, K extends LepResourceKey> {
/**
* Executes LEP resource using some executor.
*
* @param resourceKey LEP resource key
* @param method LEP m... | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepInvocationCauseException.java
// public class LepInvocationCauseException extends Exception {
//
// /**
// * Serial UID.
// */
// private static final long serialVersionUID = -6216272704551111089L;
//
// /**
// * This field holds the... | Supplier<E> resourceExecutorSupplier) throws LepInvocationCauseException; |
xm-online/xm-lep | xm-lep-groovy/src/main/java/com/icthh/xm/lep/groovy/LazyGroovyScriptEngineProviderStrategy.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextsHolder.java
// public interface ContextsHolder {
//
// /**
// * Return context instance by scope name.
// *
// * @param scope context scope name, this name is unique across all
// * scopes in one {@link ContextsHolder} ... | import com.icthh.xm.lep.api.ContextsHolder;
import com.icthh.xm.lep.api.LepManagerService;
import groovy.util.GroovyScriptEngine;
import groovy.util.ResourceConnector;
import java.util.Objects; | package com.icthh.xm.lep.groovy;
/**
* The {@link LazyGroovyScriptEngineProviderStrategy} class.
*/
public class LazyGroovyScriptEngineProviderStrategy implements GroovyScriptEngineProviderStrategy {
private final ScriptNameLepResourceKeyMapper resourceKeyMapper;
private volatile GroovyScriptEngine groov... | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextsHolder.java
// public interface ContextsHolder {
//
// /**
// * Return context instance by scope name.
// *
// * @param scope context scope name, this name is unique across all
// * scopes in one {@link ContextsHolder} ... | public GroovyScriptEngine getEngine(LepManagerService managerService) { |
xm-online/xm-lep | xm-lep-groovy/src/main/java/com/icthh/xm/lep/groovy/LazyGroovyScriptEngineProviderStrategy.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextsHolder.java
// public interface ContextsHolder {
//
// /**
// * Return context instance by scope name.
// *
// * @param scope context scope name, this name is unique across all
// * scopes in one {@link ContextsHolder} ... | import com.icthh.xm.lep.api.ContextsHolder;
import com.icthh.xm.lep.api.LepManagerService;
import groovy.util.GroovyScriptEngine;
import groovy.util.ResourceConnector;
import java.util.Objects; | GroovyScriptEngine engine = this.groovyScriptEngine;
if (engine == null) {
synchronized (this) {
engine = this.groovyScriptEngine;
if (engine == null) {
this.groovyScriptEngine = engine = buildGroovyScriptEngine(managerService);
... | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextsHolder.java
// public interface ContextsHolder {
//
// /**
// * Return context instance by scope name.
// *
// * @param scope context scope name, this name is unique across all
// * scopes in one {@link ContextsHolder} ... | ContextsHolder contextsHolder) { |
xm-online/xm-lep | xm-lep-script/src/main/java/com/icthh/xm/lep/script/CompositeGroupLepResource.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/CompositeLepResource.java
// public interface CompositeLepResource extends LepResource {
//
// List<LepResource> getChildren();
//
// }
//
// Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepResource.java
// public interface LepResource {
//
// /*... | import com.icthh.xm.lep.api.CompositeLepResource;
import com.icthh.xm.lep.api.LepResource;
import com.icthh.xm.lep.api.LepResourceDescriptor;
import java.util.List;
import java.util.Objects; | package com.icthh.xm.lep.script;
/**
* The {@link CompositeGroupLepResource} class.
*/
public class CompositeGroupLepResource implements CompositeLepResource {
private LepResourceDescriptor descriptor;
| // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/CompositeLepResource.java
// public interface CompositeLepResource extends LepResource {
//
// List<LepResource> getChildren();
//
// }
//
// Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepResource.java
// public interface LepResource {
//
// /*... | private List<LepResource> children; |
xm-online/xm-lep | xm-lep-entry/src/main/java/com/icthh/xm/lep/entry/LogicExtensionPoint.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepKeyResolver.java
// public interface LepKeyResolver {
//
// /**
// * Resolve dynamic part of LEP key by method arguments.
// *
// * @param baseKey base LEP key (prefix), can be {@code null}
// * @param method method data o... | import com.icthh.xm.lep.api.LepKeyResolver;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; | package com.icthh.xm.lep.entry;
/**
* The annotation type {@link LogicExtensionPoint} is used to indicate point in code that can
* be extended by custom implementation.
* Custom implementation represents by {@link com.icthh.xm.lep.api.LepResource}) interface and
* can be script, byte code, etc.
*/
@Target({
... | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepKeyResolver.java
// public interface LepKeyResolver {
//
// /**
// * Resolve dynamic part of LEP key by method arguments.
// *
// * @param baseKey base LEP key (prefix), can be {@code null}
// * @param method method data o... | Class<? extends LepKeyResolver> resolver() default LepKeyResolver.class; |
xm-online/xm-lep | xm-lep-core/src/main/java/com/icthh/xm/lep/core/CoreContextsHolder.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextScopes.java
// public final class ContextScopes {
//
// public static final String THREAD = "lep.system.thread";
//
// public static final String EXECUTION = "lep.system.execution";
//
// /**
// * Private utils class constructor, to preve... | import com.icthh.xm.lep.api.ContextScopes;
import com.icthh.xm.lep.api.ContextsHolder;
import com.icthh.xm.lep.api.ScopedContext;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects; | package com.icthh.xm.lep.core;
/**
* The {@link CoreContextsHolder} class.
*/
public class CoreContextsHolder implements ContextsHolder {
private static volatile Map<String, ThreadLocal<ScopedContext>> contexts = new HashMap<>();
static { | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextScopes.java
// public final class ContextScopes {
//
// public static final String THREAD = "lep.system.thread";
//
// public static final String EXECUTION = "lep.system.execution";
//
// /**
// * Private utils class constructor, to preve... | contexts.put(ContextScopes.THREAD, new ThreadLocal<>()); |
xm-online/xm-lep | xm-lep-script/src/main/java/com/icthh/xm/lep/script/ScriptLepResource.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepResource.java
// public interface LepResource {
//
// /**
// * Composite class constant.
// */
// Class<CompositeLepResource> COMPOSITE_CLASS = CompositeLepResource.class;
//
// LepResourceDescriptor getDescriptor();
//
// <V> V getV... | import com.icthh.xm.lep.api.LepResource;
import com.icthh.xm.lep.api.LepResourceDescriptor;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset;... | package com.icthh.xm.lep.script;
/**
* The {@link ScriptLepResource} class.
*/
public class ScriptLepResource implements LepResource, InputStreamSupplier {
public static final String DEFAULT_ENCODING = StandardCharsets.UTF_8.name();
private static final int SCRIPT_PREVIEW_MAX_LENGTH = 360;
private st... | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepResource.java
// public interface LepResource {
//
// /**
// * Composite class constant.
// */
// Class<CompositeLepResource> COMPOSITE_CLASS = CompositeLepResource.class;
//
// LepResourceDescriptor getDescriptor();
//
// <V> V getV... | private final LepResourceDescriptor descriptor; |
xm-online/xm-lep | xm-lep-api-commons/src/main/java/com/icthh/xm/lep/api/commons/DefaultLepMethod.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepMethod.java
// public interface LepMethod {
//
// Object getTarget();
//
// MethodSignature getMethodSignature();
//
// Object[] getMethodArgValues();
//
// }
//
// Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/MethodSignature.java
// publ... | import com.icthh.xm.lep.api.LepMethod;
import com.icthh.xm.lep.api.MethodSignature;
import java.util.Arrays;
import java.util.Objects; | package com.icthh.xm.lep.api.commons;
/**
* The {@link DefaultLepMethod} class.
*/
public class DefaultLepMethod implements LepMethod {
private static final Object[] EMPTY_OBJ_ARRAY = new Object[0];
private final Object target; | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepMethod.java
// public interface LepMethod {
//
// Object getTarget();
//
// MethodSignature getMethodSignature();
//
// Object[] getMethodArgValues();
//
// }
//
// Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/MethodSignature.java
// publ... | private final MethodSignature methodSignature; |
xm-online/xm-lep | xm-lep-core/src/test/java/com/icthh/xm/lep/core/CoreLepManagerThreadContextTest.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextScopes.java
// public final class ContextScopes {
//
// public static final String THREAD = "lep.system.thread";
//
// public static final String EXECUTION = "lep.system.execution";
//
// /**
// * Private utils class constructor, to preve... | import static org.junit.Assert.*;
import com.icthh.xm.lep.api.ContextScopes;
import com.icthh.xm.lep.api.ScopedContext;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException; | package com.icthh.xm.lep.core;
/**
* The {@link CoreLepManagerThreadContextTest} class.
*/
public class CoreLepManagerThreadContextTest {
private CoreLepManager manager;
@Rule
public ExpectedException thrown = ExpectedException.none();
@Before
public void beforeEachTest() {
manager =... | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextScopes.java
// public final class ContextScopes {
//
// public static final String THREAD = "lep.system.thread";
//
// public static final String EXECUTION = "lep.system.execution";
//
// /**
// * Private utils class constructor, to preve... | assertNull(manager.getContext(ContextScopes.THREAD)); |
xm-online/xm-lep | xm-lep-core/src/test/java/com/icthh/xm/lep/core/CoreLepManagerThreadContextTest.java | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextScopes.java
// public final class ContextScopes {
//
// public static final String THREAD = "lep.system.thread";
//
// public static final String EXECUTION = "lep.system.execution";
//
// /**
// * Private utils class constructor, to preve... | import static org.junit.Assert.*;
import com.icthh.xm.lep.api.ContextScopes;
import com.icthh.xm.lep.api.ScopedContext;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException; | @After
public void afterEachTest() {
manager.destroy();
}
@Test
public void throwsNPEOnNullInitThreadContextAction() {
thrown.expect(NullPointerException.class);
thrown.expectMessage("context init action can't be null");
manager.beginThreadContext(null);
}
... | // Path: xm-lep-api/src/main/java/com/icthh/xm/lep/api/ContextScopes.java
// public final class ContextScopes {
//
// public static final String THREAD = "lep.system.thread";
//
// public static final String EXECUTION = "lep.system.execution";
//
// /**
// * Private utils class constructor, to preve... | ScopedContext context1 = manager.getContext(ContextScopes.THREAD); |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/UuidValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import java.util.UUID; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/UniqueValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/ColumnValueProvider.java
// public interface ColumnValueProvider {
//
// String getValue(int row, String column);
// int getNumberOfRows();
//
// }
//
// Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class Valid... | import static java.util.Collections.sort;
import static java.util.stream.Collectors.joining;
import ninja.javafx.smartcsv.fx.table.model.ColumnValueProvider;
import ninja.javafx.smartcsv.validation.ValidationError;
import java.util.ArrayList;
import java.util.List; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/ColumnValueProvider.java
// public interface ColumnValueProvider {
//
// String getValue(int row, String column);
// int getNumberOfRows();
//
// }
//
// Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class Valid... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/NotEmptyValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import static org.apache.commons.validator.GenericValidator.isBlankOrNull; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/fx/util/LoadFileService.java | // Path: src/main/java/ninja/javafx/smartcsv/files/FileStorage.java
// public class FileStorage<E> {
//
// private FileReader<E> reader;
// private FileWriter<E> writer;
//
// public FileStorage(FileReader<E> reader, FileWriter<E> writer) {
// this.reader = reader;
// this.writer = writer;... | import javafx.concurrent.Service;
import javafx.concurrent.Task;
import ninja.javafx.smartcsv.files.FileStorage; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, ... | // Path: src/main/java/ninja/javafx/smartcsv/files/FileStorage.java
// public class FileStorage<E> {
//
// private FileReader<E> reader;
// private FileWriter<E> writer;
//
// public FileStorage(FileReader<E> reader, FileWriter<E> writer) {
// this.reader = reader;
// this.writer = writer;... | private FileStorage<?> file; |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/export/ErrorExport.java | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVModel.java
// public final class CSVModel implements ColumnValueProvider {
//
// private static final Logger logger = LogManager.getLogger(CSVModel.class);
//
// private Validator validator;
// private ObservableList<CSVRow> rows = FXCollectio... | import java.io.File;
import java.io.StringWriter;
import java.nio.file.Files;
import java.util.ResourceBundle;
import static java.text.MessageFormat.format;
import static ninja.javafx.smartcsv.fx.util.I18nValidationUtil.getI18nValidatioMessage;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import nin... | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVModel.java
// public final class CSVModel implements ColumnValueProvider {
//
// private static final Logger logger = LogManager.getLogger(CSVModel.class);
//
// private Validator validator;
// private ObservableList<CSVRow> rows = FXCollectio... | private CSVModel model; |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/export/ErrorExport.java | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVModel.java
// public final class CSVModel implements ColumnValueProvider {
//
// private static final Logger logger = LogManager.getLogger(CSVModel.class);
//
// private Validator validator;
// private ObservableList<CSVRow> rows = FXCollectio... | import java.io.File;
import java.io.StringWriter;
import java.nio.file.Files;
import java.util.ResourceBundle;
import static java.text.MessageFormat.format;
import static ninja.javafx.smartcsv.fx.util.I18nValidationUtil.getI18nValidatioMessage;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import nin... | }
public void setResourceBundle(ResourceBundle resourceBundle) {
this.resourceBundle = resourceBundle;
}
public void setModel(CSVModel model) {
this.model = model;
}
public void setFile(File file) {
this.file = file;
}
@Override
protected Task createTask()... | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVModel.java
// public final class CSVModel implements ColumnValueProvider {
//
// private static final Logger logger = LogManager.getLogger(CSVModel.class);
//
// private Validator validator;
// private ObservableList<CSVRow> rows = FXCollectio... | getI18nValidatioMessage(resourceBundle, error))).append("\n") |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/fx/SmartCSV.java | // Path: src/main/java/ninja/javafx/smartcsv/fx/about/AboutController.java
// @Component
// public class AboutController extends FXMLController {
//
// private HostServices hostServices;
//
// @Value("${fxml.smartcvs.about.view}")
// @Override
// public void setFxmlFilePath(String filePath) {
// ... | import javafx.scene.image.Image;
import javafx.stage.Stage;
import ninja.javafx.smartcsv.fx.about.AboutController;
import org.springframework.context.annotation.*;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import static javafx.application.Platform.exit;
import javafx.application.A... | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/fx/about/AboutController.java
// @Component
// public class AboutController extends FXMLController {
//
// private HostServices hostServices;
//
// @Value("${fxml.smartcvs.about.view}")
// @Override
// public void setFxmlFilePath(String filePath) {
// ... | AboutController aboutController = appContext.getBean(AboutController.class); |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/UriValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import java.net.URI;
import java.net.URISyntaxException; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/BinaryValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import java.util.Base64; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/fx/table/EditableValidationCell.java | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java
// public class CSVRow {
// private ObservableMap<String, ObjectProperty<CSVValue>> columns = FXCollections.observableHashMap();
// private int rowNumber;
//
// /**
// * sets the row number
// * @param rowNumber
// */
//... | import javafx.scene.input.KeyCode;
import ninja.javafx.smartcsv.fx.table.model.CSVRow;
import ninja.javafx.smartcsv.fx.table.model.CSVValue;
import java.util.ResourceBundle;
import static javafx.application.Platform.runLater;
import static ninja.javafx.smartcsv.fx.util.ColorConstants.ERROR_COLOR;
import static ninja.ja... | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java
// public class CSVRow {
// private ObservableMap<String, ObjectProperty<CSVValue>> columns = FXCollections.observableHashMap();
// private int rowNumber;
//
// /**
// * sets the row number
// * @param rowNumber
// */
//... | setStyle("-fx-background-color: derive("+ ERROR_COLOR +", 30%)"); |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/fx/table/EditableValidationCell.java | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java
// public class CSVRow {
// private ObservableMap<String, ObjectProperty<CSVValue>> columns = FXCollections.observableHashMap();
// private int rowNumber;
//
// /**
// * sets the row number
// * @param rowNumber
// */
//... | import javafx.scene.input.KeyCode;
import ninja.javafx.smartcsv.fx.table.model.CSVRow;
import ninja.javafx.smartcsv.fx.table.model.CSVValue;
import java.util.ResourceBundle;
import static javafx.application.Platform.runLater;
import static ninja.javafx.smartcsv.fx.util.ColorConstants.ERROR_COLOR;
import static ninja.ja... | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java
// public class CSVRow {
// private ObservableMap<String, ObjectProperty<CSVValue>> columns = FXCollections.observableHashMap();
// private int rowNumber;
//
// /**
// * sets the row number
// * @param rowNumber
// */
//... | setTooltip(new Tooltip(getI18nValidatioMessage(resourceBundle, item.getValidationError()))); |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVValue.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import ninja.javafx.smartcsv.validation.ValidationError; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | private ValidationError valid; |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/DoubleValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import static org.apache.commons.validator.GenericValidator.isDouble; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/test/java/ninja/javafx/smartcsv/validation/ValidatorTest.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/configuration/ValidationConfiguration.java
// public class ValidationConfiguration {
//
// @SerializedName("fields")
// private Field[] fields;
//
// public Field[] getFields() {
// return fields;
// }
//
// public void setFields(Fie... | import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import ninja.javafx.smartcsv.validation.configuration.ValidationConfiguration;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.L... | package ninja.javafx.smartcsv.validation;
/**
* unit test for validator
*/
public class ValidatorTest {
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// tests
///////////////////////////////////////////////////////////////////////... | // Path: src/main/java/ninja/javafx/smartcsv/validation/configuration/ValidationConfiguration.java
// public class ValidationConfiguration {
//
// @SerializedName("fields")
// private Field[] fields;
//
// public Field[] getFields() {
// return fields;
// }
//
// public void setFields(Fie... | ValidationConfiguration validationConfiguration = gson.fromJson(config, ValidationConfiguration.class); |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/Main.java | // Path: src/main/java/ninja/javafx/smartcsv/fx/SmartCSV.java
// @Configuration
// @ComponentScan("ninja.javafx")
// @PropertySource(value = "classpath:/ninja/javafx/smartcsv/fx/application.properties")
// public class SmartCSV extends Application {
//
// private AnnotationConfigApplicationContext appContext;
//
... | import ninja.javafx.smartcsv.fx.SmartCSV; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/fx/SmartCSV.java
// @Configuration
// @ComponentScan("ninja.javafx")
// @PropertySource(value = "classpath:/ninja/javafx/smartcsv/fx/application.properties")
// public class SmartCSV extends Application {
//
// private AnnotationConfigApplicationContext appContext;
//
... | SmartCSV.main(args); |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/MinLengthValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import static org.apache.commons.validator.GenericValidator.minLength; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/GroovyValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import groovy.lang.Binding;
import groovy.lang.GroovyShell;
import groovy.lang.Script;
import ninja.javafx.smartcsv.validation.ValidationError;
import org.codehaus.groovy.control.CompilationFailedException; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/files/FileStorage.java | // Path: src/main/java/ninja/javafx/smartcsv/FileReader.java
// public interface FileReader<E> {
// E getContent();
// void read(File filename) throws IOException;
// }
//
// Path: src/main/java/ninja/javafx/smartcsv/FileWriter.java
// public interface FileWriter<E> {
// void setContent(E content);
// ... | import ninja.javafx.smartcsv.FileReader;
import ninja.javafx.smartcsv.FileWriter;
import java.io.File;
import java.io.IOException;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleObjectPrope... | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/FileReader.java
// public interface FileReader<E> {
// E getContent();
// void read(File filename) throws IOException;
// }
//
// Path: src/main/java/ninja/javafx/smartcsv/FileWriter.java
// public interface FileWriter<E> {
// void setContent(E content);
// ... | private FileWriter<E> writer; |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/DateValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import static org.apache.commons.validator.GenericValidator.isDate; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/ValueOfValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import java.util.List;
import static java.util.stream.Collectors.joining; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/EmailValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import org.apache.commons.validator.routines.EmailValidator; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/Validation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | void check(int row, String value, ValidationError error); |
frosch95/SmartCSV.fx | src/test/java/ninja/javafx/smartcsv/validation/HeaderValidationTest.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/configuration/ValidationConfiguration.java
// public class ValidationConfiguration {
//
// @SerializedName("fields")
// private Field[] fields;
//
// public Field[] getFields() {
// return fields;
// }
//
// public void setFields(Fie... | import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.List;
import java.util.stream.Stream;
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import static org.hamcrest.MatcherAssert.assertThat;
import static o... | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, ... | // Path: src/main/java/ninja/javafx/smartcsv/validation/configuration/ValidationConfiguration.java
// public class ValidationConfiguration {
//
// @SerializedName("fields")
// private Field[] fields;
//
// public Field[] getFields() {
// return fields;
// }
//
// public void setFields(Fie... | ValidationConfiguration config = gson.fromJson(configHeaderNames, ValidationConfiguration.class); |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/IntegerValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import static org.apache.commons.validator.GenericValidator.isInt; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/RegExpValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import static org.apache.commons.validator.GenericValidator.matchRegexp; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/fx/util/I18nValidationUtil.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import java.util.List;
import java.util.ResourceBundle;
import static java.text.MessageFormat.format;
import ninja.javafx.smartcsv.validation.ValidationError;
import ninja.javafx.smartcsv.validation.ValidationMessage;
import java.io.StringWriter; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, ... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | List<ValidationMessage> validationMessages = error.getMessages(); |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/ValidationFileReader.java | // Path: src/main/java/ninja/javafx/smartcsv/FileReader.java
// public interface FileReader<E> {
// E getContent();
// void read(File filename) throws IOException;
// }
//
// Path: src/main/java/ninja/javafx/smartcsv/validation/configuration/Field.java
// public class Field {
//
// private String name;
//... | import java.io.File;
import java.io.IOException;
import static ninja.javafx.smartcsv.validation.configuration.Type.*;
import com.google.gson.GsonBuilder;
import ninja.javafx.smartcsv.FileReader;
import ninja.javafx.smartcsv.validation.configuration.Field;
import ninja.javafx.smartcsv.validation.configuration.Validation... | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/FileReader.java
// public interface FileReader<E> {
// E getContent();
// void read(File filename) throws IOException;
// }
//
// Path: src/main/java/ninja/javafx/smartcsv/validation/configuration/Field.java
// public class Field {
//
// private String name;
//... | for (Field field : config.getFields()) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/checker/MaxLengthValidation.java | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | import ninja.javafx.smartcsv.validation.ValidationError;
import static org.apache.commons.validator.GenericValidator.maxLength; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/validation/ValidationError.java
// public class ValidationError {
//
// private List<ValidationMessage> messages = new ArrayList<>();
// private Integer lineNumber;
// private String column = "";
//
// private ValidationError(Integer lineNumber) {
// ... | public void check(int row, String value, ValidationError error) { |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/RevalidationService.java | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java
// public class CSVRow {
// private ObservableMap<String, ObjectProperty<CSVValue>> columns = FXCollections.observableHashMap();
// private int rowNumber;
//
// /**
// * sets the row number
// * @param rowNumber
// */
//... | import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javafx.beans.property.ObjectProperty;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import ninja.javafx.smartcsv.fx... | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java
// public class CSVRow {
// private ObservableMap<String, ObjectProperty<CSVValue>> columns = FXCollections.observableHashMap();
// private int rowNumber;
//
// /**
// * sets the row number
// * @param rowNumber
// */
//... | private List<CSVRow> rows; |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/validation/RevalidationService.java | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java
// public class CSVRow {
// private ObservableMap<String, ObjectProperty<CSVValue>> columns = FXCollections.observableHashMap();
// private int rowNumber;
//
// /**
// * sets the row number
// * @param rowNumber
// */
//... | import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javafx.beans.property.ObjectProperty;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import ninja.javafx.smartcsv.fx... | this.validator = validator;
}
public void setRows(List<CSVRow> rows) {
this.rows = rows;
}
public void setHeader(String[] header) {
this.header = header;
}
@Override
protected Task<List<ValidationError>> createTask() {
return new Task<List<ValidationError>>... | // Path: src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java
// public class CSVRow {
// private ObservableMap<String, ObjectProperty<CSVValue>> columns = FXCollections.observableHashMap();
// private int rowNumber;
//
// /**
// * sets the row number
// * @param rowNumber
// */
//... | Map<String, ObjectProperty<CSVValue>> table = row.getColumns(); |
frosch95/SmartCSV.fx | src/main/java/ninja/javafx/smartcsv/fx/util/SaveFileService.java | // Path: src/main/java/ninja/javafx/smartcsv/files/FileStorage.java
// public class FileStorage<E> {
//
// private FileReader<E> reader;
// private FileWriter<E> writer;
//
// public FileStorage(FileReader<E> reader, FileWriter<E> writer) {
// this.reader = reader;
// this.writer = writer;... | import javafx.concurrent.Service;
import javafx.concurrent.Task;
import ninja.javafx.smartcsv.files.FileStorage; | /*
The MIT License (MIT)
-----------------------------------------------------------------------------
Copyright (c) 2015-2021 javafx.ninja <info@javafx.ninja>
Permission is hereby granted, ... | // Path: src/main/java/ninja/javafx/smartcsv/files/FileStorage.java
// public class FileStorage<E> {
//
// private FileReader<E> reader;
// private FileWriter<E> writer;
//
// public FileStorage(FileReader<E> reader, FileWriter<E> writer) {
// this.reader = reader;
// this.writer = writer;... | private FileStorage<?> file; |
frosch95/SmartCSV.fx | src/test/java/ninja/javafx/smartcsv/files/FileStorageTest.java | // Path: src/main/java/ninja/javafx/smartcsv/FileReader.java
// public interface FileReader<E> {
// E getContent();
// void read(File filename) throws IOException;
// }
//
// Path: src/main/java/ninja/javafx/smartcsv/FileWriter.java
// public interface FileWriter<E> {
// void setContent(E content);
// ... | import ninja.javafx.smartcsv.FileReader;
import ninja.javafx.smartcsv.FileWriter;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.File;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.mockito.Mockito.*; | package ninja.javafx.smartcsv.files;
public class FileStorageTest {
private FileReader<String> reader; | // Path: src/main/java/ninja/javafx/smartcsv/FileReader.java
// public interface FileReader<E> {
// E getContent();
// void read(File filename) throws IOException;
// }
//
// Path: src/main/java/ninja/javafx/smartcsv/FileWriter.java
// public interface FileWriter<E> {
// void setContent(E content);
// ... | private FileWriter<String> writer; |
abarisain/dmix | MPDroid/src/main/java/com/namelessdev/mpdroid/views/AlbumDataBinder.java | // Path: MPDroid/src/main/java/com/namelessdev/mpdroid/views/holders/AbstractViewHolder.java
// public abstract class AbstractViewHolder {
//
// }
| import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import java.util.List;
import com.namelessdev.mpdroid.R;
import com.namelessdev.mpdroid.helpers.AlbumInfo;
import com.namelessdev.mpdroid.helpers.CoverAsyncHelper;
import com.namelessdev.mpdroid.views.holders.AbstractVie... | /*
* Copyright (C) 2010-2014 The MPDroid Project
*
* 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 ... | // Path: MPDroid/src/main/java/com/namelessdev/mpdroid/views/holders/AbstractViewHolder.java
// public abstract class AbstractViewHolder {
//
// }
// Path: MPDroid/src/main/java/com/namelessdev/mpdroid/views/AlbumDataBinder.java
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widge... | public AbstractViewHolder findInnerViews(final View targetView) { |
abarisain/dmix | MPDroid/src/main/java/com/namelessdev/mpdroid/AboutActivity.java | // Path: MPDroid/src/main/java/com/namelessdev/mpdroid/adapters/SeparatedListDataBinder.java
// public interface SeparatedListDataBinder {
//
// boolean isEnabled(int position, List<?> items, Object item);
//
// void onDataBind(Context context, View targetView, List<?> items,
// Object item, int p... | import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import com.namelessdev.mpdroid.adapters.SeparatedListAdapter;
import com.namelessdev.mpdroid.adapters.SeparatedListDataBinder;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import andr... | @Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.about);
final ListView listView = (ListView) findViewById(android.R.id.list);
final LayoutInflater inflater = LayoutInflater.from(this);
final V... | // Path: MPDroid/src/main/java/com/namelessdev/mpdroid/adapters/SeparatedListDataBinder.java
// public interface SeparatedListDataBinder {
//
// boolean isEnabled(int position, List<?> items, Object item);
//
// void onDataBind(Context context, View targetView, List<?> items,
// Object item, int p... | R.layout.list_separator, new SeparatedListDataBinder() { |
abarisain/dmix | MPDroid/src/main/java/com/namelessdev/mpdroid/fragments/AlbumsGridFragment.java | // Path: JMPDComm/backends/java/src/main/java/org/a0z/mpd/item/Genre.java
// public class Genre extends AbstractGenre {
//
// public Genre(final Genre genre) {
// super(genre);
// }
//
// public Genre(final String name) {
// super(name);
// }
// }
| import android.widget.TextView;
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout;
import com.namelessdev.mpdroid.R;
import com.namelessdev.mpdroid.adapters.ArrayAdapter;
import com.namelessdev.mpdroid.views.AlbumGridDataBinder;
import org.a0z.mpd.item.Artist;
import org.a0z.mpd.item.Genre;
import a... | /*
* Copyright (C) 2010-2014 The MPDroid Project
*
* 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 ... | // Path: JMPDComm/backends/java/src/main/java/org/a0z/mpd/item/Genre.java
// public class Genre extends AbstractGenre {
//
// public Genre(final Genre genre) {
// super(genre);
// }
//
// public Genre(final String name) {
// super(name);
// }
// }
// Path: MPDroid/src/main/java/com/n... | public AlbumsGridFragment(final Artist artist, final Genre genre) { |
Prodevelop/POIProxy | es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/buzz/BuzzDriverV1.java | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/impl/JSONDriver.java
// public abstract class JSONDriver extends BaseDriver {
//
// protected String[] keys;
//
// public ArrayList getData(int[] tile, Extent boundingBox,
// Cancellable cancellable, int zoom) {
//
// String qu... | import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import es.alrocar.map.vector.provider.driver.impl.JSONDriver;
import es.alrocar.map.vector.provider.geom.AttributePoint;
import es.prodevelop.gvsig.mini.geom.Extent;
import es.prodevelop.gvsig.mini.geom.Point; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/impl/JSONDriver.java
// public abstract class JSONDriver extends BaseDriver {
//
// protected String[] keys;
//
// public ArrayList getData(int[] tile, Extent boundingBox,
// Cancellable cancellable, int zoom) {
//
// String qu... | AttributePoint p = new AttributePoint(); |
Prodevelop/POIProxy | es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/VectorialProvider.java | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | import java.util.ArrayList;
import java.util.HashSet;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import es.alrocar.map.vector.provider.driver.ProviderDriver;
import es.alrocar.map.vector.provider.observer.VectorialProviderListener;
import es.alrocar.map.vector.provider.strategy.... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | private IVectorProviderStrategy strategy; |
Prodevelop/POIProxy | es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/VectorialProvider.java | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | import java.util.ArrayList;
import java.util.HashSet;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import es.alrocar.map.vector.provider.driver.ProviderDriver;
import es.alrocar.map.vector.provider.observer.VectorialProviderListener;
import es.alrocar.map.vector.provider.strategy.... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | private ProviderDriver driver; |
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_contact_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | private Source source = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_contact_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | private UpdateStamp last_update = null;
|
Prodevelop/POIProxy | es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/strategy/impl/TileStrategy.java | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | import es.alrocar.map.vector.provider.driver.ProviderDriver;
import es.alrocar.map.vector.provider.observer.VectorialProviderListener;
import es.prodevelop.gvsig.mini.geom.Extent;
import es.prodevelop.gvsig.mini.utiles.Cancellable;
import es.prodevelop.tilecache.renderer.MapRenderer; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | Extent viewExtent, VectorialProviderListener observer, |
Prodevelop/POIProxy | es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/strategy/impl/TileStrategy.java | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | import es.alrocar.map.vector.provider.driver.ProviderDriver;
import es.alrocar.map.vector.provider.observer.VectorialProviderListener;
import es.prodevelop.gvsig.mini.geom.Extent;
import es.prodevelop.gvsig.mini.utiles.Cancellable;
import es.prodevelop.tilecache.renderer.MapRenderer; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | final ProviderDriver driver = getProvider().getDriver(); |
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_xml3d_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | private Source source = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_xml3d_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | private UpdateStamp last_update = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/AuthTypeEnum.java | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/request/OauthRequestService.java
// public class OauthRequestService implements RequestService {
//
// @Override
// public byte[] download(String URL, String fileName, String downloadPath,
// Auth authElem) throws Exception {
// AuthTypeEnum authTyp... | import org.scribe.builder.api.Api;
import org.scribe.builder.api.TwitterApi;
import es.alrocar.poiproxy.request.OauthRequestService;
import es.alrocar.poiproxy.request.RequestService;
import es.alrocar.poiproxy.request.SimpleHttpRequestServiceForceJson; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/request/OauthRequestService.java
// public class OauthRequestService implements RequestService {
//
// @Override
// public byte[] download(String URL, String fileName, String downloadPath,
// Auth authElem) throws Exception {
// AuthTypeEnum authTyp... | twitter_oauth("twitter_oauth", TwitterApi.class, OauthRequestService.class), |
Prodevelop/POIProxy | es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/AuthTypeEnum.java | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/request/OauthRequestService.java
// public class OauthRequestService implements RequestService {
//
// @Override
// public byte[] download(String URL, String fileName, String downloadPath,
// Auth authElem) throws Exception {
// AuthTypeEnum authTyp... | import org.scribe.builder.api.Api;
import org.scribe.builder.api.TwitterApi;
import es.alrocar.poiproxy.request.OauthRequestService;
import es.alrocar.poiproxy.request.RequestService;
import es.alrocar.poiproxy.request.SimpleHttpRequestServiceForceJson; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/request/OauthRequestService.java
// public class OauthRequestService implements RequestService {
//
// @Override
// public byte[] download(String URL, String fileName, String downloadPath,
// Auth authElem) throws Exception {
// AuthTypeEnum authTyp... | forceJson("forceJson", SimpleHttpRequestServiceForceJson.class, SimpleHttpRequestServiceForceJson.class); |
Prodevelop/POIProxy | es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/AuthTypeEnum.java | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/request/OauthRequestService.java
// public class OauthRequestService implements RequestService {
//
// @Override
// public byte[] download(String URL, String fileName, String downloadPath,
// Auth authElem) throws Exception {
// AuthTypeEnum authTyp... | import org.scribe.builder.api.Api;
import org.scribe.builder.api.TwitterApi;
import es.alrocar.poiproxy.request.OauthRequestService;
import es.alrocar.poiproxy.request.RequestService;
import es.alrocar.poiproxy.request.SimpleHttpRequestServiceForceJson; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/request/OauthRequestService.java
// public class OauthRequestService implements RequestService {
//
// @Override
// public byte[] download(String URL, String fileName, String downloadPath,
// Auth authElem) throws Exception {
// AuthTypeEnum authTyp... | public Class<? extends RequestService> _downloader; |
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_media_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/UpdateStamp.java
// public class UpdateStamp {
//
// private long timestamp = 0;
// private String responsible = "";
//
// public long getTimestamp() {
// return timestamp;
// }
//
// public void set... | import java.util.ArrayList;
import java.util.List;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/UpdateStamp.java
// public class UpdateStamp {
//
// private long timestamp = 0;
// private String responsible = "";
//
// public long getTimestamp() {
// return timestamp;
// }
//
// public void set... | private UpdateStamp last_update = null;
|
Prodevelop/POIProxy | es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/strategy/impl/FixedStrategy.java | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/observer/VectorialProviderListener.java
// public interface VectorialProviderListener {
//
// public void onVectorDataRetrieved(int[] tile, ArrayList data,
// Cancellable cancellable, int zoomLevel);
//
// public void onRawDataRetrieved(... | import es.alrocar.map.vector.provider.observer.VectorialProviderListener;
import es.prodevelop.gvsig.mini.geom.Extent;
import es.prodevelop.gvsig.mini.utiles.Cancellable; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/observer/VectorialProviderListener.java
// public interface VectorialProviderListener {
//
// public void onVectorDataRetrieved(int[] tile, ArrayList data,
// Cancellable cancellable, int zoomLevel);
//
// public void onRawDataRetrieved(... | Extent viewExtent, VectorialProviderListener observer, |
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_core_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | import java.util.HashMap;
import java.util.Map;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntString;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntUri;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Location;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | private Location location = new Location(0, 0);
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_core_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | import java.util.HashMap;
import java.util.Map;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntString;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntUri;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Location;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | private IntString label = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_core_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | import java.util.HashMap;
import java.util.Map;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntString;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntUri;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Location;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | private IntUri url = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_core_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | import java.util.HashMap;
import java.util.Map;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntString;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntUri;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Location;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | private Source source = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_core_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | import java.util.HashMap;
import java.util.Map;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntString;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.IntUri;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Location;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/IntString.java
// public class IntString extends HashMap<String, String> {
//
// public IntString(String tit) {
// this.put("", tit);
// }
//
// public void setDefLang(String def) {
// this.put("_def", ... | private UpdateStamp last_update = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/request/OauthRequestService.java | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/Auth.java
// public class Auth {
//
// /**
// * @see AuthTypeEnum. Default value is {@link AuthTypeEnum#none}
// */
// private String type = AuthTypeEnum.none.toString();
// private String apiKey;
// private String apiSecret;
// priv... | import org.scribe.builder.ServiceBuilder;
import org.scribe.model.OAuthRequest;
import org.scribe.model.Response;
import org.scribe.model.Token;
import org.scribe.model.Verb;
import org.scribe.oauth.OAuthService;
import es.alrocar.poiproxy.configuration.Auth;
import es.alrocar.poiproxy.configuration.AuthTypeEnum; |
/*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/Auth.java
// public class Auth {
//
// /**
// * @see AuthTypeEnum. Default value is {@link AuthTypeEnum#none}
// */
// private String type = AuthTypeEnum.none.toString();
// private String apiKey;
// private String apiSecret;
// priv... | Auth authElem) throws Exception { |
Prodevelop/POIProxy | es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/request/OauthRequestService.java | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/Auth.java
// public class Auth {
//
// /**
// * @see AuthTypeEnum. Default value is {@link AuthTypeEnum#none}
// */
// private String type = AuthTypeEnum.none.toString();
// private String apiKey;
// private String apiSecret;
// priv... | import org.scribe.builder.ServiceBuilder;
import org.scribe.model.OAuthRequest;
import org.scribe.model.Response;
import org.scribe.model.Token;
import org.scribe.model.Verb;
import org.scribe.oauth.OAuthService;
import es.alrocar.poiproxy.configuration.Auth;
import es.alrocar.poiproxy.configuration.AuthTypeEnum; |
/*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/Auth.java
// public class Auth {
//
// /**
// * @see AuthTypeEnum. Default value is {@link AuthTypeEnum#none}
// */
// private String type = AuthTypeEnum.none.toString();
// private String apiKey;
// private String apiSecret;
// priv... | AuthTypeEnum authType = AuthTypeEnum.valueOf(authElem.getType()); |
Prodevelop/POIProxy | es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/observer/VectorialProviderListener.java | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | import java.util.ArrayList;
import es.alrocar.map.vector.provider.driver.ProviderDriver;
import es.prodevelop.gvsig.mini.utiles.Cancellable; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | Cancellable cancellable, ProviderDriver driver, int zoomLevel); |
Prodevelop/POIProxy | es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/request/RequestService.java | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/Auth.java
// public class Auth {
//
// /**
// * @see AuthTypeEnum. Default value is {@link AuthTypeEnum#none}
// */
// private String type = AuthTypeEnum.none.toString();
// private String apiKey;
// private String apiSecret;
// priv... | import es.alrocar.poiproxy.configuration.Auth; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/Auth.java
// public class Auth {
//
// /**
// * @see AuthTypeEnum. Default value is {@link AuthTypeEnum#none}
// */
// private String type = AuthTypeEnum.none.toString();
// private String apiKey;
// private String apiSecret;
// priv... | Auth authElement) throws Exception; |
Prodevelop/POIProxy | es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/servlet/BrowseQueryServerResource.java | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/ParamEnum.java
// public enum ParamEnum {
//
// QUERY("query"),
// APIKEY("apiKey"),
// SERVICE("service"),
// X("x"),
// Y("y"),
// Z("z"),
// MINX("minX"),
// MINY("minY"),
// MAXX("maxX"),
// MAXY("maxY"),
// LON("lon"),
// LAT... | import java.util.ArrayList;
import es.alrocar.poiproxy.configuration.ParamEnum; | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.poiproxy/src/main/java/es/alrocar/poiproxy/configuration/ParamEnum.java
// public enum ParamEnum {
//
// QUERY("query"),
// APIKEY("apiKey"),
// SERVICE("service"),
// X("x"),
// Y("y"),
// Z("z"),
// MINX("minX"),
// MINY("minY"),
// MAXX("maxX"),
// MAXY("maxY"),
// LON("lon"),
// LAT... | optParams.add(ParamEnum.QUERY.name); |
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_marker_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | import java.util.HashMap;
import java.util.Map;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | private Source source = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_marker_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | import java.util.HashMap;
import java.util.Map;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, String> {
//
// public Source() {
//
// }
//
// public void setName(String name) {
// this.put("name", name);
// // website id license
// }... | private UpdateStamp last_update = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/POISet.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/DateTypeAdapter.java
// public class DateTypeAdapter extends TypeAdapter<Date> {
// /**
// * yyyy/MM/dd HH:mm:ss
// */
// public static final String DEFAULT_FORMAT = "yyyy/MM/dd HH:mm:ss";
//
// private String ... | import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.DateTypeAdapter;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/DateTypeAdapter.java
// public class DateTypeAdapter extends TypeAdapter<Date> {
// /**
// * yyyy/MM/dd HH:mm:ss
// */
// public static final String DEFAULT_FORMAT = "yyyy/MM/dd HH:mm:ss";
//
// private String ... | lObjJson.registerTypeAdapter(Date.class, new DateTypeAdapter());
|
Prodevelop/POIProxy | es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/strategy/impl/BBoxTiledStrategy.java | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | import java.util.ArrayList;
import es.alrocar.map.vector.provider.driver.ProviderDriver;
import es.alrocar.map.vector.provider.observer.VectorialProviderListener;
import es.prodevelop.gvsig.mini.geom.Extent;
import es.prodevelop.gvsig.mini.geom.Point;
import es.prodevelop.gvsig.mini.utiles.Cancellable;
import es.prodev... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | Extent viewExtent, VectorialProviderListener observer, |
Prodevelop/POIProxy | es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/strategy/impl/BBoxTiledStrategy.java | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | import java.util.ArrayList;
import es.alrocar.map.vector.provider.driver.ProviderDriver;
import es.alrocar.map.vector.provider.observer.VectorialProviderListener;
import es.prodevelop.gvsig.mini.geom.Extent;
import es.prodevelop.gvsig.mini.geom.Point;
import es.prodevelop.gvsig.mini.utiles.Cancellable;
import es.prodev... | /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | // Path: es.alrocar.map.vector/src/main/java/es/alrocar/map/vector/provider/driver/ProviderDriver.java
// public interface ProviderDriver {
//
// public ArrayList getData(int[] tile, Extent booundingBox,
// Cancellable cancellable, int zoom);
//
// public boolean needsExtentToWork();
//
// public String getSRS... | final ProviderDriver driver = getProvider().getDriver(); |
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_time_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Schedule.java
// public class Schedule {
//
// }
//
// Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, ... | import es.alrocar.poiproxy.fiware.poidp.schema.utils.Schedule;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Schedule.java
// public class Schedule {
//
// }
//
// Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, ... | private Schedule schedule = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_time_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Schedule.java
// public class Schedule {
//
// }
//
// Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, ... | import es.alrocar.poiproxy.fiware.poidp.schema.utils.Schedule;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Schedule.java
// public class Schedule {
//
// }
//
// Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, ... | private Source source = null;
|
Prodevelop/POIProxy | es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/fw_time_class.java | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Schedule.java
// public class Schedule {
//
// }
//
// Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, ... | import es.alrocar.poiproxy.fiware.poidp.schema.utils.Schedule;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.Source;
import es.alrocar.poiproxy.fiware.poidp.schema.utils.UpdateStamp;
| /*
* Licensed to Prodevelop SL under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Prodevelop SL licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... | // Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Schedule.java
// public class Schedule {
//
// }
//
// Path: es.alrocar.poiproxy.fiware.poidp/src/main/java/es/alrocar/poiproxy/fiware/poidp/schema/utils/Source.java
// public class Source extends HashMap<String, ... | private UpdateStamp last_update = null;
|
OHDSI/WhiteRabbit | rabbitinahat/src/main/java/org/ohdsi/rabbitInAHat/LabeledRectangle.java | // Path: rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/MappableItem.java
// public interface MappableItem extends Serializable{
// public String outputName();
// public String getName();
// public Database getDb();
// public boolean isStem();
// public void setStem(boolean isStem);
// }
| import org.ohdsi.rabbitInAHat.dataModel.MappableItem;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Stroke;
import java.awt.geom.Rectangle2D;
import java.util.A... | /*******************************************************************************
* Copyright 2019 Observational Health Data Sciences and Informatics
*
* This file is part of WhiteRabbit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | // Path: rabbit-core/src/main/java/org/ohdsi/rabbitInAHat/dataModel/MappableItem.java
// public interface MappableItem extends Serializable{
// public String outputName();
// public String getName();
// public Database getDb();
// public boolean isStem();
// public void setStem(boolean isStem);
// }
// Pa... | private MappableItem item;
|
OHDSI/WhiteRabbit | whiterabbit/src/main/java/org/ohdsi/whiteRabbit/DbSettings.java | // Path: rabbit-core/src/main/java/org/ohdsi/databases/DbType.java
// public class DbType {
// public static DbType MYSQL = new DbType("mysql");
// public static DbType MSSQL = new DbType("mssql");
// public static DbType PDW = new DbType("pdw");
// public static DbType ORACLE = new DbType("oracle");
// ... | import java.util.ArrayList;
import java.util.List;
import org.apache.commons.csv.CSVFormat;
import org.ohdsi.databases.DbType;
| /*******************************************************************************
* Copyright 2019 Observational Health Data Sciences and Informatics
*
* This file is part of WhiteRabbit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | // Path: rabbit-core/src/main/java/org/ohdsi/databases/DbType.java
// public class DbType {
// public static DbType MYSQL = new DbType("mysql");
// public static DbType MSSQL = new DbType("mssql");
// public static DbType PDW = new DbType("pdw");
// public static DbType ORACLE = new DbType("oracle");
// ... | public DbType dbType;
|
OHDSI/WhiteRabbit | rabbitinahat/src/main/java/org/ohdsi/rabbitInAHat/MappingPanel.java | // Path: rabbit-core/src/main/java/org/ohdsi/utilities/collections/IntegerComparator.java
// public class IntegerComparator implements Comparator<Integer> {
//
// @Override
// public int compare(Integer arg0, Integer arg1) {
// if (arg0 < arg1)
// return -1;
// else if (arg0 > arg1)
// return 1;
/... | import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.Toolkit;
import java.awt.event.Ac... | if (dragArrow != null) {
if (event.getX() < sourceX + ITEM_WIDTH + Arrow.headThickness)
dragArrow.setTargetPoint(null);
else
dragArrow.setTargetPoint(event.getPoint());
repaint();
}
this.scrollRectToVisible(new Rectangle(event.getX() - 40, event.getY() - 40, 80, 80));
}
@Override
... | // Path: rabbit-core/src/main/java/org/ohdsi/utilities/collections/IntegerComparator.java
// public class IntegerComparator implements Comparator<Integer> {
//
// @Override
// public int compare(Integer arg0, Integer arg1) {
// if (arg0 < arg1)
// return -1;
// else if (arg0 > arg1)
// return 1;
/... | return IntegerComparator.compare(o1.getY(), o2.getY());
|
OHDSI/WhiteRabbit | rabbitinahat/src/main/java/org/ohdsi/rabbitInAHat/dataModel/StemTableFactory.java | // Path: rabbit-core/src/main/java/org/ohdsi/utilities/collections/Pair.java
// public class Pair<A, B> implements Serializable {
//
// private A object1;
// private B object2;
// private static final long serialVersionUID = 1784282381416947673L;
//
// public Pair(A item1, B item2) {
// this.ob... | import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.swing.JOptionPane;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVRecord;
import ... | sourceDatabase.getTables().add(sourceStemTable);
Table targetStemTable = new Table(sourceStemTable);
targetStemTable.setDb(targetDatabase);
targetDatabase.getTables().add(targetStemTable);
Mapping<Table> mapping = etl.getTableToTableMapping();
Map<String, Table> nameToTable = new HashMap<>();
... | // Path: rabbit-core/src/main/java/org/ohdsi/utilities/collections/Pair.java
// public class Pair<A, B> implements Serializable {
//
// private A object1;
// private B object2;
// private static final long serialVersionUID = 1784282381416947673L;
//
// public Pair(A item1, B item2) {
// this.ob... | List<Pair<Table, Table>> tablesMappingsToRemove = new ArrayList<>();
|
OHDSI/WhiteRabbit | rabbitinahat/src/main/java/org/ohdsi/rabbitInAHat/ETLTestFrameWorkGenerator.java | // Path: rabbitinahat/src/main/java/org/ohdsi/rabbitInAHat/dataModel/ETL.java
// public enum FileFormat {
// Binary, Json, GzipJson
// }
| import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;
impo... | /*******************************************************************************
* Copyright 2019 Observational Health Data Sciences and Informatics
*
* This file is part of WhiteRabbit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | // Path: rabbitinahat/src/main/java/org/ohdsi/rabbitInAHat/dataModel/ETL.java
// public enum FileFormat {
// Binary, Json, GzipJson
// }
// Path: rabbitinahat/src/main/java/org/ohdsi/rabbitInAHat/ETLTestFrameWorkGenerator.java
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.IOEx... | ETL etl = ETL.fromFile("C:\\Home\\Research\\ETLs\\JMDC ETL\\JMDC ETL CDMv5\\JMDC to CDMv5 ETL v08.json.gz", FileFormat.GzipJson);
|
OHDSI/WhiteRabbit | whiterabbit/src/main/java/org/ohdsi/whiteRabbit/Console.java | // Path: rabbit-core/src/main/java/org/ohdsi/utilities/files/WriteTextFile.java
// public class WriteTextFile {
//
// public WriteTextFile(String filename){
// FileOutputStream stream;
// try {
// stream = new FileOutputStream(filename);
// bufferedWrite = new BufferedWriter( new OutputSt... | import java.io.IOException;
import java.io.OutputStream;
import javax.swing.JTextArea;
import javax.swing.text.BadLocationException;
import org.ohdsi.utilities.files.WriteTextFile;
| /*******************************************************************************
* Copyright 2019 Observational Health Data Sciences and Informatics
*
* This file is part of WhiteRabbit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | // Path: rabbit-core/src/main/java/org/ohdsi/utilities/files/WriteTextFile.java
// public class WriteTextFile {
//
// public WriteTextFile(String filename){
// FileOutputStream stream;
// try {
// stream = new FileOutputStream(filename);
// bufferedWrite = new BufferedWriter( new OutputSt... | private WriteTextFile debug = null;
|
yuqirong/Koku | app/src/main/java/com/yuqirong/koku/fragment/BaseFragment.java | // Path: app/src/main/java/com/yuqirong/koku/application/MyApplication.java
// public class MyApplication extends Application {
//
// private static Context context;
// private static ThreadPoolExecutor executor;
// private static final int CPU_COUNT = Runtime.getRuntime().availableProcessors();
// pri... | import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android... | package com.yuqirong.koku.fragment;
/**
* Created by Anyway on 2015/8/28.
*/
public abstract class BaseFragment extends Fragment {
public Context context;
protected RequestQueue mQueue;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | // Path: app/src/main/java/com/yuqirong/koku/application/MyApplication.java
// public class MyApplication extends Application {
//
// private static Context context;
// private static ThreadPoolExecutor executor;
// private static final int CPU_COUNT = Runtime.getRuntime().availableProcessors();
// pri... | mQueue = MyApplication.getRequestQueue(); |
yuqirong/Koku | app/src/main/java/com/yuqirong/koku/view/CropImageView.java | // Path: app/src/main/java/com/yuqirong/koku/util/ImageUtils.java
// public class ImageUtils {
// public static Bitmap getResizeBitmap(String path, int[] imageSize) {
// BitmapFactory.Options options = new BitmapFactory.Options();
// options.inJustDecodeBounds = true; // only get bitmap infomation
/... | import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PointF;
import android.graphics.Rect;
import android.os.Build;
import... | int x1 = (int) (f[0] * 0 + f[1] * 0 + f[2]);
int y1 = (int) (f[3] * 0 + f[4] * 0 + f[5]);
int x2 = (int) (f[0] * mBitmap.getWidth() + f[1] * 0 + f[2]);
int y2 = (int) (f[3] * mBitmap.getWidth() + f[4] * 0 + f[5]);
int x3 = (int) (f[0] * 0 + f[1] * mBitmap.getHeight() + f[2]);
... | // Path: app/src/main/java/com/yuqirong/koku/util/ImageUtils.java
// public class ImageUtils {
// public static Bitmap getResizeBitmap(String path, int[] imageSize) {
// BitmapFactory.Options options = new BitmapFactory.Options();
// options.inJustDecodeBounds = true; // only get bitmap infomation
/... | mBitmap = ImageUtils.getResizeBitmap(imagePath, imageSize); |
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/criteria/PageableRestriction.java | // Path: src/main/java/in/cubestack/android/lib/storm/core/StormRuntimeException.java
// public class StormRuntimeException extends RuntimeException {
//
// private static final long serialVersionUID = -563476450614494464L;
//
//
// public StormRuntimeException(String msg) {
// super(msg);
// }
//
//... | import in.cubestack.android.lib.storm.core.StormRuntimeException;
import in.cubestack.android.lib.storm.core.TableInformation; | /**
*
*/
package in.cubestack.android.lib.storm.criteria;
/**
* @author supal
*
*/
public abstract class PageableRestriction implements Restriction {
private static final String OFF_ST = " OFFSET ";
private static final String LMT = " LIMIT ";
private static final int PAGE_SIZE = 20;
protected static f... | // Path: src/main/java/in/cubestack/android/lib/storm/core/StormRuntimeException.java
// public class StormRuntimeException extends RuntimeException {
//
// private static final long serialVersionUID = -563476450614494464L;
//
//
// public StormRuntimeException(String msg) {
// super(msg);
// }
//
//... | private TableInformation tableInfo; |
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/criteria/PageableRestriction.java | // Path: src/main/java/in/cubestack/android/lib/storm/core/StormRuntimeException.java
// public class StormRuntimeException extends RuntimeException {
//
// private static final long serialVersionUID = -563476450614494464L;
//
//
// public StormRuntimeException(String msg) {
// super(msg);
// }
//
//... | import in.cubestack.android.lib.storm.core.StormRuntimeException;
import in.cubestack.android.lib.storm.core.TableInformation; | /**
*
*/
package in.cubestack.android.lib.storm.criteria;
/**
* @author supal
*
*/
public abstract class PageableRestriction implements Restriction {
private static final String OFF_ST = " OFFSET ";
private static final String LMT = " LIMIT ";
private static final int PAGE_SIZE = 20;
protected static f... | // Path: src/main/java/in/cubestack/android/lib/storm/core/StormRuntimeException.java
// public class StormRuntimeException extends RuntimeException {
//
// private static final long serialVersionUID = -563476450614494464L;
//
//
// public StormRuntimeException(String msg) {
// super(msg);
// }
//
//... | throw new StormRuntimeException( |
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/annotation/Database.java | // Path: src/main/java/in/cubestack/android/lib/storm/lifecycle/BasicDatabaseUpdateHandler.java
// public class BasicDatabaseUpdateHandler implements DatabaseUpdatesHandler {
//
// @Override
// public void onCreate(SQLiteDatabase db) {
//
// }
//
// @Override
// public void onUpgrade(SQLiteDatabase db... | import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import in.cubestack.android.lib.storm.lifecycle.BasicDatabaseUpdateHandler;
import in.cubestack.android.lib.storm.lifecycle.DatabaseUpdatesHandler;
| /**
* A core Android SQLite ORM framework build for speed and raw execution.
* Copyright (c) 2016 CubeStack. Built for performance, scalability and ease to use.
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "So... | // Path: src/main/java/in/cubestack/android/lib/storm/lifecycle/BasicDatabaseUpdateHandler.java
// public class BasicDatabaseUpdateHandler implements DatabaseUpdatesHandler {
//
// @Override
// public void onCreate(SQLiteDatabase db) {
//
// }
//
// @Override
// public void onUpgrade(SQLiteDatabase db... | Class<? extends DatabaseUpdatesHandler> handler() default BasicDatabaseUpdateHandler.class;
|
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/annotation/Database.java | // Path: src/main/java/in/cubestack/android/lib/storm/lifecycle/BasicDatabaseUpdateHandler.java
// public class BasicDatabaseUpdateHandler implements DatabaseUpdatesHandler {
//
// @Override
// public void onCreate(SQLiteDatabase db) {
//
// }
//
// @Override
// public void onUpgrade(SQLiteDatabase db... | import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import in.cubestack.android.lib.storm.lifecycle.BasicDatabaseUpdateHandler;
import in.cubestack.android.lib.storm.lifecycle.DatabaseUpdatesHandler;
| /**
* A core Android SQLite ORM framework build for speed and raw execution.
* Copyright (c) 2016 CubeStack. Built for performance, scalability and ease to use.
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "So... | // Path: src/main/java/in/cubestack/android/lib/storm/lifecycle/BasicDatabaseUpdateHandler.java
// public class BasicDatabaseUpdateHandler implements DatabaseUpdatesHandler {
//
// @Override
// public void onCreate(SQLiteDatabase db) {
//
// }
//
// @Override
// public void onUpgrade(SQLiteDatabase db... | Class<? extends DatabaseUpdatesHandler> handler() default BasicDatabaseUpdateHandler.class;
|
supaldubey/storm | src/test/java/in/cubestack/android/lib/storm/AllTests.java | // Path: src/test/java/in/cubestack/android/lib/storm/core/AllCoreTests.java
// @RunWith(Suite.class)
// @SuiteClasses({
// AliasGeneratorTest.class,
// MetaReaderTest.class,
// QueryGeneratorTest.class
// })
// public class AllCoreTests {
//
// }
//
// Path: src/test/java/in/cubestack/android/lib/... | import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import in.cubestack.android.lib.storm.core.AllCoreTests;
import in.cubestack.android.lib.storm.criteria.AllCriteriaTests;
import in.cubestack.android.lib.storm.service.AllServiceTests;
| /**
*
*/
package in.cubestack.android.lib.storm;
/**
* A core Android SQLite ORM framework build for speed and raw execution.
* Copyright (c) 2011 Supal Dubey, supal.dubey@gmail.com
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | // Path: src/test/java/in/cubestack/android/lib/storm/core/AllCoreTests.java
// @RunWith(Suite.class)
// @SuiteClasses({
// AliasGeneratorTest.class,
// MetaReaderTest.class,
// QueryGeneratorTest.class
// })
// public class AllCoreTests {
//
// }
//
// Path: src/test/java/in/cubestack/android/lib/... | AllCoreTests.class,
|
supaldubey/storm | src/test/java/in/cubestack/android/lib/storm/AllTests.java | // Path: src/test/java/in/cubestack/android/lib/storm/core/AllCoreTests.java
// @RunWith(Suite.class)
// @SuiteClasses({
// AliasGeneratorTest.class,
// MetaReaderTest.class,
// QueryGeneratorTest.class
// })
// public class AllCoreTests {
//
// }
//
// Path: src/test/java/in/cubestack/android/lib/... | import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import in.cubestack.android.lib.storm.core.AllCoreTests;
import in.cubestack.android.lib.storm.criteria.AllCriteriaTests;
import in.cubestack.android.lib.storm.service.AllServiceTests;
| /**
*
*/
package in.cubestack.android.lib.storm;
/**
* A core Android SQLite ORM framework build for speed and raw execution.
* Copyright (c) 2011 Supal Dubey, supal.dubey@gmail.com
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | // Path: src/test/java/in/cubestack/android/lib/storm/core/AllCoreTests.java
// @RunWith(Suite.class)
// @SuiteClasses({
// AliasGeneratorTest.class,
// MetaReaderTest.class,
// QueryGeneratorTest.class
// })
// public class AllCoreTests {
//
// }
//
// Path: src/test/java/in/cubestack/android/lib/... | AllCriteriaTests.class,
|
supaldubey/storm | src/test/java/in/cubestack/android/lib/storm/AllTests.java | // Path: src/test/java/in/cubestack/android/lib/storm/core/AllCoreTests.java
// @RunWith(Suite.class)
// @SuiteClasses({
// AliasGeneratorTest.class,
// MetaReaderTest.class,
// QueryGeneratorTest.class
// })
// public class AllCoreTests {
//
// }
//
// Path: src/test/java/in/cubestack/android/lib/... | import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import in.cubestack.android.lib.storm.core.AllCoreTests;
import in.cubestack.android.lib.storm.criteria.AllCriteriaTests;
import in.cubestack.android.lib.storm.service.AllServiceTests;
| /**
*
*/
package in.cubestack.android.lib.storm;
/**
* A core Android SQLite ORM framework build for speed and raw execution.
* Copyright (c) 2011 Supal Dubey, supal.dubey@gmail.com
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | // Path: src/test/java/in/cubestack/android/lib/storm/core/AllCoreTests.java
// @RunWith(Suite.class)
// @SuiteClasses({
// AliasGeneratorTest.class,
// MetaReaderTest.class,
// QueryGeneratorTest.class
// })
// public class AllCoreTests {
//
// }
//
// Path: src/test/java/in/cubestack/android/lib/... | AllServiceTests.class
|
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/core/QueryGenerator.java | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | import in.cubestack.android.lib.storm.FetchType;
import in.cubestack.android.lib.storm.SortOrder;
import in.cubestack.android.lib.storm.criteria.Order;
import in.cubestack.android.lib.storm.criteria.Projection;
import in.cubestack.android.lib.storm.criteria.Restriction;
import in.cubestack.android.lib.storm.criter... | /**
*
*/
package in.cubestack.android.lib.storm.core;
/**
* A core Android SQLite ORM framework build for speed and raw execution.
* Copyright (c) 2014 CubeStack. Version built for Flash Back..
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software ... | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | public String rawQuery(Class<?> entityClass, Restriction restriction, Projection projection) throws IllegalArgumentException, IllegalAccessException, InstantiationException, StormException {
|
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/core/QueryGenerator.java | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | import in.cubestack.android.lib.storm.FetchType;
import in.cubestack.android.lib.storm.SortOrder;
import in.cubestack.android.lib.storm.criteria.Order;
import in.cubestack.android.lib.storm.criteria.Projection;
import in.cubestack.android.lib.storm.criteria.Restriction;
import in.cubestack.android.lib.storm.criter... | /**
*
*/
package in.cubestack.android.lib.storm.core;
/**
* A core Android SQLite ORM framework build for speed and raw execution.
* Copyright (c) 2014 CubeStack. Version built for Flash Back..
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software ... | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | public String rawQuery(Class<?> entityClass, Restriction restriction, Projection projection) throws IllegalArgumentException, IllegalAccessException, InstantiationException, StormException {
|
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/core/QueryGenerator.java | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | import in.cubestack.android.lib.storm.FetchType;
import in.cubestack.android.lib.storm.SortOrder;
import in.cubestack.android.lib.storm.criteria.Order;
import in.cubestack.android.lib.storm.criteria.Projection;
import in.cubestack.android.lib.storm.criteria.Restriction;
import in.cubestack.android.lib.storm.criter... |
public String rawQuery(Class<?> entityClass, Restriction restriction, Projection projection) throws IllegalArgumentException, IllegalAccessException, InstantiationException, StormException {
return rawQuery(EntityMetaDataCache.getMetaData(entityClass), restriction, projection, null);
}
public String delet... | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | if (relationMetaData.getFetchType() == FetchType.EAGER) {
|
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/core/QueryGenerator.java | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | import in.cubestack.android.lib.storm.FetchType;
import in.cubestack.android.lib.storm.SortOrder;
import in.cubestack.android.lib.storm.criteria.Order;
import in.cubestack.android.lib.storm.criteria.Projection;
import in.cubestack.android.lib.storm.criteria.Restriction;
import in.cubestack.android.lib.storm.criter... | return sql.toString();
}
private boolean isEmpty(String joinOnColumn) {
return joinOnColumn == null || "".equals(joinOnColumn);
}
private String validateClause(String alias, TableInformation tableInformation) {
String column = tableInformation.getColumnName(alias);
//Probably impossible, as the... | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | for (SQLFunction sqlFunction : projection.getAggregateFunctions()) {
|
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/core/QueryGenerator.java | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | import in.cubestack.android.lib.storm.FetchType;
import in.cubestack.android.lib.storm.SortOrder;
import in.cubestack.android.lib.storm.criteria.Order;
import in.cubestack.android.lib.storm.criteria.Projection;
import in.cubestack.android.lib.storm.criteria.Restriction;
import in.cubestack.android.lib.storm.criter... |
public String insertQuery(TableInformation tableInformation, boolean autoGenerate) throws IllegalArgumentException, IllegalAccessException,
InstantiationException {
StringBuilder insert = new StringBuilder(INSERT_INTO).append(tableInformation.getTableName()).append(OPEN_BRACES);
if ( ! autoGenerate) {
... | // Path: src/main/java/in/cubestack/android/lib/storm/FetchType.java
// public enum FetchType {
//
// EAGER, LAZY;
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/SortOrder.java
// public enum SortOrder {
// ASC,
// DESC
// }
//
// Path: src/main/java/in/cubestack/android/lib/storm/cri... | public String orderBy(String[] props, TableInformation information, SortOrder order) {
|
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/annotation/Column.java | // Path: src/main/java/in/cubestack/android/lib/storm/FieldType.java
// public enum FieldType {
//
// INTEGER ,
// TEXT ,
// REAL,
// OBJECT, LONG, DOUBLE ;
//
// public String getEscapeString() {
// return "''";
// }
//
// public static final String STD_DATE_FORMAT = "... | import in.cubestack.android.lib.storm.FieldType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
| /**
* A core Android SQLite ORM framework build for speed and raw execution.
* Copyright (c) 2016 CubeStack. Built for performance, scalability and ease to use.
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "So... | // Path: src/main/java/in/cubestack/android/lib/storm/FieldType.java
// public enum FieldType {
//
// INTEGER ,
// TEXT ,
// REAL,
// OBJECT, LONG, DOUBLE ;
//
// public String getEscapeString() {
// return "''";
// }
//
// public static final String STD_DATE_FORMAT = "... | FieldType type();
|
supaldubey/storm | src/main/java/in/cubestack/android/lib/storm/service/StormService.java | // Path: src/main/java/in/cubestack/android/lib/storm/core/StormException.java
// public class StormException extends Exception {
//
// private static final long serialVersionUID = -563476450614494464L;
//
// public StormException(Throwable throwable) {
// super(throwable);
// }
//
// public StormExce... | import in.cubestack.android.lib.storm.core.StormException;
import in.cubestack.android.lib.storm.criteria.Order;
import in.cubestack.android.lib.storm.criteria.Projection;
import in.cubestack.android.lib.storm.criteria.Restriction;
import in.cubestack.android.lib.storm.criteria.Restrictions;
import java.util.Colle... | package in.cubestack.android.lib.storm.service;
/**
* A core Android SQLite ORM framework build for speed and raw execution.
* Copyright (c) 2014 CubeStack. Version built for Flash Back..
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | // Path: src/main/java/in/cubestack/android/lib/storm/core/StormException.java
// public class StormException extends Exception {
//
// private static final long serialVersionUID = -563476450614494464L;
//
// public StormException(Throwable throwable) {
// super(throwable);
// }
//
// public StormExce... | public <E> Restrictions restrictionsFor(Class<E> entity) throws StormException;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.