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 |
|---|---|---|---|---|---|---|
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/di/AppComponent.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginComponent.java
// @Subcomponent(modules = LoginModule.class)
// public interface LoginComponent {
// LoginActivity inject(LoginActivity loginActivity);
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginM... | import com.zhy.authproject.module.login.LoginComponent;
import com.zhy.authproject.module.login.LoginModule;
import javax.inject.Singleton;
import dagger.Component; | package com.zhy.authproject.di;
/**
* Created by zhanghaoye on 10/24/16.
*/
@Singleton
@Component(modules = {AppModule.class, ApiModule.class})
public interface AppComponent { | // Path: AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginComponent.java
// @Subcomponent(modules = LoginModule.class)
// public interface LoginComponent {
// LoginActivity inject(LoginActivity loginActivity);
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginM... | LoginComponent plus(LoginModule loginModule); |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/data/remote/ApiManager.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponseFunc.java
// public class BaseResponseFunc<T> implements Func1<BaseResponse<T>, Observable<T>> {... | import android.app.Application;
import android.content.Context;
import com.zhy.authproject.data.remote.model.ActivityInfo;
import com.zhy.authproject.data.remote.model.BaseResponseFunc;
import com.zhy.authproject.data.remote.model.CommonInfo;
import com.zhy.authproject.data.remote.model.User;
import rx.android.schedule... | package com.zhy.authproject.data.remote;
/**
* Created by zhanghaoye on 10/24/16.
*/
public class ApiManager {
private final ApiService apiService;
private final Application application;
public ApiManager(ApiService apiService, Application application) {
this.apiService = apiService;
... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponseFunc.java
// public class BaseResponseFunc<T> implements Func1<BaseResponse<T>, Observable<T>> {... | public void login(Context context,String username, String password, SimpleCallback<User> simpleCallback,boolean isShow){ |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/data/remote/ApiManager.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponseFunc.java
// public class BaseResponseFunc<T> implements Func1<BaseResponse<T>, Observable<T>> {... | import android.app.Application;
import android.content.Context;
import com.zhy.authproject.data.remote.model.ActivityInfo;
import com.zhy.authproject.data.remote.model.BaseResponseFunc;
import com.zhy.authproject.data.remote.model.CommonInfo;
import com.zhy.authproject.data.remote.model.User;
import rx.android.schedule... | package com.zhy.authproject.data.remote;
/**
* Created by zhanghaoye on 10/24/16.
*/
public class ApiManager {
private final ApiService apiService;
private final Application application;
public ApiManager(ApiService apiService, Application application) {
this.apiService = apiService;
... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponseFunc.java
// public class BaseResponseFunc<T> implements Func1<BaseResponse<T>, Observable<T>> {... | .flatMap(new BaseResponseFunc<User>()) |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/data/remote/ApiManager.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponseFunc.java
// public class BaseResponseFunc<T> implements Func1<BaseResponse<T>, Observable<T>> {... | import android.app.Application;
import android.content.Context;
import com.zhy.authproject.data.remote.model.ActivityInfo;
import com.zhy.authproject.data.remote.model.BaseResponseFunc;
import com.zhy.authproject.data.remote.model.CommonInfo;
import com.zhy.authproject.data.remote.model.User;
import rx.android.schedule... | package com.zhy.authproject.data.remote;
/**
* Created by zhanghaoye on 10/24/16.
*/
public class ApiManager {
private final ApiService apiService;
private final Application application;
public ApiManager(ApiService apiService, Application application) {
this.apiService = apiService;
... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponseFunc.java
// public class BaseResponseFunc<T> implements Func1<BaseResponse<T>, Observable<T>> {... | public void getActivities(Context context,String id,String user_id,String access_token,SimpleCallback<ActivityInfo> simpleCallback){ |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/data/remote/ApiManager.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponseFunc.java
// public class BaseResponseFunc<T> implements Func1<BaseResponse<T>, Observable<T>> {... | import android.app.Application;
import android.content.Context;
import com.zhy.authproject.data.remote.model.ActivityInfo;
import com.zhy.authproject.data.remote.model.BaseResponseFunc;
import com.zhy.authproject.data.remote.model.CommonInfo;
import com.zhy.authproject.data.remote.model.User;
import rx.android.schedule... | package com.zhy.authproject.data.remote;
/**
* Created by zhanghaoye on 10/24/16.
*/
public class ApiManager {
private final ApiService apiService;
private final Application application;
public ApiManager(ApiService apiService, Application application) {
this.apiService = apiService;
... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponseFunc.java
// public class BaseResponseFunc<T> implements Func1<BaseResponse<T>, Observable<T>> {... | public void modifyActivity(Context context,String activity_id,String user_id, String access_token,SimpleCallback<CommonInfo> simpleCallback){ |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/di/AppModule.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | import android.app.Application;
import com.zhy.authproject.data.local.PreferencesManager;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides; | package com.zhy.authproject.di;
/**
* Created by zhanghaoye on 10/24/16.
*/
@Module
public class AppModule {
private final Application application;
public AppModule(Application application) {
this.application = application;
}
@Provides
@Singleton
public Application provideApplic... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | public PreferencesManager provideSharedPreferences(){ |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginActivity.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/AuthApplication.java
// public class AuthApplication extends Application{
// private AppComponent appComponent;
//
// public static AuthApplication get(Context context){
// return (AuthApplication) context.getApplicationContext();
// }
//
... | import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.app.LoaderManager.LoaderCallbacks;
import android.content.CursorLoader;
import android.content.Loader;
import android.content.pm.PackageManager;
import android.database.Cursor;
import... | // Set up the login form.
mEmailView = (AutoCompleteTextView) findViewById(R.id.email);
populateAutoComplete();
mPasswordView = (EditText) findViewById(R.id.password);
mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/AuthApplication.java
// public class AuthApplication extends Application{
// private AppComponent appComponent;
//
// public static AuthApplication get(Context context){
// return (AuthApplication) context.getApplicationContext();
// }
//
... | AuthApplication.get(this).getAppComponent().plus(new LoginModule(this)).inject(this); |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/data/remote/ApiService.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponse.java
// public class BaseResponse<T> {
//
// private int status_code;
// private Strin... | import com.zhy.authproject.data.remote.model.ActivityInfo;
import com.zhy.authproject.data.remote.model.BaseResponse;
import com.zhy.authproject.data.remote.model.CommonInfo;
import com.zhy.authproject.data.remote.model.User;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
... | package com.zhy.authproject.data.remote;
/**
* Created by zhanghaoye on 10/29/16.
*/
public interface ApiService {
String SERVER_URL = "http://127.0.0.1:3000/";
@FormUrlEncoded
@POST("/api/v1/authproject/login") | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponse.java
// public class BaseResponse<T> {
//
// private int status_code;
// private Strin... | Observable<BaseResponse<User>> login(@Field("phone") String username, @Field("password") String password); |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/data/remote/ApiService.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponse.java
// public class BaseResponse<T> {
//
// private int status_code;
// private Strin... | import com.zhy.authproject.data.remote.model.ActivityInfo;
import com.zhy.authproject.data.remote.model.BaseResponse;
import com.zhy.authproject.data.remote.model.CommonInfo;
import com.zhy.authproject.data.remote.model.User;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
... | package com.zhy.authproject.data.remote;
/**
* Created by zhanghaoye on 10/29/16.
*/
public interface ApiService {
String SERVER_URL = "http://127.0.0.1:3000/";
@FormUrlEncoded
@POST("/api/v1/authproject/login") | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponse.java
// public class BaseResponse<T> {
//
// private int status_code;
// private Strin... | Observable<BaseResponse<User>> login(@Field("phone") String username, @Field("password") String password); |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/data/remote/ApiService.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponse.java
// public class BaseResponse<T> {
//
// private int status_code;
// private Strin... | import com.zhy.authproject.data.remote.model.ActivityInfo;
import com.zhy.authproject.data.remote.model.BaseResponse;
import com.zhy.authproject.data.remote.model.CommonInfo;
import com.zhy.authproject.data.remote.model.User;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
... | package com.zhy.authproject.data.remote;
/**
* Created by zhanghaoye on 10/29/16.
*/
public interface ApiService {
String SERVER_URL = "http://127.0.0.1:3000/";
@FormUrlEncoded
@POST("/api/v1/authproject/login")
Observable<BaseResponse<User>> login(@Field("phone") String username, @Field("passwo... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponse.java
// public class BaseResponse<T> {
//
// private int status_code;
// private Strin... | Observable<BaseResponse<CommonInfo>> modifyActivity(@Path("id")String id,@Field("user_id") String user_id, @Field("access_token") String access_token); |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/data/remote/ApiService.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponse.java
// public class BaseResponse<T> {
//
// private int status_code;
// private Strin... | import com.zhy.authproject.data.remote.model.ActivityInfo;
import com.zhy.authproject.data.remote.model.BaseResponse;
import com.zhy.authproject.data.remote.model.CommonInfo;
import com.zhy.authproject.data.remote.model.User;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
... | package com.zhy.authproject.data.remote;
/**
* Created by zhanghaoye on 10/29/16.
*/
public interface ApiService {
String SERVER_URL = "http://127.0.0.1:3000/";
@FormUrlEncoded
@POST("/api/v1/authproject/login")
Observable<BaseResponse<User>> login(@Field("phone") String username, @Field("passwo... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/ActivityInfo.java
// public class ActivityInfo {
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/data/remote/model/BaseResponse.java
// public class BaseResponse<T> {
//
// private int status_code;
// private Strin... | Observable<BaseResponse<ActivityInfo>> getActivityInfo(@Path("id")String id,String user_id,@Query("access_token") String access_token); |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginPresenter.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | import android.app.Activity;
import com.zhy.authproject.data.local.PreferencesManager;
import com.zhy.authproject.data.remote.ApiManager;
import com.zhy.authproject.data.remote.SimpleCallback;
import com.zhy.authproject.data.remote.model.User; | package com.zhy.authproject.module.login;
/**
* Created by zhanghaoye on 10/21/16.
*/
public class LoginPresenter {
private final LoginView loginView; | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | private final ApiManager apiManager; |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginPresenter.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | import android.app.Activity;
import com.zhy.authproject.data.local.PreferencesManager;
import com.zhy.authproject.data.remote.ApiManager;
import com.zhy.authproject.data.remote.SimpleCallback;
import com.zhy.authproject.data.remote.model.User; | package com.zhy.authproject.module.login;
/**
* Created by zhanghaoye on 10/21/16.
*/
public class LoginPresenter {
private final LoginView loginView;
private final ApiManager apiManager; | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | private final PreferencesManager preferencesManager; |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginPresenter.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | import android.app.Activity;
import com.zhy.authproject.data.local.PreferencesManager;
import com.zhy.authproject.data.remote.ApiManager;
import com.zhy.authproject.data.remote.SimpleCallback;
import com.zhy.authproject.data.remote.model.User; | package com.zhy.authproject.module.login;
/**
* Created by zhanghaoye on 10/21/16.
*/
public class LoginPresenter {
private final LoginView loginView;
private final ApiManager apiManager;
private final PreferencesManager preferencesManager;
public LoginPresenter(LoginView loginView,ApiManager api... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | apiManager.login((Activity) loginView, username, password, new SimpleCallback<User>() { |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/module/login/LoginPresenter.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | import android.app.Activity;
import com.zhy.authproject.data.local.PreferencesManager;
import com.zhy.authproject.data.remote.ApiManager;
import com.zhy.authproject.data.remote.SimpleCallback;
import com.zhy.authproject.data.remote.model.User; | package com.zhy.authproject.module.login;
/**
* Created by zhanghaoye on 10/21/16.
*/
public class LoginPresenter {
private final LoginView loginView;
private final ApiManager apiManager;
private final PreferencesManager preferencesManager;
public LoginPresenter(LoginView loginView,ApiManager api... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/data/local/PreferencesManager.java
// public class PreferencesManager {
// public static final String PREFERENCES_NAME = "androidarchitecture";
// private SharedPreferences sharedPreferences;
//
//
// public PreferencesManager(Application applicat... | apiManager.login((Activity) loginView, username, password, new SimpleCallback<User>() { |
xzwc/AndroidProject | AuthProject/app/src/main/java/com/zhy/authproject/AuthApplication.java | // Path: AuthProject/app/src/main/java/com/zhy/authproject/di/AppComponent.java
// @Singleton
// @Component(modules = {AppModule.class, ApiModule.class})
// public interface AppComponent {
// LoginComponent plus(LoginModule loginModule);
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/di/AppModu... | import android.app.Application;
import android.content.Context;
import com.zhy.authproject.di.AppComponent;
import com.zhy.authproject.di.AppModule;
import com.zhy.authproject.di.DaggerAppComponent; | package com.zhy.authproject;
/**
* Created by zhanghaoye on 10/21/16.
*/
public class AuthApplication extends Application{
private AppComponent appComponent;
public static AuthApplication get(Context context){
return (AuthApplication) context.getApplicationContext();
}
@Override
publ... | // Path: AuthProject/app/src/main/java/com/zhy/authproject/di/AppComponent.java
// @Singleton
// @Component(modules = {AppModule.class, ApiModule.class})
// public interface AppComponent {
// LoginComponent plus(LoginModule loginModule);
// }
//
// Path: AuthProject/app/src/main/java/com/zhy/authproject/di/AppModu... | appComponent = DaggerAppComponent.builder().appModule(new AppModule(this)).build(); |
swookiee/com.swookiee.runtime | com.swookiee.runtime.ewok/src/main/java/com/swookiee/runtime/ewok/auth/BasicAuthHttpContext.java | // Path: com.swookiee.runtime.authentication/src/main/java/com/swookiee/runtime/authentication/AuthenticationService.java
// public interface AuthenticationService {
//
// boolean validateUserCredentials(String username, String password);
//
// }
| import java.io.IOException;
import java.net.URL;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.bind.DatatypeConverter;
import org.osgi.service.http.HttpContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.swookiee.runtime.authentica... | /*******************************************************************************
* Copyright (c) 2014 Lars Pfannenschmidt, Tobias Ullrich and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this di... | // Path: com.swookiee.runtime.authentication/src/main/java/com/swookiee/runtime/authentication/AuthenticationService.java
// public interface AuthenticationService {
//
// boolean validateUserCredentials(String username, String password);
//
// }
// Path: com.swookiee.runtime.ewok/src/main/java/com/swookiee/run... | private final AuthenticationService authenticationService; |
swookiee/com.swookiee.runtime | com.swookiee.runtime.ewok/src/main/java/com/swookiee/runtime/ewok/util/ServletUtil.java | // Path: com.swookiee.runtime.ewok/src/main/java/com/swookiee/runtime/ewok/representation/ServiceRepresenation.java
// public class ServiceRepresenation {
//
// Map<String, Object> properties = new HashMap<>();
// String bundle;
// List<String> usingBundles = new ArrayList<>();
//
// public ServiceRep... | import java.io.IOException;
import java.util.Dictionary;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.f... | public static <T> void jsonResponse(final HttpServletResponse response, final T toJson)
throws IOException {
final String jsonResponse = mapper.writeValueAsString(toJson);
response.setContentType(APPLICATION_JSON);
response.getWriter().println(jsonResponse);
}
public sta... | // Path: com.swookiee.runtime.ewok/src/main/java/com/swookiee/runtime/ewok/representation/ServiceRepresenation.java
// public class ServiceRepresenation {
//
// Map<String, Object> properties = new HashMap<>();
// String bundle;
// List<String> usingBundles = new ArrayList<>();
//
// public ServiceRep... | public static void addServiceProperties(final ServiceReference<?> serviceReference, final ServiceRepresenation represenation) { |
swookiee/com.swookiee.runtime | com.swookiee.runtime.metrics.prometheus/src/main/java/com/swookiee/runtime/metrics/prometheus/servlet/MetricsService.java | // Path: com.swookiee.runtime.metrics.prometheus/src/main/java/com/swookiee/runtime/metrics/prometheus/CollectorRegistryInventory.java
// @Component(service = {CollectorRegistryInventory.class})
// public class CollectorRegistryInventory implements BundleListener {
//
// private static final Logger logger = Logger... | import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.swookiee.runtime.metrics.prometheus.CollectorRegistryInventory;
import io.prometheus.client.CollectorRegistry;
import io.prometheus.client.exporter.common.TextFormat;
import java.io.IOException;
impor... | /**
* *****************************************************************************
* Copyright (c) 2014 Lars Pfannenschmidt and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and... | // Path: com.swookiee.runtime.metrics.prometheus/src/main/java/com/swookiee/runtime/metrics/prometheus/CollectorRegistryInventory.java
// @Component(service = {CollectorRegistryInventory.class})
// public class CollectorRegistryInventory implements BundleListener {
//
// private static final Logger logger = Logger... | private CollectorRegistryInventory inventory; |
swookiee/com.swookiee.runtime | com.swookiee.runtime.authentication/src/main/java/com/swookiee/runtime/authentication/internal/SwookieeWebConsoleSecurityProvider.java | // Path: com.swookiee.runtime.authentication/src/main/java/com/swookiee/runtime/authentication/AuthenticationService.java
// public interface AuthenticationService {
//
// boolean validateUserCredentials(String username, String password);
//
// }
| import com.swookiee.runtime.authentication.AuthenticationService;
import org.apache.felix.webconsole.WebConsoleSecurityProvider;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference; | /*******************************************************************************
* Copyright (c) 2014 Lars Pfannenschmidt and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | // Path: com.swookiee.runtime.authentication/src/main/java/com/swookiee/runtime/authentication/AuthenticationService.java
// public interface AuthenticationService {
//
// boolean validateUserCredentials(String username, String password);
//
// }
// Path: com.swookiee.runtime.authentication/src/main/java/com/sw... | private AuthenticationService authenticationService; |
swookiee/com.swookiee.runtime | com.swookiee.runtime.authentication/src/main/java/com/swookiee/runtime/authentication/internal/AdminUserManagementSerice.java | // Path: com.swookiee.runtime.authentication/src/main/java/com/swookiee/runtime/authentication/AdminUserConfiguration.java
// public class AdminUserConfiguration implements Configuration {
//
// public static final String pid = "com.swookiee.runtime.authentication";
//
// public String username;
//
// pu... | import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Map;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Configurati... | /*******************************************************************************
* Copyright (c) 2014 Lars Pfannenschmidt and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and ... | // Path: com.swookiee.runtime.authentication/src/main/java/com/swookiee/runtime/authentication/AdminUserConfiguration.java
// public class AdminUserConfiguration implements Configuration {
//
// public static final String pid = "com.swookiee.runtime.authentication";
//
// public String username;
//
// pu... | private ConfigurationConsumer<AdminUserConfiguration> configurationConsumer; |
swookiee/com.swookiee.runtime | com.swookiee.runtime.core.test/src/main/groovy/com/swookiee/core/internal/logging/FullJsonLayoutTest.java | // Path: com.swookiee.runtime.core/src/main/java/com/swookiee/runtime/core/internal/logging/FullJsonLayout.java
// public class FullJsonLayout extends JsonLayout {
//
// private static final ISO8601DateFormat ISO_FORMATTER = new ISO8601DateFormat();
//
// @Override
// protected Map<String, Object> toJsonM... | import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.HashMap;
import org.junit.Before;
import org.... | /*******************************************************************************
* Copyright (c) 2014 Thorsten Krüger and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | // Path: com.swookiee.runtime.core/src/main/java/com/swookiee/runtime/core/internal/logging/FullJsonLayout.java
// public class FullJsonLayout extends JsonLayout {
//
// private static final ISO8601DateFormat ISO_FORMATTER = new ISO8601DateFormat();
//
// @Override
// protected Map<String, Object> toJsonM... | FullJsonLayout jsonLayout = new FullJsonLayout(); |
swookiee/com.swookiee.runtime | com.swookiee.runtime.util/src/main/java/com/swookiee/runtime/util/configuration/ConfigurationUtils.java | // Path: com.swookiee.runtime.util/src/main/java/com/swookiee/runtime/util/GuardAgainst.java
// public final class GuardAgainst {
//
// private GuardAgainst() {
// }
//
// public static <T> T nullValue(T value) {
// if (value == null) {
// throw new IllegalArgumentException();
// ... | import java.io.IOException;
import java.lang.reflect.Field;
import java.net.URL;
import java.util.*;
import org.osgi.service.cm.ConfigurationAdmin;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
impor... | /*******************************************************************************
* Copyright (c) 2014 Lars Pfannenschmidt, Thorsten Krüger and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this d... | // Path: com.swookiee.runtime.util/src/main/java/com/swookiee/runtime/util/GuardAgainst.java
// public final class GuardAgainst {
//
// private GuardAgainst() {
// }
//
// public static <T> T nullValue(T value) {
// if (value == null) {
// throw new IllegalArgumentException();
// ... | GuardAgainst.nullValue(clazz, "Class type can not be null"); |
confluentinc/common | config/src/main/java/io/confluent/common/config/ConfigDef.java | // Path: config/src/main/java/io/confluent/common/config/types/Password.java
// public class Password {
//
// public static final String HIDDEN = "[hidden]";
//
// private final String value;
//
// /**
// * Construct a new Password object
// * @param value The value of a password
// */
// ... | import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import io.confluent.common.config.types.Password; | private Object parseType(String name, Object value, Type type) {
try {
String trimmed = null;
if (value instanceof String) {
trimmed = ((String) value).trim();
}
switch (type) {
case BOOLEAN:
if (value instanceof String) {
if (trimmed.equalsIgnoreCase(... | // Path: config/src/main/java/io/confluent/common/config/types/Password.java
// public class Password {
//
// public static final String HIDDEN = "[hidden]";
//
// private final String value;
//
// /**
// * Construct a new Password object
// * @param value The value of a password
// */
// ... | if (value instanceof Password) |
confluentinc/common | log4j2-extensions/src/main/java/io/confluent/common/logging/log4j2/StructuredLayout.java | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | import io.confluent.common.logging.LogRecordBuilder;
import io.confluent.common.logging.LogRecordStructBuilder;
import org.apache.kafka.connect.data.Struct;
import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.core.layout.AbstractLayout;
import io.confluent.common.logging.StructuredLogMessage;... | /*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | private final Supplier<LogRecordBuilder<Struct>> logRecordStructBuilderFactory; |
confluentinc/common | log4j2-extensions/src/main/java/io/confluent/common/logging/log4j2/StructuredLayout.java | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | import io.confluent.common.logging.LogRecordBuilder;
import io.confluent.common.logging.LogRecordStructBuilder;
import org.apache.kafka.connect.data.Struct;
import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.core.layout.AbstractLayout;
import io.confluent.common.logging.StructuredLogMessage;... | /*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | || !(event.getMessage().getParameters()[0] instanceof StructuredLogMessage)) { |
confluentinc/common | log4j2-extensions/src/main/java/io/confluent/common/logging/log4j2/StructuredLayout.java | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | import io.confluent.common.logging.LogRecordBuilder;
import io.confluent.common.logging.LogRecordStructBuilder;
import org.apache.kafka.connect.data.Struct;
import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.core.layout.AbstractLayout;
import io.confluent.common.logging.StructuredLogMessage;... | /*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | this(serializer, LogRecordStructBuilder::new); |
confluentinc/common | metrics/src/main/java/io/confluent/common/metrics/KafkaMetric.java | // Path: utils/src/main/java/io/confluent/common/utils/Time.java
// public interface Time {
//
// /**
// * The current time in milliseconds
// */
// public long milliseconds();
//
// /**
// * The current time in nanoseconds
// */
// public long nanoseconds();
//
// /**
// * Sleep for the giv... | import io.confluent.common.utils.Time; | /**
* Copyright 2015 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | // Path: utils/src/main/java/io/confluent/common/utils/Time.java
// public interface Time {
//
// /**
// * The current time in milliseconds
// */
// public long milliseconds();
//
// /**
// * The current time in nanoseconds
// */
// public long nanoseconds();
//
// /**
// * Sleep for the giv... | private final Time time; |
confluentinc/common | log4j-extensions/src/test/java/io/confluent/common/logging/log4j/StructuredJsonLayoutTest.java | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.when;
import io.confluent.common.logging.LogRecordBuilder;
import org.apache.log4j.Categ... | /*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | private LogRecordBuilder<String> builder; |
confluentinc/common | log4j2-extensions/src/test/java/io/confluent/common/logging/log4j2/StructuredLayoutTest.java | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | import io.confluent.common.logging.LogRecordBuilder;
import io.confluent.common.logging.StructuredLogMessage;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.data.SchemaAndValue;
import org.apache.kafka.connect.data.Struct;
import org.apache.kafka.connect.storage.Converter;
import org.apach... | /*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | private LogRecordBuilder<Struct> builder; |
confluentinc/common | log4j2-extensions/src/test/java/io/confluent/common/logging/log4j2/StructuredLayoutTest.java | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | import io.confluent.common.logging.LogRecordBuilder;
import io.confluent.common.logging.StructuredLogMessage;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.data.SchemaAndValue;
import org.apache.kafka.connect.data.Struct;
import org.apache.kafka.connect.storage.Converter;
import org.apach... | /*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | private StructuredLogMessage logMessage; |
confluentinc/common | log4j-extensions/src/main/java/io/confluent/common/logging/log4j/StructuredJsonLayout.java | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | import io.confluent.common.logging.LogRecordBuilder;
import io.confluent.common.logging.LogRecordStringBuilder;
import org.apache.log4j.Layout;
import org.apache.log4j.spi.LoggingEvent;
import java.util.function.Supplier; | /*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | // Path: logging/src/main/java/io/confluent/common/logging/LogRecordBuilder.java
// public interface LogRecordBuilder<T> {
// String FIELD_LOGGER = "logger";
// String FIELD_LEVEL = "level";
// String FIELD_TIME = "time";
// String FIELD_MESSAGE = "message";
//
// String NAMESPACE = "io.confluent.common.logg... | this(LogRecordStringBuilder::new); |
confluentinc/common | metrics/src/main/java/io/confluent/common/metrics/stats/Percentiles.java | // Path: metrics/src/main/java/io/confluent/common/metrics/CompoundStat.java
// @Deprecated
// public interface CompoundStat extends Stat {
//
// public List<NamedMeasurable> stats();
//
// public static class NamedMeasurable {
//
// private final MetricName name;
// private final Measurable stat;
//
//... | import java.util.ArrayList;
import java.util.List;
import io.confluent.common.metrics.CompoundStat;
import io.confluent.common.metrics.Measurable;
import io.confluent.common.metrics.MetricConfig; | /**
* Copyright 2015 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | // Path: metrics/src/main/java/io/confluent/common/metrics/CompoundStat.java
// @Deprecated
// public interface CompoundStat extends Stat {
//
// public List<NamedMeasurable> stats();
//
// public static class NamedMeasurable {
//
// private final MetricName name;
// private final Measurable stat;
//
//... | ms.add(new NamedMeasurable(percentile.name(), new Measurable() { |
confluentinc/common | metrics/src/main/java/io/confluent/common/metrics/stats/Percentiles.java | // Path: metrics/src/main/java/io/confluent/common/metrics/CompoundStat.java
// @Deprecated
// public interface CompoundStat extends Stat {
//
// public List<NamedMeasurable> stats();
//
// public static class NamedMeasurable {
//
// private final MetricName name;
// private final Measurable stat;
//
//... | import java.util.ArrayList;
import java.util.List;
import io.confluent.common.metrics.CompoundStat;
import io.confluent.common.metrics.Measurable;
import io.confluent.common.metrics.MetricConfig; | private final Histogram.BinScheme binScheme;
public Percentiles(int sizeInBytes, double max, BucketSizing bucketing,
Percentile... percentiles) {
this(sizeInBytes, 0.0, max, bucketing, percentiles);
}
public Percentiles(int sizeInBytes, double min, double max, BucketSizing bucketing,
... | // Path: metrics/src/main/java/io/confluent/common/metrics/CompoundStat.java
// @Deprecated
// public interface CompoundStat extends Stat {
//
// public List<NamedMeasurable> stats();
//
// public static class NamedMeasurable {
//
// private final MetricName name;
// private final Measurable stat;
//
//... | public double measure(MetricConfig config, long now) { |
confluentinc/common | config/src/test/java/io/confluent/common/config/ConfigDefTest.java | // Path: config/src/main/java/io/confluent/common/config/types/Password.java
// public class Password {
//
// public static final String HIDDEN = "[hidden]";
//
// private final String value;
//
// /**
// * Construct a new Password object
// * @param value The value of a password
// */
// ... | import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import j... | Properties props = new Properties();
props.put("a", "5");
props.put("b", "foo");
props.put("c", "true");
// Ensure the copied ConfigDef contains all the definitions of the original
Map<String, Object> originalParsedProps = original.parse(props);
Map<String, Object> copyParsedProps = copy.pa... | // Path: config/src/main/java/io/confluent/common/config/types/Password.java
// public class Password {
//
// public static final String HIDDEN = "[hidden]";
//
// private final String value;
//
// /**
// * Construct a new Password object
// * @param value The value of a password
// */
// ... | .define("h", Type.BOOLEAN, ConfigDef.Importance.HIGH, "docs") |
confluentinc/common | config/src/test/java/io/confluent/common/config/ConfigDefTest.java | // Path: config/src/main/java/io/confluent/common/config/types/Password.java
// public class Password {
//
// public static final String HIDDEN = "[hidden]";
//
// private final String value;
//
// /**
// * Construct a new Password object
// * @param value The value of a password
// */
// ... | import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import j... | .define("g", BOOLEAN, ConfigDef.Importance.HIGH, "docs")
.define("h", Type.BOOLEAN, ConfigDef.Importance.HIGH, "docs")
.define("i", Type.BOOLEAN, ConfigDef.Importance.HIGH, "docs")
.define("j", Type.PASSWORD, ConfigDef.Importance.HIGH, "docs")
.define("k", Type.MAP, ConfigDef.Imp... | // Path: config/src/main/java/io/confluent/common/config/types/Password.java
// public class Password {
//
// public static final String HIDDEN = "[hidden]";
//
// private final String value;
//
// /**
// * Construct a new Password object
// * @param value The value of a password
// */
// ... | assertEquals(new Password("password"), vals.get("j")); |
Nightonke/TimeFleeting | src/com/timefleeting/app/EditPastActivity.java | // Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToBottomListener {
// public void onScrollBottomListener(boolean isBottom);
// }
//
// Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToTopListener {
// public void onScrollTopListener(boolean ... | import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import com.daimajia.androidanimations.library.Techniques;
import com.daimajia.androidanimations.library.YoYo;
import com.fourmob.datetimepicker.date.Da... | }
}
saveId = getIntent().getIntExtra("ID", -1);
dateTextView.setText(dateTextView.getText().toString().substring(0, 10) + " " + Language.getDayOfWeekText(calDayOfWeek(getIntent().getStringExtra("RemindTime"))));
((TextView)findViewById(R.id.past_edit_top_title)).setText(Language.getEditPast... | // Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToBottomListener {
// public void onScrollBottomListener(boolean isBottom);
// }
//
// Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToTopListener {
// public void onScrollTopListener(boolean ... | scrollView.setOnScrollToBottomLintener(new OnScrollToBottomListener() { |
Nightonke/TimeFleeting | src/com/timefleeting/app/EditPastActivity.java | // Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToBottomListener {
// public void onScrollBottomListener(boolean isBottom);
// }
//
// Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToTopListener {
// public void onScrollTopListener(boolean ... | import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import com.daimajia.androidanimations.library.Techniques;
import com.daimajia.androidanimations.library.YoYo;
import com.fourmob.datetimepicker.date.Da... | .duration(2000)
.delay(GlobalSettings.TIP_ANIMATION_DELAY)
.playOn(infoRemainTextView);
YoYo.with(Techniques.Shake)
.duration(2000)
.delay(GlobalSettings.TIP_ANIMATION_DELAY)
.playOn(editLogo);
} else {
dateString = createTimeString;
dateTextView.setText(dateString.substring(0, 10)... | // Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToBottomListener {
// public void onScrollBottomListener(boolean isBottom);
// }
//
// Path: src/com/timefleeting/app/TopBottomScrollView.java
// public interface OnScrollToTopListener {
// public void onScrollTopListener(boolean ... | scrollView.setOnScrollToTopLintener(new OnScrollToTopListener() { |
noear/Snacks | java/Snacks/src/main/java/noear/snacks/ONode.java | // Path: java/Snacks/src/main/java/noear/snacks/exts/Act1.java
// public interface Act1<T> {
// void run(T t);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act2.java
// public interface Act2<T1,T2> {
// void run(T1 t1,T2 t2);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act3.ja... | import noear.snacks.exts.Act1;
import noear.snacks.exts.Act2;
import noear.snacks.exts.Act3;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map; | package noear.snacks;
/**
* Created by noear on 14-6-11.
*/
public class ONode extends ONodeBase {
public static String NULL_DEFAULT="null";
public static boolean BOOL_USE01=false;
public static FormatHanlder TIME_FORMAT_ACTION=(date)->{
if (date == null)
return "null";
e... | // Path: java/Snacks/src/main/java/noear/snacks/exts/Act1.java
// public interface Act1<T> {
// void run(T t);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act2.java
// public interface Act2<T1,T2> {
// void run(T1 t1,T2 t2);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act3.ja... | public ONode exp(Act1<ONode> expr){ |
noear/Snacks | java/Snacks/src/main/java/noear/snacks/ONode.java | // Path: java/Snacks/src/main/java/noear/snacks/exts/Act1.java
// public interface Act1<T> {
// void run(T t);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act2.java
// public interface Act2<T1,T2> {
// void run(T1 t1,T2 t2);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act3.ja... | import noear.snacks.exts.Act1;
import noear.snacks.exts.Act2;
import noear.snacks.exts.Act3;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map; | package noear.snacks;
/**
* Created by noear on 14-6-11.
*/
public class ONode extends ONodeBase {
public static String NULL_DEFAULT="null";
public static boolean BOOL_USE01=false;
public static FormatHanlder TIME_FORMAT_ACTION=(date)->{
if (date == null)
return "null";
e... | // Path: java/Snacks/src/main/java/noear/snacks/exts/Act1.java
// public interface Act1<T> {
// void run(T t);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act2.java
// public interface Act2<T1,T2> {
// void run(T1 t1,T2 t2);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act3.ja... | public <T> T map(T t, Act3<T,String,ONode> hander){ |
noear/Snacks | java/Snacks/src/main/java/noear/snacks/ONode.java | // Path: java/Snacks/src/main/java/noear/snacks/exts/Act1.java
// public interface Act1<T> {
// void run(T t);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act2.java
// public interface Act2<T1,T2> {
// void run(T1 t1,T2 t2);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act3.ja... | import noear.snacks.exts.Act1;
import noear.snacks.exts.Act2;
import noear.snacks.exts.Act3;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map; | package noear.snacks;
/**
* Created by noear on 14-6-11.
*/
public class ONode extends ONodeBase {
public static String NULL_DEFAULT="null";
public static boolean BOOL_USE01=false;
public static FormatHanlder TIME_FORMAT_ACTION=(date)->{
if (date == null)
return "null";
e... | // Path: java/Snacks/src/main/java/noear/snacks/exts/Act1.java
// public interface Act1<T> {
// void run(T t);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act2.java
// public interface Act2<T1,T2> {
// void run(T1 t1,T2 t2);
// }
//
// Path: java/Snacks/src/main/java/noear/snacks/exts/Act3.ja... | public <T> ONode addAll(Iterable<T> ary, Act2<ONode,T> handler) { |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/autolayout/config/AutoLayoutConifg.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/utils/L.java
// public class L
// {
// public static boolean debug = false;
// private static final String TAG = "AUTO_LAYOUT";
//
// public static void e(String msg)
// {
// if (debug)
// {
// Log.... | import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import com.desperado.customerlib.view.autolayout.utils.L;
import com.desperado.customerlib.view.autolayout.utils.ScreenUtils; | {
return sIntance;
}
public int getScreenWidth()
{
return mScreenWidth;
}
public int getScreenHeight()
{
return mScreenHeight;
}
public int getDesignWidth()
{
return mDesignWidth;
}
public int getDesignHeight()
{
return mDe... | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/utils/L.java
// public class L
// {
// public static boolean debug = false;
// private static final String TAG = "AUTO_LAYOUT";
//
// public static void e(String msg)
// {
// if (debug)
// {
// Log.... | int[] screenSize = ScreenUtils.getScreenSize(context, useDeviceSize); |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/autolayout/config/AutoLayoutConifg.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/utils/L.java
// public class L
// {
// public static boolean debug = false;
// private static final String TAG = "AUTO_LAYOUT";
//
// public static void e(String msg)
// {
// if (debug)
// {
// Log.... | import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import com.desperado.customerlib.view.autolayout.utils.L;
import com.desperado.customerlib.view.autolayout.utils.ScreenUtils; |
public int getScreenWidth()
{
return mScreenWidth;
}
public int getScreenHeight()
{
return mScreenHeight;
}
public int getDesignWidth()
{
return mDesignWidth;
}
public int getDesignHeight()
{
return mDesignHeight;
}
public void i... | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/utils/L.java
// public class L
// {
// public static boolean debug = false;
// private static final String TAG = "AUTO_LAYOUT";
//
// public static void e(String msg)
// {
// if (debug)
// {
// Log.... | L.e(" screenWidth =" + mScreenWidth + " ,screenHeight = " + mScreenHeight); |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/looprotaryswitchview/view/LoopRotarySwitchView.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/AutoRelativeLayout.java
// public class AutoRelativeLayout extends RelativeLayout
// {
// private final AutoLayoutHelper mHelper = new AutoLayoutHelper(this);
//
// public AutoRelativeLayout(Context context)
// {
// super(... | import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.animation.DecelerateInterpolator;
impo... | package com.desperado.customerlib.view.looprotaryswitchview.view;
/***
* 水平旋转轮播控件
*/
public class LoopRotarySwitchView extends AutoRelativeLayout {
private final static int LoopR = 200;
private Context con;
private ValueAnimator restAnimator = null;//回位动画
private ValueAnimator rAnimation = nul... | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/AutoRelativeLayout.java
// public class AutoRelativeLayout extends RelativeLayout
// {
// private final AutoLayoutHelper mHelper = new AutoLayoutHelper(this);
//
// public AutoRelativeLayout(Context context)
// {
// super(... | private OnItemSelectedListener onItemSelectedListener = null;//选择事件接口 |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/looprotaryswitchview/view/LoopRotarySwitchView.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/AutoRelativeLayout.java
// public class AutoRelativeLayout extends RelativeLayout
// {
// private final AutoLayoutHelper mHelper = new AutoLayoutHelper(this);
//
// public AutoRelativeLayout(Context context)
// {
// super(... | import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.animation.DecelerateInterpolator;
impo... | package com.desperado.customerlib.view.looprotaryswitchview.view;
/***
* 水平旋转轮播控件
*/
public class LoopRotarySwitchView extends AutoRelativeLayout {
private final static int LoopR = 200;
private Context con;
private ValueAnimator restAnimator = null;//回位动画
private ValueAnimator rAnimation = nul... | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/AutoRelativeLayout.java
// public class AutoRelativeLayout extends RelativeLayout
// {
// private final AutoLayoutHelper mHelper = new AutoLayoutHelper(this);
//
// public AutoRelativeLayout(Context context)
// {
// super(... | private OnLoopViewTouchListener onLoopViewTouchListener = null;//选择事件接口 |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/looprotaryswitchview/view/LoopRotarySwitchView.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/AutoRelativeLayout.java
// public class AutoRelativeLayout extends RelativeLayout
// {
// private final AutoLayoutHelper mHelper = new AutoLayoutHelper(this);
//
// public AutoRelativeLayout(Context context)
// {
// super(... | import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.animation.DecelerateInterpolator;
impo... | package com.desperado.customerlib.view.looprotaryswitchview.view;
/***
* 水平旋转轮播控件
*/
public class LoopRotarySwitchView extends AutoRelativeLayout {
private final static int LoopR = 200;
private Context con;
private ValueAnimator restAnimator = null;//回位动画
private ValueAnimator rAnimation = nul... | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/AutoRelativeLayout.java
// public class AutoRelativeLayout extends RelativeLayout
// {
// private final AutoLayoutHelper mHelper = new AutoLayoutHelper(this);
//
// public AutoRelativeLayout(Context context)
// {
// super(... | private OnItemClickListener onItemClickListener = null;//被点击的回调 |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/verticalnoticationscrollbar/SwitchViewGroup.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/AutoLinearLayout.java
// public class AutoLinearLayout extends LinearLayout
// {
//
// private AutoLayoutHelper mHelper = new AutoLayoutHelper(this);
//
// public AutoLinearLayout(Context context) {
// super(context);
// ... | import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.Scroller;
import android.widget.... | package com.desperado.customerlib.view.verticalnoticationscrollbar;
/*
*
*
* 版 权 :@Copyright 北京优多鲜道科技有限公司版权所有
*
* 作 者 :desperado
*
* 版 本 :1.0
*
* 创建日期 :2016/5/26 15:51
*
* 描 述 :垂直滚动条
*
* 修订日期 :
*/
public class SwitchViewGroup extends RelativeLayout {
private static final int DURATION = 10000; | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/AutoLinearLayout.java
// public class AutoLinearLayout extends LinearLayout
// {
//
// private AutoLayoutHelper mHelper = new AutoLayoutHelper(this);
//
// public AutoLinearLayout(Context context) {
// super(context);
// ... | private final AutoLinearLayout al_vertical_view_group_second; |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/autolayout/attr/AutoAttr.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/utils/AutoUtils.java
// public class AutoUtils
// {
//
// /**
// * 会直接将view的LayoutParams上设置的width,height直接进行百分比处理
// *
// * @param view
// */
// public static void auto(View view)
// {
// autoSize(view)... | import android.view.View;
import com.desperado.customerlib.view.autolayout.utils.AutoUtils;
import com.desperado.customerlib.view.autolayout.utils.L; | package com.desperado.customerlib.view.autolayout.attr;
/**
* Created by zhy on 15/12/4.
*/
public abstract class AutoAttr
{
protected int pxVal;
protected int baseWidth;
protected int baseHeight;
/*
protected boolean isBaseWidth;
protected boolean isBaseDefault;
public AutoAttr(int p... | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/utils/AutoUtils.java
// public class AutoUtils
// {
//
// /**
// * 会直接将view的LayoutParams上设置的width,height直接进行百分比处理
// *
// * @param view
// */
// public static void auto(View view)
// {
// autoSize(view)... | L.e(" pxVal = " + pxVal + " ," + this.getClass().getSimpleName()); |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/autolayout/attr/AutoAttr.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/utils/AutoUtils.java
// public class AutoUtils
// {
//
// /**
// * 会直接将view的LayoutParams上设置的width,height直接进行百分比处理
// *
// * @param view
// */
// public static void auto(View view)
// {
// autoSize(view)... | import android.view.View;
import com.desperado.customerlib.view.autolayout.utils.AutoUtils;
import com.desperado.customerlib.view.autolayout.utils.L; | int val;
if (useDefault())
{
val = defaultBaseWidth() ? getPercentWidthSize() : getPercentHeightSize();
if (log)
{
L.e(" useDefault val= " + val);
}
} else if (baseWidth())
{
val = getPercentWidthSize();
... | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/utils/AutoUtils.java
// public class AutoUtils
// {
//
// /**
// * 会直接将view的LayoutParams上设置的width,height直接进行百分比处理
// *
// * @param view
// */
// public static void auto(View view)
// {
// autoSize(view)... | return AutoUtils.getPercentWidthSizeBigger(pxVal); |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/autolayout/AutoLayoutInfo.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/attr/AutoAttr.java
// public abstract class AutoAttr
// {
// protected int pxVal;
// protected int baseWidth;
// protected int baseHeight;
//
// /*
// protected boolean isBaseWidth;
// protected boolean isBaseDefault;
... | import android.view.View;
import com.desperado.customerlib.view.autolayout.attr.AutoAttr;
import java.util.ArrayList;
import java.util.List; | package com.desperado.customerlib.view.autolayout;
public class AutoLayoutInfo
{ | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/attr/AutoAttr.java
// public abstract class AutoAttr
// {
// protected int pxVal;
// protected int baseWidth;
// protected int baseHeight;
//
// /*
// protected boolean isBaseWidth;
// protected boolean isBaseDefault;
... | private List<AutoAttr> autoAttrs = new ArrayList<>(); |
foreverxiongtao/CustomerLib | customerlib/src/main/java/com/desperado/customerlib/view/autolayout/utils/AutoUtils.java | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/config/AutoLayoutConifg.java
// public class AutoLayoutConifg
// {
//
// private static AutoLayoutConifg sIntance = new AutoLayoutConifg();
//
//
// private static final String KEY_DESIGN_WIDTH = "design_width";
// private stati... | import android.view.View;
import android.view.ViewGroup;
import com.desperado.customerlib.R;
import com.desperado.customerlib.view.autolayout.config.AutoLayoutConifg; | Object tag = view.getTag(R.id.id_tag_autolayout_padding);
if (tag != null) return;
view.setTag(R.id.id_tag_autolayout_padding, "Just Identify");
int l = view.getPaddingLeft();
int t = view.getPaddingTop();
int r = view.getPaddingRight();
int b = view.getPaddingBo... | // Path: customerlib/src/main/java/com/desperado/customerlib/view/autolayout/config/AutoLayoutConifg.java
// public class AutoLayoutConifg
// {
//
// private static AutoLayoutConifg sIntance = new AutoLayoutConifg();
//
//
// private static final String KEY_DESIGN_WIDTH = "design_width";
// private stati... | int screenWidth = AutoLayoutConifg.getInstance().getScreenWidth(); |
richmartin/detox | src/test/java/com/moozvine/detox/BuilderCopyConstructorTest.java | // Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Serializable {
// String getSomeString();
// int getAnInt();
// }
| import com.moozvine.detox.testtypes.SimpleType;
import com.moozvine.detox.testtypes.SimpleTypeBuilder;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import static org.junit.Assert.assertEquals; | package com.moozvine.detox;
public class BuilderCopyConstructorTest {
@Rule public ExpectedException expected = ExpectedException.none();
@Test
public void simpleTypeCopyModifyingFirstField() { | // Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Serializable {
// String getSomeString();
// int getAnInt();
// }
// Path: src/test/java/com/moozvine/detox/BuilderCopyConstructorTest.java
import com.moozvine.detox.testtypes.SimpleType;
imp... | final SimpleType toCopy = SimpleTypeBuilder.newBuilder() |
richmartin/detox | src/main/java/com/moozvine/detox/processor/Util.java | // Path: src/main/java/com/moozvine/detox/Serializable.java
// public interface Serializable {
// }
| import com.moozvine.detox.Serializable;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.TypeElement;
import javax.lang.model.type.DeclaredType;
import javax.lang.model.type.TypeKind;
import javax.lan... |
public static boolean isClassOrInterface(final TypeMirror value) {
return value.getKind().equals(TypeKind.DECLARED);
}
static boolean hasValueOfMethod(final TypeMirror value) {
if (!isClassOrInterface(value)) {
return false;
}
final DeclaredType declared = (DeclaredType) value;
final T... | // Path: src/main/java/com/moozvine/detox/Serializable.java
// public interface Serializable {
// }
// Path: src/main/java/com/moozvine/detox/processor/Util.java
import com.moozvine.detox.Serializable;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
import javax.lang.model.elemen... | if (String.valueOf(anInterface).equals(Serializable.class.getName())) { |
richmartin/detox | src/test/java/com/moozvine/detox/BuildlerToStringTest.java | // Path: src/test/java/com/moozvine/detox/testtypes/withids/SimpleTypeWithACompoundId.java
// @GenerateDTO
// public interface SimpleTypeWithACompoundId extends Serializable {
// @Id int getIntegerId();
// @Id String getStringId();
// String getNotId();
// }
| import com.google.common.collect.ImmutableSet;
import com.moozvine.detox.testtypes.*;
import com.moozvine.detox.testtypes.withids.SimpleTypeWithACompoundId;
import com.moozvine.detox.testtypes.withids.SimpleTypeWithACompoundIdBuilder;
import org.junit.Test;
import java.util.Date;
import java.util.Set;
import static org... | .withAnInt(2)
.build();
final String expected = "{\n" +
" \"serializedType\": \"com.moozvine.detox.testtypes.SimpleType\",\n" +
" \"someString\": \"one\",\n" +
" \"anInt\": 2\n" +
"}";
assertEquivalent(expected, built.toString());
}
@Test
public void co... | // Path: src/test/java/com/moozvine/detox/testtypes/withids/SimpleTypeWithACompoundId.java
// @GenerateDTO
// public interface SimpleTypeWithACompoundId extends Serializable {
// @Id int getIntegerId();
// @Id String getStringId();
// String getNotId();
// }
// Path: src/test/java/com/moozvine/detox/BuildlerToS... | final SimpleTypeWithACompoundId built = SimpleTypeWithACompoundIdBuilder.newBuilder() |
richmartin/detox | src/main/java/com/moozvine/detox/processor/DtoSynthesiser.java | // Path: src/main/java/com/moozvine/detox/processor/Util.java
// static boolean hasValueOfMethod(final TypeMirror value) {
// if (!isClassOrInterface(value)) {
// return false;
// }
// final DeclaredType declared = (DeclaredType) value;
// final TypeElement typeElement = (TypeElement) declared.asElement();
... | import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.type.DeclaredType;
import javax.tools.JavaFileObject;
import java.io.BufferedWriter;
import java.io.IOException;
import java.util.List;
import static com.moozvine.detox.processor.Util.hasValueOfMethod; |
case COLLECTION:
// TODO: Support collections of collections.
throw new IllegalArgumentException("StringMaps of collections are not yet supported. Field: " +
member.getFieldName());
default:
throw new IllegalArgumentException("Cannot ... | // Path: src/main/java/com/moozvine/detox/processor/Util.java
// static boolean hasValueOfMethod(final TypeMirror value) {
// if (!isClassOrInterface(value)) {
// return false;
// }
// final DeclaredType declared = (DeclaredType) value;
// final TypeElement typeElement = (TypeElement) declared.asElement();
... | } else if (hasValueOfMethod(member.getTypeMirror())) { |
richmartin/detox | src/test/java/com/moozvine/detox/TestInstanceGeneratorTest.java | // Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Serializable {
// String getSomeString();
// int getAnInt();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/TypeWithOptionalFields.java
// @GenerateDTO
// public interface TypeWit... | import com.moozvine.detox.testtypes.SimpleType;
import com.moozvine.detox.testtypes.TypeWithOptionalFields;
import org.junit.Test;
import javax.annotation.Nullable;
import java.util.Date;
import static com.moozvine.detox.JsonTestUtil.assertJsonEquivalence; | package com.moozvine.detox;
public class TestInstanceGeneratorTest {
private final TestInstanceGenerator generator = new TestInstanceGenerator();
private final SerializationService serializationService = new AbstractSerializationService() {
{
registerSerializer(new StringSerializer<Date>(Date.class) {... | // Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Serializable {
// String getSomeString();
// int getAnInt();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/TypeWithOptionalFields.java
// @GenerateDTO
// public interface TypeWit... | final SimpleType simpleType = generator.generate(SimpleType.class); |
richmartin/detox | src/test/java/com/moozvine/detox/TestInstanceGeneratorTest.java | // Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Serializable {
// String getSomeString();
// int getAnInt();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/TypeWithOptionalFields.java
// @GenerateDTO
// public interface TypeWit... | import com.moozvine.detox.testtypes.SimpleType;
import com.moozvine.detox.testtypes.TypeWithOptionalFields;
import org.junit.Test;
import javax.annotation.Nullable;
import java.util.Date;
import static com.moozvine.detox.JsonTestUtil.assertJsonEquivalence; | package com.moozvine.detox;
public class TestInstanceGeneratorTest {
private final TestInstanceGenerator generator = new TestInstanceGenerator();
private final SerializationService serializationService = new AbstractSerializationService() {
{
registerSerializer(new StringSerializer<Date>(Date.class) {... | // Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Serializable {
// String getSomeString();
// int getAnInt();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/TypeWithOptionalFields.java
// @GenerateDTO
// public interface TypeWit... | assertJsonEquivalence( |
richmartin/detox | src/test/java/com/moozvine/detox/TestInstanceGeneratorTest.java | // Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Serializable {
// String getSomeString();
// int getAnInt();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/TypeWithOptionalFields.java
// @GenerateDTO
// public interface TypeWit... | import com.moozvine.detox.testtypes.SimpleType;
import com.moozvine.detox.testtypes.TypeWithOptionalFields;
import org.junit.Test;
import javax.annotation.Nullable;
import java.util.Date;
import static com.moozvine.detox.JsonTestUtil.assertJsonEquivalence; | package com.moozvine.detox;
public class TestInstanceGeneratorTest {
private final TestInstanceGenerator generator = new TestInstanceGenerator();
private final SerializationService serializationService = new AbstractSerializationService() {
{
registerSerializer(new StringSerializer<Date>(Date.class) {... | // Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Serializable {
// String getSomeString();
// int getAnInt();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/TypeWithOptionalFields.java
// @GenerateDTO
// public interface TypeWit... | final TypeWithOptionalFields object = generator.generate(TypeWithOptionalFields.class); |
richmartin/detox | src/test/java/com/moozvine/detox/SerializationServiceWithComplexHierarchies.java | // Path: src/test/java/com/moozvine/detox/testtypes/AnotherSimpleType.java
// @GenerateDTO
// public interface AnotherSimpleType extends Serializable {
// String getSomeOtherString();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Se... | import com.google.common.collect.ImmutableList;
import com.moozvine.detox.testtypes.AnotherSimpleType;
import com.moozvine.detox.testtypes.SimpleType;
import com.moozvine.detox.testtypes.complexhierarchies.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit... | .withValue("user value")
.build())
.build();
final String serializedUser = service.serialize(userToSerialize);
final User deserializedUser = (User) service.deserialize(serializedUser);
assertEquals(userToSerialize.getToken().getValue(), deserializedUser.getToken().getValue(... | // Path: src/test/java/com/moozvine/detox/testtypes/AnotherSimpleType.java
// @GenerateDTO
// public interface AnotherSimpleType extends Serializable {
// String getSomeOtherString();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Se... | class MultipleGenerateDTOs implements SimpleType, AnotherSimpleType { |
richmartin/detox | src/test/java/com/moozvine/detox/SerializationServiceWithComplexHierarchies.java | // Path: src/test/java/com/moozvine/detox/testtypes/AnotherSimpleType.java
// @GenerateDTO
// public interface AnotherSimpleType extends Serializable {
// String getSomeOtherString();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Se... | import com.google.common.collect.ImmutableList;
import com.moozvine.detox.testtypes.AnotherSimpleType;
import com.moozvine.detox.testtypes.SimpleType;
import com.moozvine.detox.testtypes.complexhierarchies.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit... | .withValue("user value")
.build())
.build();
final String serializedUser = service.serialize(userToSerialize);
final User deserializedUser = (User) service.deserialize(serializedUser);
assertEquals(userToSerialize.getToken().getValue(), deserializedUser.getToken().getValue(... | // Path: src/test/java/com/moozvine/detox/testtypes/AnotherSimpleType.java
// @GenerateDTO
// public interface AnotherSimpleType extends Serializable {
// String getSomeOtherString();
// }
//
// Path: src/test/java/com/moozvine/detox/testtypes/SimpleType.java
// @GenerateDTO
// public interface SimpleType extends Se... | class MultipleGenerateDTOs implements SimpleType, AnotherSimpleType { |
richmartin/detox | src/test/java/com/moozvine/detox/testtypes/Types.java | // Path: src/main/java/com/moozvine/detox/Serializable.java
// public interface Serializable {
// }
| import com.moozvine.detox.GenerateDTO;
import com.moozvine.detox.Serializable;
import javax.mail.internet.InternetAddress;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;
import java.util.Map; | package com.moozvine.detox.testtypes;
public class Types {
@GenerateDTO | // Path: src/main/java/com/moozvine/detox/Serializable.java
// public interface Serializable {
// }
// Path: src/test/java/com/moozvine/detox/testtypes/Types.java
import com.moozvine.detox.GenerateDTO;
import com.moozvine.detox.Serializable;
import javax.mail.internet.InternetAddress;
import java.math.BigDecimal;
imp... | public interface SerializableWithIntegerMember extends Serializable { |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/accounting/business/AgressoBusinessBean.java | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | import is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKey;
import is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyHome;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import ja... | /*
* $Id$ Created on Dec 18, 2006
*
* Copyright (C) 2006 Idega Software hf. All Rights Reserved.
*
* This software is the proprietary information of Idega hf. Use is subject to
* license terms.
*/
package is.idega.idegaweb.egov.accounting.business;
public class AgressoBusinessBean extends IBOServiceBean im... | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | CaseCodeAccountingKeyHome ccah = (CaseCodeAccountingKeyHome) IDOLookup.getHome(CaseCodeAccountingKey.class); |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/accounting/business/AgressoBusinessBean.java | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | import is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKey;
import is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyHome;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import ja... | /*
* $Id$ Created on Dec 18, 2006
*
* Copyright (C) 2006 Idega Software hf. All Rights Reserved.
*
* This software is the proprietary information of Idega hf. Use is subject to
* license terms.
*/
package is.idega.idegaweb.egov.accounting.business;
public class AgressoBusinessBean extends IBOServiceBean im... | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | CaseCodeAccountingKeyHome ccah = (CaseCodeAccountingKeyHome) IDOLookup.getHome(CaseCodeAccountingKey.class); |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/accounting/presentation/AccountingEntryFetcher.java | // Path: src/java/is/idega/idegaweb/egov/accounting/business/AccountingConstants.java
// public class AccountingConstants {
//
// public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.accounting";
//
// public static final String ACCOUNTING_SYSTEM_NAVISION = "NAVISION";
// public static final S... | import is.idega.idegaweb.egov.accounting.business.AccountingConstants;
import is.idega.idegaweb.egov.accounting.data.AccountingFiles;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;
import com.idega.business.IBORuntimeException;
import com.idega.core.file.data.ICFile;
import com... | /*
* $Id$ Created on 7.8.2006
*
* Copyright (C) 2006 Idega Software hf. All Rights Reserved.
*
* This software is the proprietary information of Idega hf. Use is subject to
* license terms.
*/
package is.idega.idegaweb.egov.accounting.presentation;
public class AccountingEntryFetcher extends AccountingBloc... | // Path: src/java/is/idega/idegaweb/egov/accounting/business/AccountingConstants.java
// public class AccountingConstants {
//
// public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.accounting";
//
// public static final String ACCOUNTING_SYSTEM_NAVISION = "NAVISION";
// public static final S... | boolean showFullInputs = iwc.getApplicationSettings().getBoolean(AccountingConstants.PROPERTY_ACCOUNTING_FETCHER_SHOW_INPUTS, false); |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/accounting/presentation/AccountingEntryFetcher.java | // Path: src/java/is/idega/idegaweb/egov/accounting/business/AccountingConstants.java
// public class AccountingConstants {
//
// public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.accounting";
//
// public static final String ACCOUNTING_SYSTEM_NAVISION = "NAVISION";
// public static final S... | import is.idega.idegaweb.egov.accounting.business.AccountingConstants;
import is.idega.idegaweb.egov.accounting.data.AccountingFiles;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;
import com.idega.business.IBORuntimeException;
import com.idega.core.file.data.ICFile;
import com... | table.setCellspacing(0);
table.setStyleClass("ruler");
table.setStyleClass("adminTable");
TableRowGroup group = table.createHeaderRowGroup();
TableRow row = group.createRow();
TableCell2 cell = row.createHeaderCell();
cell.setStyleClass("firstColumn");
cell.setStyleClass("fileName");
cell.add(new T... | // Path: src/java/is/idega/idegaweb/egov/accounting/business/AccountingConstants.java
// public class AccountingConstants {
//
// public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.accounting";
//
// public static final String ACCOUNTING_SYSTEM_NAVISION = "NAVISION";
// public static final S... | AccountingFiles file = (AccountingFiles) iter.next(); |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/accounting/business/NavisionXMLStringResult.java | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | import is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKey;
import java.text.NumberFormat;
import com.idega.idegaweb.IWApplicationContext;
import com.idega.util.IWCalendar;
import com.idega.util.IWTimestamp; | /*
* $Id: NavisionXMLStringResult.java,v 1.3 2006/11/22 14:13:06 eiki Exp $
* Created on Oct 9, 2006
*
* Copyright (C) 2006 Idega Software hf. All Rights Reserved.
*
* This software is the proprietary information of Idega hf.
* Use is subject to license terms.
*/
package is.idega.idegaweb.egov.accounting.busine... | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | public String toString(IWApplicationContext iwac, AccountingEntry entry, CaseCodeAccountingKey key, IWTimestamp fromStamp, IWTimestamp toStamp) { |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/AccountingViewManager.java | // Path: src/java/is/idega/idegaweb/egov/accounting/presentation/UpdateAgresso.java
// public class UpdateAgresso extends IWBaseComponent {
//
// /*
// * (non-Javadoc)
// *
// * @see com.idega.presentation.IWBaseComponent#initializeComponent(javax.faces.context.FacesContext)
// */
// protected void initiali... | import is.idega.idegaweb.egov.accounting.presentation.UpdateAgresso;
import java.util.ArrayList;
import java.util.Collection;
import com.idega.core.view.DefaultViewNode;
import com.idega.core.view.ViewManager;
import com.idega.core.view.ViewNode;
import com.idega.idegaweb.IWBundle;
import com.idega.idegaweb.IWMainAppli... | public ViewNode getAccountingViewNode(){
IWBundle iwb = this.iwma.getBundle("is.idega.idegaweb.egov.accounting");
if(this.accountingViewNode==null){
this.accountingViewNode = initalizeAccountingNode(iwb);
}
return this.accountingViewNode;
}
/**
* <p>
* TODO tryggvil describe method initalizeSchoolNod... | // Path: src/java/is/idega/idegaweb/egov/accounting/presentation/UpdateAgresso.java
// public class UpdateAgresso extends IWBaseComponent {
//
// /*
// * (non-Javadoc)
// *
// * @see com.idega.presentation.IWBaseComponent#initializeComponent(javax.faces.context.FacesContext)
// */
// protected void initiali... | seasons.setComponentClass(UpdateAgresso.class); |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/accounting/wsimpl/AccountingServiceSOAPImpl.java | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | import is.idega.idegaweb.egov.accounting.business.AccountingBusiness;
import is.idega.idegaweb.egov.accounting.business.AccountingBusinessManager;
import is.idega.idegaweb.egov.accounting.business.AccountingEntry;
import is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKey;
import is.idega.idegaweb.egov.account... | /**
* AccountingServiceSOAPImpl.java
*
* This file was auto-generated from WSDL by the Apache Axis 1.3 Oct 05, 2005
* (05:23:37 EDT) WSDL2Java emitter.
*/
package is.idega.idegaweb.egov.accounting.wsimpl;
public class AccountingServiceSOAPImpl implements is.idega.idegaweb.egov.accounting.wsimpl.AccountingSe... | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | CaseCodeAccountingKeyHome home = (CaseCodeAccountingKeyHome) IDOLookup.getHome(CaseCodeAccountingKey.class); |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/accounting/wsimpl/AccountingServiceSOAPImpl.java | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | import is.idega.idegaweb.egov.accounting.business.AccountingBusiness;
import is.idega.idegaweb.egov.accounting.business.AccountingBusinessManager;
import is.idega.idegaweb.egov.accounting.business.AccountingEntry;
import is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKey;
import is.idega.idegaweb.egov.account... | /**
* AccountingServiceSOAPImpl.java
*
* This file was auto-generated from WSDL by the Apache Axis 1.3 Oct 05, 2005
* (05:23:37 EDT) WSDL2Java emitter.
*/
package is.idega.idegaweb.egov.accounting.wsimpl;
public class AccountingServiceSOAPImpl implements is.idega.idegaweb.egov.accounting.wsimpl.AccountingSe... | // Path: src/java/is/idega/idegaweb/egov/accounting/data/CaseCodeAccountingKey.java
// public interface CaseCodeAccountingKey extends IDOEntity {
// /**
// * @see is.idega.idegaweb.egov.accounting.data.CaseCodeAccountingKeyBMPBean#getPrimaryKeyClass
// */
// public Class getPrimaryKeyClass();
//
// /**
// * @... | CaseCodeAccountingKeyHome home = (CaseCodeAccountingKeyHome) IDOLookup.getHome(CaseCodeAccountingKey.class); |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/accounting/timer/AgressoUpdateTimer.java | // Path: src/java/is/idega/idegaweb/egov/accounting/business/AgressoBusiness.java
// public interface AgressoBusiness extends IBOService {
//
// /**
// * @see is.idega.idegaweb.egov.accounting.business.AgressoBusinessBean#executeAfterSchoolCareUpdate
// */
// public void executeAfterSchoolCareUpdate() throws Rem... | import is.idega.idegaweb.egov.accounting.business.AgressoBusiness;
import java.rmi.RemoteException;
import com.idega.business.IBOLookup;
import com.idega.business.IBOLookupException;
import com.idega.idegaweb.IWMainApplication;
import com.idega.util.timer.TimerEntry;
import com.idega.util.timer.TimerListener; | package is.idega.idegaweb.egov.accounting.timer;
public class AgressoUpdateTimer implements TimerListener {
private IWMainApplication iwma;
public AgressoUpdateTimer(IWMainApplication iwma) {
super();
this.iwma = iwma;
}
@Override
public void handleTimer(TimerEntry entry) {
try { | // Path: src/java/is/idega/idegaweb/egov/accounting/business/AgressoBusiness.java
// public interface AgressoBusiness extends IBOService {
//
// /**
// * @see is.idega.idegaweb.egov.accounting.business.AgressoBusinessBean#executeAfterSchoolCareUpdate
// */
// public void executeAfterSchoolCareUpdate() throws Rem... | AgressoBusiness business = (AgressoBusiness) IBOLookup |
idega/is.idega.idegaweb.egov.accounting | src/java/is/idega/idegaweb/egov/accounting/presentation/AccountingBlock.java | // Path: src/java/is/idega/idegaweb/egov/accounting/business/AccountingConstants.java
// public class AccountingConstants {
//
// public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.accounting";
//
// public static final String ACCOUNTING_SYSTEM_NAVISION = "NAVISION";
// public static final S... | import is.idega.idegaweb.egov.accounting.business.AccountingBusiness;
import is.idega.idegaweb.egov.accounting.business.AccountingConstants;
import is.idega.idegaweb.egov.accounting.business.AccountingKeyBusiness;
import com.idega.block.process.data.CaseCode;
import com.idega.block.process.data.CaseCodeHome;
import com... | package is.idega.idegaweb.egov.accounting.presentation;
public abstract class AccountingBlock extends Block {
protected IWResourceBundle iwrb = null;
protected IWBundle iwb = null;
public String getBundleIdentifier() { | // Path: src/java/is/idega/idegaweb/egov/accounting/business/AccountingConstants.java
// public class AccountingConstants {
//
// public static final String IW_BUNDLE_IDENTIFIER = "is.idega.idegaweb.egov.accounting";
//
// public static final String ACCOUNTING_SYSTEM_NAVISION = "NAVISION";
// public static final S... | return AccountingConstants.IW_BUNDLE_IDENTIFIER; |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/ReplaceVisitor.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/N3Element.java
// public interface N3Element {
//
// static public interface Verb {
//
// public String getGlobalName();
// }
//
// static public interface Subject {
//
// }
//
// static public interface Object {
// String toReadableSt... | import ch.ethz.inf.vs.semantics.parser.elements.N3Element;
import ch.ethz.inf.vs.semantics.parser.elements.Prefix; | package ch.ethz.inf.vs.semantics.parser.visitors;
public class ReplaceVisitor extends N3BaseElementVisitor<Void> {
private N3Element original;
private N3Element replace;
public ReplaceVisitor(N3Element original, N3Element replace) { | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/N3Element.java
// public interface N3Element {
//
// static public interface Verb {
//
// public String getGlobalName();
// }
//
// static public interface Subject {
//
// }
//
// static public interface Object {
// String toReadableSt... | if (replace instanceof Prefix || original instanceof Prefix) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Classification.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import java.io.Serializable;
import java.util.ArrayList; | package ch.ethz.inf.vs.semantics.parser.elements;
public class Classification implements N3Element.Statement, N3Element, Serializable {
private String classification;
private N3Element.Object objects;
private Statements statements;
public Classification(String classification, N3Element.Object objects, Statement... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | semantic-ide/src/main/java/ch/ethz/inf/vs/semantics/ide/domain/Device.java | // Path: reasoning-server/src/main/java/ch/ethz/inf/vs/semantics/server/semantics/SemanticDescription.java
// public class SemanticDescription {
// private static final Logger logger = LogManager.getLogger();
// private final String endpoint;
// private final String uri;
// private final File temp;
// private bool... | import ch.ethz.inf.vs.semantics.server.semantics.SemanticDescription;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.ArrayList; | package ch.ethz.inf.vs.semantics.ide.domain;
public class Device {
private int id;
private String name;
private String semantics;
private String url;
private boolean remote;
private boolean disabled;
private ArrayList<SemanticsErrors> errors;
@JsonIgnore | // Path: reasoning-server/src/main/java/ch/ethz/inf/vs/semantics/server/semantics/SemanticDescription.java
// public class SemanticDescription {
// private static final Logger logger = LogManager.getLogger();
// private final String endpoint;
// private final String uri;
// private final File temp;
// private bool... | private SemanticDescription semanticDescription; |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Exvar.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import java.io.Serializable; | package ch.ethz.inf.vs.semantics.parser.elements;
public class Exvar implements N3Element.Statement, N3Element.Object, N3Element.Subject, N3Element, Serializable {
private final String text;
public Exvar(String text) {
this.text = text;
assert (text.startsWith("?"));
}
@Override
public String toString() ... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/ReplacePrefixVisitor.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Iri.java
// public class Iri implements N3Element.Object, N3Element.Verb, N3Element.Subject, N3Element, Serializable {
// public final boolean uriref;
// private Prefix prefix;
// public String text;
//
// public Iri(N3Document doc, String text... | import ch.ethz.inf.vs.semantics.parser.elements.Iri;
import ch.ethz.inf.vs.semantics.parser.elements.Prefix; | package ch.ethz.inf.vs.semantics.parser.visitors;
public class ReplacePrefixVisitor extends N3BaseElementVisitor<Void> {
private Prefix original;
private Prefix replace;
public ReplacePrefixVisitor(Prefix original, Prefix replace) {
this.original = original;
this.replace = replace;
}
@Override | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Iri.java
// public class Iri implements N3Element.Object, N3Element.Verb, N3Element.Subject, N3Element, Serializable {
// public final boolean uriref;
// private Prefix prefix;
// public String text;
//
// public Iri(N3Document doc, String text... | public Void visitIri(Iri iri) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/HintsVisitor.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Iri.java
// public class Iri implements N3Element.Object, N3Element.Verb, N3Element.Subject, N3Element, Serializable {
// public final boolean uriref;
// private Prefix prefix;
// public String text;
//
// public Iri(N3Document doc, String text... | import ch.ethz.inf.vs.semantics.parser.elements.Iri;
import ch.ethz.inf.vs.semantics.parser.elements.Prefix;
import java.util.Set; | package ch.ethz.inf.vs.semantics.parser.visitors;
public class HintsVisitor extends N3BaseElementVisitor<Void> {
private Set<String> hints;
public HintsVisitor(Set<String> hints) {
this.hints = hints;
}
@Override | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Iri.java
// public class Iri implements N3Element.Object, N3Element.Verb, N3Element.Subject, N3Element, Serializable {
// public final boolean uriref;
// private Prefix prefix;
// public String text;
//
// public Iri(N3Document doc, String text... | public Void visitPrefix(Prefix p) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/HintsVisitor.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Iri.java
// public class Iri implements N3Element.Object, N3Element.Verb, N3Element.Subject, N3Element, Serializable {
// public final boolean uriref;
// private Prefix prefix;
// public String text;
//
// public Iri(N3Document doc, String text... | import ch.ethz.inf.vs.semantics.parser.elements.Iri;
import ch.ethz.inf.vs.semantics.parser.elements.Prefix;
import java.util.Set; | package ch.ethz.inf.vs.semantics.parser.visitors;
public class HintsVisitor extends N3BaseElementVisitor<Void> {
private Set<String> hints;
public HintsVisitor(Set<String> hints) {
this.hints = hints;
}
@Override
public Void visitPrefix(Prefix p) {
try {
hints.add(p.toString());
} catch (Exception... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Iri.java
// public class Iri implements N3Element.Object, N3Element.Verb, N3Element.Subject, N3Element, Serializable {
// public final boolean uriref;
// private Prefix prefix;
// public String text;
//
// public Iri(N3Document doc, String text... | public Void visitIri(Iri iri) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Literal.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import org.apache.commons.lang3.StringEscapeUtils;
import java.io.Serializable; | this(text, false);
}
public Literal(String text, boolean makeString) {
if (!makeString) {
if (text.startsWith("\"") && text.endsWith("\"")) {
string = true;
text = text.substring(1, text.length() - 1);
this.text = StringEscapeUtils.unescapeJava(text);
} else {
string = false;
this.text ... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/BooleanLiteral.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import java.io.Serializable; | package ch.ethz.inf.vs.semantics.parser.elements;
public class BooleanLiteral implements N3Element.Object, N3Element.Subject, N3Element.Statement, N3Element, Serializable {
private final String text;
public BooleanLiteral(String text) {
this.text = text;
}
@Override
public String toString() {
return text;... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Verb.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import java.io.Serializable; | package ch.ethz.inf.vs.semantics.parser.elements;
public class Verb implements N3Element.Verb, N3Element, Serializable {
private final String text;
public Verb(String text) {
this.text = text;
}
@Override
public String toString() {
return text;
}
@Override | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | semantic-ide/src/main/java/ch/ethz/inf/vs/semantics/ide/workspace/WorkspaceManager.java | // Path: semantic-ide/src/main/java/ch/ethz/inf/vs/semantics/ide/domain/WorkspaceInfo.java
// public class WorkspaceInfo {
//
// private int id;
// private String name;
// private Backup backup;
// private String type;
// private String url;
//
// public WorkspaceInfo() {
// }
//
// public WorkspaceInfo(int ... | import ch.ethz.inf.vs.semantics.ide.domain.WorkspaceInfo;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map; | package ch.ethz.inf.vs.semantics.ide.workspace;
public class WorkspaceManager {
private static volatile WorkspaceManager instance = null;
private static File persistenceFolder;
private static Object lock = new Object();
private Map<Integer, Workspace> workspaces;
private int ID;
private WorkspaceManager() {
... | // Path: semantic-ide/src/main/java/ch/ethz/inf/vs/semantics/ide/domain/WorkspaceInfo.java
// public class WorkspaceInfo {
//
// private int id;
// private String name;
// private Backup backup;
// private String type;
// private String url;
//
// public WorkspaceInfo() {
// }
//
// public WorkspaceInfo(int ... | WorkspaceInfo workspaceinfo = mapper.readValue(ws, WorkspaceInfo.class); |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Formula.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import java.io.Serializable; | package ch.ethz.inf.vs.semantics.parser.elements;
public class Formula extends Statements implements N3Element.Object, N3Element.Subject, N3Element, Serializable {
public RDFResource get(String name) {
return tripleMap.get(name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder()... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | reasoning-server/src/main/java/ch/ethz/inf/vs/semantics/server/semantics/ResourceDirectorySynchronizationService.java | // Path: reasoning-server/src/main/java/ch/ethz/inf/vs/semantics/server/SemanticsServer.java
// public class SemanticsServer extends CoapServer {
//
// private static final Logger logger = LogManager.getLogger();
//
// // exit codes for runtime errors
// private static final int ERR_INIT_FAILED = 1;
//
// public... | import ch.ethz.inf.vs.semantics.server.SemanticsServer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.eclipse.californium.core.*;
import org.eclipse.californium.core.coap.LinkFormat;
import org.eclipse.californium.core.coap.MediaTypeRegistry;
import org.eclipse.californi... | package ch.ethz.inf.vs.semantics.server.semantics;
public class ResourceDirectorySynchronizationService {
public static final String DEMO_IP = "[2001:470:cafe::38b2:cf50]";
private static final Logger logger = LogManager.getLogger();
private final CoapServer server;
private final String id = UUID.randomUUID().... | // Path: reasoning-server/src/main/java/ch/ethz/inf/vs/semantics/server/SemanticsServer.java
// public class SemanticsServer extends CoapServer {
//
// private static final Logger logger = LogManager.getLogger();
//
// // exit codes for runtime errors
// private static final int ERR_INIT_FAILED = 1;
//
// public... | public ResourceDirectorySynchronizationService(SemanticsServer server, SemanticDataContainer semanticDataContainer) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/VerbObject.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import java.io.Serializable;
import java.util.ArrayList; | package ch.ethz.inf.vs.semantics.parser.elements;
public class VerbObject implements N3Element, Serializable {
public N3Element.Verb verb;
public N3Element.Object object;
public VerbObject(N3Element.Verb v, N3Element.Object o) {
verb = v;
object = o;
}
@Override
public String toString() {
return verb.t... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/N3Element.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor; | package ch.ethz.inf.vs.semantics.parser.elements;
public interface N3Element {
static public interface Verb {
public String getGlobalName();
}
static public interface Subject {
}
static public interface Object {
String toReadableString();
}
static public interface Statement {
}
| // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b); |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Iri.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import java.io.Serializable; | if (text.startsWith("<") && text.endsWith(">")) {
uriref = true;
this.text = text.substring(1, text.length() - 1);
} else {
uriref = false;
assert (text.split(":").length == 2);
String[] parts = text.split(":");
this.prefix = doc.getPrefix(parts[0]);
assert (this.prefix != null);
this.text =... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/N3Document.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import ch.ethz.inf.vs.semantics.parser.visitors.ReplacePrefixVisitor;
import ch.ethz.inf.vs.semantics.parser.visitors.UsedPrefixesElementVisitor;
import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Set; | package ch.ethz.inf.vs.semantics.parser.elements;
public class N3Document implements N3Element, Serializable {
public final HashMap<String, Prefix> prefixes;
public final HashMap<String, Prefix> prefixes_uri;
public Statements statements;
public N3Document() {
this.statements = new Statements();
this.prefi... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | Set<Prefix> usedPrefixes = s.accept(new UsedPrefixesElementVisitor()); |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/N3Document.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import ch.ethz.inf.vs.semantics.parser.visitors.ReplacePrefixVisitor;
import ch.ethz.inf.vs.semantics.parser.visitors.UsedPrefixesElementVisitor;
import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Set; | package ch.ethz.inf.vs.semantics.parser.elements;
public class N3Document implements N3Element, Serializable {
public final HashMap<String, Prefix> prefixes;
public final HashMap<String, Prefix> prefixes_uri;
public Statements statements;
public N3Document() {
this.statements = new Statements();
this.prefi... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | s.accept(new ReplacePrefixVisitor(prefix, other)); |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/N3Document.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import ch.ethz.inf.vs.semantics.parser.visitors.ReplacePrefixVisitor;
import ch.ethz.inf.vs.semantics.parser.visitors.UsedPrefixesElementVisitor;
import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Set; | ByteArrayInputStream bais = new ByteArrayInputStream(byteData);
return (T) new ObjectInputStream(bais).readObject();
} catch (IOException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
throw new RuntimeException("Can not copy objects");
}
@Override
public S... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/UsedPrefixesElementVisitor.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Iri.java
// public class Iri implements N3Element.Object, N3Element.Verb, N3Element.Subject, N3Element, Serializable {
// public final boolean uriref;
// private Prefix prefix;
// public String text;
//
// public Iri(N3Document doc, String text... | import ch.ethz.inf.vs.semantics.parser.elements.Iri;
import ch.ethz.inf.vs.semantics.parser.elements.Prefix;
import java.util.HashSet;
import java.util.Set; | package ch.ethz.inf.vs.semantics.parser.visitors;
public class UsedPrefixesElementVisitor extends N3BaseElementVisitor<Set<Prefix>> {
@Override
public Set<Prefix> defaultResult() {
return new HashSet<Prefix>();
}
@Override
public Set<Prefix> aggregateResult(Set<Prefix> result, Set<Prefix> cResult) {
if (cR... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Iri.java
// public class Iri implements N3Element.Object, N3Element.Verb, N3Element.Subject, N3Element, Serializable {
// public final boolean uriref;
// private Prefix prefix;
// public String text;
//
// public Iri(N3Document doc, String text... | public Set<Prefix> visitIri(Iri iri) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/Prefix.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import java.io.Serializable; | package ch.ethz.inf.vs.semantics.parser.elements;
public class Prefix implements N3Element, Serializable {
private String name;
private String uri;
public Prefix(String name, String uri) {
this.name = name;
this.uri = uri.substring(1, uri.length() - 1);
}
public String getName() {
return name;
}
publ... | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
mkovatsc/iot-semantics | parser/src/main/java/ch/ethz/inf/vs/semantics/parser/elements/BlankNode.java | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | import ch.ethz.inf.vs.semantics.parser.visitors.IN3ElementVisitor;
import java.io.Serializable; | package ch.ethz.inf.vs.semantics.parser.elements;
public class BlankNode implements N3Element.Object, N3Element.Subject, N3Element, Serializable {
private final String text;
public BlankNode(String text) {
this.text = text;
}
@Override
public String toString() {
return text;
}
@Override | // Path: parser/src/main/java/ch/ethz/inf/vs/semantics/parser/visitors/IN3ElementVisitor.java
// public interface IN3ElementVisitor<T> {
// public T visitBlankNode(BlankNode blankNode);
//
// T visitBlankNodePropertyList(BlankNodePropertyList verbObjects);
//
// T visitBooleanLiteral(BooleanLiteral booleanLiteral)... | public <T> T accept(IN3ElementVisitor<T> b) { |
caarmen/scrumchatter | app/src/main/java/ca/rmen/android/scrumchatter/dialog/ProgressDialogFragment.java | // Path: app/src/main/java/ca/rmen/android/scrumchatter/util/Log.java
// @SuppressWarnings("unused")
// public class Log {
// public static void v(String tag, String message) {
// if (BuildConfig.DEBUG) android.util.Log.v(tag, message);
// }
//
// public static void v(String tag, String message, Th... | import android.app.Dialog;
import android.app.ProgressDialog;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v4.content.ContextCompat;
import ca.rmen.android.scrumchatter.util.Log;
impor... | /*
* Copyright 2013, 2017 Carmen Alvarez
*
* This file is part of Scrum Chatter.
*
* Scrum Chatter is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option)... | // Path: app/src/main/java/ca/rmen/android/scrumchatter/util/Log.java
// @SuppressWarnings("unused")
// public class Log {
// public static void v(String tag, String message) {
// if (BuildConfig.DEBUG) android.util.Log.v(tag, message);
// }
//
// public static void v(String tag, String message, Th... | Log.v(TAG, "onCreateDialog: savedInstanceState = " + savedInstanceState); |
caarmen/scrumchatter | app/src/main/java/ca/rmen/android/scrumchatter/export/Export.java | // Path: app/src/main/java/ca/rmen/android/scrumchatter/Constants.java
// public class Constants {
// public static final String TAG = "ScrumChatter";
// public static final String PREF_TEAM_ID = "team_id";
// public static final int DEFAULT_TEAM_ID = 1;
// public static final String DEFAULT_TEAM_NAME =... | import ca.rmen.android.scrumchatter.BuildConfig;
import ca.rmen.android.scrumchatter.Constants;
import ca.rmen.android.scrumchatter.R;
import ca.rmen.android.scrumchatter.util.Log;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveI... | /*
* Copyright 2017 Carmen Alvarez
* <p/>
* This file is part of Scrum Chatter.
* <p/>
* Scrum Chatter is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opt... | // Path: app/src/main/java/ca/rmen/android/scrumchatter/Constants.java
// public class Constants {
// public static final String TAG = "ScrumChatter";
// public static final String PREF_TEAM_ID = "team_id";
// public static final int DEFAULT_TEAM_ID = 1;
// public static final String DEFAULT_TEAM_NAME =... | Log.v(TAG, "Couldn't find or create export folder " + exportFolder); |
caarmen/scrumchatter | app/src/main/java/ca/rmen/android/scrumchatter/dialog/InfoDialogFragment.java | // Path: app/src/main/java/ca/rmen/android/scrumchatter/util/Log.java
// @SuppressWarnings("unused")
// public class Log {
// public static void v(String tag, String message) {
// if (BuildConfig.DEBUG) android.util.Log.v(tag, message);
// }
//
// public static void v(String tag, String message, Th... | import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
import ca.rmen.android.scrumchatter.util.Log;
import ca.rmen.android.scrumchatter.Constants; | /*
* Copyright 2013 Carmen Alvarez
*
* This file is part of Scrum Chatter.
*
* Scrum Chatter is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any l... | // Path: app/src/main/java/ca/rmen/android/scrumchatter/util/Log.java
// @SuppressWarnings("unused")
// public class Log {
// public static void v(String tag, String message) {
// if (BuildConfig.DEBUG) android.util.Log.v(tag, message);
// }
//
// public static void v(String tag, String message, Th... | Log.v(TAG, "onCreateDialog: savedInstanceState = " + savedInstanceState); |
caarmen/scrumchatter | app/src/main/java/ca/rmen/android/scrumchatter/export/FileExport.java | // Path: app/src/main/java/ca/rmen/android/scrumchatter/util/Log.java
// @SuppressWarnings("unused")
// public class Log {
// public static void v(String tag, String message) {
// if (BuildConfig.DEBUG) android.util.Log.v(tag, message);
// }
//
// public static void v(String tag, String message, Th... | import ca.rmen.android.scrumchatter.util.Log;
import ca.rmen.android.scrumchatter.Constants;
import java.io.File;
import android.content.Context; | /*
* Copyright 2013-2017 Carmen Alvarez
*
* This file is part of Scrum Chatter.
*
* Scrum Chatter is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) ... | // Path: app/src/main/java/ca/rmen/android/scrumchatter/util/Log.java
// @SuppressWarnings("unused")
// public class Log {
// public static void v(String tag, String message) {
// if (BuildConfig.DEBUG) android.util.Log.v(tag, message);
// }
//
// public static void v(String tag, String message, Th... | Log.v(TAG, "Constructor: mimeType=" + mimeType); |
caarmen/scrumchatter | app/src/main/java/ca/rmen/android/scrumchatter/provider/ScrumChatterDatabase.java | // Path: app/src/main/java/ca/rmen/android/scrumchatter/Constants.java
// public class Constants {
// public static final String TAG = "ScrumChatter";
// public static final String PREF_TEAM_ID = "team_id";
// public static final int DEFAULT_TEAM_ID = 1;
// public static final String DEFAULT_TEAM_NAME =... | import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import ca.rmen.android.scrumchatter.Constants;
import ca.rmen.android.scrumchatter.util.Log;
import ca.rmen.android.scrumchatter.R; | private static final String SQL_DROP_TABLE_MEETING_TEMP = "DROP TABLE " + MeetingColumns.TABLE_NAME + TEMP_SUFFIX;
private static final String SQL_CREATE_VIEW_MEMBER_STATS = "CREATE VIEW "
+ MemberStatsColumns.VIEW_NAME + " AS " + " SELECT "
+ MemberColumns.TABLE_NAME + "." + MemberColum... | // Path: app/src/main/java/ca/rmen/android/scrumchatter/Constants.java
// public class Constants {
// public static final String TAG = "ScrumChatter";
// public static final String PREF_TEAM_ID = "team_id";
// public static final int DEFAULT_TEAM_ID = 1;
// public static final String DEFAULT_TEAM_NAME =... | Log.d(TAG, "onCreate"); |
caarmen/scrumchatter | app/src/main/java/ca/rmen/android/scrumchatter/export/BitmapExport.java | // Path: app/src/main/java/ca/rmen/android/scrumchatter/Constants.java
// public class Constants {
// public static final String TAG = "ScrumChatter";
// public static final String PREF_TEAM_ID = "team_id";
// public static final int DEFAULT_TEAM_ID = 1;
// public static final String DEFAULT_TEAM_NAME =... | import android.content.Context;
import android.graphics.Bitmap;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import ca.rmen.android.scrumchatter.Constants;
import ca.rmen.android.scrumchatter.util.Log; | /*
* Copyright 2016-2017 Carmen Alvarez
* <p/>
* This file is part of Scrum Chatter.
* <p/>
* Scrum Chatter is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at you... | // Path: app/src/main/java/ca/rmen/android/scrumchatter/Constants.java
// public class Constants {
// public static final String TAG = "ScrumChatter";
// public static final String PREF_TEAM_ID = "team_id";
// public static final int DEFAULT_TEAM_ID = 1;
// public static final String DEFAULT_TEAM_NAME =... | Log.v(TAG, "export"); |
caarmen/scrumchatter | app/src/main/java/ca/rmen/android/scrumchatter/dialog/ChoiceDialogFragment.java | // Path: app/src/main/java/ca/rmen/android/scrumchatter/util/Log.java
// @SuppressWarnings("unused")
// public class Log {
// public static void v(String tag, String message) {
// if (BuildConfig.DEBUG) android.util.Log.v(tag, message);
// }
//
// public static void v(String tag, String message, Th... | import android.app.Dialog;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.AlertDialog;
import ca.rmen.android.scrumcha... | /*
* Copyright 2013, 2017 Carmen Alvarez
*
* This file is part of Scrum Chatter.
*
* Scrum Chatter is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option)... | // Path: app/src/main/java/ca/rmen/android/scrumchatter/util/Log.java
// @SuppressWarnings("unused")
// public class Log {
// public static void v(String tag, String message) {
// if (BuildConfig.DEBUG) android.util.Log.v(tag, message);
// }
//
// public static void v(String tag, String message, Th... | Log.v(TAG, "onCreateDialog: savedInstanceState = " + savedInstanceState); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.