hexsha stringlengths 40 40 | size int64 3 1.05M | ext stringclasses 1 value | lang stringclasses 1 value | max_stars_repo_path stringlengths 5 1.02k | max_stars_repo_name stringlengths 4 126 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses list | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 5 1.02k | max_issues_repo_name stringlengths 4 114 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses list | max_issues_count float64 1 92.2k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 5 1.02k | max_forks_repo_name stringlengths 4 136 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses list | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | avg_line_length float64 2.55 99.9 | max_line_length int64 3 1k | alphanum_fraction float64 0.25 1 | index int64 0 1M | content stringlengths 3 1.05M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e0aedec6424677d6eba147accb96ad5f1bfed0b | 716 | java | Java | junior_001/src/test/java/ru/job4j/list/SimpleQueueTest.java | zCRUSADERz/AlexanderYakovlev | 9b098fb876b5a60d5e5fdc8274b3b47e994d88ba | [
"Apache-2.0"
] | 2 | 2019-03-03T16:26:31.000Z | 2019-03-13T08:35:34.000Z | junior_001/src/test/java/ru/job4j/list/SimpleQueueTest.java | zCRUSADERz/AlexanderYakovlev | 9b098fb876b5a60d5e5fdc8274b3b47e994d88ba | [
"Apache-2.0"
] | 1 | 2022-02-16T00:55:29.000Z | 2022-02-16T00:55:29.000Z | junior_001/src/test/java/ru/job4j/list/SimpleQueueTest.java | zCRUSADERz/AlexanderYakovlev | 9b098fb876b5a60d5e5fdc8274b3b47e994d88ba | [
"Apache-2.0"
] | null | null | null | 25.714286 | 77 | 0.65 | 4,622 | package ru.job4j.list;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.core.IsNull.nullValue;
import static org.junit.Assert.*;
/**
* Simple queue test.
*
* @author Alexander Yakovlev (nnheo@example.com)
* @since 02.02.2017
*/
public class SimpleQueueTest {
@Test
public void whenPushElementsThenPollReturnedThisElementsInNormalOrder() {
SimpleQueue<String> stack = new SimpleQueue<>();
stack.push("1");
stack.push("2");
stack.push("3");
assertThat(stack.poll(), is("1"));
assertThat(stack.poll(), is("2"));
assertThat(stack.poll(), is("3"));
assertThat(stack.poll(), nullValue());
}
} |
3e0af04ca30b843f4717c6811ffaaa78e1d638be | 5,990 | java | Java | ContactsManager/app/src/main/java/ro/pub/cs/systems/eim/lab03/contactsmanager/ContactsManagerActivity.java | tavipopescu/Laborator04 | 7276e415c2eec6020fce5832145d8568766b3e57 | [
"Apache-2.0"
] | null | null | null | ContactsManager/app/src/main/java/ro/pub/cs/systems/eim/lab03/contactsmanager/ContactsManagerActivity.java | tavipopescu/Laborator04 | 7276e415c2eec6020fce5832145d8568766b3e57 | [
"Apache-2.0"
] | null | null | null | ContactsManager/app/src/main/java/ro/pub/cs/systems/eim/lab03/contactsmanager/ContactsManagerActivity.java | tavipopescu/Laborator04 | 7276e415c2eec6020fce5832145d8568766b3e57 | [
"Apache-2.0"
] | null | null | null | 47.539683 | 124 | 0.662604 | 4,623 | package ro.pub.cs.systems.eim.lab03.contactsmanager;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.Toast;
import java.util.ArrayList;
public class ContactsManagerActivity extends AppCompatActivity {
private EditText nameEditText;
private EditText phoneEditText;
private EditText emailEditText;
private EditText addressEditText;
private EditText jobTitleEditText;
private EditText companyEditText;
private EditText websiteEditText;
private EditText imEditText;
private Button showHideAdditionalFieldsButton;
private Button saveButton;
private Button cancelButton;
private LinearLayout additionalFields;
private class ButtonListener implements View.OnClickListener {
@Override
public void onClick(View v) {
if (v.getId() == R.id.show_hide_button) {
if (additionalFields.getVisibility() == View.INVISIBLE) {
showHideAdditionalFieldsButton.setText(getResources().getString(R.string.hide_additional_fields));
additionalFields.setVisibility(View.VISIBLE);
} else {
showHideAdditionalFieldsButton.setText(getResources().getString(R.string.show_additional_fields));
additionalFields.setVisibility(View.INVISIBLE);
}
} else if (v.getId() == R.id.save_button) {
String name = nameEditText.getText().toString();
String phoneNumber = phoneEditText.getText().toString();
String email = emailEditText.getText().toString();
String address = addressEditText.getText().toString();
String jobTitle = jobTitleEditText.getText().toString();
String company = companyEditText.getText().toString();
String website = websiteEditText.getText().toString();
String im = imEditText.getText().toString();
Intent intent = new Intent(ContactsContract.Intents.Insert.ACTION);
intent.setType(ContactsContract.RawContacts.CONTENT_TYPE);
intent.putExtra(ContactsContract.Intents.Insert.NAME, name);
intent.putExtra(ContactsContract.Intents.Insert.PHONE, phoneNumber);
intent.putExtra(ContactsContract.Intents.Insert.EMAIL, email);
intent.putExtra(ContactsContract.Intents.Insert.POSTAL, address);
intent.putExtra(ContactsContract.Intents.Insert.JOB_TITLE, jobTitle);
intent.putExtra(ContactsContract.Intents.Insert.COMPANY, company);
ArrayList<ContentValues> contactData = new ArrayList<>();
ContentValues websiteRow = new ContentValues();
websiteRow.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Website.CONTENT_ITEM_TYPE);
websiteRow.put(ContactsContract.CommonDataKinds.Website.URL, website);
contactData.add(websiteRow);
ContentValues imRow = new ContentValues();
imRow.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Im.CONTENT_ITEM_TYPE);
imRow.put(ContactsContract.CommonDataKinds.Im.DATA, im);
contactData.add(imRow);
intent.putParcelableArrayListExtra(ContactsContract.Intents.Insert.DATA, contactData);
startActivityForResult(intent, Constants.REQUEST_CODE);
} else if (v.getId() == R.id.cancel_button) {
setResult(Activity.RESULT_CANCELED, new Intent());
finish();
}
}
}
private ButtonListener buttonListener = new ButtonListener();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_contacts_manager);
nameEditText = findViewById(R.id.name_text);
phoneEditText = findViewById(R.id.number_text);
emailEditText = findViewById(R.id.email_text);
addressEditText = findViewById(R.id.address_text);
jobTitleEditText = findViewById(R.id.job_title_text);
companyEditText = findViewById(R.id.company_text);
websiteEditText = findViewById(R.id.website_text);
imEditText = findViewById(R.id.im_text);
showHideAdditionalFieldsButton = findViewById(R.id.show_hide_button);
saveButton = findViewById(R.id.save_button);
cancelButton = findViewById(R.id.cancel_button);
additionalFields = findViewById(R.id.additional_fields);
showHideAdditionalFieldsButton.setOnClickListener(buttonListener);
saveButton.setOnClickListener(buttonListener);
cancelButton.setOnClickListener(buttonListener);
Intent intent = getIntent();
if (intent != null) {
String phoneNumber = intent.getStringExtra("ro.pub.cs.systems.eim.lab03.contactsmanager.PHONE_NUMBER_KEY");
if (phoneNumber != null) {
phoneEditText.setText(phoneNumber);
} else {
Toast.makeText(this, getResources().getString(R.string.number_error), Toast.LENGTH_LONG).show();
}
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_CODE) {
setResult(resultCode, new Intent());
finish();
}
}
} |
3e0af1aaffdcea2694f7df6641141e79deb684db | 825 | java | Java | src/main/java-eclipse/de/jcup/eclipse/commons/tasktags/TaskTagDefinitionConverter.java | vogellacompany/eclipse-commons | 35a6b30881ac3ddeb7490b1b61f7b9bdb704a0ab | [
"Apache-2.0"
] | 1 | 2022-01-04T22:49:07.000Z | 2022-01-04T22:49:07.000Z | src/main/java-eclipse/de/jcup/eclipse/commons/tasktags/TaskTagDefinitionConverter.java | vogellacompany/eclipse-commons | 35a6b30881ac3ddeb7490b1b61f7b9bdb704a0ab | [
"Apache-2.0"
] | 41 | 2018-07-02T22:44:24.000Z | 2022-03-25T17:21:40.000Z | src/main/java-eclipse/de/jcup/eclipse/commons/tasktags/TaskTagDefinitionConverter.java | vogellacompany/eclipse-commons | 35a6b30881ac3ddeb7490b1b61f7b9bdb704a0ab | [
"Apache-2.0"
] | 1 | 2021-09-28T08:59:08.000Z | 2021-09-28T08:59:08.000Z | 33 | 93 | 0.820606 | 4,624 | package de.jcup.eclipse.commons.tasktags;
import de.jcup.eclipse.commons.preferences.AbstractPreferenceValueConverter;
import de.jcup.eclipse.commons.tasktags.TaskTagsSupport.TaskTagDefinition;
class TaskTagDefinitionConverter extends AbstractPreferenceValueConverter<TaskTagDefinition>{
@Override
protected void write(TaskTagDefinition oneEntry,
de.jcup.eclipse.commons.preferences.PreferenceDataWriter writer) {
writer.writeString(oneEntry.getIdentifier());
writer.writeString(oneEntry.getPriority().name());
}
@Override
protected TaskTagDefinition read(
de.jcup.eclipse.commons.preferences.PreferenceDataReader reader) {
TaskTagDefinition definition = new TaskTagDefinition();
definition.setIdentifier(reader.readString());
definition.setPriority(reader.readString());
return definition;
}
} |
3e0af1b6fe8287f83b4f5e44709c8cbe0418dc48 | 2,412 | java | Java | dubbo-common/src/test/java/org/apache/dubbo/common/threadlocal/concurrent/ScheduledCompletableFutureTest.java | Roger3581321/dubbo | c269589f1c8abc1986519d9fd1e231b8f8eac789 | [
"Apache-2.0"
] | 82 | 2019-06-02T12:29:41.000Z | 2022-03-20T03:38:30.000Z | dubbo-common/src/test/java/org/apache/dubbo/common/threadlocal/concurrent/ScheduledCompletableFutureTest.java | Roger3581321/dubbo | c269589f1c8abc1986519d9fd1e231b8f8eac789 | [
"Apache-2.0"
] | 10 | 2021-03-13T08:27:06.000Z | 2021-04-15T09:19:38.000Z | dubbo-common/src/test/java/org/apache/dubbo/common/threadlocal/concurrent/ScheduledCompletableFutureTest.java | Roger3581321/dubbo | c269589f1c8abc1986519d9fd1e231b8f8eac789 | [
"Apache-2.0"
] | 64 | 2019-06-01T09:15:01.000Z | 2022-03-29T16:43:10.000Z | 45.509434 | 143 | 0.762023 | 4,625 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.common.threadlocal.concurrent;
import org.apache.dubbo.common.threadpool.concurrent.ScheduledCompletableFuture;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.ExecutionException;
public class ScheduledCompletableFutureTest {
@Test
public void testSubmit() throws Exception {
ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor();
CompletableFuture<String> futureOK = ScheduledCompletableFuture.submit(executorService, () -> "done");
Assertions.assertEquals(futureOK.get(), "done");
CompletableFuture<Integer> futureFail = ScheduledCompletableFuture.submit(executorService, () -> 1 / 0);
Assertions.assertThrows(ExecutionException.class, () -> futureFail.get());
}
@Test
public void testSchedule() throws Exception {
ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor();
CompletableFuture<String> futureOK = ScheduledCompletableFuture.schedule(executorService, () -> "done", 1000, TimeUnit.MILLISECONDS);
Assertions.assertEquals(futureOK.get(), "done");
CompletableFuture<Integer> futureFail = ScheduledCompletableFuture.schedule(executorService, () -> 1 / 0, 1000, TimeUnit.MILLISECONDS);
Assertions.assertThrows(ExecutionException.class, () -> futureFail.get());
}
} |
3e0af22b70f387cba38c27a2137d8b0a9dbc1c90 | 13,248 | java | Java | dax/xnat_datatypes/default/1.7/genProcData/src/generated/java/org/nrg/xdat/om/base/auto/AutoProcGenprocdata.java | praitayini/dax | 88e77e0ed57c13fd4c918ebad8c098cee76d2235 | [
"MIT"
] | null | null | null | dax/xnat_datatypes/default/1.7/genProcData/src/generated/java/org/nrg/xdat/om/base/auto/AutoProcGenprocdata.java | praitayini/dax | 88e77e0ed57c13fd4c918ebad8c098cee76d2235 | [
"MIT"
] | 13 | 2020-06-11T20:56:24.000Z | 2022-03-12T00:37:02.000Z | dax/xnat_datatypes/default/1.7/genProcData/src/generated/java/org/nrg/xdat/om/base/auto/AutoProcGenprocdata.java | praitayini/dax | 88e77e0ed57c13fd4c918ebad8c098cee76d2235 | [
"MIT"
] | 1 | 2020-03-20T09:38:53.000Z | 2020-03-20T09:38:53.000Z | 25.57529 | 181 | 0.68516 | 4,626 | /*
* GENERATED FILE
* Created on Tue Oct 11 11:43:59 BST 2016
*
*/
package org.nrg.xdat.om.base.auto;
import org.apache.log4j.Logger;
import org.nrg.xft.*;
import org.nrg.xft.security.UserI;
import org.nrg.xdat.om.*;
import org.nrg.xft.utils.ResourceFile;
import org.nrg.xft.exception.*;
import java.util.*;
/**
* @author XDAT
*
*//*
********************************
* DO NOT MODIFY THIS FILE
*
********************************/
@SuppressWarnings({"unchecked","rawtypes"})
public abstract class AutoProcGenprocdata extends XnatImageassessordata implements org.nrg.xdat.model.ProcGenprocdataI {
public static final Logger logger = Logger.getLogger(AutoProcGenprocdata.class);
public static final String SCHEMA_ELEMENT_NAME="proc:genProcData";
public AutoProcGenprocdata(ItemI item)
{
super(item);
}
public AutoProcGenprocdata(UserI user)
{
super(user);
}
/*
* @deprecated Use AutoProcGenprocdata(UserI user)
**/
public AutoProcGenprocdata(){}
public AutoProcGenprocdata(Hashtable properties,UserI user)
{
super(properties,user);
}
public String getSchemaElementName(){
return "proc:genProcData";
}
private org.nrg.xdat.om.XnatImageassessordata _Imageassessordata =null;
/**
* imageAssessorData
* @return org.nrg.xdat.om.XnatImageassessordata
*/
public org.nrg.xdat.om.XnatImageassessordata getImageassessordata() {
try{
if (_Imageassessordata==null){
_Imageassessordata=((XnatImageassessordata)org.nrg.xdat.base.BaseElement.GetGeneratedItem((XFTItem)getProperty("imageAssessorData")));
return _Imageassessordata;
}else {
return _Imageassessordata;
}
} catch (Exception e1) {return null;}
}
/**
* Sets the value for imageAssessorData.
* @param v Value to Set.
*/
public void setImageassessordata(ItemI v) throws Exception{
_Imageassessordata =null;
try{
if (v instanceof XFTItem)
{
getItem().setChild(SCHEMA_ELEMENT_NAME + "/imageAssessorData",v,true);
}else{
getItem().setChild(SCHEMA_ELEMENT_NAME + "/imageAssessorData",v.getItem(),true);
}
} catch (Exception e1) {logger.error(e1);throw e1;}
}
/**
* imageAssessorData
* set org.nrg.xdat.model.XnatImageassessordataI
*/
public <A extends org.nrg.xdat.model.XnatImageassessordataI> void setImageassessordata(A item) throws Exception{
setImageassessordata((ItemI)item);
}
/**
* Removes the imageAssessorData.
* */
public void removeImageassessordata() {
_Imageassessordata =null;
try{
getItem().removeChild(SCHEMA_ELEMENT_NAME + "/imageAssessorData",0);
} catch (FieldNotFoundException e1) {logger.error(e1);}
catch (java.lang.IndexOutOfBoundsException e1) {logger.error(e1);}
}
private ArrayList<org.nrg.xdat.om.ProcGenprocdataScan> _Scans_scan =null;
/**
* scans/scan
* @return Returns an List of org.nrg.xdat.om.ProcGenprocdataScan
*/
public <A extends org.nrg.xdat.model.ProcGenprocdataScanI> List<A> getScans_scan() {
try{
if (_Scans_scan==null){
_Scans_scan=org.nrg.xdat.base.BaseElement.WrapItems(getChildItems("scans/scan"));
}
return (List<A>) _Scans_scan;
} catch (Exception e1) {return (List<A>) new ArrayList<org.nrg.xdat.om.ProcGenprocdataScan>();}
}
/**
* Sets the value for scans/scan.
* @param v Value to Set.
*/
public void setScans_scan(ItemI v) throws Exception{
_Scans_scan =null;
try{
if (v instanceof XFTItem)
{
getItem().setChild(SCHEMA_ELEMENT_NAME + "/scans/scan",v,true);
}else{
getItem().setChild(SCHEMA_ELEMENT_NAME + "/scans/scan",v.getItem(),true);
}
} catch (Exception e1) {logger.error(e1);throw e1;}
}
/**
* scans/scan
* Adds org.nrg.xdat.model.ProcGenprocdataScanI
*/
public <A extends org.nrg.xdat.model.ProcGenprocdataScanI> void addScans_scan(A item) throws Exception{
setScans_scan((ItemI)item);
}
/**
* Removes the scans/scan of the given index.
* @param index Index of child to remove.
*/
public void removeScans_scan(int index) throws java.lang.IndexOutOfBoundsException {
_Scans_scan =null;
try{
getItem().removeChild(SCHEMA_ELEMENT_NAME + "/scans/scan",index);
} catch (FieldNotFoundException e1) {logger.error(e1);}
}
//FIELD
private String _Procstatus=null;
/**
* @return Returns the procstatus.
*/
public String getProcstatus(){
try{
if (_Procstatus==null){
_Procstatus=getStringProperty("procstatus");
return _Procstatus;
}else {
return _Procstatus;
}
} catch (Exception e1) {logger.error(e1);return null;}
}
/**
* Sets the value for procstatus.
* @param v Value to Set.
*/
public void setProcstatus(String v){
try{
setProperty(SCHEMA_ELEMENT_NAME + "/procstatus",v);
_Procstatus=null;
} catch (Exception e1) {logger.error(e1);}
}
//FIELD
private String _Proctype=null;
/**
* @return Returns the proctype.
*/
public String getProctype(){
try{
if (_Proctype==null){
_Proctype=getStringProperty("proctype");
return _Proctype;
}else {
return _Proctype;
}
} catch (Exception e1) {logger.error(e1);return null;}
}
/**
* Sets the value for proctype.
* @param v Value to Set.
*/
public void setProctype(String v){
try{
setProperty(SCHEMA_ELEMENT_NAME + "/proctype",v);
_Proctype=null;
} catch (Exception e1) {logger.error(e1);}
}
//FIELD
private String _Procversion=null;
/**
* @return Returns the procversion.
*/
public String getProcversion(){
try{
if (_Procversion==null){
_Procversion=getStringProperty("procversion");
return _Procversion;
}else {
return _Procversion;
}
} catch (Exception e1) {logger.error(e1);return null;}
}
/**
* Sets the value for procversion.
* @param v Value to Set.
*/
public void setProcversion(String v){
try{
setProperty(SCHEMA_ELEMENT_NAME + "/procversion",v);
_Procversion=null;
} catch (Exception e1) {logger.error(e1);}
}
//FIELD
private String _Jobid=null;
/**
* @return Returns the jobid.
*/
public String getJobid(){
try{
if (_Jobid==null){
_Jobid=getStringProperty("jobid");
return _Jobid;
}else {
return _Jobid;
}
} catch (Exception e1) {logger.error(e1);return null;}
}
/**
* Sets the value for jobid.
* @param v Value to Set.
*/
public void setJobid(String v){
try{
setProperty(SCHEMA_ELEMENT_NAME + "/jobid",v);
_Jobid=null;
} catch (Exception e1) {logger.error(e1);}
}
//FIELD
private String _Walltimeused=null;
/**
* @return Returns the walltimeused.
*/
public String getWalltimeused(){
try{
if (_Walltimeused==null){
_Walltimeused=getStringProperty("walltimeused");
return _Walltimeused;
}else {
return _Walltimeused;
}
} catch (Exception e1) {logger.error(e1);return null;}
}
/**
* Sets the value for walltimeused.
* @param v Value to Set.
*/
public void setWalltimeused(String v){
try{
setProperty(SCHEMA_ELEMENT_NAME + "/walltimeused",v);
_Walltimeused=null;
} catch (Exception e1) {logger.error(e1);}
}
//FIELD
private Integer _Memusedmb=null;
/**
* @return Returns the memusedmb.
*/
public Integer getMemusedmb() {
try{
if (_Memusedmb==null){
_Memusedmb=getIntegerProperty("memusedmb");
return _Memusedmb;
}else {
return _Memusedmb;
}
} catch (Exception e1) {logger.error(e1);return null;}
}
/**
* Sets the value for memusedmb.
* @param v Value to Set.
*/
public void setMemusedmb(Integer v){
try{
setProperty(SCHEMA_ELEMENT_NAME + "/memusedmb",v);
_Memusedmb=null;
} catch (Exception e1) {logger.error(e1);}
}
//FIELD
private Object _Jobstartdate=null;
/**
* @return Returns the jobstartdate.
*/
public Object getJobstartdate(){
try{
if (_Jobstartdate==null){
_Jobstartdate=getProperty("jobstartdate");
return _Jobstartdate;
}else {
return _Jobstartdate;
}
} catch (Exception e1) {logger.error(e1);return null;}
}
/**
* Sets the value for jobstartdate.
* @param v Value to Set.
*/
public void setJobstartdate(Object v){
try{
setProperty(SCHEMA_ELEMENT_NAME + "/jobstartdate",v);
_Jobstartdate=null;
} catch (Exception e1) {logger.error(e1);}
}
//FIELD
private String _Memused=null;
/**
* @return Returns the memused.
*/
public String getMemused(){
try{
if (_Memused==null){
_Memused=getStringProperty("memused");
return _Memused;
}else {
return _Memused;
}
} catch (Exception e1) {logger.error(e1);return null;}
}
/**
* Sets the value for memused.
* @param v Value to Set.
*/
public void setMemused(String v){
try{
setProperty(SCHEMA_ELEMENT_NAME + "/memused",v);
_Memused=null;
} catch (Exception e1) {logger.error(e1);}
}
//FIELD
private String _Jobnode=null;
/**
* @return Returns the jobnode.
*/
public String getJobnode(){
try{
if (_Jobnode==null){
_Jobnode=getStringProperty("jobnode");
return _Jobnode;
}else {
return _Jobnode;
}
} catch (Exception e1) {logger.error(e1);return null;}
}
/**
* Sets the value for jobnode.
* @param v Value to Set.
*/
public void setJobnode(String v){
try{
setProperty(SCHEMA_ELEMENT_NAME + "/jobnode",v);
_Jobnode=null;
} catch (Exception e1) {logger.error(e1);}
}
public static ArrayList<org.nrg.xdat.om.ProcGenprocdata> getAllProcGenprocdatas(org.nrg.xft.security.UserI user,boolean preLoad)
{
ArrayList<org.nrg.xdat.om.ProcGenprocdata> al = new ArrayList<org.nrg.xdat.om.ProcGenprocdata>();
try{
org.nrg.xft.collections.ItemCollection items = org.nrg.xft.search.ItemSearch.GetAllItems(SCHEMA_ELEMENT_NAME,user,preLoad);
al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
} catch (Exception e) {
logger.error("",e);
}
al.trimToSize();
return al;
}
public static ArrayList<org.nrg.xdat.om.ProcGenprocdata> getProcGenprocdatasByField(String xmlPath, Object value, org.nrg.xft.security.UserI user,boolean preLoad)
{
ArrayList<org.nrg.xdat.om.ProcGenprocdata> al = new ArrayList<org.nrg.xdat.om.ProcGenprocdata>();
try {
org.nrg.xft.collections.ItemCollection items = org.nrg.xft.search.ItemSearch.GetItems(xmlPath,value,user,preLoad);
al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
} catch (Exception e) {
logger.error("",e);
}
al.trimToSize();
return al;
}
public static ArrayList<org.nrg.xdat.om.ProcGenprocdata> getProcGenprocdatasByField(org.nrg.xft.search.CriteriaCollection criteria, org.nrg.xft.security.UserI user,boolean preLoad)
{
ArrayList<org.nrg.xdat.om.ProcGenprocdata> al = new ArrayList<org.nrg.xdat.om.ProcGenprocdata>();
try {
org.nrg.xft.collections.ItemCollection items = org.nrg.xft.search.ItemSearch.GetItems(criteria,user,preLoad);
al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
} catch (Exception e) {
logger.error("",e);
}
al.trimToSize();
return al;
}
public static ProcGenprocdata getProcGenprocdatasById(Object value, org.nrg.xft.security.UserI user,boolean preLoad)
{
try {
org.nrg.xft.collections.ItemCollection items = org.nrg.xft.search.ItemSearch.GetItems("proc:genProcData/id",value,user,preLoad);
ItemI match = items.getFirst();
if (match!=null)
return (ProcGenprocdata) org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
else
return null;
} catch (Exception e) {
logger.error("",e);
}
return null;
}
public static ArrayList wrapItems(ArrayList items)
{
ArrayList al = new ArrayList();
al = org.nrg.xdat.base.BaseElement.WrapItems(items);
al.trimToSize();
return al;
}
public static ArrayList wrapItems(org.nrg.xft.collections.ItemCollection items)
{
return wrapItems(items.getItems());
}
public ArrayList<ResourceFile> getFileResources(String rootPath, boolean preventLoop){
ArrayList<ResourceFile> _return = new ArrayList<ResourceFile>();
boolean localLoop = preventLoop;
localLoop = preventLoop;
//imageAssessorData
XnatImageassessordata childImageassessordata = (XnatImageassessordata)this.getImageassessordata();
if (childImageassessordata!=null){
for(ResourceFile rf: ((XnatImageassessordata)childImageassessordata).getFileResources(rootPath, localLoop)) {
rf.setXpath("imageAssessorData[" + ((XnatImageassessordata)childImageassessordata).getItem().getPKString() + "]/" + rf.getXpath());
rf.setXdatPath("imageAssessorData/" + ((XnatImageassessordata)childImageassessordata).getItem().getPKString() + "/" + rf.getXpath());
_return.add(rf);
}
}
localLoop = preventLoop;
//scans/scan
for(org.nrg.xdat.model.ProcGenprocdataScanI childScans_scan : this.getScans_scan()){
if (childScans_scan!=null){
for(ResourceFile rf: ((ProcGenprocdataScan)childScans_scan).getFileResources(rootPath, localLoop)) {
rf.setXpath("scans/scan[" + ((ProcGenprocdataScan)childScans_scan).getItem().getPKString() + "]/" + rf.getXpath());
rf.setXdatPath("scans/scan/" + ((ProcGenprocdataScan)childScans_scan).getItem().getPKString() + "/" + rf.getXpath());
_return.add(rf);
}
}
}
localLoop = preventLoop;
return _return;
}
}
|
3e0af3ead4e4fae798a9498d5af0c25444b283b6 | 10,419 | java | Java | foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/jpa/parsing/Node.java | brettdavidson3/eclipselink.runtime | a992a67ce49ca56117df4632c9c0c70938a0b28e | [
"BSD-3-Clause"
] | null | null | null | foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/jpa/parsing/Node.java | brettdavidson3/eclipselink.runtime | a992a67ce49ca56117df4632c9c0c70938a0b28e | [
"BSD-3-Clause"
] | null | null | null | foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/jpa/parsing/Node.java | brettdavidson3/eclipselink.runtime | a992a67ce49ca56117df4632c9c0c70938a0b28e | [
"BSD-3-Clause"
] | null | null | null | 24.118056 | 124 | 0.541223 | 4,627 | /*******************************************************************************
* Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Oracle - initial API and implementation from Oracle TopLink
******************************************************************************/
package org.eclipse.persistence.internal.jpa.parsing;
import org.eclipse.persistence.expressions.*;
import org.eclipse.persistence.mappings.DatabaseMapping;
import org.eclipse.persistence.queries.ObjectLevelReadQuery;
/**
* INTERNAL
* <p><b>Purpose</b>: This is the superclass for all Nodes.
* <p><b>Responsibilities</b>:<ul>
* <li> Answer default answers for all method calls
* <li> Delegate most responsibilities to the sub-classes
* </ul>
* @author Jon Driscoll and Joel Lucuik
* @since TopLink 4.0
*/
public class Node {
private int line;
private int column;
protected Node left = null;
protected Node right = null;
private Object type;
public boolean shouldGenerateExpression;
protected String alias = null;
/**
* Return a new Node.
*/
public Node() {
super();
}
/**
* INTERNAL
* Apply this node to the passed query
*/
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) {
}
/**
* INTERNAL
* Add my expression semantics to the parentExpression. Each subclass will add a different expression and
* thus will need to override this method
*/
public Expression addToExpression(Expression parentExpression, GenerationContext context) {
return parentExpression;
}
/**
* INTERNAL
* Get the string representation of this node.
* By default return toString()
*/
public String getAsString() {
return toString();
}
/**
* INTERNAL
* Check the child node for an unqualified field access and if so,
* replace it by a qualified field access.
*/
public Node qualifyAttributeAccess(ParseTreeContext context) {
if (left != null) {
left = left.qualifyAttributeAccess(context);
}
if (right != null) {
right = right.qualifyAttributeAccess(context);
}
return this;
}
/**
* INTERNAL
* Validate node and calculate its type.
*/
public void validate(ParseTreeContext context) {
// Nothing to be validated here, but delegate to the child nodes.
if (left != null) {
left.validate(context);
}
if (right != null) {
right.validate(context);
}
}
/**
* INTERNAL
*/
public void validateParameter(ParseTreeContext context, Object contextType) {
// nothing to be done
}
/**
* INTERNAL
* Generate an expression for the node. Each subclass will generate a different expression and
* thus will need to override this method
*/
public Expression generateExpression(GenerationContext context) {
return null;
}
/**
* INTERNAL
* Return the left node
*/
public Node getLeft() {
return left;
}
/**
* INTERNAL
* Return the right node
*/
public Node getRight() {
return right;
}
/**
* INTERNAL
* Does this node have a left
*/
public boolean hasLeft() {
return getLeft() != null;
}
/**
* INTERNAL
* Does this node have a right
*/
public boolean hasRight() {
return getRight() != null;
}
/**
* INTERNAL
* Is this node an Aggregate node
*/
public boolean isAggregateNode() {
return false;
}
/**
* INTERNAL
* Is this node a Dot node
*/
public boolean isDotNode() {
return false;
}
/**
* INTERNAL
* Is this a literal node
*/
public boolean isLiteralNode() {
return false;
}
/**
* INTERNAL
* Is this node a Multiply node
*/
public boolean isMultiplyNode() {
return false;
}
/**
* INTERNAL
* Is this node a Not node
*/
public boolean isNotNode() {
return false;
}
/**
* INTERNAL
* Is this a Parameter node
*/
public boolean isParameterNode() {
return false;
}
/**
* INTERNAL
* Is this node a Divide node
*/
public boolean isDivideNode() {
return false;
}
/**
* INTERNAL
* Is this node a Plus node
*/
public boolean isPlusNode() {
return false;
}
/**
* INTERNAL
* Is this node a MapKey node
*/
public boolean isMapKeyNode() {
return false;
}
/**
* INTERNAL
* Is this node a Minus node
*/
public boolean isMinusNode() {
return false;
}
/**
* INTERNAL
* Is this node a VariableNode
*/
public boolean isVariableNode() {
return false;
}
/**
* INTERNAL
* Is this node an AttributeNode
*/
public boolean isAttributeNode() {
return false;
}
/**
* INTERNAL
* Is this node a CountNode
*/
public boolean isCountNode() {
return false;
}
/**
* INTERNAL
* Is this node a ConstructorNode
*/
public boolean isConstructorNode() {
return false;
}
/**
* INTERNAL
* Is this node a SubqueryNode
*/
public boolean isSubqueryNode() {
return false;
}
/**
* INTERNAL
* Is this an escape node
*/
public boolean isEscape() {
return false;// no it is not
}
/**
* resolveAttribute(): Answer the name of the attribute which is represented by the receiver.
* Subclasses should override this.
*/
public String resolveAttribute() {
return "";
}
/**
* resolveClass: Answer the class associated with the content of this node. Default is to return null.
* Subclasses should override this.
*/
public Class resolveClass(GenerationContext context) {
return null;
}
/**
* resolveClass: Answer the class associated with the content of this node. Default is to return null.
* Subclasses should override this.
*/
public Class resolveClass(GenerationContext context, Class ownerClass) {
return null;
}
/**
* resolveMapping: Answer the mapping associated with the contained nodes.
* Subclasses should override this.
*/
public DatabaseMapping resolveMapping(GenerationContext context) {
return null;
}
/**
* resolveMapping: Answer the mapping associated with the contained nodes. Use the provided
* class as the context.
* Subclasses should override this.
*/
public DatabaseMapping resolveMapping(GenerationContext context, Class ownerClass) {
return null;
}
/**
* INTERNAL
* Set the left node to the passed value
*/
public void setLeft(Node newLeft) {
left = newLeft;
}
/**
* INTERNAL
* Set the right for this node
*/
public void setRight(Node newRight) {
right = newRight;
}
public int getLine() {
return line;
}
public void setLine(int line) {
this.line = line;
}
public int getColumn() {
return column;
}
public void setColumn(int column) {
this.column = column;
}
/**
* INTERNAL
* Return the type of this node.
*/
public Object getType() {
return type;
}
/**
* INTERNAL
* Set this node's type.
*/
public void setType(Object type) {
this.type = type;
}
/**
* INTERNAL
* Returns left.and(right) if both are defined.
*/
public Expression appendExpression(Expression left, Expression right) {
Expression expr = null;
if (left == null) {
expr = right;
} else if (right == null) {
expr = left;
} else {
expr = left.and(right);
}
return expr;
}
public String toString() {
try {
return toString(1);
} catch (Throwable t) {
return t.toString();
}
}
public String toString(int indent) {
StringBuffer buffer = new StringBuffer();
buffer.append(toStringDisplayName());
buffer.append("\r\n");
toStringIndent(indent, buffer);
if (hasLeft()) {
buffer.append("Left: " + getLeft().toString(indent + 1));
} else {
buffer.append("Left: null");
}
buffer.append("\r\n");
toStringIndent(indent, buffer);
if (hasRight()) {
buffer.append("Right: " + getRight().toString(indent + 1));
} else {
buffer.append("Right: null");
}
return buffer.toString();
}
public String toStringDisplayName() {
return getClass().toString().substring(getClass().toString().lastIndexOf('.') + 1, getClass().toString().length());
}
public void toStringIndent(int indent, StringBuffer buffer) {
for (int i = 0; i < indent; i++) {
buffer.append(" ");
}
;
}
public String getAlias(){
return this.alias;
}
public void setAlias(String alias){
this.alias = alias;
}
public boolean isAliasableNode(){
return false;
}
}
|
3e0af684ef4a53ce9e3f8e7b67efaf39f5b2d89f | 2,047 | java | Java | persistence-api/src/main/java/io/stargate/db/datastore/query/Parameter.java | tlasica/stargate | 11e6bedf4bdb14e4fc0ddee78a0469d25d56ad8b | [
"Apache-2.0"
] | null | null | null | persistence-api/src/main/java/io/stargate/db/datastore/query/Parameter.java | tlasica/stargate | 11e6bedf4bdb14e4fc0ddee78a0469d25d56ad8b | [
"Apache-2.0"
] | null | null | null | persistence-api/src/main/java/io/stargate/db/datastore/query/Parameter.java | tlasica/stargate | 11e6bedf4bdb14e4fc0ddee78a0469d25d56ad8b | [
"Apache-2.0"
] | null | null | null | 24.662651 | 75 | 0.63361 | 4,629 | /*
* Copyright DataStax, Inc. and/or The Stargate Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.stargate.db.datastore.query;
import io.stargate.db.datastore.schema.Column;
import java.util.Optional;
import java.util.function.Function;
public interface Parameter<T> extends Comparable<Parameter> {
Column column();
Optional<Object> value();
Object UNSET =
new SpecialTermMarker() {
static final String term = "<unset>";
@Override
public String toString() {
return term;
}
@Override
public int hashCode() {
return term.hashCode();
}
@Override
public boolean equals(Object obj) {
return obj != null && this.toString().equals(obj.toString());
}
};
Object NULL =
new SpecialTermMarker() {
static final String term = "<null>";
@Override
public String toString() {
return term;
}
@Override
public int hashCode() {
return term.hashCode();
}
@Override
public boolean equals(Object obj) {
return obj != null && this.toString().equals(obj.toString());
}
};
Optional<Function<T, Object>> bindingFunction();
default int compareTo(Parameter other) {
return column().name().compareTo(other.column().name());
}
default boolean ignored() {
return false;
}
default Parameter<T> ignore() {
return this;
}
interface SpecialTermMarker {}
}
|
3e0af77b8e6cf47b530ca8b4c83bda68206e52b7 | 190,184 | java | Java | wsdl/AddressService/com/qwest/xmlschema/ObjectFactory.java | AngularJS-Angular2-Angular4/angular2-project | f78c95e67bca0e47058289b5c16f53a068f133f3 | [
"MIT"
] | 1 | 2017-06-21T11:16:17.000Z | 2017-06-21T11:16:17.000Z | wsdl/AddressService/com/qwest/xmlschema/ObjectFactory.java | AngularJS-Angular2-Angular4/angular2-project | f78c95e67bca0e47058289b5c16f53a068f133f3 | [
"MIT"
] | null | null | null | wsdl/AddressService/com/qwest/xmlschema/ObjectFactory.java | AngularJS-Angular2-Angular4/angular2-project | f78c95e67bca0e47058289b5c16f53a068f133f3 | [
"MIT"
] | null | null | null | 51.652363 | 204 | 0.715975 | 4,630 |
package com.qwest.xmlschema;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
import com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.qwest.xmlschema package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _ValidateCivicAddressResponseDataT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ValidateCivicAddressResponseDataT");
private final static QName _ValidateCivicAddressResponse_QNAME = new QName("http://www.qwest.com/XMLSchema", "ValidateCivicAddressResponse");
private final static QName _SAGInfoT_QNAME = new QName("http://www.qwest.com/XMLSchema", "SAGInfoT");
private final static QName _QwestAddressT_QNAME = new QName("http://www.qwest.com/XMLSchema", "QwestAddressT");
private final static QName _SLOCInfo_QNAME = new QName("http://www.qwest.com/XMLSchema", "SLOCInfo");
private final static QName _AddressConnectionT_QNAME = new QName("http://www.qwest.com/XMLSchema", "AddressConnectionT");
private final static QName _ArrayOfVideoConnectionT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfVideoConnectionT");
private final static QName _ArrayOfAHNMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfAHNMatch");
private final static QName _LineInfo_QNAME = new QName("http://www.qwest.com/XMLSchema", "LineInfo");
private final static QName _StreetNumberT_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetNumberT");
private final static QName _StreetNameCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetNameCommunity");
private final static QName _LocationInfoListT_QNAME = new QName("http://www.qwest.com/XMLSchema", "LocationInfoListT");
private final static QName _ArrayOfSLOCMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfSLOCMatch");
private final static QName _ArrayOfStreetRangeMatchT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfStreetRangeMatchT");
private final static QName _AreaCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "AreaCommunity");
private final static QName _ArrayOfGSCMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfGSCMatch");
private final static QName _ServiceStatusObject_QNAME = new QName("http://www.qwest.com/XMLSchema", "ServiceStatusObject");
private final static QName _AliasCommunityListT_QNAME = new QName("http://www.qwest.com/XMLSchema", "AliasCommunityListT");
private final static QName _ArrayOfAddressCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfAddressCommunity");
private final static QName _ServiceRequestStatusT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ServiceRequestStatusT");
private final static QName _ErrorStatus_QNAME = new QName("http://www.qwest.com/XMLSchema", "ErrorStatus");
private final static QName _NeighborMatchT_QNAME = new QName("http://www.qwest.com/XMLSchema", "NeighborMatchT");
private final static QName _AddressDesignatorT_QNAME = new QName("http://www.qwest.com/XMLSchema", "AddressDesignatorT");
private final static QName _ArrayOfSwitch_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfSwitch");
private final static QName _ExactMatchT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ExactMatchT");
private final static QName _ErrorList_QNAME = new QName("http://www.qwest.com/XMLSchema", "ErrorList");
private final static QName _ConcatenatedAddressT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ConcatenatedAddressT");
private final static QName _ArrayOfCivicAddressT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfCivicAddressT");
private final static QName _ArrayOfTNSummary_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfTNSummary");
private final static QName _ArrayOfDescriptiveNameCommunityMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfDescriptiveNameCommunityMatch");
private final static QName _QwestStreetInfoT_QNAME = new QName("http://www.qwest.com/XMLSchema", "QwestStreetInfoT");
private final static QName _SLOCMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "SLOCMatch");
private final static QName _ArrayOfTelephoneConnectionT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfTelephoneConnectionT");
private final static QName _ArrayOfStreetCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfStreetCommunity");
private final static QName _ArrayOfCommunityT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfCommunityT");
private final static QName _ArrayOfQwestStreetInfoT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfQwestStreetInfoT");
private final static QName _ARTISInfoObject_QNAME = new QName("http://www.qwest.com/XMLSchema", "ARTISInfoObject");
private final static QName _NetworkCapabilitiesT_QNAME = new QName("http://www.qwest.com/XMLSchema", "NetworkCapabilitiesT");
private final static QName _CustomerInfoT_QNAME = new QName("http://www.qwest.com/XMLSchema", "CustomerInfoT");
private final static QName _BaseTNType_QNAME = new QName("http://www.qwest.com/XMLSchema", "BaseTNType");
private final static QName _ArrayOfExtPendingServiceRequestT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfExtPendingServiceRequestT");
private final static QName _ArrayOfErrorList_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfErrorList");
private final static QName _AddressCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "AddressCommunity");
private final static QName _AHNMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "AHNMatch");
private final static QName _AreaT_QNAME = new QName("http://www.qwest.com/XMLSchema", "AreaT");
private final static QName _PNAInfoT_QNAME = new QName("http://www.qwest.com/XMLSchema", "PNAInfoT");
private final static QName _ArrayOfHouseNumber_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfHouseNumber");
private final static QName _TelephoneConnectionTClassOfService_QNAME = new QName("http://www.qwest.com/XMLSchema", "TelephoneConnectionTClassOfService");
private final static QName _ArrayOfDescriptiveNamePNAMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfDescriptiveNamePNAMatch");
private final static QName _TNSummary_QNAME = new QName("http://www.qwest.com/XMLSchema", "TNSummary");
private final static QName _HouseNumber_QNAME = new QName("http://www.qwest.com/XMLSchema", "HouseNumber");
private final static QName _AccessParamsT_QNAME = new QName("http://www.qwest.com/XMLSchema", "AccessParamsT");
private final static QName _AliasCommunityListTAliasCommunityInd_QNAME = new QName("http://www.qwest.com/XMLSchema", "AliasCommunityListTAliasCommunityInd");
private final static QName _StreetNameT_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetNameT");
private final static QName _ArrayOfAreaCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfAreaCommunity");
private final static QName _PendingServiceRequestT_QNAME = new QName("http://www.qwest.com/XMLSchema", "PendingServiceRequestT");
private final static QName _ArrayOfStreetNameCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfStreetNameCommunity");
private final static QName _EchoRequestT_QNAME = new QName("http://www.qwest.com/XMLSchema", "EchoRequestT");
private final static QName _ArrayOfLineInfo_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfLineInfo");
private final static QName _CommunityT_QNAME = new QName("http://www.qwest.com/XMLSchema", "CommunityT");
private final static QName _PendingServiceRequestTActivity_QNAME = new QName("http://www.qwest.com/XMLSchema", "PendingServiceRequestTActivity");
private final static QName _SchemaVersionT_QNAME = new QName("http://www.qwest.com/XMLSchema", "SchemaVersionT");
private final static QName _NumberedAddressT_QNAME = new QName("http://www.qwest.com/XMLSchema", "NumberedAddressT");
private final static QName _CustomField_QNAME = new QName("http://www.qwest.com/XMLSchema", "CustomField");
private final static QName _GSCMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "GSCMatch");
private final static QName _DescriptiveNamePNAMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "DescriptiveNamePNAMatch");
private final static QName _ArrayOfRangeMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfRangeMatch");
private final static QName _StreetCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetCommunity");
private final static QName _ArrayOfNeighborMatchT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfNeighborMatchT");
private final static QName _StreetRangeMatchT_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetRangeMatchT");
private final static QName _SLOCAddressDataT_QNAME = new QName("http://www.qwest.com/XMLSchema", "SLOCAddressDataT");
private final static QName _ArrayOfAliasCommunityListT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfAliasCommunityListT");
private final static QName _RangeT_QNAME = new QName("http://www.qwest.com/XMLSchema", "RangeT");
private final static QName _UnnumberedAddressT_QNAME = new QName("http://www.qwest.com/XMLSchema", "UnnumberedAddressT");
private final static QName _DescriptiveNameCommunityMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "DescriptiveNameCommunityMatch");
private final static QName _CivicAddressT_QNAME = new QName("http://www.qwest.com/XMLSchema", "CivicAddressT");
private final static QName _ArrayOfServiceStatusObjectHostErrorList_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfServiceStatusObjectHostErrorList");
private final static QName _SupplementalAddressT_QNAME = new QName("http://www.qwest.com/XMLSchema", "SupplementalAddressT");
private final static QName _VideoConnectionT_QNAME = new QName("http://www.qwest.com/XMLSchema", "VideoConnectionT");
private final static QName _TelephoneConnectionT_QNAME = new QName("http://www.qwest.com/XMLSchema", "TelephoneConnectionT");
private final static QName _WireCenterT_QNAME = new QName("http://www.qwest.com/XMLSchema", "WireCenterT");
private final static QName _RangeMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "RangeMatch");
private final static QName _ExtPendingServiceRequestT_QNAME = new QName("http://www.qwest.com/XMLSchema", "ExtPendingServiceRequestT");
private final static QName _Switch_QNAME = new QName("http://www.qwest.com/XMLSchema", "Switch");
private final static QName _ArrayOfSLOCInfo_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfSLOCInfo");
private final static QName _ArrayOfCustomField_QNAME = new QName("http://www.qwest.com/XMLSchema", "ArrayOfCustomField");
private final static QName _QwestStreetInfoTT1M1StreetName_QNAME = new QName("http://www.qwest.com/XMLSchema", "T1M1StreetName");
private final static QName _QwestStreetInfoTStreetName_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetName");
private final static QName _QwestStreetInfoTStreetId_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetId");
private final static QName _UnnumberedAddressTCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "Community");
private final static QName _UnnumberedAddressTDescription_QNAME = new QName("http://www.qwest.com/XMLSchema", "Description");
private final static QName _UnnumberedAddressTSupplementalAddress_QNAME = new QName("http://www.qwest.com/XMLSchema", "SupplementalAddress");
private final static QName _VideoConnectionTVideoPortId_QNAME = new QName("http://www.qwest.com/XMLSchema", "VideoPortId");
private final static QName _VideoConnectionTAddressConnection_QNAME = new QName("http://www.qwest.com/XMLSchema", "AddressConnection");
private final static QName _QwestAddressTCustomerName_QNAME = new QName("http://www.qwest.com/XMLSchema", "CustomerName");
private final static QName _QwestAddressTBox_QNAME = new QName("http://www.qwest.com/XMLSchema", "Box");
private final static QName _QwestAddressTAdditionalLocation_QNAME = new QName("http://www.qwest.com/XMLSchema", "AdditionalLocation");
private final static QName _QwestAddressTRoute_QNAME = new QName("http://www.qwest.com/XMLSchema", "Route");
private final static QName _QwestAddressTDescriptiveLocation_QNAME = new QName("http://www.qwest.com/XMLSchema", "DescriptiveLocation");
private final static QName _QwestAddressTInternalStreetNumber_QNAME = new QName("http://www.qwest.com/XMLSchema", "InternalStreetNumber");
private final static QName _QwestAddressTGeographicSegment_QNAME = new QName("http://www.qwest.com/XMLSchema", "GeographicSegment");
private final static QName _PendingServiceRequestTServiceRequestId_QNAME = new QName("http://www.qwest.com/XMLSchema", "ServiceRequestId");
private final static QName _PendingServiceRequestTADSR_QNAME = new QName("http://www.qwest.com/XMLSchema", "ADSR");
private final static QName _PendingServiceRequestTDueDate_QNAME = new QName("http://www.qwest.com/XMLSchema", "DueDate");
private final static QName _PendingServiceRequestTCustomerOrderId_QNAME = new QName("http://www.qwest.com/XMLSchema", "CustomerOrderId");
private final static QName _PendingServiceRequestTUSOC_QNAME = new QName("http://www.qwest.com/XMLSchema", "USOC");
private final static QName _SwitchSwitchId_QNAME = new QName("http://www.qwest.com/XMLSchema", "SwitchId");
private final static QName _SwitchSwitchName_QNAME = new QName("http://www.qwest.com/XMLSchema", "SwitchName");
private final static QName _GSCMatchAHNRange_QNAME = new QName("http://www.qwest.com/XMLSchema", "AHNRange");
private final static QName _GSCMatchSAGInfo_QNAME = new QName("http://www.qwest.com/XMLSchema", "SAGInfo");
private final static QName _GSCMatchTTA_QNAME = new QName("http://www.qwest.com/XMLSchema", "TTA");
private final static QName _GSCMatchGeographicSegmentId_QNAME = new QName("http://www.qwest.com/XMLSchema", "GeographicSegmentId");
private final static QName _ErrorListErrorCode_QNAME = new QName("http://www.qwest.com/XMLSchema", "ErrorCode");
private final static QName _ErrorListErrorMessage_QNAME = new QName("http://www.qwest.com/XMLSchema", "ErrorMessage");
private final static QName _ExactMatchTSLOCInfoList_QNAME = new QName("http://www.qwest.com/XMLSchema", "SLOCInfoList");
private final static QName _ExactMatchTLineInfoList_QNAME = new QName("http://www.qwest.com/XMLSchema", "LineInfoList");
private final static QName _ExactMatchTAliasCommunityList_QNAME = new QName("http://www.qwest.com/XMLSchema", "AliasCommunityList");
private final static QName _ExactMatchTSLOCMatchList_QNAME = new QName("http://www.qwest.com/XMLSchema", "SLOCMatchList");
private final static QName _ExactMatchTCustomFieldList_QNAME = new QName("http://www.qwest.com/XMLSchema", "CustomFieldList");
private final static QName _ExactMatchTPNAInfo_QNAME = new QName("http://www.qwest.com/XMLSchema", "PNAInfo");
private final static QName _ExactMatchTCivicAddress_QNAME = new QName("http://www.qwest.com/XMLSchema", "CivicAddress");
private final static QName _ExactMatchTWireCenter_QNAME = new QName("http://www.qwest.com/XMLSchema", "WireCenter");
private final static QName _NeighborMatchTServiceLocationCount_QNAME = new QName("http://www.qwest.com/XMLSchema", "ServiceLocationCount");
private final static QName _NeighborMatchTHouseNumberList_QNAME = new QName("http://www.qwest.com/XMLSchema", "HouseNumberList");
private final static QName _NeighborMatchTQwestHouseNumberList_QNAME = new QName("http://www.qwest.com/XMLSchema", "QwestHouseNumberList");
private final static QName _PNAInfoTPNARemarks_QNAME = new QName("http://www.qwest.com/XMLSchema", "PNARemarks");
private final static QName _StreetCommunityStreet_QNAME = new QName("http://www.qwest.com/XMLSchema", "Street");
private final static QName _RangeMatchHSERange_QNAME = new QName("http://www.qwest.com/XMLSchema", "HSERange");
private final static QName _RangeMatchAltStreetNameList_QNAME = new QName("http://www.qwest.com/XMLSchema", "AltStreetNameList");
private final static QName _RangeMatchPostalCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "PostalCommunity");
private final static QName _RangeMatchAlternateCommunity12_QNAME = new QName("http://www.qwest.com/XMLSchema", "AlternateCommunity12");
private final static QName _RangeMatchStreetRangeRemarks_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetRangeRemarks");
private final static QName _StreetNameTStreetDirectionalPrefix_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetDirectionalPrefix");
private final static QName _StreetNameTStreetType_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetType");
private final static QName _StreetNameTStreetDirectionalSuffix_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetDirectionalSuffix");
private final static QName _SLOCInfoVideoConnection_QNAME = new QName("http://www.qwest.com/XMLSchema", "VideoConnection");
private final static QName _SLOCInfoNumCF_QNAME = new QName("http://www.qwest.com/XMLSchema", "NumCF");
private final static QName _SLOCInfoLastVideoDisconnectReason_QNAME = new QName("http://www.qwest.com/XMLSchema", "LastVideoDisconnectReason");
private final static QName _SLOCInfoLastTN_QNAME = new QName("http://www.qwest.com/XMLSchema", "LastTN");
private final static QName _SLOCInfoNetworkCapabilities_QNAME = new QName("http://www.qwest.com/XMLSchema", "NetworkCapabilities");
private final static QName _SLOCInfoExtPendingServiceRequest_QNAME = new QName("http://www.qwest.com/XMLSchema", "ExtPendingServiceRequest");
private final static QName _SLOCInfoLastCustomerName_QNAME = new QName("http://www.qwest.com/XMLSchema", "LastCustomerName");
private final static QName _SLOCInfoTelephoneConnection_QNAME = new QName("http://www.qwest.com/XMLSchema", "TelephoneConnection");
private final static QName _SLOCInfoNumSpCoaxDrops_QNAME = new QName("http://www.qwest.com/XMLSchema", "NumSpCoaxDrops");
private final static QName _SLOCInfoPlugTypes_QNAME = new QName("http://www.qwest.com/XMLSchema", "PlugTypes");
private final static QName _SLOCInfoNumSpCopperDrops_QNAME = new QName("http://www.qwest.com/XMLSchema", "NumSpCopperDrops");
private final static QName _SLOCInfoLastTNDisconnectReason_QNAME = new QName("http://www.qwest.com/XMLSchema", "LastTNDisconnectReason");
private final static QName _SLOCInfoNumCT_QNAME = new QName("http://www.qwest.com/XMLSchema", "NumCT");
private final static QName _SLOCInfoServiceLocationRemarks_QNAME = new QName("http://www.qwest.com/XMLSchema", "ServiceLocationRemarks");
private final static QName _SLOCInfoAddressData_QNAME = new QName("http://www.qwest.com/XMLSchema", "AddressData");
private final static QName _CustomFieldFieldValue_QNAME = new QName("http://www.qwest.com/XMLSchema", "FieldValue");
private final static QName _CustomFieldFieldName_QNAME = new QName("http://www.qwest.com/XMLSchema", "FieldName");
private final static QName _AliasCommunityListTAliasCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "AliasCommunity");
private final static QName _BaseTNTypeNXX_QNAME = new QName("http://www.qwest.com/XMLSchema", "NXX");
private final static QName _BaseTNTypeLineNumber_QNAME = new QName("http://www.qwest.com/XMLSchema", "LineNumber");
private final static QName _BaseTNTypeNPA_QNAME = new QName("http://www.qwest.com/XMLSchema", "NPA");
private final static QName _StreetRangeMatchTRangeMatchList_QNAME = new QName("http://www.qwest.com/XMLSchema", "RangeMatchList");
private final static QName _StreetRangeMatchTStreetCommunityList_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetCommunityList");
private final static QName _CommunityTCity_QNAME = new QName("http://www.qwest.com/XMLSchema", "City");
private final static QName _CommunityTPostalCode_QNAME = new QName("http://www.qwest.com/XMLSchema", "PostalCode");
private final static QName _CommunityTCounty_QNAME = new QName("http://www.qwest.com/XMLSchema", "County");
private final static QName _CommunityTStateProvince_QNAME = new QName("http://www.qwest.com/XMLSchema", "StateProvince");
private final static QName _WireCenterTCLLI_QNAME = new QName("http://www.qwest.com/XMLSchema", "CLLI");
private final static QName _TelephoneConnectionTConnectionStatus_QNAME = new QName("http://www.qwest.com/XMLSchema", "ConnectionStatus");
private final static QName _TelephoneConnectionTTelephoneNumber_QNAME = new QName("http://www.qwest.com/XMLSchema", "TelephoneNumber");
private final static QName _TelephoneConnectionTCTID_QNAME = new QName("http://www.qwest.com/XMLSchema", "CTID");
private final static QName _TelephoneConnectionTPlugType_QNAME = new QName("http://www.qwest.com/XMLSchema", "PlugType");
private final static QName _ARTISInfoObjectTotalTime_QNAME = new QName("http://www.qwest.com/XMLSchema", "TotalTime");
private final static QName _ARTISInfoObjectOverheadTime_QNAME = new QName("http://www.qwest.com/XMLSchema", "OverheadTime");
private final static QName _RangeTLowNumber_QNAME = new QName("http://www.qwest.com/XMLSchema", "LowNumber");
private final static QName _RangeTRangeInd_QNAME = new QName("http://www.qwest.com/XMLSchema", "RangeInd");
private final static QName _RangeTHighNumber_QNAME = new QName("http://www.qwest.com/XMLSchema", "HighNumber");
private final static QName _AccessParamsTUnNumberedSS_QNAME = new QName("http://www.qwest.com/XMLSchema", "UnNumberedSS");
private final static QName _NetworkCapabilitiesTTelephoneVideoInd_QNAME = new QName("http://www.qwest.com/XMLSchema", "TelephoneVideoInd");
private final static QName _NetworkCapabilitiesTEffectDate_QNAME = new QName("http://www.qwest.com/XMLSchema", "EffectDate");
private final static QName _NetworkCapabilitiesTNetworkStatus_QNAME = new QName("http://www.qwest.com/XMLSchema", "NetworkStatus");
private final static QName _NumberedAddressTStreetNumber_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetNumber");
private final static QName _HouseNumberHouseNumberPreffix_QNAME = new QName("http://www.qwest.com/XMLSchema", "HouseNumberPreffix");
private final static QName _HouseNumberBaseHouseNumber_QNAME = new QName("http://www.qwest.com/XMLSchema", "BaseHouseNumber");
private final static QName _HouseNumberHouseNumberSuffix_QNAME = new QName("http://www.qwest.com/XMLSchema", "HouseNumberSuffix");
private final static QName _ValidateCivicAddressResponseDataTEchoRequest_QNAME = new QName("http://www.qwest.com/XMLSchema", "EchoRequest");
private final static QName _ValidateCivicAddressResponseDataTLocationInfoList_QNAME = new QName("http://www.qwest.com/XMLSchema", "LocationInfoList");
private final static QName _ValidateCivicAddressResponseDataTCustomerInfo_QNAME = new QName("http://www.qwest.com/XMLSchema", "CustomerInfo");
private final static QName _ValidateCivicAddressResponseDataTExactMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "ExactMatch");
private final static QName _ValidateCivicAddressResponseDataTStatusResult_QNAME = new QName("http://www.qwest.com/XMLSchema", "StatusResult");
private final static QName _EchoRequestTAccessParams_QNAME = new QName("http://www.qwest.com/XMLSchema", "AccessParams");
private final static QName _LineInfoResistanceZone_QNAME = new QName("http://www.qwest.com/XMLSchema", "ResistanceZone");
private final static QName _LineInfoClassOfService_QNAME = new QName("http://www.qwest.com/XMLSchema", "ClassOfService");
private final static QName _LineInfoDisconnectReason_QNAME = new QName("http://www.qwest.com/XMLSchema", "DisconnectReason");
private final static QName _LineInfoModularWiringData_QNAME = new QName("http://www.qwest.com/XMLSchema", "ModularWiringData");
private final static QName _LineInfoActivityDate_QNAME = new QName("http://www.qwest.com/XMLSchema", "ActivityDate");
private final static QName _LineInfoLineId_QNAME = new QName("http://www.qwest.com/XMLSchema", "LineId");
private final static QName _TNSummaryTNStatus_QNAME = new QName("http://www.qwest.com/XMLSchema", "TNStatus");
private final static QName _ServiceStatusObjectHostErrorListHostId_QNAME = new QName("http://www.qwest.com/XMLSchema", "HostId");
private final static QName _DescriptiveNamePNAMatchAddressCommunityList_QNAME = new QName("http://www.qwest.com/XMLSchema", "AddressCommunityList");
private final static QName _DescriptiveNamePNAMatchDescriptiveCommunityMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "DescriptiveCommunityMatch");
private final static QName _DescriptiveNamePNAMatchPNARemarksList_QNAME = new QName("http://www.qwest.com/XMLSchema", "PNARemarksList");
private final static QName _CustomerInfoTCustomerId_QNAME = new QName("http://www.qwest.com/XMLSchema", "CustomerId");
private final static QName _CustomerInfoTCCNA_QNAME = new QName("http://www.qwest.com/XMLSchema", "CCNA");
private final static QName _ValidateCivicAddressResponseReturnDataSet_QNAME = new QName("http://www.qwest.com/XMLSchema", "ReturnDataSet");
private final static QName _ValidateCivicAddressResponseTargetSchemaVersionUsed_QNAME = new QName("http://www.qwest.com/XMLSchema", "TargetSchemaVersionUsed");
private final static QName _ValidateCivicAddressResponseRequestId_QNAME = new QName("http://www.qwest.com/XMLSchema", "RequestId");
private final static QName _ValidateCivicAddressResponseWebServiceName_QNAME = new QName("http://www.qwest.com/XMLSchema", "WebServiceName");
private final static QName _CivicAddressTNumberedAddress_QNAME = new QName("http://www.qwest.com/XMLSchema", "NumberedAddress");
private final static QName _CivicAddressTUnnumberedAddress_QNAME = new QName("http://www.qwest.com/XMLSchema", "UnnumberedAddress");
private final static QName _CivicAddressTConcatenatedAddress_QNAME = new QName("http://www.qwest.com/XMLSchema", "ConcatenatedAddress");
private final static QName _CivicAddressTDescriptiveAddress_QNAME = new QName("http://www.qwest.com/XMLSchema", "DescriptiveAddress");
private final static QName _CivicAddressTQwestAddress_QNAME = new QName("http://www.qwest.com/XMLSchema", "QwestAddress");
private final static QName _StreetNumberTStreetNumberSuffix_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetNumberSuffix");
private final static QName _StreetNumberTStreetNumberPrefix_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetNumberPrefix");
private final static QName _ConcatenatedAddressTConcatenatedStreetName_QNAME = new QName("http://www.qwest.com/XMLSchema", "ConcatenatedStreetName");
private final static QName _SLOCAddressDataTZipAddOn_QNAME = new QName("http://www.qwest.com/XMLSchema", "ZipAddOn");
private final static QName _SAGInfoTExchangeCode_QNAME = new QName("http://www.qwest.com/XMLSchema", "ExchangeCode");
private final static QName _SAGInfoTPhoneCenter_QNAME = new QName("http://www.qwest.com/XMLSchema", "PhoneCenter");
private final static QName _SAGInfoTPlantDistrict_QNAME = new QName("http://www.qwest.com/XMLSchema", "PlantDistrict");
private final static QName _SAGInfoTSwitchList_QNAME = new QName("http://www.qwest.com/XMLSchema", "SwitchList");
private final static QName _SAGInfoTAlternateCommunity_QNAME = new QName("http://www.qwest.com/XMLSchema", "AlternateCommunity");
private final static QName _SAGInfoTForeignTownship_QNAME = new QName("http://www.qwest.com/XMLSchema", "ForeignTownship");
private final static QName _SAGInfoTZipCode_QNAME = new QName("http://www.qwest.com/XMLSchema", "ZipCode");
private final static QName _SAGInfoTRateZone_QNAME = new QName("http://www.qwest.com/XMLSchema", "RateZone");
private final static QName _SAGInfoTExchangeCodeSuffix_QNAME = new QName("http://www.qwest.com/XMLSchema", "ExchangeCodeSuffix");
private final static QName _SAGInfoTRuralDeliveryArea_QNAME = new QName("http://www.qwest.com/XMLSchema", "RuralDeliveryArea");
private final static QName _SAGInfoTDirectory_QNAME = new QName("http://www.qwest.com/XMLSchema", "Directory");
private final static QName _SAGInfoTTTARemarks_QNAME = new QName("http://www.qwest.com/XMLSchema", "TTARemarks");
private final static QName _SAGInfoTSAGNPA_QNAME = new QName("http://www.qwest.com/XMLSchema", "SAGNPA");
private final static QName _SAGInfoTGSGRemarks_QNAME = new QName("http://www.qwest.com/XMLSchema", "GSGRemarks");
private final static QName _SAGInfoTAlternateStreet_QNAME = new QName("http://www.qwest.com/XMLSchema", "AlternateStreet");
private final static QName _SAGInfoTBusinessOffice_QNAME = new QName("http://www.qwest.com/XMLSchema", "BusinessOffice");
private final static QName _SAGInfoTTaxCode_QNAME = new QName("http://www.qwest.com/XMLSchema", "TaxCode");
private final static QName _AddressDesignatorTValue_QNAME = new QName("http://www.qwest.com/XMLSchema", "Value");
private final static QName _AddressDesignatorTType_QNAME = new QName("http://www.qwest.com/XMLSchema", "Type");
private final static QName _SchemaVersionTTargetXSDName_QNAME = new QName("http://www.qwest.com/XMLSchema", "TargetXSDName");
private final static QName _ServiceStatusObjectHostErrorList_QNAME = new QName("http://www.qwest.com/XMLSchema", "HostErrorList");
private final static QName _DescriptiveNameCommunityMatchDescriptiveName_QNAME = new QName("http://www.qwest.com/XMLSchema", "DescriptiveName");
private final static QName _AddressConnectionTPendingServiceRequest_QNAME = new QName("http://www.qwest.com/XMLSchema", "PendingServiceRequest");
private final static QName _ExtPendingServiceRequestTCircuitTerminationId_QNAME = new QName("http://www.qwest.com/XMLSchema", "CircuitTerminationId");
private final static QName _StreetNameCommunityQwestStreetName_QNAME = new QName("http://www.qwest.com/XMLSchema", "QwestStreetName");
private final static QName _SupplementalAddressTStructure_QNAME = new QName("http://www.qwest.com/XMLSchema", "Structure");
private final static QName _SupplementalAddressTUnit_QNAME = new QName("http://www.qwest.com/XMLSchema", "Unit");
private final static QName _SupplementalAddressTElevation_QNAME = new QName("http://www.qwest.com/XMLSchema", "Elevation");
private final static QName _SLOCMatchTNSummaryList_QNAME = new QName("http://www.qwest.com/XMLSchema", "TNSummaryList");
private final static QName _LocationInfoListTDescriptiveNamePNAMatchList_QNAME = new QName("http://www.qwest.com/XMLSchema", "DescriptiveNamePNAMatchList");
private final static QName _LocationInfoListTAHNMatchList_QNAME = new QName("http://www.qwest.com/XMLSchema", "AHNMatchList");
private final static QName _LocationInfoListTAddressInfo_QNAME = new QName("http://www.qwest.com/XMLSchema", "AddressInfo");
private final static QName _LocationInfoListTStreetNameCommunityList_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetNameCommunityList");
private final static QName _LocationInfoListTAreaCommunityList_QNAME = new QName("http://www.qwest.com/XMLSchema", "AreaCommunityList");
private final static QName _LocationInfoListTDescriptiveNameMatchList_QNAME = new QName("http://www.qwest.com/XMLSchema", "DescriptiveNameMatchList");
private final static QName _LocationInfoListTNeighborMatchList_QNAME = new QName("http://www.qwest.com/XMLSchema", "NeighborMatchList");
private final static QName _LocationInfoListTQwestStreetNameList_QNAME = new QName("http://www.qwest.com/XMLSchema", "QwestStreetNameList");
private final static QName _LocationInfoListTGSGMatchList_QNAME = new QName("http://www.qwest.com/XMLSchema", "GSGMatchList");
private final static QName _LocationInfoListTDescriptiveNameCommunityMatchList_QNAME = new QName("http://www.qwest.com/XMLSchema", "DescriptiveNameCommunityMatchList");
private final static QName _LocationInfoListTStreetRangeMatch_QNAME = new QName("http://www.qwest.com/XMLSchema", "StreetRangeMatch");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.qwest.xmlschema
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link PNAInfoT }
*
*/
public PNAInfoT createPNAInfoT() {
return new PNAInfoT();
}
/**
* Create an instance of {@link ArrayOfHouseNumber }
*
*/
public ArrayOfHouseNumber createArrayOfHouseNumber() {
return new ArrayOfHouseNumber();
}
/**
* Create an instance of {@link ArrayOfLineInfo }
*
*/
public ArrayOfLineInfo createArrayOfLineInfo() {
return new ArrayOfLineInfo();
}
/**
* Create an instance of {@link SLOCMatch }
*
*/
public SLOCMatch createSLOCMatch() {
return new SLOCMatch();
}
/**
* Create an instance of {@link ArrayOfSLOCInfo }
*
*/
public ArrayOfSLOCInfo createArrayOfSLOCInfo() {
return new ArrayOfSLOCInfo();
}
/**
* Create an instance of {@link AHNMatch }
*
*/
public AHNMatch createAHNMatch() {
return new AHNMatch();
}
/**
* Create an instance of {@link CivicAddressT }
*
*/
public CivicAddressT createCivicAddressT() {
return new CivicAddressT();
}
/**
* Create an instance of {@link ArrayOfVideoConnectionT }
*
*/
public ArrayOfVideoConnectionT createArrayOfVideoConnectionT() {
return new ArrayOfVideoConnectionT();
}
/**
* Create an instance of {@link ArrayOfTelephoneConnectionT }
*
*/
public ArrayOfTelephoneConnectionT createArrayOfTelephoneConnectionT() {
return new ArrayOfTelephoneConnectionT();
}
/**
* Create an instance of {@link CommunityT }
*
*/
public CommunityT createCommunityT() {
return new CommunityT();
}
/**
* Create an instance of {@link AreaCommunity }
*
*/
public AreaCommunity createAreaCommunity() {
return new AreaCommunity();
}
/**
* Create an instance of {@link ConcatenatedAddressT }
*
*/
public ConcatenatedAddressT createConcatenatedAddressT() {
return new ConcatenatedAddressT();
}
/**
* Create an instance of {@link ArrayOfCustomField }
*
*/
public ArrayOfCustomField createArrayOfCustomField() {
return new ArrayOfCustomField();
}
/**
* Create an instance of {@link DescriptiveNameCommunityMatch }
*
*/
public DescriptiveNameCommunityMatch createDescriptiveNameCommunityMatch() {
return new DescriptiveNameCommunityMatch();
}
/**
* Create an instance of {@link ArrayOfGSCMatch }
*
*/
public ArrayOfGSCMatch createArrayOfGSCMatch() {
return new ArrayOfGSCMatch();
}
/**
* Create an instance of {@link RangeT }
*
*/
public RangeT createRangeT() {
return new RangeT();
}
/**
* Create an instance of {@link BaseTNType }
*
*/
public BaseTNType createBaseTNType() {
return new BaseTNType();
}
/**
* Create an instance of {@link ArrayOfSLOCMatch }
*
*/
public ArrayOfSLOCMatch createArrayOfSLOCMatch() {
return new ArrayOfSLOCMatch();
}
/**
* Create an instance of {@link ArrayOfStreetRangeMatchT }
*
*/
public ArrayOfStreetRangeMatchT createArrayOfStreetRangeMatchT() {
return new ArrayOfStreetRangeMatchT();
}
/**
* Create an instance of {@link NeighborMatchT }
*
*/
public NeighborMatchT createNeighborMatchT() {
return new NeighborMatchT();
}
/**
* Create an instance of {@link CustomerInfoT }
*
*/
public CustomerInfoT createCustomerInfoT() {
return new CustomerInfoT();
}
/**
* Create an instance of {@link TelephoneConnectionT }
*
*/
public TelephoneConnectionT createTelephoneConnectionT() {
return new TelephoneConnectionT();
}
/**
* Create an instance of {@link ArrayOfAliasCommunityListT }
*
*/
public ArrayOfAliasCommunityListT createArrayOfAliasCommunityListT() {
return new ArrayOfAliasCommunityListT();
}
/**
* Create an instance of {@link ExtPendingServiceRequestT }
*
*/
public ExtPendingServiceRequestT createExtPendingServiceRequestT() {
return new ExtPendingServiceRequestT();
}
/**
* Create an instance of {@link AddressConnectionT }
*
*/
public AddressConnectionT createAddressConnectionT() {
return new AddressConnectionT();
}
/**
* Create an instance of {@link UnnumberedAddressT }
*
*/
public UnnumberedAddressT createUnnumberedAddressT() {
return new UnnumberedAddressT();
}
/**
* Create an instance of {@link RangeMatch }
*
*/
public RangeMatch createRangeMatch() {
return new RangeMatch();
}
/**
* Create an instance of {@link EchoRequestT }
*
*/
public EchoRequestT createEchoRequestT() {
return new EchoRequestT();
}
/**
* Create an instance of {@link Switch }
*
*/
public Switch createSwitch() {
return new Switch();
}
/**
* Create an instance of {@link ErrorList }
*
*/
public ErrorList createErrorList() {
return new ErrorList();
}
/**
* Create an instance of {@link ExactMatchT }
*
*/
public ExactMatchT createExactMatchT() {
return new ExactMatchT();
}
/**
* Create an instance of {@link AddressCommunity }
*
*/
public AddressCommunity createAddressCommunity() {
return new AddressCommunity();
}
/**
* Create an instance of {@link PendingServiceRequestT }
*
*/
public PendingServiceRequestT createPendingServiceRequestT() {
return new PendingServiceRequestT();
}
/**
* Create an instance of {@link AddressDesignatorT }
*
*/
public AddressDesignatorT createAddressDesignatorT() {
return new AddressDesignatorT();
}
/**
* Create an instance of {@link ArrayOfSwitch }
*
*/
public ArrayOfSwitch createArrayOfSwitch() {
return new ArrayOfSwitch();
}
/**
* Create an instance of {@link ArrayOfAreaCommunity }
*
*/
public ArrayOfAreaCommunity createArrayOfAreaCommunity() {
return new ArrayOfAreaCommunity();
}
/**
* Create an instance of {@link StreetNameT }
*
*/
public StreetNameT createStreetNameT() {
return new StreetNameT();
}
/**
* Create an instance of {@link ArrayOfExtPendingServiceRequestT }
*
*/
public ArrayOfExtPendingServiceRequestT createArrayOfExtPendingServiceRequestT() {
return new ArrayOfExtPendingServiceRequestT();
}
/**
* Create an instance of {@link ArrayOfStreetNameCommunity }
*
*/
public ArrayOfStreetNameCommunity createArrayOfStreetNameCommunity() {
return new ArrayOfStreetNameCommunity();
}
/**
* Create an instance of {@link WireCenterT }
*
*/
public WireCenterT createWireCenterT() {
return new WireCenterT();
}
/**
* Create an instance of {@link QwestStreetInfoT }
*
*/
public QwestStreetInfoT createQwestStreetInfoT() {
return new QwestStreetInfoT();
}
/**
* Create an instance of {@link ArrayOfErrorList }
*
*/
public ArrayOfErrorList createArrayOfErrorList() {
return new ArrayOfErrorList();
}
/**
* Create an instance of {@link ArrayOfNeighborMatchT }
*
*/
public ArrayOfNeighborMatchT createArrayOfNeighborMatchT() {
return new ArrayOfNeighborMatchT();
}
/**
* Create an instance of {@link HouseNumber }
*
*/
public HouseNumber createHouseNumber() {
return new HouseNumber();
}
/**
* Create an instance of {@link TNSummary }
*
*/
public TNSummary createTNSummary() {
return new TNSummary();
}
/**
* Create an instance of {@link StreetNumberT }
*
*/
public StreetNumberT createStreetNumberT() {
return new StreetNumberT();
}
/**
* Create an instance of {@link StreetRangeMatchT }
*
*/
public StreetRangeMatchT createStreetRangeMatchT() {
return new StreetRangeMatchT();
}
/**
* Create an instance of {@link SLOCInfo }
*
*/
public SLOCInfo createSLOCInfo() {
return new SLOCInfo();
}
/**
* Create an instance of {@link ArrayOfRangeMatch }
*
*/
public ArrayOfRangeMatch createArrayOfRangeMatch() {
return new ArrayOfRangeMatch();
}
/**
* Create an instance of {@link ArrayOfDescriptiveNamePNAMatch }
*
*/
public ArrayOfDescriptiveNamePNAMatch createArrayOfDescriptiveNamePNAMatch() {
return new ArrayOfDescriptiveNamePNAMatch();
}
/**
* Create an instance of {@link ARTISInfoObject }
*
*/
public ARTISInfoObject createARTISInfoObject() {
return new ARTISInfoObject();
}
/**
* Create an instance of {@link LineInfo }
*
*/
public LineInfo createLineInfo() {
return new LineInfo();
}
/**
* Create an instance of {@link StreetCommunity }
*
*/
public StreetCommunity createStreetCommunity() {
return new StreetCommunity();
}
/**
* Create an instance of {@link ArrayOfDescriptiveNameCommunityMatch }
*
*/
public ArrayOfDescriptiveNameCommunityMatch createArrayOfDescriptiveNameCommunityMatch() {
return new ArrayOfDescriptiveNameCommunityMatch();
}
/**
* Create an instance of {@link SupplementalAddressT }
*
*/
public SupplementalAddressT createSupplementalAddressT() {
return new SupplementalAddressT();
}
/**
* Create an instance of {@link SLOCAddressDataT }
*
*/
public SLOCAddressDataT createSLOCAddressDataT() {
return new SLOCAddressDataT();
}
/**
* Create an instance of {@link VideoConnectionT }
*
*/
public VideoConnectionT createVideoConnectionT() {
return new VideoConnectionT();
}
/**
* Create an instance of {@link ArrayOfTNSummary }
*
*/
public ArrayOfTNSummary createArrayOfTNSummary() {
return new ArrayOfTNSummary();
}
/**
* Create an instance of {@link NetworkCapabilitiesT }
*
*/
public NetworkCapabilitiesT createNetworkCapabilitiesT() {
return new NetworkCapabilitiesT();
}
/**
* Create an instance of {@link LocationInfoListT }
*
*/
public LocationInfoListT createLocationInfoListT() {
return new LocationInfoListT();
}
/**
* Create an instance of {@link StreetNameCommunity }
*
*/
public StreetNameCommunity createStreetNameCommunity() {
return new StreetNameCommunity();
}
/**
* Create an instance of {@link AccessParamsT }
*
*/
public AccessParamsT createAccessParamsT() {
return new AccessParamsT();
}
/**
* Create an instance of {@link ValidateCivicAddressResponse }
*
*/
public ValidateCivicAddressResponse createValidateCivicAddressResponse() {
return new ValidateCivicAddressResponse();
}
/**
* Create an instance of {@link NumberedAddressT }
*
*/
public NumberedAddressT createNumberedAddressT() {
return new NumberedAddressT();
}
/**
* Create an instance of {@link SchemaVersionT }
*
*/
public SchemaVersionT createSchemaVersionT() {
return new SchemaVersionT();
}
/**
* Create an instance of {@link ValidateCivicAddressResponseDataT }
*
*/
public ValidateCivicAddressResponseDataT createValidateCivicAddressResponseDataT() {
return new ValidateCivicAddressResponseDataT();
}
/**
* Create an instance of {@link ServiceStatusObject }
*
*/
public ServiceStatusObject createServiceStatusObject() {
return new ServiceStatusObject();
}
/**
* Create an instance of {@link AliasCommunityListT }
*
*/
public AliasCommunityListT createAliasCommunityListT() {
return new AliasCommunityListT();
}
/**
* Create an instance of {@link ArrayOfStreetCommunity }
*
*/
public ArrayOfStreetCommunity createArrayOfStreetCommunity() {
return new ArrayOfStreetCommunity();
}
/**
* Create an instance of {@link ArrayOfAHNMatch }
*
*/
public ArrayOfAHNMatch createArrayOfAHNMatch() {
return new ArrayOfAHNMatch();
}
/**
* Create an instance of {@link DescriptiveNamePNAMatch }
*
*/
public DescriptiveNamePNAMatch createDescriptiveNamePNAMatch() {
return new DescriptiveNamePNAMatch();
}
/**
* Create an instance of {@link ArrayOfCivicAddressT }
*
*/
public ArrayOfCivicAddressT createArrayOfCivicAddressT() {
return new ArrayOfCivicAddressT();
}
/**
* Create an instance of {@link GSCMatch }
*
*/
public GSCMatch createGSCMatch() {
return new GSCMatch();
}
/**
* Create an instance of {@link ArrayOfAddressCommunity }
*
*/
public ArrayOfAddressCommunity createArrayOfAddressCommunity() {
return new ArrayOfAddressCommunity();
}
/**
* Create an instance of {@link CustomField }
*
*/
public CustomField createCustomField() {
return new CustomField();
}
/**
* Create an instance of {@link QwestAddressT }
*
*/
public QwestAddressT createQwestAddressT() {
return new QwestAddressT();
}
/**
* Create an instance of {@link ArrayOfServiceStatusObjectHostErrorList }
*
*/
public ArrayOfServiceStatusObjectHostErrorList createArrayOfServiceStatusObjectHostErrorList() {
return new ArrayOfServiceStatusObjectHostErrorList();
}
/**
* Create an instance of {@link SAGInfoT }
*
*/
public SAGInfoT createSAGInfoT() {
return new SAGInfoT();
}
/**
* Create an instance of {@link ArrayOfCommunityT }
*
*/
public ArrayOfCommunityT createArrayOfCommunityT() {
return new ArrayOfCommunityT();
}
/**
* Create an instance of {@link ArrayOfQwestStreetInfoT }
*
*/
public ArrayOfQwestStreetInfoT createArrayOfQwestStreetInfoT() {
return new ArrayOfQwestStreetInfoT();
}
/**
* Create an instance of {@link ServiceStatusObjectHostErrorList }
*
*/
public ServiceStatusObjectHostErrorList createServiceStatusObjectHostErrorList() {
return new ServiceStatusObjectHostErrorList();
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ValidateCivicAddressResponseDataT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ValidateCivicAddressResponseDataT")
public JAXBElement<ValidateCivicAddressResponseDataT> createValidateCivicAddressResponseDataT(ValidateCivicAddressResponseDataT value) {
return new JAXBElement<ValidateCivicAddressResponseDataT>(_ValidateCivicAddressResponseDataT_QNAME, ValidateCivicAddressResponseDataT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ValidateCivicAddressResponse }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ValidateCivicAddressResponse")
public JAXBElement<ValidateCivicAddressResponse> createValidateCivicAddressResponse(ValidateCivicAddressResponse value) {
return new JAXBElement<ValidateCivicAddressResponse>(_ValidateCivicAddressResponse_QNAME, ValidateCivicAddressResponse.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SAGInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SAGInfoT")
public JAXBElement<SAGInfoT> createSAGInfoT(SAGInfoT value) {
return new JAXBElement<SAGInfoT>(_SAGInfoT_QNAME, SAGInfoT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link QwestAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "QwestAddressT")
public JAXBElement<QwestAddressT> createQwestAddressT(QwestAddressT value) {
return new JAXBElement<QwestAddressT>(_QwestAddressT_QNAME, QwestAddressT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SLOCInfo }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SLOCInfo")
public JAXBElement<SLOCInfo> createSLOCInfo(SLOCInfo value) {
return new JAXBElement<SLOCInfo>(_SLOCInfo_QNAME, SLOCInfo.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AddressConnectionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AddressConnectionT")
public JAXBElement<AddressConnectionT> createAddressConnectionT(AddressConnectionT value) {
return new JAXBElement<AddressConnectionT>(_AddressConnectionT_QNAME, AddressConnectionT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfVideoConnectionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfVideoConnectionT")
public JAXBElement<ArrayOfVideoConnectionT> createArrayOfVideoConnectionT(ArrayOfVideoConnectionT value) {
return new JAXBElement<ArrayOfVideoConnectionT>(_ArrayOfVideoConnectionT_QNAME, ArrayOfVideoConnectionT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfAHNMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfAHNMatch")
public JAXBElement<ArrayOfAHNMatch> createArrayOfAHNMatch(ArrayOfAHNMatch value) {
return new JAXBElement<ArrayOfAHNMatch>(_ArrayOfAHNMatch_QNAME, ArrayOfAHNMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link LineInfo }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LineInfo")
public JAXBElement<LineInfo> createLineInfo(LineInfo value) {
return new JAXBElement<LineInfo>(_LineInfo_QNAME, LineInfo.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetNumberT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetNumberT")
public JAXBElement<StreetNumberT> createStreetNumberT(StreetNumberT value) {
return new JAXBElement<StreetNumberT>(_StreetNumberT_QNAME, StreetNumberT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetNameCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetNameCommunity")
public JAXBElement<StreetNameCommunity> createStreetNameCommunity(StreetNameCommunity value) {
return new JAXBElement<StreetNameCommunity>(_StreetNameCommunity_QNAME, StreetNameCommunity.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link LocationInfoListT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LocationInfoListT")
public JAXBElement<LocationInfoListT> createLocationInfoListT(LocationInfoListT value) {
return new JAXBElement<LocationInfoListT>(_LocationInfoListT_QNAME, LocationInfoListT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfSLOCMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfSLOCMatch")
public JAXBElement<ArrayOfSLOCMatch> createArrayOfSLOCMatch(ArrayOfSLOCMatch value) {
return new JAXBElement<ArrayOfSLOCMatch>(_ArrayOfSLOCMatch_QNAME, ArrayOfSLOCMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfStreetRangeMatchT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfStreetRangeMatchT")
public JAXBElement<ArrayOfStreetRangeMatchT> createArrayOfStreetRangeMatchT(ArrayOfStreetRangeMatchT value) {
return new JAXBElement<ArrayOfStreetRangeMatchT>(_ArrayOfStreetRangeMatchT_QNAME, ArrayOfStreetRangeMatchT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AreaCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AreaCommunity")
public JAXBElement<AreaCommunity> createAreaCommunity(AreaCommunity value) {
return new JAXBElement<AreaCommunity>(_AreaCommunity_QNAME, AreaCommunity.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfGSCMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfGSCMatch")
public JAXBElement<ArrayOfGSCMatch> createArrayOfGSCMatch(ArrayOfGSCMatch value) {
return new JAXBElement<ArrayOfGSCMatch>(_ArrayOfGSCMatch_QNAME, ArrayOfGSCMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ServiceStatusObject }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ServiceStatusObject")
public JAXBElement<ServiceStatusObject> createServiceStatusObject(ServiceStatusObject value) {
return new JAXBElement<ServiceStatusObject>(_ServiceStatusObject_QNAME, ServiceStatusObject.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AliasCommunityListT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AliasCommunityListT")
public JAXBElement<AliasCommunityListT> createAliasCommunityListT(AliasCommunityListT value) {
return new JAXBElement<AliasCommunityListT>(_AliasCommunityListT_QNAME, AliasCommunityListT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfAddressCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfAddressCommunity")
public JAXBElement<ArrayOfAddressCommunity> createArrayOfAddressCommunity(ArrayOfAddressCommunity value) {
return new JAXBElement<ArrayOfAddressCommunity>(_ArrayOfAddressCommunity_QNAME, ArrayOfAddressCommunity.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ServiceRequestStatusT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ServiceRequestStatusT")
public JAXBElement<ServiceRequestStatusT> createServiceRequestStatusT(ServiceRequestStatusT value) {
return new JAXBElement<ServiceRequestStatusT>(_ServiceRequestStatusT_QNAME, ServiceRequestStatusT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ErrorStatus }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ErrorStatus")
public JAXBElement<ErrorStatus> createErrorStatus(ErrorStatus value) {
return new JAXBElement<ErrorStatus>(_ErrorStatus_QNAME, ErrorStatus.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link NeighborMatchT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NeighborMatchT")
public JAXBElement<NeighborMatchT> createNeighborMatchT(NeighborMatchT value) {
return new JAXBElement<NeighborMatchT>(_NeighborMatchT_QNAME, NeighborMatchT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AddressDesignatorT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AddressDesignatorT")
public JAXBElement<AddressDesignatorT> createAddressDesignatorT(AddressDesignatorT value) {
return new JAXBElement<AddressDesignatorT>(_AddressDesignatorT_QNAME, AddressDesignatorT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfSwitch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfSwitch")
public JAXBElement<ArrayOfSwitch> createArrayOfSwitch(ArrayOfSwitch value) {
return new JAXBElement<ArrayOfSwitch>(_ArrayOfSwitch_QNAME, ArrayOfSwitch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ExactMatchT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ExactMatchT")
public JAXBElement<ExactMatchT> createExactMatchT(ExactMatchT value) {
return new JAXBElement<ExactMatchT>(_ExactMatchT_QNAME, ExactMatchT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ErrorList }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ErrorList")
public JAXBElement<ErrorList> createErrorList(ErrorList value) {
return new JAXBElement<ErrorList>(_ErrorList_QNAME, ErrorList.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ConcatenatedAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ConcatenatedAddressT")
public JAXBElement<ConcatenatedAddressT> createConcatenatedAddressT(ConcatenatedAddressT value) {
return new JAXBElement<ConcatenatedAddressT>(_ConcatenatedAddressT_QNAME, ConcatenatedAddressT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfCivicAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfCivicAddressT")
public JAXBElement<ArrayOfCivicAddressT> createArrayOfCivicAddressT(ArrayOfCivicAddressT value) {
return new JAXBElement<ArrayOfCivicAddressT>(_ArrayOfCivicAddressT_QNAME, ArrayOfCivicAddressT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfTNSummary }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfTNSummary")
public JAXBElement<ArrayOfTNSummary> createArrayOfTNSummary(ArrayOfTNSummary value) {
return new JAXBElement<ArrayOfTNSummary>(_ArrayOfTNSummary_QNAME, ArrayOfTNSummary.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfDescriptiveNameCommunityMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfDescriptiveNameCommunityMatch")
public JAXBElement<ArrayOfDescriptiveNameCommunityMatch> createArrayOfDescriptiveNameCommunityMatch(ArrayOfDescriptiveNameCommunityMatch value) {
return new JAXBElement<ArrayOfDescriptiveNameCommunityMatch>(_ArrayOfDescriptiveNameCommunityMatch_QNAME, ArrayOfDescriptiveNameCommunityMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link QwestStreetInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "QwestStreetInfoT")
public JAXBElement<QwestStreetInfoT> createQwestStreetInfoT(QwestStreetInfoT value) {
return new JAXBElement<QwestStreetInfoT>(_QwestStreetInfoT_QNAME, QwestStreetInfoT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SLOCMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SLOCMatch")
public JAXBElement<SLOCMatch> createSLOCMatch(SLOCMatch value) {
return new JAXBElement<SLOCMatch>(_SLOCMatch_QNAME, SLOCMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfTelephoneConnectionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfTelephoneConnectionT")
public JAXBElement<ArrayOfTelephoneConnectionT> createArrayOfTelephoneConnectionT(ArrayOfTelephoneConnectionT value) {
return new JAXBElement<ArrayOfTelephoneConnectionT>(_ArrayOfTelephoneConnectionT_QNAME, ArrayOfTelephoneConnectionT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfStreetCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfStreetCommunity")
public JAXBElement<ArrayOfStreetCommunity> createArrayOfStreetCommunity(ArrayOfStreetCommunity value) {
return new JAXBElement<ArrayOfStreetCommunity>(_ArrayOfStreetCommunity_QNAME, ArrayOfStreetCommunity.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfCommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfCommunityT")
public JAXBElement<ArrayOfCommunityT> createArrayOfCommunityT(ArrayOfCommunityT value) {
return new JAXBElement<ArrayOfCommunityT>(_ArrayOfCommunityT_QNAME, ArrayOfCommunityT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfQwestStreetInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfQwestStreetInfoT")
public JAXBElement<ArrayOfQwestStreetInfoT> createArrayOfQwestStreetInfoT(ArrayOfQwestStreetInfoT value) {
return new JAXBElement<ArrayOfQwestStreetInfoT>(_ArrayOfQwestStreetInfoT_QNAME, ArrayOfQwestStreetInfoT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ARTISInfoObject }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ARTISInfoObject")
public JAXBElement<ARTISInfoObject> createARTISInfoObject(ARTISInfoObject value) {
return new JAXBElement<ARTISInfoObject>(_ARTISInfoObject_QNAME, ARTISInfoObject.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link NetworkCapabilitiesT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NetworkCapabilitiesT")
public JAXBElement<NetworkCapabilitiesT> createNetworkCapabilitiesT(NetworkCapabilitiesT value) {
return new JAXBElement<NetworkCapabilitiesT>(_NetworkCapabilitiesT_QNAME, NetworkCapabilitiesT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CustomerInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomerInfoT")
public JAXBElement<CustomerInfoT> createCustomerInfoT(CustomerInfoT value) {
return new JAXBElement<CustomerInfoT>(_CustomerInfoT_QNAME, CustomerInfoT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link BaseTNType }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "BaseTNType")
public JAXBElement<BaseTNType> createBaseTNType(BaseTNType value) {
return new JAXBElement<BaseTNType>(_BaseTNType_QNAME, BaseTNType.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfExtPendingServiceRequestT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfExtPendingServiceRequestT")
public JAXBElement<ArrayOfExtPendingServiceRequestT> createArrayOfExtPendingServiceRequestT(ArrayOfExtPendingServiceRequestT value) {
return new JAXBElement<ArrayOfExtPendingServiceRequestT>(_ArrayOfExtPendingServiceRequestT_QNAME, ArrayOfExtPendingServiceRequestT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfErrorList }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfErrorList")
public JAXBElement<ArrayOfErrorList> createArrayOfErrorList(ArrayOfErrorList value) {
return new JAXBElement<ArrayOfErrorList>(_ArrayOfErrorList_QNAME, ArrayOfErrorList.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AddressCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AddressCommunity")
public JAXBElement<AddressCommunity> createAddressCommunity(AddressCommunity value) {
return new JAXBElement<AddressCommunity>(_AddressCommunity_QNAME, AddressCommunity.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AHNMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AHNMatch")
public JAXBElement<AHNMatch> createAHNMatch(AHNMatch value) {
return new JAXBElement<AHNMatch>(_AHNMatch_QNAME, AHNMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AreaT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AreaT")
public JAXBElement<AreaT> createAreaT(AreaT value) {
return new JAXBElement<AreaT>(_AreaT_QNAME, AreaT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link PNAInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PNAInfoT")
public JAXBElement<PNAInfoT> createPNAInfoT(PNAInfoT value) {
return new JAXBElement<PNAInfoT>(_PNAInfoT_QNAME, PNAInfoT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfHouseNumber }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfHouseNumber")
public JAXBElement<ArrayOfHouseNumber> createArrayOfHouseNumber(ArrayOfHouseNumber value) {
return new JAXBElement<ArrayOfHouseNumber>(_ArrayOfHouseNumber_QNAME, ArrayOfHouseNumber.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link TelephoneConnectionTClassOfService }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TelephoneConnectionTClassOfService")
public JAXBElement<TelephoneConnectionTClassOfService> createTelephoneConnectionTClassOfService(TelephoneConnectionTClassOfService value) {
return new JAXBElement<TelephoneConnectionTClassOfService>(_TelephoneConnectionTClassOfService_QNAME, TelephoneConnectionTClassOfService.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfDescriptiveNamePNAMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfDescriptiveNamePNAMatch")
public JAXBElement<ArrayOfDescriptiveNamePNAMatch> createArrayOfDescriptiveNamePNAMatch(ArrayOfDescriptiveNamePNAMatch value) {
return new JAXBElement<ArrayOfDescriptiveNamePNAMatch>(_ArrayOfDescriptiveNamePNAMatch_QNAME, ArrayOfDescriptiveNamePNAMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link TNSummary }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TNSummary")
public JAXBElement<TNSummary> createTNSummary(TNSummary value) {
return new JAXBElement<TNSummary>(_TNSummary_QNAME, TNSummary.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link HouseNumber }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "HouseNumber")
public JAXBElement<HouseNumber> createHouseNumber(HouseNumber value) {
return new JAXBElement<HouseNumber>(_HouseNumber_QNAME, HouseNumber.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AccessParamsT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AccessParamsT")
public JAXBElement<AccessParamsT> createAccessParamsT(AccessParamsT value) {
return new JAXBElement<AccessParamsT>(_AccessParamsT_QNAME, AccessParamsT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AliasCommunityListTAliasCommunityInd }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AliasCommunityListTAliasCommunityInd")
public JAXBElement<AliasCommunityListTAliasCommunityInd> createAliasCommunityListTAliasCommunityInd(AliasCommunityListTAliasCommunityInd value) {
return new JAXBElement<AliasCommunityListTAliasCommunityInd>(_AliasCommunityListTAliasCommunityInd_QNAME, AliasCommunityListTAliasCommunityInd.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetNameT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetNameT")
public JAXBElement<StreetNameT> createStreetNameT(StreetNameT value) {
return new JAXBElement<StreetNameT>(_StreetNameT_QNAME, StreetNameT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfAreaCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfAreaCommunity")
public JAXBElement<ArrayOfAreaCommunity> createArrayOfAreaCommunity(ArrayOfAreaCommunity value) {
return new JAXBElement<ArrayOfAreaCommunity>(_ArrayOfAreaCommunity_QNAME, ArrayOfAreaCommunity.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link PendingServiceRequestT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PendingServiceRequestT")
public JAXBElement<PendingServiceRequestT> createPendingServiceRequestT(PendingServiceRequestT value) {
return new JAXBElement<PendingServiceRequestT>(_PendingServiceRequestT_QNAME, PendingServiceRequestT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfStreetNameCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfStreetNameCommunity")
public JAXBElement<ArrayOfStreetNameCommunity> createArrayOfStreetNameCommunity(ArrayOfStreetNameCommunity value) {
return new JAXBElement<ArrayOfStreetNameCommunity>(_ArrayOfStreetNameCommunity_QNAME, ArrayOfStreetNameCommunity.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link EchoRequestT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "EchoRequestT")
public JAXBElement<EchoRequestT> createEchoRequestT(EchoRequestT value) {
return new JAXBElement<EchoRequestT>(_EchoRequestT_QNAME, EchoRequestT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfLineInfo }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfLineInfo")
public JAXBElement<ArrayOfLineInfo> createArrayOfLineInfo(ArrayOfLineInfo value) {
return new JAXBElement<ArrayOfLineInfo>(_ArrayOfLineInfo_QNAME, ArrayOfLineInfo.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CommunityT")
public JAXBElement<CommunityT> createCommunityT(CommunityT value) {
return new JAXBElement<CommunityT>(_CommunityT_QNAME, CommunityT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link PendingServiceRequestTActivity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PendingServiceRequestTActivity")
public JAXBElement<PendingServiceRequestTActivity> createPendingServiceRequestTActivity(PendingServiceRequestTActivity value) {
return new JAXBElement<PendingServiceRequestTActivity>(_PendingServiceRequestTActivity_QNAME, PendingServiceRequestTActivity.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SchemaVersionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SchemaVersionT")
public JAXBElement<SchemaVersionT> createSchemaVersionT(SchemaVersionT value) {
return new JAXBElement<SchemaVersionT>(_SchemaVersionT_QNAME, SchemaVersionT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link NumberedAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NumberedAddressT")
public JAXBElement<NumberedAddressT> createNumberedAddressT(NumberedAddressT value) {
return new JAXBElement<NumberedAddressT>(_NumberedAddressT_QNAME, NumberedAddressT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CustomField }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomField")
public JAXBElement<CustomField> createCustomField(CustomField value) {
return new JAXBElement<CustomField>(_CustomField_QNAME, CustomField.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link GSCMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "GSCMatch")
public JAXBElement<GSCMatch> createGSCMatch(GSCMatch value) {
return new JAXBElement<GSCMatch>(_GSCMatch_QNAME, GSCMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link DescriptiveNamePNAMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DescriptiveNamePNAMatch")
public JAXBElement<DescriptiveNamePNAMatch> createDescriptiveNamePNAMatch(DescriptiveNamePNAMatch value) {
return new JAXBElement<DescriptiveNamePNAMatch>(_DescriptiveNamePNAMatch_QNAME, DescriptiveNamePNAMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfRangeMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfRangeMatch")
public JAXBElement<ArrayOfRangeMatch> createArrayOfRangeMatch(ArrayOfRangeMatch value) {
return new JAXBElement<ArrayOfRangeMatch>(_ArrayOfRangeMatch_QNAME, ArrayOfRangeMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetCommunity")
public JAXBElement<StreetCommunity> createStreetCommunity(StreetCommunity value) {
return new JAXBElement<StreetCommunity>(_StreetCommunity_QNAME, StreetCommunity.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfNeighborMatchT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfNeighborMatchT")
public JAXBElement<ArrayOfNeighborMatchT> createArrayOfNeighborMatchT(ArrayOfNeighborMatchT value) {
return new JAXBElement<ArrayOfNeighborMatchT>(_ArrayOfNeighborMatchT_QNAME, ArrayOfNeighborMatchT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetRangeMatchT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetRangeMatchT")
public JAXBElement<StreetRangeMatchT> createStreetRangeMatchT(StreetRangeMatchT value) {
return new JAXBElement<StreetRangeMatchT>(_StreetRangeMatchT_QNAME, StreetRangeMatchT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SLOCAddressDataT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SLOCAddressDataT")
public JAXBElement<SLOCAddressDataT> createSLOCAddressDataT(SLOCAddressDataT value) {
return new JAXBElement<SLOCAddressDataT>(_SLOCAddressDataT_QNAME, SLOCAddressDataT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfAliasCommunityListT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfAliasCommunityListT")
public JAXBElement<ArrayOfAliasCommunityListT> createArrayOfAliasCommunityListT(ArrayOfAliasCommunityListT value) {
return new JAXBElement<ArrayOfAliasCommunityListT>(_ArrayOfAliasCommunityListT_QNAME, ArrayOfAliasCommunityListT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link RangeT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "RangeT")
public JAXBElement<RangeT> createRangeT(RangeT value) {
return new JAXBElement<RangeT>(_RangeT_QNAME, RangeT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link UnnumberedAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "UnnumberedAddressT")
public JAXBElement<UnnumberedAddressT> createUnnumberedAddressT(UnnumberedAddressT value) {
return new JAXBElement<UnnumberedAddressT>(_UnnumberedAddressT_QNAME, UnnumberedAddressT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link DescriptiveNameCommunityMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DescriptiveNameCommunityMatch")
public JAXBElement<DescriptiveNameCommunityMatch> createDescriptiveNameCommunityMatch(DescriptiveNameCommunityMatch value) {
return new JAXBElement<DescriptiveNameCommunityMatch>(_DescriptiveNameCommunityMatch_QNAME, DescriptiveNameCommunityMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CivicAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CivicAddressT")
public JAXBElement<CivicAddressT> createCivicAddressT(CivicAddressT value) {
return new JAXBElement<CivicAddressT>(_CivicAddressT_QNAME, CivicAddressT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfServiceStatusObjectHostErrorList }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfServiceStatusObjectHostErrorList")
public JAXBElement<ArrayOfServiceStatusObjectHostErrorList> createArrayOfServiceStatusObjectHostErrorList(ArrayOfServiceStatusObjectHostErrorList value) {
return new JAXBElement<ArrayOfServiceStatusObjectHostErrorList>(_ArrayOfServiceStatusObjectHostErrorList_QNAME, ArrayOfServiceStatusObjectHostErrorList.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SupplementalAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SupplementalAddressT")
public JAXBElement<SupplementalAddressT> createSupplementalAddressT(SupplementalAddressT value) {
return new JAXBElement<SupplementalAddressT>(_SupplementalAddressT_QNAME, SupplementalAddressT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link VideoConnectionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "VideoConnectionT")
public JAXBElement<VideoConnectionT> createVideoConnectionT(VideoConnectionT value) {
return new JAXBElement<VideoConnectionT>(_VideoConnectionT_QNAME, VideoConnectionT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link TelephoneConnectionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TelephoneConnectionT")
public JAXBElement<TelephoneConnectionT> createTelephoneConnectionT(TelephoneConnectionT value) {
return new JAXBElement<TelephoneConnectionT>(_TelephoneConnectionT_QNAME, TelephoneConnectionT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link WireCenterT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "WireCenterT")
public JAXBElement<WireCenterT> createWireCenterT(WireCenterT value) {
return new JAXBElement<WireCenterT>(_WireCenterT_QNAME, WireCenterT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link RangeMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "RangeMatch")
public JAXBElement<RangeMatch> createRangeMatch(RangeMatch value) {
return new JAXBElement<RangeMatch>(_RangeMatch_QNAME, RangeMatch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ExtPendingServiceRequestT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ExtPendingServiceRequestT")
public JAXBElement<ExtPendingServiceRequestT> createExtPendingServiceRequestT(ExtPendingServiceRequestT value) {
return new JAXBElement<ExtPendingServiceRequestT>(_ExtPendingServiceRequestT_QNAME, ExtPendingServiceRequestT.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link Switch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Switch")
public JAXBElement<Switch> createSwitch(Switch value) {
return new JAXBElement<Switch>(_Switch_QNAME, Switch.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfSLOCInfo }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfSLOCInfo")
public JAXBElement<ArrayOfSLOCInfo> createArrayOfSLOCInfo(ArrayOfSLOCInfo value) {
return new JAXBElement<ArrayOfSLOCInfo>(_ArrayOfSLOCInfo_QNAME, ArrayOfSLOCInfo.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfCustomField }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ArrayOfCustomField")
public JAXBElement<ArrayOfCustomField> createArrayOfCustomField(ArrayOfCustomField value) {
return new JAXBElement<ArrayOfCustomField>(_ArrayOfCustomField_QNAME, ArrayOfCustomField.class, null, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetNameT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "T1M1StreetName", scope = QwestStreetInfoT.class)
public JAXBElement<StreetNameT> createQwestStreetInfoTT1M1StreetName(StreetNameT value) {
return new JAXBElement<StreetNameT>(_QwestStreetInfoTT1M1StreetName_QNAME, StreetNameT.class, QwestStreetInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetName", scope = QwestStreetInfoT.class)
public JAXBElement<String> createQwestStreetInfoTStreetName(String value) {
return new JAXBElement<String>(_QwestStreetInfoTStreetName_QNAME, String.class, QwestStreetInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetId", scope = QwestStreetInfoT.class)
public JAXBElement<String> createQwestStreetInfoTStreetId(String value) {
return new JAXBElement<String>(_QwestStreetInfoTStreetId_QNAME, String.class, QwestStreetInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = UnnumberedAddressT.class)
public JAXBElement<CommunityT> createUnnumberedAddressTCommunity(CommunityT value) {
return new JAXBElement<CommunityT>(_UnnumberedAddressTCommunity_QNAME, CommunityT.class, UnnumberedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Description", scope = UnnumberedAddressT.class)
public JAXBElement<String> createUnnumberedAddressTDescription(String value) {
return new JAXBElement<String>(_UnnumberedAddressTDescription_QNAME, String.class, UnnumberedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetNameT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetName", scope = UnnumberedAddressT.class)
public JAXBElement<StreetNameT> createUnnumberedAddressTStreetName(StreetNameT value) {
return new JAXBElement<StreetNameT>(_QwestStreetInfoTStreetName_QNAME, StreetNameT.class, UnnumberedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SupplementalAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SupplementalAddress", scope = UnnumberedAddressT.class)
public JAXBElement<SupplementalAddressT> createUnnumberedAddressTSupplementalAddress(SupplementalAddressT value) {
return new JAXBElement<SupplementalAddressT>(_UnnumberedAddressTSupplementalAddress_QNAME, SupplementalAddressT.class, UnnumberedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "VideoPortId", scope = VideoConnectionT.class)
public JAXBElement<String> createVideoConnectionTVideoPortId(String value) {
return new JAXBElement<String>(_VideoConnectionTVideoPortId_QNAME, String.class, VideoConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AddressConnectionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AddressConnection", scope = VideoConnectionT.class)
public JAXBElement<AddressConnectionT> createVideoConnectionTAddressConnection(AddressConnectionT value) {
return new JAXBElement<AddressConnectionT>(_VideoConnectionTAddressConnection_QNAME, AddressConnectionT.class, VideoConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomerName", scope = QwestAddressT.class)
public JAXBElement<String> createQwestAddressTCustomerName(String value) {
return new JAXBElement<String>(_QwestAddressTCustomerName_QNAME, String.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Box", scope = QwestAddressT.class)
public JAXBElement<String> createQwestAddressTBox(String value) {
return new JAXBElement<String>(_QwestAddressTBox_QNAME, String.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AdditionalLocation", scope = QwestAddressT.class)
public JAXBElement<String> createQwestAddressTAdditionalLocation(String value) {
return new JAXBElement<String>(_QwestAddressTAdditionalLocation_QNAME, String.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = QwestAddressT.class)
public JAXBElement<CommunityT> createQwestAddressTCommunity(CommunityT value) {
return new JAXBElement<CommunityT>(_UnnumberedAddressTCommunity_QNAME, CommunityT.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Route", scope = QwestAddressT.class)
public JAXBElement<String> createQwestAddressTRoute(String value) {
return new JAXBElement<String>(_QwestAddressTRoute_QNAME, String.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetNameT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetName", scope = QwestAddressT.class)
public JAXBElement<StreetNameT> createQwestAddressTStreetName(StreetNameT value) {
return new JAXBElement<StreetNameT>(_QwestStreetInfoTStreetName_QNAME, StreetNameT.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DescriptiveLocation", scope = QwestAddressT.class)
public JAXBElement<String> createQwestAddressTDescriptiveLocation(String value) {
return new JAXBElement<String>(_QwestAddressTDescriptiveLocation_QNAME, String.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SupplementalAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SupplementalAddress", scope = QwestAddressT.class)
public JAXBElement<SupplementalAddressT> createQwestAddressTSupplementalAddress(SupplementalAddressT value) {
return new JAXBElement<SupplementalAddressT>(_UnnumberedAddressTSupplementalAddress_QNAME, SupplementalAddressT.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "InternalStreetNumber", scope = QwestAddressT.class)
public JAXBElement<String> createQwestAddressTInternalStreetNumber(String value) {
return new JAXBElement<String>(_QwestAddressTInternalStreetNumber_QNAME, String.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetId", scope = QwestAddressT.class)
public JAXBElement<String> createQwestAddressTStreetId(String value) {
return new JAXBElement<String>(_QwestStreetInfoTStreetId_QNAME, String.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "GeographicSegment", scope = QwestAddressT.class)
public JAXBElement<String> createQwestAddressTGeographicSegment(String value) {
return new JAXBElement<String>(_QwestAddressTGeographicSegment_QNAME, String.class, QwestAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ServiceRequestId", scope = PendingServiceRequestT.class)
public JAXBElement<String> createPendingServiceRequestTServiceRequestId(String value) {
return new JAXBElement<String>(_PendingServiceRequestTServiceRequestId_QNAME, String.class, PendingServiceRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ADSR", scope = PendingServiceRequestT.class)
public JAXBElement<String> createPendingServiceRequestTADSR(String value) {
return new JAXBElement<String>(_PendingServiceRequestTADSR_QNAME, String.class, PendingServiceRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DueDate", scope = PendingServiceRequestT.class)
public JAXBElement<String> createPendingServiceRequestTDueDate(String value) {
return new JAXBElement<String>(_PendingServiceRequestTDueDate_QNAME, String.class, PendingServiceRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomerOrderId", scope = PendingServiceRequestT.class)
public JAXBElement<String> createPendingServiceRequestTCustomerOrderId(String value) {
return new JAXBElement<String>(_PendingServiceRequestTCustomerOrderId_QNAME, String.class, PendingServiceRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "USOC", scope = PendingServiceRequestT.class)
public JAXBElement<String> createPendingServiceRequestTUSOC(String value) {
return new JAXBElement<String>(_PendingServiceRequestTUSOC_QNAME, String.class, PendingServiceRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SwitchId", scope = Switch.class)
public JAXBElement<String> createSwitchSwitchId(String value) {
return new JAXBElement<String>(_SwitchSwitchId_QNAME, String.class, Switch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SwitchName", scope = Switch.class)
public JAXBElement<String> createSwitchSwitchName(String value) {
return new JAXBElement<String>(_SwitchSwitchName_QNAME, String.class, Switch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link RangeT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AHNRange", scope = GSCMatch.class)
public JAXBElement<RangeT> createGSCMatchAHNRange(RangeT value) {
return new JAXBElement<RangeT>(_GSCMatchAHNRange_QNAME, RangeT.class, GSCMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = GSCMatch.class)
public JAXBElement<CommunityT> createGSCMatchCommunity(CommunityT value) {
return new JAXBElement<CommunityT>(_UnnumberedAddressTCommunity_QNAME, CommunityT.class, GSCMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SAGInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SAGInfo", scope = GSCMatch.class)
public JAXBElement<SAGInfoT> createGSCMatchSAGInfo(SAGInfoT value) {
return new JAXBElement<SAGInfoT>(_GSCMatchSAGInfo_QNAME, SAGInfoT.class, GSCMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TTA", scope = GSCMatch.class)
public JAXBElement<String> createGSCMatchTTA(String value) {
return new JAXBElement<String>(_GSCMatchTTA_QNAME, String.class, GSCMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "GeographicSegmentId", scope = GSCMatch.class)
public JAXBElement<String> createGSCMatchGeographicSegmentId(String value) {
return new JAXBElement<String>(_GSCMatchGeographicSegmentId_QNAME, String.class, GSCMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ErrorCode", scope = ErrorList.class)
public JAXBElement<String> createErrorListErrorCode(String value) {
return new JAXBElement<String>(_ErrorListErrorCode_QNAME, String.class, ErrorList.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ErrorMessage", scope = ErrorList.class)
public JAXBElement<String> createErrorListErrorMessage(String value) {
return new JAXBElement<String>(_ErrorListErrorMessage_QNAME, String.class, ErrorList.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfSLOCInfo }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SLOCInfoList", scope = ExactMatchT.class)
public JAXBElement<ArrayOfSLOCInfo> createExactMatchTSLOCInfoList(ArrayOfSLOCInfo value) {
return new JAXBElement<ArrayOfSLOCInfo>(_ExactMatchTSLOCInfoList_QNAME, ArrayOfSLOCInfo.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfLineInfo }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LineInfoList", scope = ExactMatchT.class)
public JAXBElement<ArrayOfLineInfo> createExactMatchTLineInfoList(ArrayOfLineInfo value) {
return new JAXBElement<ArrayOfLineInfo>(_ExactMatchTLineInfoList_QNAME, ArrayOfLineInfo.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfAliasCommunityListT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AliasCommunityList", scope = ExactMatchT.class)
public JAXBElement<ArrayOfAliasCommunityListT> createExactMatchTAliasCommunityList(ArrayOfAliasCommunityListT value) {
return new JAXBElement<ArrayOfAliasCommunityListT>(_ExactMatchTAliasCommunityList_QNAME, ArrayOfAliasCommunityListT.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfSLOCMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SLOCMatchList", scope = ExactMatchT.class)
public JAXBElement<ArrayOfSLOCMatch> createExactMatchTSLOCMatchList(ArrayOfSLOCMatch value) {
return new JAXBElement<ArrayOfSLOCMatch>(_ExactMatchTSLOCMatchList_QNAME, ArrayOfSLOCMatch.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfCustomField }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomFieldList", scope = ExactMatchT.class)
public JAXBElement<ArrayOfCustomField> createExactMatchTCustomFieldList(ArrayOfCustomField value) {
return new JAXBElement<ArrayOfCustomField>(_ExactMatchTCustomFieldList_QNAME, ArrayOfCustomField.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SAGInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SAGInfo", scope = ExactMatchT.class)
public JAXBElement<SAGInfoT> createExactMatchTSAGInfo(SAGInfoT value) {
return new JAXBElement<SAGInfoT>(_GSCMatchSAGInfo_QNAME, SAGInfoT.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link PNAInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PNAInfo", scope = ExactMatchT.class)
public JAXBElement<PNAInfoT> createExactMatchTPNAInfo(PNAInfoT value) {
return new JAXBElement<PNAInfoT>(_ExactMatchTPNAInfo_QNAME, PNAInfoT.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CivicAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CivicAddress", scope = ExactMatchT.class)
public JAXBElement<CivicAddressT> createExactMatchTCivicAddress(CivicAddressT value) {
return new JAXBElement<CivicAddressT>(_ExactMatchTCivicAddress_QNAME, CivicAddressT.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TTA", scope = ExactMatchT.class)
public JAXBElement<String> createExactMatchTTTA(String value) {
return new JAXBElement<String>(_GSCMatchTTA_QNAME, String.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link WireCenterT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "WireCenter", scope = ExactMatchT.class)
public JAXBElement<WireCenterT> createExactMatchTWireCenter(WireCenterT value) {
return new JAXBElement<WireCenterT>(_ExactMatchTWireCenter_QNAME, WireCenterT.class, ExactMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ServiceLocationCount", scope = NeighborMatchT.class)
public JAXBElement<String> createNeighborMatchTServiceLocationCount(String value) {
return new JAXBElement<String>(_NeighborMatchTServiceLocationCount_QNAME, String.class, NeighborMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfHouseNumber }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "HouseNumberList", scope = NeighborMatchT.class)
public JAXBElement<ArrayOfHouseNumber> createNeighborMatchTHouseNumberList(ArrayOfHouseNumber value) {
return new JAXBElement<ArrayOfHouseNumber>(_NeighborMatchTHouseNumberList_QNAME, ArrayOfHouseNumber.class, NeighborMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "QwestHouseNumberList", scope = NeighborMatchT.class)
public JAXBElement<ArrayOfstring> createNeighborMatchTQwestHouseNumberList(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_NeighborMatchTQwestHouseNumberList_QNAME, ArrayOfstring.class, NeighborMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PNARemarks", scope = PNAInfoT.class)
public JAXBElement<ArrayOfstring> createPNAInfoTPNARemarks(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_PNAInfoTPNARemarks_QNAME, ArrayOfstring.class, PNAInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Description", scope = PNAInfoT.class)
public JAXBElement<String> createPNAInfoTDescription(String value) {
return new JAXBElement<String>(_UnnumberedAddressTDescription_QNAME, String.class, PNAInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfQwestStreetInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Street", scope = StreetCommunity.class)
public JAXBElement<ArrayOfQwestStreetInfoT> createStreetCommunityStreet(ArrayOfQwestStreetInfoT value) {
return new JAXBElement<ArrayOfQwestStreetInfoT>(_StreetCommunityStreet_QNAME, ArrayOfQwestStreetInfoT.class, StreetCommunity.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = StreetCommunity.class)
public JAXBElement<CommunityT> createStreetCommunityCommunity(CommunityT value) {
return new JAXBElement<CommunityT>(_UnnumberedAddressTCommunity_QNAME, CommunityT.class, StreetCommunity.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link RangeT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "HSERange", scope = RangeMatch.class)
public JAXBElement<RangeT> createRangeMatchHSERange(RangeT value) {
return new JAXBElement<RangeT>(_RangeMatchHSERange_QNAME, RangeT.class, RangeMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfQwestStreetInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AltStreetNameList", scope = RangeMatch.class)
public JAXBElement<ArrayOfQwestStreetInfoT> createRangeMatchAltStreetNameList(ArrayOfQwestStreetInfoT value) {
return new JAXBElement<ArrayOfQwestStreetInfoT>(_RangeMatchAltStreetNameList_QNAME, ArrayOfQwestStreetInfoT.class, RangeMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PostalCommunity", scope = RangeMatch.class)
public JAXBElement<String> createRangeMatchPostalCommunity(String value) {
return new JAXBElement<String>(_RangeMatchPostalCommunity_QNAME, String.class, RangeMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link RangeT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AHNRange", scope = RangeMatch.class)
public JAXBElement<RangeT> createRangeMatchAHNRange(RangeT value) {
return new JAXBElement<RangeT>(_GSCMatchAHNRange_QNAME, RangeT.class, RangeMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = RangeMatch.class)
public JAXBElement<CommunityT> createRangeMatchCommunity(CommunityT value) {
return new JAXBElement<CommunityT>(_UnnumberedAddressTCommunity_QNAME, CommunityT.class, RangeMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TTA", scope = RangeMatch.class)
public JAXBElement<String> createRangeMatchTTA(String value) {
return new JAXBElement<String>(_GSCMatchTTA_QNAME, String.class, RangeMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link WireCenterT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "WireCenter", scope = RangeMatch.class)
public JAXBElement<WireCenterT> createRangeMatchWireCenter(WireCenterT value) {
return new JAXBElement<WireCenterT>(_ExactMatchTWireCenter_QNAME, WireCenterT.class, RangeMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AlternateCommunity12", scope = RangeMatch.class)
public JAXBElement<ArrayOfstring> createRangeMatchAlternateCommunity12(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_RangeMatchAlternateCommunity12_QNAME, ArrayOfstring.class, RangeMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetRangeRemarks", scope = RangeMatch.class)
public JAXBElement<ArrayOfstring> createRangeMatchStreetRangeRemarks(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_RangeMatchStreetRangeRemarks_QNAME, ArrayOfstring.class, RangeMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetDirectionalPrefix", scope = StreetNameT.class)
public JAXBElement<String> createStreetNameTStreetDirectionalPrefix(String value) {
return new JAXBElement<String>(_StreetNameTStreetDirectionalPrefix_QNAME, String.class, StreetNameT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetType", scope = StreetNameT.class)
public JAXBElement<String> createStreetNameTStreetType(String value) {
return new JAXBElement<String>(_StreetNameTStreetType_QNAME, String.class, StreetNameT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetName", scope = StreetNameT.class)
public JAXBElement<String> createStreetNameTStreetName(String value) {
return new JAXBElement<String>(_QwestStreetInfoTStreetName_QNAME, String.class, StreetNameT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetDirectionalSuffix", scope = StreetNameT.class)
public JAXBElement<String> createStreetNameTStreetDirectionalSuffix(String value) {
return new JAXBElement<String>(_StreetNameTStreetDirectionalSuffix_QNAME, String.class, StreetNameT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfVideoConnectionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "VideoConnection", scope = SLOCInfo.class)
public JAXBElement<ArrayOfVideoConnectionT> createSLOCInfoVideoConnection(ArrayOfVideoConnectionT value) {
return new JAXBElement<ArrayOfVideoConnectionT>(_SLOCInfoVideoConnection_QNAME, ArrayOfVideoConnectionT.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NumCF", scope = SLOCInfo.class)
public JAXBElement<String> createSLOCInfoNumCF(String value) {
return new JAXBElement<String>(_SLOCInfoNumCF_QNAME, String.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LastVideoDisconnectReason", scope = SLOCInfo.class)
public JAXBElement<String> createSLOCInfoLastVideoDisconnectReason(String value) {
return new JAXBElement<String>(_SLOCInfoLastVideoDisconnectReason_QNAME, String.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link BaseTNType }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LastTN", scope = SLOCInfo.class)
public JAXBElement<BaseTNType> createSLOCInfoLastTN(BaseTNType value) {
return new JAXBElement<BaseTNType>(_SLOCInfoLastTN_QNAME, BaseTNType.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link NetworkCapabilitiesT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NetworkCapabilities", scope = SLOCInfo.class)
public JAXBElement<NetworkCapabilitiesT> createSLOCInfoNetworkCapabilities(NetworkCapabilitiesT value) {
return new JAXBElement<NetworkCapabilitiesT>(_SLOCInfoNetworkCapabilities_QNAME, NetworkCapabilitiesT.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfExtPendingServiceRequestT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ExtPendingServiceRequest", scope = SLOCInfo.class)
public JAXBElement<ArrayOfExtPendingServiceRequestT> createSLOCInfoExtPendingServiceRequest(ArrayOfExtPendingServiceRequestT value) {
return new JAXBElement<ArrayOfExtPendingServiceRequestT>(_SLOCInfoExtPendingServiceRequest_QNAME, ArrayOfExtPendingServiceRequestT.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LastCustomerName", scope = SLOCInfo.class)
public JAXBElement<String> createSLOCInfoLastCustomerName(String value) {
return new JAXBElement<String>(_SLOCInfoLastCustomerName_QNAME, String.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfTelephoneConnectionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TelephoneConnection", scope = SLOCInfo.class)
public JAXBElement<ArrayOfTelephoneConnectionT> createSLOCInfoTelephoneConnection(ArrayOfTelephoneConnectionT value) {
return new JAXBElement<ArrayOfTelephoneConnectionT>(_SLOCInfoTelephoneConnection_QNAME, ArrayOfTelephoneConnectionT.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NumSpCoaxDrops", scope = SLOCInfo.class)
public JAXBElement<String> createSLOCInfoNumSpCoaxDrops(String value) {
return new JAXBElement<String>(_SLOCInfoNumSpCoaxDrops_QNAME, String.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PlugTypes", scope = SLOCInfo.class)
public JAXBElement<String> createSLOCInfoPlugTypes(String value) {
return new JAXBElement<String>(_SLOCInfoPlugTypes_QNAME, String.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NumSpCopperDrops", scope = SLOCInfo.class)
public JAXBElement<String> createSLOCInfoNumSpCopperDrops(String value) {
return new JAXBElement<String>(_SLOCInfoNumSpCopperDrops_QNAME, String.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LastTNDisconnectReason", scope = SLOCInfo.class)
public JAXBElement<String> createSLOCInfoLastTNDisconnectReason(String value) {
return new JAXBElement<String>(_SLOCInfoLastTNDisconnectReason_QNAME, String.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NumCT", scope = SLOCInfo.class)
public JAXBElement<String> createSLOCInfoNumCT(String value) {
return new JAXBElement<String>(_SLOCInfoNumCT_QNAME, String.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ServiceLocationRemarks", scope = SLOCInfo.class)
public JAXBElement<ArrayOfstring> createSLOCInfoServiceLocationRemarks(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_SLOCInfoServiceLocationRemarks_QNAME, ArrayOfstring.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SLOCAddressDataT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AddressData", scope = SLOCInfo.class)
public JAXBElement<SLOCAddressDataT> createSLOCInfoAddressData(SLOCAddressDataT value) {
return new JAXBElement<SLOCAddressDataT>(_SLOCInfoAddressData_QNAME, SLOCAddressDataT.class, SLOCInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "FieldValue", scope = CustomField.class)
public JAXBElement<String> createCustomFieldFieldValue(String value) {
return new JAXBElement<String>(_CustomFieldFieldValue_QNAME, String.class, CustomField.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "FieldName", scope = CustomField.class)
public JAXBElement<String> createCustomFieldFieldName(String value) {
return new JAXBElement<String>(_CustomFieldFieldName_QNAME, String.class, CustomField.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AliasCommunity", scope = AliasCommunityListT.class)
public JAXBElement<String> createAliasCommunityListTAliasCommunity(String value) {
return new JAXBElement<String>(_AliasCommunityListTAliasCommunity_QNAME, String.class, AliasCommunityListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NXX", scope = BaseTNType.class)
public JAXBElement<String> createBaseTNTypeNXX(String value) {
return new JAXBElement<String>(_BaseTNTypeNXX_QNAME, String.class, BaseTNType.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LineNumber", scope = BaseTNType.class)
public JAXBElement<String> createBaseTNTypeLineNumber(String value) {
return new JAXBElement<String>(_BaseTNTypeLineNumber_QNAME, String.class, BaseTNType.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NPA", scope = BaseTNType.class)
public JAXBElement<String> createBaseTNTypeNPA(String value) {
return new JAXBElement<String>(_BaseTNTypeNPA_QNAME, String.class, BaseTNType.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfRangeMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "RangeMatchList", scope = StreetRangeMatchT.class)
public JAXBElement<ArrayOfRangeMatch> createStreetRangeMatchTRangeMatchList(ArrayOfRangeMatch value) {
return new JAXBElement<ArrayOfRangeMatch>(_StreetRangeMatchTRangeMatchList_QNAME, ArrayOfRangeMatch.class, StreetRangeMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfStreetCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetCommunityList", scope = StreetRangeMatchT.class)
public JAXBElement<ArrayOfStreetCommunity> createStreetRangeMatchTStreetCommunityList(ArrayOfStreetCommunity value) {
return new JAXBElement<ArrayOfStreetCommunity>(_StreetRangeMatchTStreetCommunityList_QNAME, ArrayOfStreetCommunity.class, StreetRangeMatchT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "City", scope = CommunityT.class)
public JAXBElement<String> createCommunityTCity(String value) {
return new JAXBElement<String>(_CommunityTCity_QNAME, String.class, CommunityT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PostalCode", scope = CommunityT.class)
public JAXBElement<String> createCommunityTPostalCode(String value) {
return new JAXBElement<String>(_CommunityTPostalCode_QNAME, String.class, CommunityT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "County", scope = CommunityT.class)
public JAXBElement<String> createCommunityTCounty(String value) {
return new JAXBElement<String>(_CommunityTCounty_QNAME, String.class, CommunityT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StateProvince", scope = CommunityT.class)
public JAXBElement<String> createCommunityTStateProvince(String value) {
return new JAXBElement<String>(_CommunityTStateProvince_QNAME, String.class, CommunityT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CLLI", scope = WireCenterT.class)
public JAXBElement<String> createWireCenterTCLLI(String value) {
return new JAXBElement<String>(_WireCenterTCLLI_QNAME, String.class, WireCenterT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NXX", scope = WireCenterT.class)
public JAXBElement<String> createWireCenterTNXX(String value) {
return new JAXBElement<String>(_BaseTNTypeNXX_QNAME, String.class, WireCenterT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NPA", scope = WireCenterT.class)
public JAXBElement<String> createWireCenterTNPA(String value) {
return new JAXBElement<String>(_BaseTNTypeNPA_QNAME, String.class, WireCenterT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomerName", scope = TelephoneConnectionT.class)
public JAXBElement<String> createTelephoneConnectionTCustomerName(String value) {
return new JAXBElement<String>(_QwestAddressTCustomerName_QNAME, String.class, TelephoneConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ADSR", scope = TelephoneConnectionT.class)
public JAXBElement<String> createTelephoneConnectionTADSR(String value) {
return new JAXBElement<String>(_PendingServiceRequestTADSR_QNAME, String.class, TelephoneConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ConnectionStatus", scope = TelephoneConnectionT.class)
public JAXBElement<String> createTelephoneConnectionTConnectionStatus(String value) {
return new JAXBElement<String>(_TelephoneConnectionTConnectionStatus_QNAME, String.class, TelephoneConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link BaseTNType }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TelephoneNumber", scope = TelephoneConnectionT.class)
public JAXBElement<BaseTNType> createTelephoneConnectionTTelephoneNumber(BaseTNType value) {
return new JAXBElement<BaseTNType>(_TelephoneConnectionTTelephoneNumber_QNAME, BaseTNType.class, TelephoneConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CTID", scope = TelephoneConnectionT.class)
public JAXBElement<String> createTelephoneConnectionTCTID(String value) {
return new JAXBElement<String>(_TelephoneConnectionTCTID_QNAME, String.class, TelephoneConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PlugType", scope = TelephoneConnectionT.class)
public JAXBElement<String> createTelephoneConnectionTPlugType(String value) {
return new JAXBElement<String>(_TelephoneConnectionTPlugType_QNAME, String.class, TelephoneConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "USOC", scope = TelephoneConnectionT.class)
public JAXBElement<String> createTelephoneConnectionTUSOC(String value) {
return new JAXBElement<String>(_PendingServiceRequestTUSOC_QNAME, String.class, TelephoneConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AddressConnectionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AddressConnection", scope = TelephoneConnectionT.class)
public JAXBElement<AddressConnectionT> createTelephoneConnectionTAddressConnection(AddressConnectionT value) {
return new JAXBElement<AddressConnectionT>(_VideoConnectionTAddressConnection_QNAME, AddressConnectionT.class, TelephoneConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TotalTime", scope = ARTISInfoObject.class)
public JAXBElement<String> createARTISInfoObjectTotalTime(String value) {
return new JAXBElement<String>(_ARTISInfoObjectTotalTime_QNAME, String.class, ARTISInfoObject.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "OverheadTime", scope = ARTISInfoObject.class)
public JAXBElement<String> createARTISInfoObjectOverheadTime(String value) {
return new JAXBElement<String>(_ARTISInfoObjectOverheadTime_QNAME, String.class, ARTISInfoObject.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LowNumber", scope = RangeT.class)
public JAXBElement<String> createRangeTLowNumber(String value) {
return new JAXBElement<String>(_RangeTLowNumber_QNAME, String.class, RangeT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "RangeInd", scope = RangeT.class)
public JAXBElement<String> createRangeTRangeInd(String value) {
return new JAXBElement<String>(_RangeTRangeInd_QNAME, String.class, RangeT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "HighNumber", scope = RangeT.class)
public JAXBElement<String> createRangeTHighNumber(String value) {
return new JAXBElement<String>(_RangeTHighNumber_QNAME, String.class, RangeT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "UnNumberedSS", scope = AccessParamsT.class)
public JAXBElement<String> createAccessParamsTUnNumberedSS(String value) {
return new JAXBElement<String>(_AccessParamsTUnNumberedSS_QNAME, String.class, AccessParamsT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link QwestStreetInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Street", scope = AreaCommunity.class)
public JAXBElement<QwestStreetInfoT> createAreaCommunityStreet(QwestStreetInfoT value) {
return new JAXBElement<QwestStreetInfoT>(_StreetCommunityStreet_QNAME, QwestStreetInfoT.class, AreaCommunity.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = AreaCommunity.class)
public JAXBElement<CommunityT> createAreaCommunityCommunity(CommunityT value) {
return new JAXBElement<CommunityT>(_UnnumberedAddressTCommunity_QNAME, CommunityT.class, AreaCommunity.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TelephoneVideoInd", scope = NetworkCapabilitiesT.class)
public JAXBElement<String> createNetworkCapabilitiesTTelephoneVideoInd(String value) {
return new JAXBElement<String>(_NetworkCapabilitiesTTelephoneVideoInd_QNAME, String.class, NetworkCapabilitiesT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "EffectDate", scope = NetworkCapabilitiesT.class)
public JAXBElement<String> createNetworkCapabilitiesTEffectDate(String value) {
return new JAXBElement<String>(_NetworkCapabilitiesTEffectDate_QNAME, String.class, NetworkCapabilitiesT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NetworkStatus", scope = NetworkCapabilitiesT.class)
public JAXBElement<String> createNetworkCapabilitiesTNetworkStatus(String value) {
return new JAXBElement<String>(_NetworkCapabilitiesTNetworkStatus_QNAME, String.class, NetworkCapabilitiesT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetNumberT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetNumber", scope = NumberedAddressT.class)
public JAXBElement<StreetNumberT> createNumberedAddressTStreetNumber(StreetNumberT value) {
return new JAXBElement<StreetNumberT>(_NumberedAddressTStreetNumber_QNAME, StreetNumberT.class, NumberedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = NumberedAddressT.class)
public JAXBElement<CommunityT> createNumberedAddressTCommunity(CommunityT value) {
return new JAXBElement<CommunityT>(_UnnumberedAddressTCommunity_QNAME, CommunityT.class, NumberedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link StreetNameT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetName", scope = NumberedAddressT.class)
public JAXBElement<StreetNameT> createNumberedAddressTStreetName(StreetNameT value) {
return new JAXBElement<StreetNameT>(_QwestStreetInfoTStreetName_QNAME, StreetNameT.class, NumberedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SupplementalAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SupplementalAddress", scope = NumberedAddressT.class)
public JAXBElement<SupplementalAddressT> createNumberedAddressTSupplementalAddress(SupplementalAddressT value) {
return new JAXBElement<SupplementalAddressT>(_UnnumberedAddressTSupplementalAddress_QNAME, SupplementalAddressT.class, NumberedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "HouseNumberPreffix", scope = HouseNumber.class)
public JAXBElement<String> createHouseNumberHouseNumberPreffix(String value) {
return new JAXBElement<String>(_HouseNumberHouseNumberPreffix_QNAME, String.class, HouseNumber.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "BaseHouseNumber", scope = HouseNumber.class)
public JAXBElement<String> createHouseNumberBaseHouseNumber(String value) {
return new JAXBElement<String>(_HouseNumberBaseHouseNumber_QNAME, String.class, HouseNumber.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "HouseNumberSuffix", scope = HouseNumber.class)
public JAXBElement<String> createHouseNumberHouseNumberSuffix(String value) {
return new JAXBElement<String>(_HouseNumberHouseNumberSuffix_QNAME, String.class, HouseNumber.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link EchoRequestT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "EchoRequest", scope = ValidateCivicAddressResponseDataT.class)
public JAXBElement<EchoRequestT> createValidateCivicAddressResponseDataTEchoRequest(EchoRequestT value) {
return new JAXBElement<EchoRequestT>(_ValidateCivicAddressResponseDataTEchoRequest_QNAME, EchoRequestT.class, ValidateCivicAddressResponseDataT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link LocationInfoListT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LocationInfoList", scope = ValidateCivicAddressResponseDataT.class)
public JAXBElement<LocationInfoListT> createValidateCivicAddressResponseDataTLocationInfoList(LocationInfoListT value) {
return new JAXBElement<LocationInfoListT>(_ValidateCivicAddressResponseDataTLocationInfoList_QNAME, LocationInfoListT.class, ValidateCivicAddressResponseDataT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CustomerInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomerInfo", scope = ValidateCivicAddressResponseDataT.class)
public JAXBElement<CustomerInfoT> createValidateCivicAddressResponseDataTCustomerInfo(CustomerInfoT value) {
return new JAXBElement<CustomerInfoT>(_ValidateCivicAddressResponseDataTCustomerInfo_QNAME, CustomerInfoT.class, ValidateCivicAddressResponseDataT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ExactMatchT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ExactMatch", scope = ValidateCivicAddressResponseDataT.class)
public JAXBElement<ExactMatchT> createValidateCivicAddressResponseDataTExactMatch(ExactMatchT value) {
return new JAXBElement<ExactMatchT>(_ValidateCivicAddressResponseDataTExactMatch_QNAME, ExactMatchT.class, ValidateCivicAddressResponseDataT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StatusResult", scope = ValidateCivicAddressResponseDataT.class)
public JAXBElement<String> createValidateCivicAddressResponseDataTStatusResult(String value) {
return new JAXBElement<String>(_ValidateCivicAddressResponseDataTStatusResult_QNAME, String.class, ValidateCivicAddressResponseDataT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AccessParamsT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AccessParams", scope = EchoRequestT.class)
public JAXBElement<AccessParamsT> createEchoRequestTAccessParams(AccessParamsT value) {
return new JAXBElement<AccessParamsT>(_EchoRequestTAccessParams_QNAME, AccessParamsT.class, EchoRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CivicAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CivicAddress", scope = EchoRequestT.class)
public JAXBElement<CivicAddressT> createEchoRequestTCivicAddress(CivicAddressT value) {
return new JAXBElement<CivicAddressT>(_ExactMatchTCivicAddress_QNAME, CivicAddressT.class, EchoRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ResistanceZone", scope = LineInfo.class)
public JAXBElement<String> createLineInfoResistanceZone(String value) {
return new JAXBElement<String>(_LineInfoResistanceZone_QNAME, String.class, LineInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ClassOfService", scope = LineInfo.class)
public JAXBElement<String> createLineInfoClassOfService(String value) {
return new JAXBElement<String>(_LineInfoClassOfService_QNAME, String.class, LineInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DisconnectReason", scope = LineInfo.class)
public JAXBElement<String> createLineInfoDisconnectReason(String value) {
return new JAXBElement<String>(_LineInfoDisconnectReason_QNAME, String.class, LineInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ModularWiringData", scope = LineInfo.class)
public JAXBElement<String> createLineInfoModularWiringData(String value) {
return new JAXBElement<String>(_LineInfoModularWiringData_QNAME, String.class, LineInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ActivityDate", scope = LineInfo.class)
public JAXBElement<String> createLineInfoActivityDate(String value) {
return new JAXBElement<String>(_LineInfoActivityDate_QNAME, String.class, LineInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "LineId", scope = LineInfo.class)
public JAXBElement<String> createLineInfoLineId(String value) {
return new JAXBElement<String>(_LineInfoLineId_QNAME, String.class, LineInfo.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomerName", scope = TNSummary.class)
public JAXBElement<String> createTNSummaryCustomerName(String value) {
return new JAXBElement<String>(_QwestAddressTCustomerName_QNAME, String.class, TNSummary.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TelephoneNumber", scope = TNSummary.class)
public JAXBElement<String> createTNSummaryTelephoneNumber(String value) {
return new JAXBElement<String>(_TelephoneConnectionTTelephoneNumber_QNAME, String.class, TNSummary.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TNStatus", scope = TNSummary.class)
public JAXBElement<String> createTNSummaryTNStatus(String value) {
return new JAXBElement<String>(_TNSummaryTNStatus_QNAME, String.class, TNSummary.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "HostId", scope = ServiceStatusObjectHostErrorList.class)
public JAXBElement<String> createServiceStatusObjectHostErrorListHostId(String value) {
return new JAXBElement<String>(_ServiceStatusObjectHostErrorListHostId_QNAME, String.class, ServiceStatusObjectHostErrorList.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfErrorList }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ErrorList", scope = ServiceStatusObjectHostErrorList.class)
public JAXBElement<ArrayOfErrorList> createServiceStatusObjectHostErrorListErrorList(ArrayOfErrorList value) {
return new JAXBElement<ArrayOfErrorList>(_ErrorList_QNAME, ArrayOfErrorList.class, ServiceStatusObjectHostErrorList.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfAddressCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AddressCommunityList", scope = DescriptiveNamePNAMatch.class)
public JAXBElement<ArrayOfAddressCommunity> createDescriptiveNamePNAMatchAddressCommunityList(ArrayOfAddressCommunity value) {
return new JAXBElement<ArrayOfAddressCommunity>(_DescriptiveNamePNAMatchAddressCommunityList_QNAME, ArrayOfAddressCommunity.class, DescriptiveNamePNAMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link DescriptiveNameCommunityMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DescriptiveCommunityMatch", scope = DescriptiveNamePNAMatch.class)
public JAXBElement<DescriptiveNameCommunityMatch> createDescriptiveNamePNAMatchDescriptiveCommunityMatch(DescriptiveNameCommunityMatch value) {
return new JAXBElement<DescriptiveNameCommunityMatch>(_DescriptiveNamePNAMatchDescriptiveCommunityMatch_QNAME, DescriptiveNameCommunityMatch.class, DescriptiveNamePNAMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PNARemarksList", scope = DescriptiveNamePNAMatch.class)
public JAXBElement<ArrayOfstring> createDescriptiveNamePNAMatchPNARemarksList(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_DescriptiveNamePNAMatchPNARemarksList_QNAME, ArrayOfstring.class, DescriptiveNamePNAMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomerId", scope = CustomerInfoT.class)
public JAXBElement<String> createCustomerInfoTCustomerId(String value) {
return new JAXBElement<String>(_CustomerInfoTCustomerId_QNAME, String.class, CustomerInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CCNA", scope = CustomerInfoT.class)
public JAXBElement<String> createCustomerInfoTCCNA(String value) {
return new JAXBElement<String>(_CustomerInfoTCCNA_QNAME, String.class, CustomerInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ServiceStatusObject }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ServiceStatusObject", scope = ValidateCivicAddressResponse.class)
public JAXBElement<ServiceStatusObject> createValidateCivicAddressResponseServiceStatusObject(ServiceStatusObject value) {
return new JAXBElement<ServiceStatusObject>(_ServiceStatusObject_QNAME, ServiceStatusObject.class, ValidateCivicAddressResponse.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ARTISInfoObject }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ARTISInfoObject", scope = ValidateCivicAddressResponse.class)
public JAXBElement<ARTISInfoObject> createValidateCivicAddressResponseARTISInfoObject(ARTISInfoObject value) {
return new JAXBElement<ARTISInfoObject>(_ARTISInfoObject_QNAME, ARTISInfoObject.class, ValidateCivicAddressResponse.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ValidateCivicAddressResponseDataT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ReturnDataSet", scope = ValidateCivicAddressResponse.class)
public JAXBElement<ValidateCivicAddressResponseDataT> createValidateCivicAddressResponseReturnDataSet(ValidateCivicAddressResponseDataT value) {
return new JAXBElement<ValidateCivicAddressResponseDataT>(_ValidateCivicAddressResponseReturnDataSet_QNAME, ValidateCivicAddressResponseDataT.class, ValidateCivicAddressResponse.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SchemaVersionT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TargetSchemaVersionUsed", scope = ValidateCivicAddressResponse.class)
public JAXBElement<SchemaVersionT> createValidateCivicAddressResponseTargetSchemaVersionUsed(SchemaVersionT value) {
return new JAXBElement<SchemaVersionT>(_ValidateCivicAddressResponseTargetSchemaVersionUsed_QNAME, SchemaVersionT.class, ValidateCivicAddressResponse.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "RequestId", scope = ValidateCivicAddressResponse.class)
public JAXBElement<String> createValidateCivicAddressResponseRequestId(String value) {
return new JAXBElement<String>(_ValidateCivicAddressResponseRequestId_QNAME, String.class, ValidateCivicAddressResponse.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "WebServiceName", scope = ValidateCivicAddressResponse.class)
public JAXBElement<String> createValidateCivicAddressResponseWebServiceName(String value) {
return new JAXBElement<String>(_ValidateCivicAddressResponseWebServiceName_QNAME, String.class, ValidateCivicAddressResponse.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link NumberedAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NumberedAddress", scope = CivicAddressT.class)
public JAXBElement<NumberedAddressT> createCivicAddressTNumberedAddress(NumberedAddressT value) {
return new JAXBElement<NumberedAddressT>(_CivicAddressTNumberedAddress_QNAME, NumberedAddressT.class, CivicAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link UnnumberedAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "UnnumberedAddress", scope = CivicAddressT.class)
public JAXBElement<UnnumberedAddressT> createCivicAddressTUnnumberedAddress(UnnumberedAddressT value) {
return new JAXBElement<UnnumberedAddressT>(_CivicAddressTUnnumberedAddress_QNAME, UnnumberedAddressT.class, CivicAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ConcatenatedAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ConcatenatedAddress", scope = CivicAddressT.class)
public JAXBElement<ConcatenatedAddressT> createCivicAddressTConcatenatedAddress(ConcatenatedAddressT value) {
return new JAXBElement<ConcatenatedAddressT>(_CivicAddressTConcatenatedAddress_QNAME, ConcatenatedAddressT.class, CivicAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link UnnumberedAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DescriptiveAddress", scope = CivicAddressT.class)
public JAXBElement<UnnumberedAddressT> createCivicAddressTDescriptiveAddress(UnnumberedAddressT value) {
return new JAXBElement<UnnumberedAddressT>(_CivicAddressTDescriptiveAddress_QNAME, UnnumberedAddressT.class, CivicAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link QwestAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "QwestAddress", scope = CivicAddressT.class)
public JAXBElement<QwestAddressT> createCivicAddressTQwestAddress(QwestAddressT value) {
return new JAXBElement<QwestAddressT>(_CivicAddressTQwestAddress_QNAME, QwestAddressT.class, CivicAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetNumberSuffix", scope = StreetNumberT.class)
public JAXBElement<String> createStreetNumberTStreetNumberSuffix(String value) {
return new JAXBElement<String>(_StreetNumberTStreetNumberSuffix_QNAME, String.class, StreetNumberT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetNumber", scope = StreetNumberT.class)
public JAXBElement<String> createStreetNumberTStreetNumber(String value) {
return new JAXBElement<String>(_NumberedAddressTStreetNumber_QNAME, String.class, StreetNumberT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetNumberPrefix", scope = StreetNumberT.class)
public JAXBElement<String> createStreetNumberTStreetNumberPrefix(String value) {
return new JAXBElement<String>(_StreetNumberTStreetNumberPrefix_QNAME, String.class, StreetNumberT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ConcatenatedStreetName", scope = ConcatenatedAddressT.class)
public JAXBElement<String> createConcatenatedAddressTConcatenatedStreetName(String value) {
return new JAXBElement<String>(_ConcatenatedAddressTConcatenatedStreetName_QNAME, String.class, ConcatenatedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = ConcatenatedAddressT.class)
public JAXBElement<CommunityT> createConcatenatedAddressTCommunity(CommunityT value) {
return new JAXBElement<CommunityT>(_UnnumberedAddressTCommunity_QNAME, CommunityT.class, ConcatenatedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SupplementalAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SupplementalAddress", scope = ConcatenatedAddressT.class)
public JAXBElement<SupplementalAddressT> createConcatenatedAddressTSupplementalAddress(SupplementalAddressT value) {
return new JAXBElement<SupplementalAddressT>(_UnnumberedAddressTSupplementalAddress_QNAME, SupplementalAddressT.class, ConcatenatedAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Box", scope = SLOCAddressDataT.class)
public JAXBElement<String> createSLOCAddressDataTBox(String value) {
return new JAXBElement<String>(_QwestAddressTBox_QNAME, String.class, SLOCAddressDataT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Route", scope = SLOCAddressDataT.class)
public JAXBElement<String> createSLOCAddressDataTRoute(String value) {
return new JAXBElement<String>(_QwestAddressTRoute_QNAME, String.class, SLOCAddressDataT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Description", scope = SLOCAddressDataT.class)
public JAXBElement<String> createSLOCAddressDataTDescription(String value) {
return new JAXBElement<String>(_UnnumberedAddressTDescription_QNAME, String.class, SLOCAddressDataT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ZipAddOn", scope = SLOCAddressDataT.class)
public JAXBElement<String> createSLOCAddressDataTZipAddOn(String value) {
return new JAXBElement<String>(_SLOCAddressDataTZipAddOn_QNAME, String.class, SLOCAddressDataT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ExchangeCode", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTExchangeCode(String value) {
return new JAXBElement<String>(_SAGInfoTExchangeCode_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PhoneCenter", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTPhoneCenter(String value) {
return new JAXBElement<String>(_SAGInfoTPhoneCenter_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PlantDistrict", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTPlantDistrict(String value) {
return new JAXBElement<String>(_SAGInfoTPlantDistrict_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfSwitch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SwitchList", scope = SAGInfoT.class)
public JAXBElement<ArrayOfSwitch> createSAGInfoTSwitchList(ArrayOfSwitch value) {
return new JAXBElement<ArrayOfSwitch>(_SAGInfoTSwitchList_QNAME, ArrayOfSwitch.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfCommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AlternateCommunity", scope = SAGInfoT.class)
public JAXBElement<ArrayOfCommunityT> createSAGInfoTAlternateCommunity(ArrayOfCommunityT value) {
return new JAXBElement<ArrayOfCommunityT>(_SAGInfoTAlternateCommunity_QNAME, ArrayOfCommunityT.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link WireCenterT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "WireCenter", scope = SAGInfoT.class)
public JAXBElement<WireCenterT> createSAGInfoTWireCenter(WireCenterT value) {
return new JAXBElement<WireCenterT>(_ExactMatchTWireCenter_QNAME, WireCenterT.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ForeignTownship", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTForeignTownship(String value) {
return new JAXBElement<String>(_SAGInfoTForeignTownship_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ZipCode", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTZipCode(String value) {
return new JAXBElement<String>(_SAGInfoTZipCode_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "RateZone", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTRateZone(String value) {
return new JAXBElement<String>(_SAGInfoTRateZone_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ExchangeCodeSuffix", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTExchangeCodeSuffix(String value) {
return new JAXBElement<String>(_SAGInfoTExchangeCodeSuffix_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "RuralDeliveryArea", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTRuralDeliveryArea(String value) {
return new JAXBElement<String>(_SAGInfoTRuralDeliveryArea_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Directory", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTDirectory(String value) {
return new JAXBElement<String>(_SAGInfoTDirectory_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TTARemarks", scope = SAGInfoT.class)
public JAXBElement<ArrayOfstring> createSAGInfoTTTARemarks(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_SAGInfoTTTARemarks_QNAME, ArrayOfstring.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SAGNPA", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTSAGNPA(String value) {
return new JAXBElement<String>(_SAGInfoTSAGNPA_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "GSGRemarks", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTGSGRemarks(String value) {
return new JAXBElement<String>(_SAGInfoTGSGRemarks_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AlternateStreet", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTAlternateStreet(String value) {
return new JAXBElement<String>(_SAGInfoTAlternateStreet_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "BusinessOffice", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTBusinessOffice(String value) {
return new JAXBElement<String>(_SAGInfoTBusinessOffice_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetRangeRemarks", scope = SAGInfoT.class)
public JAXBElement<ArrayOfstring> createSAGInfoTStreetRangeRemarks(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_RangeMatchStreetRangeRemarks_QNAME, ArrayOfstring.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TaxCode", scope = SAGInfoT.class)
public JAXBElement<String> createSAGInfoTTaxCode(String value) {
return new JAXBElement<String>(_SAGInfoTTaxCode_QNAME, String.class, SAGInfoT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfCommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = AddressCommunity.class)
public JAXBElement<ArrayOfCommunityT> createAddressCommunityCommunity(ArrayOfCommunityT value) {
return new JAXBElement<ArrayOfCommunityT>(_UnnumberedAddressTCommunity_QNAME, ArrayOfCommunityT.class, AddressCommunity.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfCivicAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CivicAddress", scope = AddressCommunity.class)
public JAXBElement<ArrayOfCivicAddressT> createAddressCommunityCivicAddress(ArrayOfCivicAddressT value) {
return new JAXBElement<ArrayOfCivicAddressT>(_ExactMatchTCivicAddress_QNAME, ArrayOfCivicAddressT.class, AddressCommunity.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Value", scope = AddressDesignatorT.class)
public JAXBElement<String> createAddressDesignatorTValue(String value) {
return new JAXBElement<String>(_AddressDesignatorTValue_QNAME, String.class, AddressDesignatorT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Type", scope = AddressDesignatorT.class)
public JAXBElement<String> createAddressDesignatorTType(String value) {
return new JAXBElement<String>(_AddressDesignatorTType_QNAME, String.class, AddressDesignatorT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TargetXSDName", scope = SchemaVersionT.class)
public JAXBElement<String> createSchemaVersionTTargetXSDName(String value) {
return new JAXBElement<String>(_SchemaVersionTTargetXSDName_QNAME, String.class, SchemaVersionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ErrorCode", scope = ServiceStatusObject.class)
public JAXBElement<String> createServiceStatusObjectErrorCode(String value) {
return new JAXBElement<String>(_ErrorListErrorCode_QNAME, String.class, ServiceStatusObject.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfServiceStatusObjectHostErrorList }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "HostErrorList", scope = ServiceStatusObject.class)
public JAXBElement<ArrayOfServiceStatusObjectHostErrorList> createServiceStatusObjectHostErrorList(ArrayOfServiceStatusObjectHostErrorList value) {
return new JAXBElement<ArrayOfServiceStatusObjectHostErrorList>(_ServiceStatusObjectHostErrorList_QNAME, ArrayOfServiceStatusObjectHostErrorList.class, ServiceStatusObject.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ErrorMessage", scope = ServiceStatusObject.class)
public JAXBElement<String> createServiceStatusObjectErrorMessage(String value) {
return new JAXBElement<String>(_ErrorListErrorMessage_QNAME, String.class, ServiceStatusObject.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfCommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = DescriptiveNameCommunityMatch.class)
public JAXBElement<ArrayOfCommunityT> createDescriptiveNameCommunityMatchCommunity(ArrayOfCommunityT value) {
return new JAXBElement<ArrayOfCommunityT>(_UnnumberedAddressTCommunity_QNAME, ArrayOfCommunityT.class, DescriptiveNameCommunityMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DescriptiveName", scope = DescriptiveNameCommunityMatch.class)
public JAXBElement<ArrayOfstring> createDescriptiveNameCommunityMatchDescriptiveName(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_DescriptiveNameCommunityMatchDescriptiveName_QNAME, ArrayOfstring.class, DescriptiveNameCommunityMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link PendingServiceRequestT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "PendingServiceRequest", scope = AddressConnectionT.class)
public JAXBElement<PendingServiceRequestT> createAddressConnectionTPendingServiceRequest(PendingServiceRequestT value) {
return new JAXBElement<PendingServiceRequestT>(_AddressConnectionTPendingServiceRequest_QNAME, PendingServiceRequestT.class, AddressConnectionT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomerName", scope = ExtPendingServiceRequestT.class)
public JAXBElement<String> createExtPendingServiceRequestTCustomerName(String value) {
return new JAXBElement<String>(_QwestAddressTCustomerName_QNAME, String.class, ExtPendingServiceRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "ClassOfService", scope = ExtPendingServiceRequestT.class)
public JAXBElement<String> createExtPendingServiceRequestTClassOfService(String value) {
return new JAXBElement<String>(_LineInfoClassOfService_QNAME, String.class, ExtPendingServiceRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CircuitTerminationId", scope = ExtPendingServiceRequestT.class)
public JAXBElement<String> createExtPendingServiceRequestTCircuitTerminationId(String value) {
return new JAXBElement<String>(_ExtPendingServiceRequestTCircuitTerminationId_QNAME, String.class, ExtPendingServiceRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link String }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TelephoneNumber", scope = ExtPendingServiceRequestT.class)
public JAXBElement<String> createExtPendingServiceRequestTTelephoneNumber(String value) {
return new JAXBElement<String>(_TelephoneConnectionTTelephoneNumber_QNAME, String.class, ExtPendingServiceRequestT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CommunityT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Community", scope = StreetNameCommunity.class)
public JAXBElement<CommunityT> createStreetNameCommunityCommunity(CommunityT value) {
return new JAXBElement<CommunityT>(_UnnumberedAddressTCommunity_QNAME, CommunityT.class, StreetNameCommunity.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfQwestStreetInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "QwestStreetName", scope = StreetNameCommunity.class)
public JAXBElement<ArrayOfQwestStreetInfoT> createStreetNameCommunityQwestStreetName(ArrayOfQwestStreetInfoT value) {
return new JAXBElement<ArrayOfQwestStreetInfoT>(_StreetNameCommunityQwestStreetName_QNAME, ArrayOfQwestStreetInfoT.class, StreetNameCommunity.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AddressDesignatorT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Structure", scope = SupplementalAddressT.class)
public JAXBElement<AddressDesignatorT> createSupplementalAddressTStructure(AddressDesignatorT value) {
return new JAXBElement<AddressDesignatorT>(_SupplementalAddressTStructure_QNAME, AddressDesignatorT.class, SupplementalAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AddressDesignatorT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Unit", scope = SupplementalAddressT.class)
public JAXBElement<AddressDesignatorT> createSupplementalAddressTUnit(AddressDesignatorT value) {
return new JAXBElement<AddressDesignatorT>(_SupplementalAddressTUnit_QNAME, AddressDesignatorT.class, SupplementalAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link AddressDesignatorT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "Elevation", scope = SupplementalAddressT.class)
public JAXBElement<AddressDesignatorT> createSupplementalAddressTElevation(AddressDesignatorT value) {
return new JAXBElement<AddressDesignatorT>(_SupplementalAddressTElevation_QNAME, AddressDesignatorT.class, SupplementalAddressT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfTNSummary }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "TNSummaryList", scope = SLOCMatch.class)
public JAXBElement<ArrayOfTNSummary> createSLOCMatchTNSummaryList(ArrayOfTNSummary value) {
return new JAXBElement<ArrayOfTNSummary>(_SLOCMatchTNSummaryList_QNAME, ArrayOfTNSummary.class, SLOCMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link SupplementalAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SupplementalAddress", scope = SLOCMatch.class)
public JAXBElement<SupplementalAddressT> createSLOCMatchSupplementalAddress(SupplementalAddressT value) {
return new JAXBElement<SupplementalAddressT>(_UnnumberedAddressTSupplementalAddress_QNAME, SupplementalAddressT.class, SLOCMatch.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfDescriptiveNamePNAMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DescriptiveNamePNAMatchList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfDescriptiveNamePNAMatch> createLocationInfoListTDescriptiveNamePNAMatchList(ArrayOfDescriptiveNamePNAMatch value) {
return new JAXBElement<ArrayOfDescriptiveNamePNAMatch>(_LocationInfoListTDescriptiveNamePNAMatchList_QNAME, ArrayOfDescriptiveNamePNAMatch.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfAHNMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AHNMatchList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfAHNMatch> createLocationInfoListTAHNMatchList(ArrayOfAHNMatch value) {
return new JAXBElement<ArrayOfAHNMatch>(_LocationInfoListTAHNMatchList_QNAME, ArrayOfAHNMatch.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link CivicAddressT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AddressInfo", scope = LocationInfoListT.class)
public JAXBElement<CivicAddressT> createLocationInfoListTAddressInfo(CivicAddressT value) {
return new JAXBElement<CivicAddressT>(_LocationInfoListTAddressInfo_QNAME, CivicAddressT.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfStreetNameCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetNameCommunityList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfStreetNameCommunity> createLocationInfoListTStreetNameCommunityList(ArrayOfStreetNameCommunity value) {
return new JAXBElement<ArrayOfStreetNameCommunity>(_LocationInfoListTStreetNameCommunityList_QNAME, ArrayOfStreetNameCommunity.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfCustomField }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "CustomFieldList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfCustomField> createLocationInfoListTCustomFieldList(ArrayOfCustomField value) {
return new JAXBElement<ArrayOfCustomField>(_ExactMatchTCustomFieldList_QNAME, ArrayOfCustomField.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfRangeMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "RangeMatchList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfRangeMatch> createLocationInfoListTRangeMatchList(ArrayOfRangeMatch value) {
return new JAXBElement<ArrayOfRangeMatch>(_StreetRangeMatchTRangeMatchList_QNAME, ArrayOfRangeMatch.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfAreaCommunity }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "AreaCommunityList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfAreaCommunity> createLocationInfoListTAreaCommunityList(ArrayOfAreaCommunity value) {
return new JAXBElement<ArrayOfAreaCommunity>(_LocationInfoListTAreaCommunityList_QNAME, ArrayOfAreaCommunity.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfstring }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DescriptiveNameMatchList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfstring> createLocationInfoListTDescriptiveNameMatchList(ArrayOfstring value) {
return new JAXBElement<ArrayOfstring>(_LocationInfoListTDescriptiveNameMatchList_QNAME, ArrayOfstring.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfNeighborMatchT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "NeighborMatchList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfNeighborMatchT> createLocationInfoListTNeighborMatchList(ArrayOfNeighborMatchT value) {
return new JAXBElement<ArrayOfNeighborMatchT>(_LocationInfoListTNeighborMatchList_QNAME, ArrayOfNeighborMatchT.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfQwestStreetInfoT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "QwestStreetNameList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfQwestStreetInfoT> createLocationInfoListTQwestStreetNameList(ArrayOfQwestStreetInfoT value) {
return new JAXBElement<ArrayOfQwestStreetInfoT>(_LocationInfoListTQwestStreetNameList_QNAME, ArrayOfQwestStreetInfoT.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfGSCMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "GSGMatchList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfGSCMatch> createLocationInfoListTGSGMatchList(ArrayOfGSCMatch value) {
return new JAXBElement<ArrayOfGSCMatch>(_LocationInfoListTGSGMatchList_QNAME, ArrayOfGSCMatch.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfSLOCMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "SLOCMatchList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfSLOCMatch> createLocationInfoListTSLOCMatchList(ArrayOfSLOCMatch value) {
return new JAXBElement<ArrayOfSLOCMatch>(_ExactMatchTSLOCMatchList_QNAME, ArrayOfSLOCMatch.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfDescriptiveNameCommunityMatch }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "DescriptiveNameCommunityMatchList", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfDescriptiveNameCommunityMatch> createLocationInfoListTDescriptiveNameCommunityMatchList(ArrayOfDescriptiveNameCommunityMatch value) {
return new JAXBElement<ArrayOfDescriptiveNameCommunityMatch>(_LocationInfoListTDescriptiveNameCommunityMatchList_QNAME, ArrayOfDescriptiveNameCommunityMatch.class, LocationInfoListT.class, value);
}
/**
* Create an instance of {@link javax.xml.bind.JAXBElement }{@code <}{@link ArrayOfStreetRangeMatchT }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://www.qwest.com/XMLSchema", name = "StreetRangeMatch", scope = LocationInfoListT.class)
public JAXBElement<ArrayOfStreetRangeMatchT> createLocationInfoListTStreetRangeMatch(ArrayOfStreetRangeMatchT value) {
return new JAXBElement<ArrayOfStreetRangeMatchT>(_LocationInfoListTStreetRangeMatch_QNAME, ArrayOfStreetRangeMatchT.class, LocationInfoListT.class, value);
}
}
|
3e0af87072d01d73db261e88ee3f691410629a3f | 317 | java | Java | seata-order-service2001/src/main/java/com/zh/dao/OrderDao.java | zhdiscovery/spring-cloud-demo | 15101997608762b90354dfb6f0ec23910a9f4dbc | [
"Apache-2.0"
] | null | null | null | seata-order-service2001/src/main/java/com/zh/dao/OrderDao.java | zhdiscovery/spring-cloud-demo | 15101997608762b90354dfb6f0ec23910a9f4dbc | [
"Apache-2.0"
] | null | null | null | seata-order-service2001/src/main/java/com/zh/dao/OrderDao.java | zhdiscovery/spring-cloud-demo | 15101997608762b90354dfb6f0ec23910a9f4dbc | [
"Apache-2.0"
] | null | null | null | 22.642857 | 79 | 0.728707 | 4,631 | package com.zh.dao;
import com.zh.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface OrderDao {
//新建订单
void create(Order order);
//修改订单状态,从零改为1
void update(@Param("userId") Long userId, @Param("status") Integer status);
} |
3e0af88f6364310a9b162032be504baa13011ca7 | 82 | java | Java | DemoForHuaweiDataset/2018sp-entitylucene/NERLucene/src/pattern/Token.java | forward-uiuc/Entity-Semantic-Document-Search | 38d556c903bd6ede00d8e61964bd00e18615380a | [
"Apache-2.0"
] | null | null | null | DemoForHuaweiDataset/2018sp-entitylucene/NERLucene/src/pattern/Token.java | forward-uiuc/Entity-Semantic-Document-Search | 38d556c903bd6ede00d8e61964bd00e18615380a | [
"Apache-2.0"
] | null | null | null | DemoForHuaweiDataset/2018sp-entitylucene/NERLucene/src/pattern/Token.java | forward-uiuc/Entity-Semantic-Document-Search | 38d556c903bd6ede00d8e61964bd00e18615380a | [
"Apache-2.0"
] | null | null | null | 10.25 | 29 | 0.743902 | 4,632 | package pattern;
import java.util.ArrayList;
public abstract class Token {
}
|
3e0af96876ed12d35df7e00bee260db44d24f1ef | 720 | java | Java | appframework-sdk/src/main/java/com/larksuite/appframework/sdk/core/protocol/client/calendar/AttendeesResponse.java | zhaoche27/appframework-java | 4dbab75ea7d179215f098d811008c98a157b81d3 | [
"MIT"
] | null | null | null | appframework-sdk/src/main/java/com/larksuite/appframework/sdk/core/protocol/client/calendar/AttendeesResponse.java | zhaoche27/appframework-java | 4dbab75ea7d179215f098d811008c98a157b81d3 | [
"MIT"
] | null | null | null | appframework-sdk/src/main/java/com/larksuite/appframework/sdk/core/protocol/client/calendar/AttendeesResponse.java | zhaoche27/appframework-java | 4dbab75ea7d179215f098d811008c98a157b81d3 | [
"MIT"
] | null | null | null | 21.176471 | 69 | 0.720833 | 4,633 | package com.larksuite.appframework.sdk.core.protocol.client.calendar;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.larksuite.appframework.sdk.core.protocol.BaseResponse;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.List;
@Data
public class AttendeesResponse extends BaseResponse {
private List<Data> data;
@Getter
@Setter
@ToString
public static class Data {
@JsonProperty("open_id")
private String openId;
@JsonProperty("employee_id")
private String employeeId;
@JsonProperty("display_name")
private String displayName;
private Boolean optional;
}
}
|
3e0af9b62580837cee01c7959426915e4ba306b5 | 490 | java | Java | BehavioralDesignPattern/src/com/dp/behavioral/mediator/ChatClient.java | ashish246/design-patterns-labs | 4af34c2cf22138da6e0055a34e19bab8c67ae292 | [
"MIT"
] | 1 | 2020-07-21T03:18:09.000Z | 2020-07-21T03:18:09.000Z | BehavioralDesignPattern/src/com/dp/behavioral/mediator/ChatClient.java | ashish246/design-patterns-labs | 4af34c2cf22138da6e0055a34e19bab8c67ae292 | [
"MIT"
] | null | null | null | BehavioralDesignPattern/src/com/dp/behavioral/mediator/ChatClient.java | ashish246/design-patterns-labs | 4af34c2cf22138da6e0055a34e19bab8c67ae292 | [
"MIT"
] | null | null | null | 23.333333 | 49 | 0.710204 | 4,634 | package com.dp.behavioral.mediator;
public class ChatClient {
public static void main(String[] args) {
ChatMediator mediator = new ChatMediatorImpl();
User user1 = new UserImpl(mediator, "Ashish");
User user2 = new UserImpl(mediator, "Lisa");
User user3 = new UserImpl(mediator, "Saurabh");
User user4 = new UserImpl(mediator, "David");
mediator.addUser(user1);
mediator.addUser(user2);
mediator.addUser(user3);
mediator.addUser(user4);
user1.send("Hi All");
}
} |
3e0afa37d5b33de98d28a3ea67b4ddd1bc6327ec | 495 | java | Java | app/src/main/java/com/niteroomcreation/scaffold/ui/activity/main/MainPresenter.java | 4sskick/scaffol-android | f033a1319ec227bbd2fd32ef0f96dac5d74d02e1 | [
"Unlicense"
] | null | null | null | app/src/main/java/com/niteroomcreation/scaffold/ui/activity/main/MainPresenter.java | 4sskick/scaffol-android | f033a1319ec227bbd2fd32ef0f96dac5d74d02e1 | [
"Unlicense"
] | null | null | null | app/src/main/java/com/niteroomcreation/scaffold/ui/activity/main/MainPresenter.java | 4sskick/scaffol-android | f033a1319ec227bbd2fd32ef0f96dac5d74d02e1 | [
"Unlicense"
] | null | null | null | 20.625 | 103 | 0.723232 | 4,635 | package com.niteroomcreation.scaffold.ui.activity.main;
import com.niteroomcreation.scaffold.ui.base.BasePresenter;
/**
* Created by Septian Adi Wijaya on 03/09/19
*/
public class MainPresenter extends BasePresenter<MainContract.View> implements MainContract.Presenter {
public MainPresenter(MainContract.View view){
this.mView = view;
}
@Override
public void onViewActive(MainContract.View view) {
}
@Override
public void onViewInactive() {
}
}
|
3e0afac0fad98ce5fd9707ea165ec896d3023be1 | 1,333 | java | Java | service-broker-filter-securitygroups/src/test/java/com/orange/cloud/servicebroker/filter/securitygroups/domain/PortTest.java | Orange-OpenSource/sec-group-brokerchain | ccc53a2d7edbb91ec0ba8cb50b9c0d933fa1106f | [
"Apache-2.0"
] | 14 | 2016-11-04T10:23:13.000Z | 2020-09-16T20:11:29.000Z | service-broker-filter-securitygroups/src/test/java/com/orange/cloud/servicebroker/filter/securitygroups/domain/PortTest.java | Orange-OpenSource/sec-group-brokerchain | ccc53a2d7edbb91ec0ba8cb50b9c0d933fa1106f | [
"Apache-2.0"
] | 134 | 2016-09-12T08:46:49.000Z | 2021-07-01T04:50:21.000Z | service-broker-filter-securitygroups/src/test/java/com/orange/cloud/servicebroker/filter/securitygroups/domain/PortTest.java | Orange-OpenSource/sec-group-brokerchain | ccc53a2d7edbb91ec0ba8cb50b9c0d933fa1106f | [
"Apache-2.0"
] | 1 | 2021-01-26T03:30:21.000Z | 2021-01-26T03:30:21.000Z | 30.295455 | 95 | 0.685671 | 4,636 | package com.orange.cloud.servicebroker.filter.securitygroups.domain;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.catchThrowable;
/**
* @author Sebastien Bortolussi
*/
public class PortTest {
@Test
public void invalid_port() throws Exception {
Throwable thrown = catchThrowable(() -> {
ImmutablePort.of(-2);
}
);
assertThat(thrown).hasMessageContaining("Invalid port : -2");
}
@Test
public void valid_port() throws Exception {
ImmutablePort.of(8000);
}
@Test
public void greater_than() throws Exception {
assertThat(ImmutablePort.of(8000).greaterOrEqualsTo(ImmutablePort.of(8000))).isTrue();
assertThat(ImmutablePort.of(8000).greaterOrEqualsTo(ImmutablePort.of(7999))).isTrue();
assertThat(ImmutablePort.of(8000).greaterOrEqualsTo(ImmutablePort.of(8001))).isFalse();
}
@Test
public void less_than() throws Exception {
assertThat(ImmutablePort.of(8001).lessOrEqualsTo(ImmutablePort.of(8001))).isTrue();
assertThat(ImmutablePort.of(8001).lessOrEqualsTo(ImmutablePort.of(8002))).isTrue();
assertThat(ImmutablePort.of(8001).lessOrEqualsTo(ImmutablePort.of(8000))).isFalse();
}
} |
3e0afbea7ba1bddc8dd7d55fb814e7e428c408b8 | 1,628 | java | Java | Umplificator/UmplifiedProjects/weka-umplified-0/src/test/java/weka/clusterers/MakeDensityBasedClustererTest.java | pwang347/umple | 9a924c0ab8ce6ebf258d804fcf24d69e26210bf9 | [
"MIT"
] | 206 | 2015-08-26T15:49:05.000Z | 2022-03-26T18:31:12.000Z | Umplificator/UmplifiedProjects/weka-umplified-0/src/test/java/weka/clusterers/MakeDensityBasedClustererTest.java | pwang347/umple | 9a924c0ab8ce6ebf258d804fcf24d69e26210bf9 | [
"MIT"
] | 837 | 2015-08-31T18:19:59.000Z | 2022-03-21T16:01:27.000Z | Umplificator/UmplifiedProjects/weka-umplified-0/src/test/java/weka/clusterers/MakeDensityBasedClustererTest.java | pwang347/umple | 9a924c0ab8ce6ebf258d804fcf24d69e26210bf9 | [
"MIT"
] | 336 | 2015-08-26T17:00:41.000Z | 2022-02-14T19:39:57.000Z | 29.6 | 74 | 0.736486 | 4,637 | /*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Copyright (C) 2005 University of Waikato, Hamilton, New Zealand
*/
package weka.clusterers;
import weka.clusterers.AbstractClustererTest;
import weka.clusterers.Clusterer;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* Tests MakeDensityBasedClusterer. Run from the command line with:<p/>
* java weka.clusterers.MakeDensityBasedClustererTest
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision: 8034 $
*/
public class MakeDensityBasedClustererTest
extends AbstractClustererTest {
public MakeDensityBasedClustererTest(String name) {
super(name);
}
/** Creates a default MakeDensityBasedClusterer */
public Clusterer getClusterer() {
return new MakeDensityBasedClusterer();
}
public static Test suite() {
return new TestSuite(MakeDensityBasedClustererTest.class);
}
public static void main(String[] args){
junit.textui.TestRunner.run(suite());
}
}
|
3e0afc2f846ae2e997825aa756559aa9064bec05 | 4,139 | java | Java | gmall-pms/src/main/java/com/atguigu/gmall/pms/service/impl/SkuAttrValueServiceImpl.java | LeoNardo-LB/gmall-0821 | f3febd569522909a98cd11a6c95c4a00f85512b5 | [
"Apache-2.0"
] | null | null | null | gmall-pms/src/main/java/com/atguigu/gmall/pms/service/impl/SkuAttrValueServiceImpl.java | LeoNardo-LB/gmall-0821 | f3febd569522909a98cd11a6c95c4a00f85512b5 | [
"Apache-2.0"
] | null | null | null | gmall-pms/src/main/java/com/atguigu/gmall/pms/service/impl/SkuAttrValueServiceImpl.java | LeoNardo-LB/gmall-0821 | f3febd569522909a98cd11a6c95c4a00f85512b5 | [
"Apache-2.0"
] | null | null | null | 42.670103 | 161 | 0.712491 | 4,638 | package com.atguigu.gmall.pms.service.impl;
import com.alibaba.fastjson.JSON;
import com.atguigu.gmall.common.bean.PageParamVo;
import com.atguigu.gmall.common.bean.PageResultVo;
import com.atguigu.gmall.pms.entity.SaleAttrValueVo;
import com.atguigu.gmall.pms.entity.SkuAttrValueEntity;
import com.atguigu.gmall.pms.entity.SkuEntity;
import com.atguigu.gmall.pms.mapper.SkuAttrValueMapper;
import com.atguigu.gmall.pms.service.SkuAttrValueService;
import com.atguigu.gmall.pms.service.SkuService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
@Service("skuAttrValueService")
public class SkuAttrValueServiceImpl extends ServiceImpl<SkuAttrValueMapper, SkuAttrValueEntity> implements SkuAttrValueService {
@Autowired
SkuService skuService;
@Autowired
SkuAttrValueService skuAttrValueService;
@Override
public PageResultVo queryPage(PageParamVo paramVo) {
IPage<SkuAttrValueEntity> page = this.page(
paramVo.getPage(),
new QueryWrapper<SkuAttrValueEntity>()
);
return new PageResultVo(page);
}
@Override
public List<SaleAttrValueVo> querySkuValueBySpuId(Long spuId) {
List<SaleAttrValueVo> saleAttrValueVos = new ArrayList<>();
// 根据spuId获取SkuEntities
List<SkuEntity> skuEntities = skuService.list(new QueryWrapper<SkuEntity>().eq("spu_id", spuId));
// 从SkuEntities中提取sku的id集合
List<Long> skuIdList = skuEntities.stream().map(skuEntity -> skuEntity.getId()).collect(Collectors.toList());
// 根据skuId 集合查询对应属性值
List<SkuAttrValueEntity> attrValueEntities = baseMapper.selectList(new QueryWrapper<SkuAttrValueEntity>().in("sku_id", skuIdList).orderByAsc("attr_id"));
// [
// {attrId: 3, attrName: '颜色', attrValues: '白色','黑色','粉色'},
// {attrId: 8, attrName: '内存', attrValues: '6G','8G','12G'},
// {attrId: 9, attrName: '存储', attrValues: '128G','256G','512G'}
// ]
Map<Long, List<SkuAttrValueEntity>> groupedEntityMap = attrValueEntities.stream().collect(Collectors.groupingBy(attr -> attr.getAttrId()));
groupedEntityMap.forEach((attrId, attrs) -> {
SaleAttrValueVo saleAttrValueVo = new SaleAttrValueVo();
saleAttrValueVo.setAttrId(attrId);
saleAttrValueVo.setAttrName(attrs.get(0).getAttrName());
Set<String> valueSet = attrs.stream().map(attr -> attr.getAttrValue()).collect(Collectors.toSet());
saleAttrValueVo.setAttrValues(valueSet);
saleAttrValueVos.add(saleAttrValueVo);
});
return saleAttrValueVos;
}
@Override
public Map<Long, String> queryCurrentSkuAttrValue(Long skuId) {
List<SkuAttrValueEntity> skuAttrValueEntities = skuAttrValueService.list(new QueryWrapper<SkuAttrValueEntity>().eq("sku_id", skuId));
return skuAttrValueEntities.stream().collect(Collectors.toMap(item -> item.getAttrId(), item -> item.getAttrValue()));
}
@Override
public String querySkuAttrMapping(Long spuId) {
// 根据spuId获取SkuEntities
List<SkuEntity> skuEntities = skuService.list(new QueryWrapper<SkuEntity>().eq("spu_id", spuId));
// 从SkuEntities中提取sku的id集合
List<Long> skuIdList = skuEntities.stream().map(skuEntity -> skuEntity.getId()).collect(Collectors.toList());
// {'白色,8G,128G': 4, '白色,8G,256G': 5, '白色,8G,512G': 6, '白色,12G,128G': 7}
List<Map<String, Object>> attrValuesBySkuIds = baseMapper.getAttrValuesBySkuIds(skuIdList);
Map mappingMap = attrValuesBySkuIds.stream().collect(Collectors.toMap(item -> item.get("attr_values"), item -> item.get("sku_id")));
return JSON.toJSONString(mappingMap);
}
} |
3e0afceceae53a07a0b57ad3b406c01a8f8ce53e | 1,936 | java | Java | src/main/java/de/varoplugin/cfw/player/hook/chat/PlayerChatHookListener.java | CuukyOfficial/CookieUtils | e3815b98f2687200b65c239f14a9c9bcb6979fd6 | [
"MIT"
] | null | null | null | src/main/java/de/varoplugin/cfw/player/hook/chat/PlayerChatHookListener.java | CuukyOfficial/CookieUtils | e3815b98f2687200b65c239f14a9c9bcb6979fd6 | [
"MIT"
] | null | null | null | src/main/java/de/varoplugin/cfw/player/hook/chat/PlayerChatHookListener.java | CuukyOfficial/CookieUtils | e3815b98f2687200b65c239f14a9c9bcb6979fd6 | [
"MIT"
] | null | null | null | 42.086957 | 122 | 0.76343 | 4,639 | /*
* MIT License
*
* Copyright (c) 2020-2022 CuukyOfficial
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package de.varoplugin.cfw.player.hook.chat;
import de.varoplugin.cfw.player.hook.AbstractHookListener;
import de.varoplugin.cfw.player.hook.HookListener;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.player.AsyncPlayerChatEvent;
public class PlayerChatHookListener extends AbstractHookListener<PlayerChatHook> implements HookListener<PlayerChatHook> {
@Override
public void register(PlayerChatHook trigger) {
this.trigger = trigger;
}
@EventHandler(priority = EventPriority.LOWEST)
public void onPlayerChat(AsyncPlayerChatEvent event) {
if (this.ignoreEvent(event)) return;
this.trigger.eventFired(new ChatHookTriggerEvent(this.trigger, event));
event.setCancelled(true);
}
} |
3e0afddc86c678dfc384cf9385b82688b3e6deda | 2,301 | java | Java | src/main/java/xyz/luan/console/parser/Aliases.java | luanpotter/console-parser | a1a32d3879d37cf2ef428e61c12595ae0cf59751 | [
"MIT"
] | null | null | null | src/main/java/xyz/luan/console/parser/Aliases.java | luanpotter/console-parser | a1a32d3879d37cf2ef428e61c12595ae0cf59751 | [
"MIT"
] | null | null | null | src/main/java/xyz/luan/console/parser/Aliases.java | luanpotter/console-parser | a1a32d3879d37cf2ef428e61c12595ae0cf59751 | [
"MIT"
] | null | null | null | 27.070588 | 86 | 0.587571 | 4,640 | package xyz.luan.console.parser;
import java.util.HashMap;
import java.util.Map;
import xyz.luan.console.parser.call.CallResult;
public class Aliases {
private Map<String, String> aliases;
private boolean enableDefaultAliases;
public static Aliases createAliasesWithDefaults() {
return new Aliases(new HashMap<>(), true);
}
public static Aliases createAliasesWithoutDefaults(Map<String, String> map) {
return new Aliases(map, false);
}
public Aliases(Map<String, String> aliases, boolean enableDefaultAliases) {
this.aliases = aliases;
this.enableDefaultAliases = enableDefaultAliases;
}
public boolean add(String alias, String keyword) {
if (this.aliases.get(alias) != null) {
return false;
}
this.aliases.put(alias, keyword);
return true;
}
public boolean remove(String alias) {
if (this.aliases.get(alias) == null) {
return false;
}
this.aliases.remove(alias);
return true;
}
public String get(String alias) {
String res = this.aliases.get(alias);
if (this.enableDefaultAliases && res == null) {
return ':' + alias;
}
return res;
}
public CallResult list(Console console) {
return listFor(console, null);
}
public CallResult listFor(Console console, String keyword) {
boolean printed = false;
for (Map.Entry<String, String> entry : aliases.entrySet()) {
if (keyword == null) {
console.result(entry.getKey() + ": " + entry.getValue().substring(1));
printed = true;
} else {
if (keyword.equals(entry.getValue())) {
console.result(entry.getKey());
printed = true;
}
}
}
if (!printed) {
console.result("No aliases found.");
}
return CallResult.SUCCESS;
}
public void setDefaultAliases(boolean enableDefaultAliases) {
this.enableDefaultAliases = enableDefaultAliases;
}
public boolean isDefaultAliasesEnabled() {
return enableDefaultAliases;
}
public void removeAll() {
this.aliases.clear();
}
} |
3e0afe17683db3729302898a577edd8d61295a39 | 4,978 | java | Java | BianccoAdministrator/src/main/java/com/biancco/admin/persistence/dao/impl/DocumentDAOImpl.java | oswa/bianccoAdmin | d0b2dc3ea93317d29f670eb975a2814ede6b2414 | [
"Apache-2.0"
] | null | null | null | BianccoAdministrator/src/main/java/com/biancco/admin/persistence/dao/impl/DocumentDAOImpl.java | oswa/bianccoAdmin | d0b2dc3ea93317d29f670eb975a2814ede6b2414 | [
"Apache-2.0"
] | 9 | 2017-04-04T17:28:43.000Z | 2017-09-23T23:29:54.000Z | BianccoAdministrator/src/main/java/com/biancco/admin/persistence/dao/impl/DocumentDAOImpl.java | oswa/bianccoAdmin | d0b2dc3ea93317d29f670eb975a2814ede6b2414 | [
"Apache-2.0"
] | null | null | null | 25.397959 | 105 | 0.685617 | 4,641 | /**
* SOSExcellence S.A. de C.V. all rights reserved 2016.
*/
package com.biancco.admin.persistence.dao.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Root;
import org.springframework.transaction.annotation.Transactional;
import com.biancco.admin.app.exception.DBException;
import com.biancco.admin.model.folder.FileMeta;
import com.biancco.admin.persistence.dao.DocumentDAO;
import com.biancco.admin.persistence.model.Document;
import com.biancco.admin.persistence.model.FolderType;
/**
* Document DAO implementation.
*
* @author SOSExcellence.
*/
public class DocumentDAOImpl implements DocumentDAO {
/**
* Entity Manager.
*/
@PersistenceContext
private EntityManager entityManager;
/**
* {@inheritDoc}
*/
@Override
@Transactional
public Document getById(Long idDoc) throws DBException {
try {
return this.entityManager.find(Document.class, idDoc);
} catch (Exception e) {
throw new DBException(e);
}
}
/**
* {@inheritDoc}
*/
@Override
@Transactional
public Document save(Document doc) throws DBException {
try {
this.entityManager.persist(doc);
this.entityManager.flush();
return doc;
} catch (Exception e) {
throw new DBException(e);
}
}
/**
* {@inheritDoc}
*/
@Override
public void saveWithoutATransaction(Document doc) throws DBException {
try {
this.entityManager.persist(doc);
} catch (Exception e) {
throw new DBException(e);
}
}
/**
* {@inheritDoc}
*/
@Override
@Transactional
public void delete(long idDoc) throws DBException {
try {
Document d = this.entityManager.getReference(Document.class, idDoc);
this.entityManager.remove(d);
} catch (Exception e) {
throw new DBException(e);
}
}
/**
* {@inheritDoc}
*/
@Override
@Transactional
public Document update(Document doc) throws DBException {
try {
return entityManager.merge(doc);
} catch (Exception e) {
throw new DBException(e);
}
}
/**
* {@inheritDoc}
*/
@Override
@Transactional(readOnly = true)
public List<Document> getByModule(long idModule, FolderType type) throws DBException {
try {
CriteriaBuilder builder = this.entityManager.getCriteriaBuilder();
CriteriaQuery<Document> q = builder.createQuery(Document.class);
Root<Document> root = q.from(Document.class);
q.select(root);
q.where(builder.equal(root.get("ownerModuleId"), idModule),
builder.equal(root.get("ownerFolderType"), type));
return this.entityManager.createQuery(q).getResultList();
} catch (Exception e) {
throw new DBException(e);
}
}
/**
* {@inheritDoc}
*/
@Override
@Transactional(readOnly = true)
public FileMeta getFileFromDocument(long idDocument) throws DBException {
try {
CriteriaBuilder builder = this.entityManager.getCriteriaBuilder();
CriteriaQuery<FileMeta> criteria = builder.createQuery(FileMeta.class);
Root<Document> root = criteria.from(Document.class);
// selection
Path<String> pathName = root.get("name");
Path<String> pathDoc = root.get("path");
Path<String> pathContent = root.get("contentType");
criteria.select(builder.construct(FileMeta.class, pathName, pathDoc, pathContent));
// conditions
criteria.where(builder.equal(root.get("idDocument"), idDocument));
return this.entityManager.createQuery(criteria).getSingleResult();
} catch (Exception e) {
throw new DBException(e);
}
}
/**
* {@inheritDoc}
*/
@Override
@Transactional()
public List<Document> getByName(long ownerModuleId, FolderType fType, FileMeta fm) throws DBException {
try {
CriteriaBuilder builder = this.entityManager.getCriteriaBuilder();
CriteriaQuery<Document> criteria = builder.createQuery(Document.class);
Root<Document> root = criteria.from(Document.class);
// conditions
criteria.where(builder.equal(root.get("ownerModuleId"), ownerModuleId),
builder.equal(root.get("ownerFolderType"), fType), builder.equal(root.get("name"), fm.getName()),
builder.equal(root.get("path"), fm.getPath()));
return this.entityManager.createQuery(criteria).getResultList();
} catch (Exception e) {
throw new DBException(e);
}
}
/**
* {@inheritDoc}
*/
@Override
public void commit() throws DBException {
try {
this.entityManager.flush();
} catch (Exception e) {
throw new DBException(e);
}
}
/**
* {@inheritDoc}
*/
@Override
public Document updateWithoutATransaction(Document doc) throws DBException {
try {
return entityManager.merge(doc);
} catch (Exception e) {
throw new DBException(e);
}
}
}
|
3e0aff3a55350053dc115da94bd1ded144e3cbf6 | 506 | java | Java | src/main/java/org/onvif/ver20/ptz/wsdl/package-info.java | queues-enforth-development/onvif | 40d2c87893ab6d5e7f1d46e7e05180e407ed57e0 | [
"Apache-2.0"
] | null | null | null | src/main/java/org/onvif/ver20/ptz/wsdl/package-info.java | queues-enforth-development/onvif | 40d2c87893ab6d5e7f1d46e7e05180e407ed57e0 | [
"Apache-2.0"
] | null | null | null | src/main/java/org/onvif/ver20/ptz/wsdl/package-info.java | queues-enforth-development/onvif | 40d2c87893ab6d5e7f1d46e7e05180e407ed57e0 | [
"Apache-2.0"
] | null | null | null | 46 | 155 | 0.745059 | 4,642 | //
// This file was generated with the JavaTM Architecture for XML Binding (JAXB) Reference Implementation, v2.2.5-2
// Seehref="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Changes to this file are lost when the source schema is recompiled.
// Generiert: 2014.02.17 um 11:33:29 AM CET
//
@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.onvif.org/ver20/ptz/wsdl", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.onvif.ver20.ptz.wsdl;
|
3e0affc3d2e26f338644c4819a648fec1663a626 | 2,177 | java | Java | corpus/UtilsTest.java | fieldsend/corpus | c135201da14c517f46843db22bf983150b1eda4c | [
"MIT"
] | null | null | null | corpus/UtilsTest.java | fieldsend/corpus | c135201da14c517f46843db22bf983150b1eda4c | [
"MIT"
] | null | null | null | corpus/UtilsTest.java | fieldsend/corpus | c135201da14c517f46843db22bf983150b1eda4c | [
"MIT"
] | null | null | null | 25.611765 | 103 | 0.636197 | 4,643 | package corpus;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.logging.*;
import java.nio.file.Path;
import java.util.List;
import java.util.stream.Collectors;
import jeep.lang.Diag;
import jeep.tuple.Tuple2;
public class UtilsTest
{
public static Logger LOGGER = Logger.getLogger(
UtilsTest.class.getName() );
static {
ConsoleHandler handler = new ConsoleHandler();
handler.setLevel(Level.ALL);
handler.setFormatter(new SimpleFormatter());
LOGGER.addHandler(handler);
}
///////////////////////////////
private static Expr parse( String source ) {
Parser parser = new Parser();
try {
return parser.parse( source );
} catch (Exception e) {
throw new RuntimeException( e );
}
}
///////////////////////////////
@Test
public void testParseCorpus() {
List< Tuple2< Path, String > > sources = Utils.corpus();
sources = sources.stream().filter(
t -> !t.getFirst().toString().endsWith( "value.ss" )
).collect(Collectors.toList());
List< Object > parsed = sources.stream().map(
t -> parse( t.getSecond() )
).collect(Collectors.toList());
assertEquals( sources.size(), parsed.size() );
}
@Test
public void testRegenerateParsedSource() {
List< Tuple2< Path, String > > sources = Utils.corpus();
List< String > regeneratedSources = sources.stream().map(
t -> parse( t.getSecond() ).toString() // ToSourceCode.objectListToString( parse( t.getSecond() ) )
).collect(Collectors.toList());
Tuple2< List< String> , List<String > > t = Utils.unzip( Utils.zip( sources.stream(),
regeneratedSources.stream(),
( a, b ) -> Tuple2.cons( a.getSecond(), b
) ).collect(Collectors.toList()) );
assertEquals( t.getFirst().size(), t.getSecond().size() );
for( int i=0; i<t.getFirst().size(); ++i ) {
String expected = Utils.stripWhitespace( Utils.stripComments( t.getFirst().get( i ) ) );
String actual = Utils.stripWhitespace( t.getSecond().get( i ) );
LOGGER.info( "expected:" + expected + " actual: " + actual );
assertEquals( expected, actual );
}
}
}
|
3e0b0042b418c4dc1d509451a251406b459a71e4 | 3,611 | java | Java | modules/scribble/src/main/java/wisematches/playground/scribble/IncorrectTilesException.java | amirico/wisematches | 9837c64bf8d447361439e89a82968f5dcb51b223 | [
"Apache-2.0"
] | null | null | null | modules/scribble/src/main/java/wisematches/playground/scribble/IncorrectTilesException.java | amirico/wisematches | 9837c64bf8d447361439e89a82968f5dcb51b223 | [
"Apache-2.0"
] | null | null | null | modules/scribble/src/main/java/wisematches/playground/scribble/IncorrectTilesException.java | amirico/wisematches | 9837c64bf8d447361439e89a82968f5dcb51b223 | [
"Apache-2.0"
] | null | null | null | 31.181034 | 105 | 0.711916 | 4,644 | package wisematches.playground.scribble;
import wisematches.playground.IncorrectMoveException;
import static wisematches.playground.scribble.IncorrectTilesException.Type.*;
/**
* Indicates that a tile of word are incorrect of can not be placed on board by some
* reasons.
*
* @author <a href="mailto:upchh@example.com">Sergey Klimenko</a>
*/
public class IncorrectTilesException extends IncorrectMoveException {
private final Type type;
/**
* Indicates that word does not contains no tiles from board or from hand.
* <p/>
* This constructor changes type to {@code NO_BOARD_TILES} or {@code NO_HAND_TILES} expect
* of specified argument.
*
* @param notTilesFromBoard {@code true} to indicate that no one tile from board is used;
* {@code false} to indicate that no one tile from hand is used.
* @see Type#NO_BOARD_TILES
* @see Type#NO_HAND_TILES
*/
public IncorrectTilesException(boolean notTilesFromBoard) {
super(notTilesFromBoard ? "No one tile from board is used" : "No one tile from player's hand is used");
type = notTilesFromBoard ? NO_BOARD_TILES : NO_HAND_TILES;
}
/**
* Indicates that unknown tile are placed. It means that board and player's hand does not contains
* specified tile.
* <p/>
* This constructor changes type to {@code UNKNOWN_TILE}
*
* @param unknownTile unknown tile.
* @see Type#UNKNOWN_TILE
*/
public IncorrectTilesException(Tile unknownTile) {
super("Word contains unknown tile " + unknownTile);
type = UNKNOWN_TILE;
}
/**
* Indicates that specified tile can not be placed at specified position because
* already placed in another position.
* <p/>
* This constructor changes type to {@code TILE_ALREADY_PLACED}
*
* @param placedTile the tile that is placed
* @param specifiedPosition the position where tile should be placed
* @param placedPosition the position where tile already plcaed.
* @see Type#TILE_ALREADY_PLACED
*/
public IncorrectTilesException(Tile placedTile, Position specifiedPosition, Position placedPosition) {
super("Tile " + placedTile + " can not be placed at " + specifiedPosition +
" because already placed in position " + placedPosition);
type = TILE_ALREADY_PLACED;
}
/**
* Indicates that board cell already busy by another tile.
* <p/>
* This constructor changes type to {@code CELL_ALREADY_BUSY}
*
* @param placedTile the tile that should be placed.
* @param boardTile the tile that already placed in required position.
* @param placedPosition the position where tile should be placed.
* @see Type#CELL_ALREADY_BUSY
*/
public IncorrectTilesException(Tile placedTile, Tile boardTile, Position placedPosition) {
super("Tile " + placedTile + " can not be placed at " + placedPosition + " because " +
"this position already contains another tile " + boardTile);
type = CELL_ALREADY_BUSY;
}
/**
* Returns type of problem.
*
* @return the type of problem.
*/
public Type getType() {
return type;
}
/**
* Type of problems with tiles.
*
* @author <a href="mailto:upchh@example.com">Sergey Klimenko</a>
*/
public static enum Type {
/**
* Indicates that no one tiles from board is used.
*/
NO_BOARD_TILES,
/**
* Indicates that no one tiles from hand is used.
*/
NO_HAND_TILES,
/**
* Indicates that specified tile is not present on board and in hand.
*/
UNKNOWN_TILE,
/**
* Indicates that tile already placed in another position.
*/
TILE_ALREADY_PLACED,
/**
* Indicates that board cell already busy by another tile.
*/
CELL_ALREADY_BUSY
}
}
|
3e0b010e1d2f4db525b71129d1a361354c8adf00 | 2,584 | java | Java | src/main/java/com/xqk/learn/springboot/data/kafka/controller/KafkaConsoleController.java | super-aviator/SpringBootLearn | cd1173a428048b989f1e5ef78db796d39a68539d | [
"MIT"
] | null | null | null | src/main/java/com/xqk/learn/springboot/data/kafka/controller/KafkaConsoleController.java | super-aviator/SpringBootLearn | cd1173a428048b989f1e5ef78db796d39a68539d | [
"MIT"
] | null | null | null | src/main/java/com/xqk/learn/springboot/data/kafka/controller/KafkaConsoleController.java | super-aviator/SpringBootLearn | cd1173a428048b989f1e5ef78db796d39a68539d | [
"MIT"
] | null | null | null | 34 | 113 | 0.698916 | 4,645 | package com.xqk.learn.springboot.data.kafka.controller;
import com.xqk.learn.springboot.data.jpa.dto.UserDTO;
import com.xqk.learn.springboot.data.kafka.service.KafkaProducer;
import com.xqk.learn.springboot.data.kafka.service.SendKafkaVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.web.bind.annotation.*;
/**
* The type Kafka console controller.
*
* @author 熊乾坤 <p> 注意,@Profile注解也可以用在Controller层,如果该profile未激活时,Controller路径不会映射出来。
*/
@RestController
@RequestMapping("/kafka")
@Slf4j
@Profile("kafka")
public class KafkaConsoleController {
private final KafkaProducer kafkaProducerBean;
private final KafkaTemplate<String, String> kafkaTemplate;
/**
* Instantiates a new Kafka console controller.
*
* @param kafkaProducerBean the kafka producer bean
* @param kafkaTemplate the kafka template
*/
@Autowired(required = false)
public KafkaConsoleController(KafkaProducer kafkaProducerBean, KafkaTemplate<String, String> kafkaTemplate) {
this.kafkaProducerBean = kafkaProducerBean;
this.kafkaTemplate = kafkaTemplate;
}
/**
* 向指定topic发送消息,当使用@RequestBody报错时,可以使用@ModelAttribute替代
* <p>
* As said dknight @RequestBody means use of JSON or XML data with maps your DTO bean.
* In case of MultipartFile you can't use JSON data so you can't use @RequestBody.
* Try with @ModelAttribute annotation.
*
* @param topic 指定的topic
* @param key the key
* @param user 发送的user对象
*/
@PostMapping("/send-user")
public void send(@RequestParam("topic") String topic, String key, @ModelAttribute UserDTO user) {
log.info("Get a Post request---topic: " + topic + "---msg: " + user);
kafkaProducerBean.produce(topic, key, user);
}
/**
* Send str.
*/
@PostMapping("/send-str")
public void sendStr(@RequestBody SendKafkaVO sendKafkaVO) {
log.info("Get a Post request---topic: " + sendKafkaVO.getTopic() + "---msg: " + sendKafkaVO.getData());
kafkaProducerBean.produceStr(sendKafkaVO.getTopic(), sendKafkaVO.getKey(), sendKafkaVO.getData());
}
/**
* 查询topic的分区信息
*
* @param topic 分区
* @return 分区列表 string
*/
@GetMapping("/partition/{topic}")
public String partitionInfo(@PathVariable("topic") String topic) {
return kafkaTemplate.partitionsFor(topic).toString();
}
}
|
3e0b01fedba94a8cd67bf54d29dad2dc918b8971 | 5,209 | java | Java | datatables-jsp/src/test/java/com/github/dandelion/datatables/jsp/i18n/JstlMessageResolverTest.java | JLLeitschuh/dandelion-datatables | a33711b76c7b1f16cf4da95419d1d6181be86d60 | [
"BSD-3-Clause"
] | 59 | 2015-01-09T04:39:41.000Z | 2020-05-17T09:07:45.000Z | datatables-jsp/src/test/java/com/github/dandelion/datatables/jsp/i18n/JstlMessageResolverTest.java | JLLeitschuh/dandelion-datatables | a33711b76c7b1f16cf4da95419d1d6181be86d60 | [
"BSD-3-Clause"
] | 66 | 2015-01-09T15:42:34.000Z | 2019-06-20T14:32:25.000Z | datatables-jsp/src/test/java/com/github/dandelion/datatables/jsp/i18n/JstlMessageResolverTest.java | JLLeitschuh/dandelion-datatables | a33711b76c7b1f16cf4da95419d1d6181be86d60 | [
"BSD-3-Clause"
] | 59 | 2015-01-15T03:26:01.000Z | 2022-03-07T04:35:12.000Z | 47.788991 | 140 | 0.803801 | 4,646 | package com.github.dandelion.datatables.jsp.i18n;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.Locale;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;
import javax.servlet.jsp.jstl.core.Config;
import javax.servlet.jsp.jstl.fmt.LocalizationContext;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockPageContext;
import com.github.dandelion.core.i18n.MessageResolver;
import static org.assertj.core.api.Assertions.assertThat;
public class JstlMessageResolverTest {
private MockPageContext pageContext;
private MockHttpServletRequest request;
@Test
public void should_return_error_message_when_the_bundle_doesnt_exist() throws UnsupportedEncodingException, IOException{
// Setup
pageContext = new MockPageContext();
pageContext.setAttribute(Config.FMT_LOCALIZATION_CONTEXT + ".page", null);
JstlMessageResolver messageResolver = new JstlMessageResolver(request);
// Test
String message = messageResolver.getResource("undefinedKey", "default", pageContext);
assertThat(message).isEqualTo(MessageResolver.UNDEFINED_KEY + "undefinedKey" + MessageResolver.UNDEFINED_KEY);
}
@Test
public void should_return_error_message_when_the_key_is_undefined() throws UnsupportedEncodingException, IOException{
// Setup
InputStream stream = getClass().getClassLoader().getResourceAsStream("com/github/dandelion/datatables/jsp/i18n/datatables_en.properties");
ResourceBundle bundle = new PropertyResourceBundle(new InputStreamReader(stream, "UTF-8"));
pageContext = new MockPageContext();
pageContext.setAttribute(Config.FMT_LOCALIZATION_CONTEXT + ".page", new LocalizationContext(bundle, new Locale("en", "US")));
JstlMessageResolver messageResolver = new JstlMessageResolver(request);
// Test
String message = messageResolver.getResource("undefinedKey", "default", pageContext);
assertThat(message).isEqualTo(MessageResolver.UNDEFINED_KEY + "undefinedKey" + MessageResolver.UNDEFINED_KEY);
}
@Test
public void should_return_blank_when_the_key_is_defined_but_message_is_blank() throws UnsupportedEncodingException, IOException{
// Setup
InputStream stream = getClass().getClassLoader().getResourceAsStream("com/github/dandelion/datatables/jsp/i18n/datatables_en.properties");
ResourceBundle bundle = new PropertyResourceBundle(new InputStreamReader(stream, "UTF-8"));
pageContext = new MockPageContext();
pageContext.setAttribute(Config.FMT_LOCALIZATION_CONTEXT + ".page", new LocalizationContext(bundle, new Locale("en", "US")));
JstlMessageResolver messageResolver = new JstlMessageResolver(request);
// Test
String message = messageResolver.getResource("global.blank.value", "default", pageContext);
assertThat(message).isEqualTo("");
}
@Test
public void should_return_the_capitalized_default_message_when_the_key_is_null() throws UnsupportedEncodingException, IOException{
// Setup
InputStream stream = getClass().getClassLoader().getResourceAsStream("com/github/dandelion/datatables/jsp/i18n/datatables_en.properties");
ResourceBundle bundle = new PropertyResourceBundle(new InputStreamReader(stream, "UTF-8"));
pageContext = new MockPageContext();
pageContext.setAttribute(Config.FMT_LOCALIZATION_CONTEXT + ".page", new LocalizationContext(bundle, new Locale("en", "US")));
JstlMessageResolver messageResolver = new JstlMessageResolver(request);
// Test
String message = messageResolver.getResource(null, "default", pageContext);
assertThat(message).isEqualTo("Default");
}
@Test
public void should_return_the_message_when_the_key_is_present_in_the_bundle() throws UnsupportedEncodingException, IOException{
// Setup
InputStream stream = getClass().getClassLoader().getResourceAsStream("com/github/dandelion/datatables/jsp/i18n/datatables_en.properties");
ResourceBundle bundle = new PropertyResourceBundle(new InputStreamReader(stream, "UTF-8"));
pageContext = new MockPageContext();
pageContext.setAttribute(Config.FMT_LOCALIZATION_CONTEXT + ".page", new LocalizationContext(bundle, new Locale("en", "US")));
JstlMessageResolver messageResolver = new JstlMessageResolver(request);
// Test
String message = messageResolver.getResource("global.msg.info", "default", pageContext);
assertThat(message).isEqualTo("My infos");
}
@Test
public void should_return_the_capitalized_default_message_if_the_key_is_null() throws UnsupportedEncodingException, IOException{
// Setup
InputStream stream = getClass().getClassLoader().getResourceAsStream("com/github/dandelion/datatables/jsp/i18n/datatables_en.properties");
ResourceBundle bundle = new PropertyResourceBundle(new InputStreamReader(stream, "UTF-8"));
pageContext = new MockPageContext();
pageContext.setAttribute(Config.FMT_LOCALIZATION_CONTEXT + ".page", new LocalizationContext(bundle, new Locale("en", "US")));
JstlMessageResolver messageResolver = new JstlMessageResolver(request);
// Test
String message = messageResolver.getResource(null, "default", pageContext);
assertThat(message).isEqualTo("Default");
}
}
|
3e0b02859c6612182c7044ef4b16c87411bc8416 | 5,023 | java | Java | Offline_Tools/src/miltos/diploma/BenchmarkAnalyzer.java | geeksnet22/qatch | b14d8b1dd4694720ad5192153b1c893967b18e62 | [
"MIT"
] | null | null | null | Offline_Tools/src/miltos/diploma/BenchmarkAnalyzer.java | geeksnet22/qatch | b14d8b1dd4694720ad5192153b1c893967b18e62 | [
"MIT"
] | null | null | null | Offline_Tools/src/miltos/diploma/BenchmarkAnalyzer.java | geeksnet22/qatch | b14d8b1dd4694720ad5192153b1c893967b18e62 | [
"MIT"
] | 1 | 2021-04-07T16:59:24.000Z | 2021-04-07T16:59:24.000Z | 29.721893 | 128 | 0.729445 | 4,647 | package miltos.diploma;
import javafx.scene.control.Label;
import javafx.scene.control.ProgressBar;
import javafx.scene.control.ProgressIndicator;
import javafx.scene.text.Text;
import java.io.File;
import java.util.Arrays;
import java.util.stream.Collectors;
/**
* This class is responsible for analyzing all the projects that are stored in the
* desired folder (e.g. Benchmark Repository) against:
*
* 1. all the supported tools of the system (e.g. PMD, CKJM etc.) and
* 2. all the Properties of the Quality Model (e.g. Comprehensibility etc.)
*
* The results are stored in a fixed results directory of known structure.
* This directory is automatically created by the BenchmarkAnalyzer based on
* the structure of the benchmark directory.
*
* Typically, it creates a different folder for each project found in the benchmark
* repository and places all the result files concerning this project in this folder.
*
* @author Miltos
*
*/
public class BenchmarkAnalyzer {
// Useful static fields
public static String BASE_DIR = new File(System.getProperty("user.dir")).getAbsolutePath();
public static String BENCH_RESULT_PATH = new File(BASE_DIR + "/Results/Analysis/BenchmarkResults").getAbsolutePath();
public static String WORKSPACE_RESULT_PATH = new File(BASE_DIR + "/Results/Analysis/WorkspaceResults").getAbsolutePath();
public static String SINGLE_PROJ_RESULT_PATH = new File(BASE_DIR + "/Results/Analysis/SingleProjectResults").getAbsolutePath();
private String benchRepoPath;
private PropertySet properties;
private static String resultsPath = BENCH_RESULT_PATH;
// Easy fix for gui
// TODO : Find another way
private ProgressBar prog;
private ProgressIndicator progInd;
/**
* This method sets the ProgressBar and ProgressIndicator objects that belong
* to the GUI's main console so that they can be updated by this class.
*/
public void setGUIObjects(ProgressBar prog, ProgressIndicator progInd){
this.prog = prog;
this.progInd = progInd;
}
/**
* The basic constructors of the class.
*/
public BenchmarkAnalyzer(){
this.benchRepoPath = null;
this.properties = null;
}
/**
* The second constructor of the class.
*/
public BenchmarkAnalyzer(String benchRepoPath){
this.benchRepoPath = benchRepoPath;
}
/**
* The third constructor of the class.
*/
public BenchmarkAnalyzer(String benchRepoPath, PropertySet properties){
this.benchRepoPath = benchRepoPath;
this.properties = properties;
}
/**
* Setters and Getters.
*/
public String getBenchRepoPath() {
return benchRepoPath;
}
public void setBenchRepoPath(String benchRepoPath) {
this.benchRepoPath = benchRepoPath;
}
public PropertySet getProperties() {
return properties;
}
public void setProperties(PropertySet properties) {
this.properties = properties;
}
public String getResultsPath() {
return resultsPath;
}
public void setResultsPath(String resultsPath) {
this.resultsPath = resultsPath;
}
/**
* This method is responsible for analyzing the desired benchmark
* repository according to the user defined properties.
*
* Its algorithm is pretty straightforward if you read the comments.
*/
public void analyzeBenchmarkRepo(){
//Instantiate the available single project analyzers of the system
PMDAnalyzer pmd = new PMDAnalyzer();
CKJMAnalyzer ckjm = new CKJMAnalyzer();
//List the projects of the repository
File baseDir = new File(benchRepoPath);
File[] projects = baseDir.listFiles();
/* Basic Solution */
// Analyze all the projects of the benchmark repository
double progress = 0;
//For each project in the benchmark repo do...
for(File project : projects){
//Print the progress to the console
//TODO: Remove this print
ProgressDemo.updateProgress((progress/projects.length));
// boolean projectAlreadyAnalyzed = !Arrays.stream(new File("/Users/guribhangu/development/research" +
// "/qatch/Results/Analysis/BenchmarkResults").listFiles()).map(File::getName)
// .filter(dirName -> dirName.equals(project.getName())).collect(Collectors.toList()).isEmpty();
//Call the single project analyzers sequentially
if(project.isDirectory()){
pmd.analyze(project.getAbsolutePath(), resultsPath + "/" +project.getName(), properties);
ckjm.analyze(project.getAbsolutePath(), resultsPath + "/" +project.getName(), properties);
}
progress++;
}
}
/**
* This method prints the structure of the benchmark directory to
* the console.
*
* It should be used for debugging purposes only.
*/
public void printBenchmarkRepoContents(){
//List all the directories included inside the repository
File baseDir = new File(benchRepoPath);
File[] projects = baseDir.listFiles();
for(int i = 0; i < projects.length; i++){
if(projects[i].isDirectory()){
System.out.println("Directory : " + projects[i].getName());
}else{
System.out.println("File : " + projects[i].getName());
}
}
System.out.println("");
}
}
|
3e0b02eabd9b44402ce40b9017b30bed885d8638 | 891 | java | Java | src/main/java/com/proptechos/service/filters/AssetIdsFilter.java | idun-corp/proptechos-rest-api-java-client | 86590c89ff8f4f8df92464056b00c68a8a263faf | [
"MIT"
] | null | null | null | src/main/java/com/proptechos/service/filters/AssetIdsFilter.java | idun-corp/proptechos-rest-api-java-client | 86590c89ff8f4f8df92464056b00c68a8a263faf | [
"MIT"
] | null | null | null | src/main/java/com/proptechos/service/filters/AssetIdsFilter.java | idun-corp/proptechos-rest-api-java-client | 86590c89ff8f4f8df92464056b00c68a8a263faf | [
"MIT"
] | null | null | null | 28.741935 | 96 | 0.751964 | 4,648 | package com.proptechos.service.filters;
import com.proptechos.http.query.IQueryFilter;
import com.proptechos.http.query.QueryParam;
import java.util.List;
/**
* AssetIdsFilter class for filtering by asset ids
*
* @apiNote Example: '2becfc1a-7f21-45b9-8255-771d59d145ba,d1aae508-64f1-4942-a0c6-6e3e8d452a36'
* - Applicable to AssetService, DeviceService, SensorService, ActuatorService
* @see com.proptechos.service.AssetService
* @see com.proptechos.service.DeviceService
* @see com.proptechos.service.SensorService
* @see com.proptechos.service.ActuatorService
*/
public class AssetIdsFilter implements IQueryFilter {
private final String assetIds;
public AssetIdsFilter(List<String> assetIds) {
this.assetIds = String.join(",", assetIds);
}
@Override
public QueryParam queryParam() {
return new QueryParam("asset_ids", assetIds);
}
}
|
3e0b031ba335008dc0fada05d2553d38f8e23f66 | 5,700 | java | Java | app/src/main/java/org/sagebionetworks/research/mpower/TaskLauncher.java | dephillipsmichael/mPower-2-Android | f4f31718e735269b0b253b849b407ee1d9d4c124 | [
"BSD-3-Clause"
] | null | null | null | app/src/main/java/org/sagebionetworks/research/mpower/TaskLauncher.java | dephillipsmichael/mPower-2-Android | f4f31718e735269b0b253b849b407ee1d9d4c124 | [
"BSD-3-Clause"
] | null | null | null | app/src/main/java/org/sagebionetworks/research/mpower/TaskLauncher.java | dephillipsmichael/mPower-2-Android | f4f31718e735269b0b253b849b407ee1d9d4c124 | [
"BSD-3-Clause"
] | null | null | null | 40.140845 | 120 | 0.717193 | 4,649 | package org.sagebionetworks.research.mpower;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
import static org.sagebionetworks.research.mpower.Tasks.MEDICATION;
import static org.sagebionetworks.research.mpower.Tasks.SYMPTOMS;
import static org.sagebionetworks.research.mpower.Tasks.TAPPING;
import static org.sagebionetworks.research.mpower.Tasks.TREMOR;
import static org.sagebionetworks.research.mpower.Tasks.TRIGGERS;
import static org.sagebionetworks.research.mpower.Tasks.WALK_AND_BALANCE;
import android.app.Activity;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StringDef;
import android.support.annotation.VisibleForTesting;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableSet;
import org.sagebionetworks.research.mpower.TaskLauncher.TaskLaunchState.Type;
import org.sagebionetworks.research.mpower.researchstack.ResearchStackTaskLauncher;
import org.sagebionetworks.research.mpower.sageresearch.SageResearchTaskLauncher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.UUID;
import javax.inject.Inject;
/**
* This launches tasks. We use this task to launch both RS and SR tasks. We may need to add more methods or change
* this later.
*/
public class TaskLauncher {
public static final int TASK_REQUEST_CODE = 1492;
public static class TaskLaunchState {
@Retention(RetentionPolicy.SOURCE)
@StringDef({Type.RUNNING, Type.LAUNCH_ERROR, Type.CANCELED, Type.COMPLETED})
public @interface Type {
// TODO: determine other states @liujoshua 2018/08/06
String RUNNING = "running";
String LAUNCH_ERROR = "launch_error";
String COMPLETED = "completed";
String CANCELED = "canceled";
}
private final String state;
public TaskLaunchState(final String state) {
this.state = state;
}
@Type
public String getState() {
return state;
}
}
private static final Logger LOGGER = LoggerFactory.getLogger(TaskLauncher.class);
private static final ImmutableSet<String> RS_TASKS = ImmutableSet.of();
private static final ImmutableSet<String> SR_TASKS = ImmutableSet
.of(TAPPING, WALK_AND_BALANCE, TRIGGERS, TREMOR, SYMPTOMS, MEDICATION);
private final ResearchStackTaskLauncher researchStackTaskLauncher;
private final SageResearchTaskLauncher sageResearchTaskLauncher;
@Inject
public TaskLauncher(@NonNull SageResearchTaskLauncher sageResearchTaskLauncher,
@NonNull ResearchStackTaskLauncher researchStackTaskLauncher) {
this.sageResearchTaskLauncher = checkNotNull(sageResearchTaskLauncher);
this.researchStackTaskLauncher = checkNotNull(researchStackTaskLauncher);
}
@VisibleForTesting
MutableLiveData<TaskLaunchState> launchResearchStackTask(@NonNull Activity activity, @NonNull String taskIdentifier,
@Nullable UUID taskRunUUID) {
MutableLiveData<TaskLaunchState> tls = new MutableLiveData<>();
try {
researchStackTaskLauncher.launchTask(activity, taskIdentifier, taskRunUUID, TASK_REQUEST_CODE);
} catch (Throwable t) {
LOGGER.warn("Exception launching ResearchStack task: ()", taskIdentifier, t);
tls.postValue(new TaskLaunchState(Type.LAUNCH_ERROR));
}
return tls;
}
/**
* @param context used to launch the task, if this function ends up launching a ResearchTask task,
* context must be an instance of Activity
* @param taskIdentifier identifier of task to launch
* @param taskRunUUID optional uuid of previous task run to continue from
* @return state of the task launch, some tasks, like surveys, may require an additional network call
*/
@NonNull
public LiveData<TaskLaunchState> launchTask(@NonNull Context context, @NonNull String taskIdentifier,
@Nullable UUID taskRunUUID) {
checkNotNull(context);
checkArgument(!Strings.isNullOrEmpty(taskIdentifier), "taskIdentifier cannot be null or empty");
// TODO: figure out what type of return values are appropriate @liujoshua 2018/08/06
MutableLiveData<TaskLaunchState> tls;
if (SR_TASKS.contains(taskIdentifier)) {
LOGGER.debug("Launching SageResearch task: {}", taskIdentifier);
sageResearchTaskLauncher.launchTask(context, taskIdentifier, taskRunUUID);
tls = new MutableLiveData<>();
} else if (RS_TASKS.contains(taskIdentifier)) {
LOGGER.debug("Launching ResearchStack task: {}", taskIdentifier);
if (!(context instanceof Activity)) {
throw new IllegalArgumentException(
"To launch research tasks, context param must be an Activity,"
+ " so that the task result can be returned in onActivityResult");
}
tls = launchResearchStackTask((Activity)context, taskIdentifier, taskRunUUID);
} else {
LOGGER.warn("Unknown type of task: {}", taskIdentifier);
tls = new MutableLiveData<>();
tls.postValue(new TaskLaunchState(Type.LAUNCH_ERROR));
}
return tls;
}
}
|
3e0b044498c51f59428beb60966cdb6ab232e954 | 11,255 | java | Java | projects/CalculatorExperiments/app/src/main/java/android/support/constraint/calc/g3d/ViewMatrix.java | AchrafAmil/constraintlayout | d4cd09b8b4bcccb965ba617b06a1b2293c638b60 | [
"Apache-2.0"
] | 927 | 2020-07-24T07:24:54.000Z | 2022-03-31T10:01:37.000Z | projects/CalculatorExperiments/app/src/main/java/android/support/constraint/calc/g3d/ViewMatrix.java | AchrafAmil/constraintlayout | d4cd09b8b4bcccb965ba617b06a1b2293c638b60 | [
"Apache-2.0"
] | 183 | 2020-09-07T17:45:12.000Z | 2022-03-31T14:56:38.000Z | projects/CalculatorExperiments/app/src/main/java/android/support/constraint/calc/g3d/ViewMatrix.java | AchrafAmil/constraintlayout | d4cd09b8b4bcccb965ba617b06a1b2293c638b60 | [
"Apache-2.0"
] | 135 | 2020-08-28T02:33:08.000Z | 2022-03-26T01:19:59.000Z | 30.751366 | 133 | 0.548556 | 4,650 | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.support.constraint.calc.g3d;
import java.text.DecimalFormat;
import java.util.Arrays;
/**
* This calculates the matrix that transforms triangles from world space to screen space.
*/
public class ViewMatrix extends Matrix {
double[] mLookPoint;
double[] mEyePoint;
double[] mUpVector;
double mScreenWidth;
int[] mScreenDim;
double[] mTmp1 = new double[3];
public final static char UP_AT = 0x001;
public final static char DOWN_AT = 0x002;
public final static char RIGHT_AT = 0x010;
public final static char LEFT_AT = 0x020;
public final static char FORWARD_AT = 0x100;
public final static char BEHIND_AT = 0x200;
private static String toStr(double d) {
String s = " " + df.format(d);
return s.substring(s.length() - 8);
}
private static String toStr(double[] d) {
String s = "[";
for (int i = 0; i < d.length; i++) {
s += toStr(d[i]);
}
return s + "]";
}
private static DecimalFormat df = new DecimalFormat("##0.000");
@Override
public void print() {
System.out.println("mLookPoint :" + toStr(mLookPoint));
System.out.println("mEyePoint :" + toStr(mEyePoint));
System.out.println("mUpVector :" + toStr(mUpVector));
System.out.println("mScreenWidth:" + toStr(mScreenWidth));
System.out.println("mScreenDim :[" + mScreenDim[0] + "," + mScreenDim[1] + "]");
}
public ViewMatrix() {
}
public void setScreenDim(int x, int y) {
mScreenDim = new int[]{x, y};
}
public double[] getLookPoint() {
return mLookPoint;
}
public void setLookPoint(double[] mLookPoint) {
this.mLookPoint = mLookPoint;
}
public double[] getEyePoint() {
return mEyePoint;
}
public void setEyePoint(double[] mEyePoint) {
this.mEyePoint = mEyePoint;
}
public double[] getUpVector() {
return mUpVector;
}
public void setUpVector(double[] mUpVector) {
this.mUpVector = mUpVector;
}
public double getScreenWidth() {
return mScreenWidth;
}
public void setScreenWidth(double screenWidth) {
this.mScreenWidth = screenWidth;
}
public void makeUnit() {
}
public void fixUpPoint() {
double[] zv = {
mEyePoint[0] - mLookPoint[0],
mEyePoint[1] - mLookPoint[1],
mEyePoint[2] - mLookPoint[2]
};
VectorUtil.normalize(zv);
double[] rv = new double[3];
VectorUtil.cross(zv, mUpVector, rv);
VectorUtil.cross(zv, rv, mUpVector);
VectorUtil.normalize(mUpVector);
VectorUtil.mult(mUpVector, -1, mUpVector);
}
public void calcMatrix() {
if (mScreenDim == null) {
return;
}
double scale = mScreenWidth / mScreenDim[0];
double[] zv = {
mLookPoint[0] - mEyePoint[0],
mLookPoint[1] - mEyePoint[1],
mLookPoint[2] - mEyePoint[2]
};
VectorUtil.normalize(zv);
double[] m = new double[16];
m[2] = zv[0] * scale;
m[6] = zv[1] * scale;
m[10] = zv[2] * scale;
m[14] = 0;
calcRight(zv, mUpVector, zv);
double[] right = zv;
m[0] = right[0] * scale;
m[4] = right[1] * scale;
m[8] = right[2] * scale;
m[12] = 0;
m[1] = -mUpVector[0] * scale;
m[5] = -mUpVector[1] * scale;
m[9] = -mUpVector[2] * scale;
m[13] = 0;
double sw = mScreenDim[0] / 2 - 0.5;
double sh = mScreenDim[1] / 2 - 0.5;
double sz = -0.5;
m[3] = mEyePoint[0] - (m[0] * sw + m[1] * sh + m[2] * sz);
m[7] = mEyePoint[1] - (m[4] * sw + m[5] * sh + m[6] * sz);
m[11] = mEyePoint[2] - (m[8] * sw + m[9] * sh + m[10] * sz);
m[15] = 1;
this.m = m;
}
static void calcRight(double[] a, double[] b, double[] out) {
VectorUtil.cross(a, b, out);
}
public static void main(String[] args) {
double[] up = {0, 0, 1};
double[] look = {0, 0, 0};
double[] eye = {-10, 0, 0};
ViewMatrix v = new ViewMatrix();
v.setEyePoint(eye);
v.setLookPoint(look);
v.setUpVector(up);
v.setScreenWidth(10);
v.setScreenDim(512, 512);
v.calcMatrix();
}
private void calcLook(SurfaceGen tri, float[] voxelDim, int w, int h) {
float minx = Float.MAX_VALUE, miny = Float.MAX_VALUE, minz = Float.MAX_VALUE;
float maxx = -Float.MAX_VALUE, maxy = -Float.MAX_VALUE, maxz = -Float.MAX_VALUE;
for (int i = 0; i < tri.vert.length; i += 3) {
maxx = Math.max(tri.vert[i], maxx);
minx = Math.min(tri.vert[i], minx);
maxy = Math.max(tri.vert[i + 1], maxy);
miny = Math.min(tri.vert[i + 1], miny);
maxz = Math.max(tri.vert[i + 2], maxz);
minz = Math.min(tri.vert[i + 2], minz);
}
mLookPoint = new double[]{voxelDim[0] * (maxx + minx) / 2, voxelDim[1] * (maxy + miny) / 2, voxelDim[2] * (maxz + minz) / 2};
mScreenWidth = Math.max(voxelDim[0] * (maxx - minx), Math.max(voxelDim[1] * (maxy - miny), voxelDim[2] * (maxz - minz))) * 2;
}
private void calcLook(SurfaceGen triW, int w, int h) {
float minx = Float.MAX_VALUE, miny = Float.MAX_VALUE, minz = Float.MAX_VALUE;
float maxx = -Float.MAX_VALUE, maxy = -Float.MAX_VALUE, maxz = -Float.MAX_VALUE;
for (int i = 0; i < triW.vert.length; i += 3) {
maxx = Math.max(triW.vert[i], maxx);
minx = Math.min(triW.vert[i], minx);
maxy = Math.max(triW.vert[i + 1], maxy);
miny = Math.min(triW.vert[i + 1], miny);
maxz = Math.max(triW.vert[i + 2], maxz);
minz = Math.min(triW.vert[i + 2], minz);
}
mLookPoint = new double[]{(maxx + minx) / 2, (maxy + miny) / 2, (maxz + minz) / 2};
mScreenWidth = Math.max((maxx - minx), Math.max((maxy - miny), (maxz - minz)));
}
public void look(char dir, SurfaceGen tri, float[] voxelDim, int w, int h) {
calcLook(tri, w, h);
int dx = ((dir >> 4) & 0xF);
int dy = ((dir >> 8) & 0xF);
int dz = ((dir >> 0) & 0xF);
if (dx > 1) {
dx = -1;
}
if (dy > 1) {
dy = -1;
}
if (dz > 1) {
dz = -1;
}
mEyePoint = new double[]{mLookPoint[0] + 2 * mScreenWidth * dx,
mLookPoint[1] + 2 * mScreenWidth * dy,
mLookPoint[2] + 2 * mScreenWidth * dz};
double[] zv = new double[]{-dx, -dy, -dz};
double[] rv = new double[]{(dx == 0) ? 1 : 0, (dx == 0) ? 0 : 1, 0};
double[] up = new double[3];
VectorUtil.norm(zv);
VectorUtil.norm(rv);
VectorUtil.cross(zv, rv, up);
VectorUtil.cross(zv, up, rv);
VectorUtil.cross(zv, rv, up);
mUpVector = up;
mScreenDim = new int[]{w, h};
calcMatrix();
}
public void lookAt(SurfaceGen tri, float[] voxelDim, int w, int h) {
calcLook(tri, voxelDim, w, h);
mEyePoint = new double[]{mLookPoint[0] + mScreenWidth, mLookPoint[1] + mScreenWidth, mLookPoint[2] + mScreenWidth};
double[] zv = new double[]{-1, -1, -1};
double[] rv = new double[]{1, 1, 0};
double[] up = new double[3];
VectorUtil.norm(zv);
VectorUtil.norm(rv);
VectorUtil.cross(zv, rv, up);
VectorUtil.cross(zv, up, rv);
VectorUtil.cross(zv, rv, up);
mUpVector = up;
mScreenDim = new int[]{w, h};
calcMatrix();
}
float mStartx, mStarty;
float mPanStartX = Float.NaN, mPanStartY = Float.NaN;
Matrix mStartMatrix;
double[] mStartV = new double[3];
double[] mMoveToV = new double[3];
double[] mStartEyePoint;
double[] mStartUpVector;
Quaternion mQ = new Quaternion(0, 0, 0, 0);
public void trackBallUP(float x, float y) {
}
public void trackBallDown(float x, float y) {
mStartx = x;
mStarty = y;
ballToVec(x, y, mStartV);
mStartEyePoint = Arrays.copyOf(mEyePoint, m.length);
mStartUpVector = Arrays.copyOf(mUpVector, m.length);
mStartMatrix = new Matrix(this);
mStartMatrix.makeRotation();
}
public void trackBallMove(float x, float y) {
if (mStartx == x && mStarty == y) {
return;
}
ballToVec(x, y, mMoveToV);
double angle = Quaternion.calcAngle(mStartV, mMoveToV);
double[] axis = Quaternion.calcAxis(mStartV, mMoveToV);
axis = mStartMatrix.vecmult(axis);
mQ.set(angle, axis);
VectorUtil.sub(mLookPoint, mStartEyePoint, mEyePoint);
mEyePoint = mQ.rotateVec(mEyePoint);
mUpVector = mQ.rotateVec(mStartUpVector);
VectorUtil.sub(mLookPoint, mEyePoint, mEyePoint);
calcMatrix();
}
public void panDown(float x, float y) {
mPanStartX = x;
mPanStartY = y;
}
public void panMove(float x, float y) {
double scale = mScreenWidth / mScreenDim[0];
if (Float.isNaN(mPanStartX)) {
mPanStartX = x;
mPanStartY = y;
}
double dx = scale * (x - mPanStartX);
double dy = scale * (y - mPanStartY);
VectorUtil.sub(mEyePoint, mLookPoint, mTmp1);
VectorUtil.normalize(mTmp1);
VectorUtil.cross(mTmp1, mUpVector, mTmp1);
VectorUtil.madd(mTmp1, dx, mEyePoint, mEyePoint);
VectorUtil.madd(mTmp1, dx, mLookPoint, mLookPoint);
VectorUtil.madd(mUpVector, dy, mEyePoint, mEyePoint);
VectorUtil.madd(mUpVector, dy, mLookPoint, mLookPoint);
mPanStartY = y;
mPanStartX = x;
calcMatrix();
}
public void panUP() {
mPanStartX = Float.NaN;
mPanStartY = Float.NaN;
}
void ballToVec(float x, float y, double[] v) {
float ballRadius = Math.min(mScreenDim[0], mScreenDim[1]) * .4f;
double cx = mScreenDim[0] / 2.;
double cy = mScreenDim[1] / 2.;
double dx = (cx - x) / ballRadius;
double dy = (cy - y) / ballRadius;
double scale = dx * dx + dy * dy;
if (scale > 1) {
scale = Math.sqrt(scale);
dx = dx / scale;
dy = dy / scale;
}
double dz = Math.sqrt(Math.abs(1 - (dx * dx + dy * dy)));
v[0] = dx;
v[1] = dy;
v[2] = dz;
VectorUtil.normalize(v);
}
}
|
3e0b0516bbd2791cffd3837964e0b7a758e8ff20 | 1,263 | java | Java | app/src/main/java/com/bukhmastov/cdoitmo/model/group/GList.java | ksrt12/CDOITMO | 86826bdd18c1fc5969a4344414562f162f8f7ff2 | [
"MIT"
] | 10 | 2018-01-21T21:44:28.000Z | 2020-12-25T21:56:38.000Z | app/src/main/java/com/bukhmastov/cdoitmo/model/group/GList.java | ksrt12/CDOITMO | 86826bdd18c1fc5969a4344414562f162f8f7ff2 | [
"MIT"
] | 5 | 2018-06-18T20:29:38.000Z | 2020-01-05T16:43:12.000Z | app/src/main/java/com/bukhmastov/cdoitmo/model/group/GList.java | ksrt12/CDOITMO | 86826bdd18c1fc5969a4344414562f162f8f7ff2 | [
"MIT"
] | 4 | 2018-06-17T05:40:05.000Z | 2021-01-24T17:42:41.000Z | 21.40678 | 49 | 0.592241 | 4,651 | package com.bukhmastov.cdoitmo.model.group;
import com.bukhmastov.cdoitmo.model.JsonEntity;
import com.bukhmastov.cdoitmo.model.JsonProperty;
import java.util.ArrayList;
import java.util.Objects;
public class GList extends JsonEntity {
@JsonProperty("timestamp")
private long timestamp;
@JsonProperty("list")
private ArrayList<GGroup> list;
public GList() {
super();
}
public long getTimestamp() {
return timestamp;
}
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
public ArrayList<GGroup> getList() {
return list;
}
public void setList(ArrayList<GGroup> list) {
this.list = list;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof GList)) return false;
GList gList = (GList) o;
return timestamp == gList.timestamp &&
Objects.equals(list, gList.list);
}
@Override
public int hashCode() {
return Objects.hash(timestamp, list);
}
@Override
public String toString() {
return "GList{" +
"timestamp=" + timestamp +
", list=" + list +
'}';
}
}
|
3e0b052c2cf9e190bad988896918f10412bd215b | 2,028 | java | Java | app/src/main/java/com/example/threadpoolexectordemo/downloaded/view/DownloadedFileRVAdapter.java | sivakumar1994/MultipleFileDownloadUsingThreadPoolExecutor | 48199327601e980ed931fec5a00000f48e2f83d5 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/example/threadpoolexectordemo/downloaded/view/DownloadedFileRVAdapter.java | sivakumar1994/MultipleFileDownloadUsingThreadPoolExecutor | 48199327601e980ed931fec5a00000f48e2f83d5 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/example/threadpoolexectordemo/downloaded/view/DownloadedFileRVAdapter.java | sivakumar1994/MultipleFileDownloadUsingThreadPoolExecutor | 48199327601e980ed931fec5a00000f48e2f83d5 | [
"Apache-2.0"
] | null | null | null | 32.709677 | 125 | 0.737673 | 4,652 | package com.example.threadpoolexectordemo.downloaded.view;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.threadpoolexectordemo.R;
import com.example.threadpoolexectordemo.model.FileDetails;
import com.example.threadpoolexectordemo.utils.CustomUtils;
import java.util.ArrayList;
import java.util.List;
public class DownloadedFileRVAdapter extends RecyclerView.Adapter<DownloadedFileRVAdapter.MyViewHolder> {
private List<FileDetails> fileDetails = new ArrayList<>();
public DownloadedFileRVAdapter(List<FileDetails> fileDetails) {
this.fileDetails = fileDetails;
}
@NonNull
@Override
public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return new MyViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.row_downloaded_file,parent,false));
}
@Override
public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
if(fileDetails.get(position).isDownloaded()) {
holder.tvFileName.setText(fileDetails.get(position).getVideoUrl());
CustomUtils.getInstance().loadImage(fileDetails.get(position).getThumbnailImage(), holder.imgThumbnailImage);
}
}
public void setFileDetails(List<FileDetails> fileDetails){
this.fileDetails =fileDetails;
notifyDataSetChanged();
}
@Override
public int getItemCount() {
return fileDetails.size();
}
class MyViewHolder extends RecyclerView.ViewHolder {
private TextView tvFileName;
private ImageView imgThumbnailImage;
MyViewHolder(@NonNull View itemView) {
super(itemView);
tvFileName =itemView.findViewById(R.id.tv_file_name);
imgThumbnailImage = itemView.findViewById(R.id.img_thumbnail);
}
}
}
|
3e0b053338adfa9964248a9fee44d524429327a2 | 4,195 | java | Java | ui/web/main/src/java/com/echothree/ui/web/main/action/configuration/workflowentrancesecurityrole/AddActionForm.java | echothreellc/echothree | 1744df7654097cc000e5eca32de127b5dc745302 | [
"Apache-2.0"
] | 1 | 2020-09-01T08:39:01.000Z | 2020-09-01T08:39:01.000Z | ui/web/main/src/java/com/echothree/ui/web/main/action/configuration/workflowentrancesecurityrole/AddActionForm.java | echothreellc/echothree | 1744df7654097cc000e5eca32de127b5dc745302 | [
"Apache-2.0"
] | null | null | null | ui/web/main/src/java/com/echothree/ui/web/main/action/configuration/workflowentrancesecurityrole/AddActionForm.java | echothreellc/echothree | 1744df7654097cc000e5eca32de127b5dc745302 | [
"Apache-2.0"
] | 1 | 2020-05-31T08:34:46.000Z | 2020-05-31T08:34:46.000Z | 37.792793 | 118 | 0.673659 | 4,653 | // --------------------------------------------------------------------------------
// Copyright 2002-2021 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// --------------------------------------------------------------------------------
package com.echothree.ui.web.main.action.configuration.workflowentrancesecurityrole;
import com.echothree.control.user.security.common.SecurityUtil;
import com.echothree.control.user.security.common.form.GetSecurityRoleChoicesForm;
import com.echothree.control.user.security.common.result.GetSecurityRoleChoicesResult;
import com.echothree.model.control.security.common.choice.SecurityRoleChoicesBean;
import com.echothree.util.common.command.CommandResult;
import com.echothree.util.common.command.ExecutionResult;
import com.echothree.view.client.web.struts.BaseActionForm;
import com.echothree.view.client.web.struts.sprout.annotation.SproutForm;
import java.util.List;
import javax.naming.NamingException;
import org.apache.struts.util.LabelValueBean;
@SproutForm(name="WorkflowEntranceSecurityRoleAdd")
public class AddActionForm
extends BaseActionForm {
private SecurityRoleChoicesBean securityRoleChoices;
private String workflowName;
private String workflowEntranceName;
private String partyTypeName;
private String securityRoleChoice;
private void setupSecurityRoleChoices() {
if(securityRoleChoices == null) {
try {
GetSecurityRoleChoicesForm commandForm = SecurityUtil.getHome().getGetSecurityRoleChoicesForm();
commandForm.setWorkflowName(workflowName);
commandForm.setDefaultSecurityRoleChoice(securityRoleChoice);
commandForm.setAllowNullChoice(Boolean.FALSE.toString());
CommandResult commandResult = SecurityUtil.getHome().getSecurityRoleChoices(userVisitPK, commandForm);
ExecutionResult executionResult = commandResult.getExecutionResult();
GetSecurityRoleChoicesResult result = (GetSecurityRoleChoicesResult)executionResult.getResult();
securityRoleChoices = result.getSecurityRoleChoices();
if(securityRoleChoice == null) {
securityRoleChoice = securityRoleChoices.getDefaultValue();
}
} catch (NamingException ne) {
// failed, securityRoleChoices remains null, no default
}
}
}
public void setWorkflowName(String workflowName) {
this.workflowName = workflowName;
}
public String getWorkflowName() {
return workflowName;
}
public void setWorkflowEntranceName(String workflowEntranceName) {
this.workflowEntranceName = workflowEntranceName;
}
public String getWorkflowEntranceName() {
return workflowEntranceName;
}
public String getPartyTypeName() {
return partyTypeName;
}
public void setPartyTypeName(String partyTypeName) {
this.partyTypeName = partyTypeName;
}
public List<LabelValueBean> getSecurityRoleChoices() {
List<LabelValueBean> choices = null;
setupSecurityRoleChoices();
if(securityRoleChoices != null) {
choices = convertChoices(securityRoleChoices);
}
return choices;
}
public void setSecurityRoleChoice(String securityRoleChoice) {
this.securityRoleChoice = securityRoleChoice;
}
public String getSecurityRoleChoice() {
setupSecurityRoleChoices();
return securityRoleChoice;
}
}
|
3e0b053a656433cdfa920a10cf9bca92c948b66a | 5,894 | java | Java | src/test/java/jp/co/yahoo/yosegi/util/TestRangeBinarySearch.java | kotarot/yosegi | 4160b4807340691d98e939ba5646a765f1b33c22 | [
"Apache-2.0"
] | 54 | 2019-01-26T13:01:40.000Z | 2022-03-22T12:28:39.000Z | src/test/java/jp/co/yahoo/yosegi/util/TestRangeBinarySearch.java | kotarot/yosegi | 4160b4807340691d98e939ba5646a765f1b33c22 | [
"Apache-2.0"
] | 133 | 2019-02-01T07:59:58.000Z | 2022-01-27T00:55:19.000Z | src/test/java/jp/co/yahoo/yosegi/util/TestRangeBinarySearch.java | kotarot/yosegi | 4160b4807340691d98e939ba5646a765f1b33c22 | [
"Apache-2.0"
] | 15 | 2019-01-18T09:47:15.000Z | 2021-12-11T14:40:31.000Z | 31.518717 | 78 | 0.65643 | 4,654 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jp.co.yahoo.yosegi.util;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.junit.jupiter.params.provider.Arguments;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.params.provider.Arguments.arguments;
import java.util.List;
public class TestRangeBinarySearch {
@Test
public void T_createNewInstace_void() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
}
@Test
public void T_addAndGet_equalsAddedObject_withStartIndexIsZero() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
bs.add( "test0" , 0 );
assertEquals( bs.get(0) , "test0" );
}
@Test
public void T_addAndGet_equalsAddedObject_withStartIndexIsMoreThanZero() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
bs.add( "test5" , 5 );
assertEquals( bs.get(5) , "test5" );
}
@Test
public void T_addAndGet_equalsAddedSameObjects_withStartIndexIsZero() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
bs.add( "test0" , 0 );
bs.add( "test1" , 1 );
bs.add( "test2" , 2 );
bs.add( "test3" , 3 );
bs.add( "test4" , 4 );
bs.add( "test5" , 5 );
assertEquals( bs.get(0) , "test0" );
assertEquals( bs.get(1) , "test1" );
assertEquals( bs.get(2) , "test2" );
assertEquals( bs.get(3) , "test3" );
assertEquals( bs.get(4) , "test4" );
assertEquals( bs.get(5) , "test5" );
assertEquals( bs.get(6) , null );
}
@Test
public void T_addAndGet_indexNotSetIsNull_withStartIndexIsMoreThanZero() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
bs.add( "test5" , 5 );
bs.add( "test6" , 6 );
assertEquals( bs.get(0) , null );
assertEquals( bs.get(1) , null );
assertEquals( bs.get(2) , null );
assertEquals( bs.get(3) , null );
assertEquals( bs.get(4) , null );
assertEquals( bs.get(5) , "test5" );
assertEquals( bs.get(6) , "test6" );
assertEquals( bs.get(7) , null );
}
@Test
public void T_addAndGet_indexNotSetIsNull_withNullExistsInBetween() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
bs.add( "test0" , 0 );
bs.add( "test5" , 5 );
assertEquals( bs.get(0) , "test0" );
assertEquals( bs.get(1) , null );
assertEquals( bs.get(2) , null );
assertEquals( bs.get(3) , null );
assertEquals( bs.get(4) , null );
assertEquals( bs.get(5) , "test5" );
assertEquals( bs.get(6) , null );
}
@Test
public void T_add_throwsException_withIndexIsLessThanZero() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
assertThrows( RuntimeException.class ,
() -> {
bs.add( "test0" , -1 );
}
);
}
@Test
public void T_add_throwsException_withExistingIndex() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
bs.add( "test0" , 0 );
assertThrows( RuntimeException.class ,
() -> {
bs.add( "test0" , 0 );
}
);
}
@Test
public void T_add_throwsException_withLessThanCurrentIndex() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
bs.add( "test0" , 1 );
assertThrows( RuntimeException.class ,
() -> {
bs.add( "test0" , 0 );
}
);
}
@Test
public void T_size_numberAdded_withStartIndexIsZero() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
assertEquals( bs.size() , 0 );
bs.add( "test0" , 0 );
assertEquals( bs.size() , 1 );
bs.add( "test1" , 1 );
assertEquals( bs.size() , 2 );
}
@Test
public void T_size_numberAddedAndNumberNull_withStartIndexIsMoreThanZero() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
assertEquals( bs.size() , 0 );
bs.add( "test5" , 5 );
assertEquals( bs.size() , 6 );
bs.add( "test6" , 6 );
assertEquals( bs.size() , 7 );
}
@Test
public void T_size_numberAddedAndNumberNull_whenSkipIndex() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
assertEquals( bs.size() , 0 );
bs.add( "test0" , 0 );
assertEquals( bs.size() , 1 );
bs.add( "test5" , 5 );
assertEquals( bs.size() , 6 );
}
@Test
public void T_clear_void() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
assertEquals( bs.size() , 0 );
bs.add( "test0" , 0 );
assertEquals( bs.size() , 1 );
bs.clear();
assertEquals( bs.size() , 0 );
}
@Test
public void T_getIndexAndObjectList_addedObject() {
RangeBinarySearch<String> bs = new RangeBinarySearch<String>();
bs.add( "test0" , 0 );
bs.add( "test5" , 5 );
List<IndexAndObject<String>> indexAndObjList = bs.getIndexAndObjectList();
assertEquals( 2 , indexAndObjList.size() );
IndexAndObject<String> list1 = indexAndObjList.get(0);
assertEquals( list1.get(0) , "test0" );
IndexAndObject<String> list2 = indexAndObjList.get(1);
assertEquals( list2.get(5) , "test5" );
}
}
|
3e0b079debf25c3a0e30227b3b338af2904593de | 753 | java | Java | dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/Constants.java | sharpcsu/dubbo-2.7.7 | 5a4411f49674badb8a05200f5b93fec30d3b1b8e | [
"Apache-2.0"
] | null | null | null | dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/Constants.java | sharpcsu/dubbo-2.7.7 | 5a4411f49674badb8a05200f5b93fec30d3b1b8e | [
"Apache-2.0"
] | null | null | null | dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/Constants.java | sharpcsu/dubbo-2.7.7 | 5a4411f49674badb8a05200f5b93fec30d3b1b8e | [
"Apache-2.0"
] | null | null | null | 25.1 | 57 | 0.707835 | 4,655 | package org.apache.dubbo.auth;
public interface Constants {
String SERVICE_AUTH = "auth";
String AUTHENTICATOR = "authenticator";
String DEFAULT_AUTHENTICATOR = "accesskey";
String DEFAULT_ACCESS_KEY_STORAGE = "urlstorage";
String ACCESS_KEY_STORAGE_KEY = "accessKey.storage";
// the key starting with "." shouldn't be output
String ACCESS_KEY_ID_KEY = ".accessKeyId";
// the key starting with "." shouldn't be output
String SECRET_ACCESS_KEY_KEY = ".secretAccessKey";
String REQUEST_TIMESTAMP_KEY = "timestamp";
String REQUEST_SIGNATURE_KEY = "signature";
String AK_KEY = "ak";
String SIGNATURE_STRING_FORMAT = "%s#%s#%s#%s";
String PARAMETER_SIGNATURE_ENABLE_KEY = "param.sign";
}
|
3e0b07c18fa4049457038d348853ab3bf40d6e13 | 1,395 | java | Java | L2J_Server/java/com/l2jserver/gameserver/skills/effects/EffectDebuff.java | Vladislav-Zolotaryov/L2J_Levelless_Custom | fb9fd3d22209679258cddc60cec104d740f13b8c | [
"MIT"
] | null | null | null | L2J_Server/java/com/l2jserver/gameserver/skills/effects/EffectDebuff.java | Vladislav-Zolotaryov/L2J_Levelless_Custom | fb9fd3d22209679258cddc60cec104d740f13b8c | [
"MIT"
] | null | null | null | L2J_Server/java/com/l2jserver/gameserver/skills/effects/EffectDebuff.java | Vladislav-Zolotaryov/L2J_Levelless_Custom | fb9fd3d22209679258cddc60cec104d740f13b8c | [
"MIT"
] | null | null | null | 27.9 | 80 | 0.749104 | 4,656 | /*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.gameserver.skills.effects;
import com.l2jserver.gameserver.model.L2Effect;
import com.l2jserver.gameserver.skills.Env;
import com.l2jserver.gameserver.templates.effects.EffectTemplate;
import com.l2jserver.gameserver.templates.skills.L2EffectType;
public class EffectDebuff extends L2Effect
{
public EffectDebuff(Env env, EffectTemplate template)
{
super(env, template);
}
/**
*
* @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
*/
@Override
public L2EffectType getEffectType()
{
return L2EffectType.DEBUFF;
}
/**
*
* @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
*/
@Override
public boolean onActionTime()
{
// just stop this effect
return false;
}
}
|
3e0b08b021045bd8100ef6aaeb37648486c769d9 | 1,898 | java | Java | joyqueue-server/joyqueue-nsr/joyqueue-nsr-core/src/main/java/org/joyqueue/nsr/event/RemovePartitionGroupEvent.java | xbocai/joyqueue | 35f0fddb25b566b946a02e1dd0c23bd712dd74cd | [
"Apache-2.0"
] | 311 | 2019-08-27T11:49:40.000Z | 2022-03-24T08:56:03.000Z | joyqueue-server/joyqueue-nsr/joyqueue-nsr-core/src/main/java/org/joyqueue/nsr/event/RemovePartitionGroupEvent.java | xbocai/joyqueue | 35f0fddb25b566b946a02e1dd0c23bd712dd74cd | [
"Apache-2.0"
] | 44 | 2019-08-26T08:45:33.000Z | 2022-01-21T23:27:58.000Z | joyqueue-server/joyqueue-nsr/joyqueue-nsr-core/src/main/java/org/joyqueue/nsr/event/RemovePartitionGroupEvent.java | xbocai/joyqueue | 35f0fddb25b566b946a02e1dd0c23bd712dd74cd | [
"Apache-2.0"
] | 122 | 2019-09-07T08:26:18.000Z | 2022-03-23T06:07:33.000Z | 27.911765 | 107 | 0.717597 | 4,657 | /**
* Copyright 2019 The JoyQueue Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.joyqueue.nsr.event;
import org.joyqueue.domain.PartitionGroup;
import org.joyqueue.domain.TopicName;
import org.joyqueue.event.EventType;
import org.joyqueue.event.MetaEvent;
/**
* RemovePartitionGroupEvent
* author: gaohaoxiang
* date: 2019/8/28
*/
public class RemovePartitionGroupEvent extends MetaEvent {
private TopicName topic;
private PartitionGroup partitionGroup;
public RemovePartitionGroupEvent() {
}
public RemovePartitionGroupEvent(TopicName topic, PartitionGroup partitionGroup) {
this.topic = topic;
this.partitionGroup = partitionGroup;
}
public RemovePartitionGroupEvent(EventType eventType, TopicName topic, PartitionGroup partitionGroup) {
super(eventType);
this.topic = topic;
this.partitionGroup = partitionGroup;
}
public TopicName getTopic() {
return topic;
}
public void setTopic(TopicName topic) {
this.topic = topic;
}
public void setPartitionGroup(PartitionGroup partitionGroup) {
this.partitionGroup = partitionGroup;
}
public PartitionGroup getPartitionGroup() {
return partitionGroup;
}
@Override
public String getTypeName() {
return EventType.REMOVE_PARTITION_GROUP.name();
}
} |
3e0b0965663c46ffb80919a3ec107ee45b7c2954 | 2,311 | java | Java | app/src/main/java/com/jikexueyuan/secret/net/PubComment.java | 903136698/Secret | cf3d536351024e8353e2c028e9751b87864aa493 | [
"Apache-2.0"
] | 1 | 2019-10-29T07:10:08.000Z | 2019-10-29T07:10:08.000Z | app/src/main/java/com/jikexueyuan/secret/net/PubComment.java | liangkai/Secret | cf3d536351024e8353e2c028e9751b87864aa493 | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/jikexueyuan/secret/net/PubComment.java | liangkai/Secret | cf3d536351024e8353e2c028e9751b87864aa493 | [
"Apache-2.0"
] | 1 | 2019-04-19T18:43:26.000Z | 2019-04-19T18:43:26.000Z | 34.492537 | 152 | 0.500216 | 4,658 | package com.jikexueyuan.secret.net;
import com.jikexueyuan.secret.Config;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by MiracleWong on 2015/7/6.
*/
public class PubComment {
public PubComment(String phone_md5,String token,String content,String msgId,final SuccessCallback successCallback,final FailCallback failCallback) {
new NetConnection(Config.SERVER_URL, HttpMethod.POST, new NetConnection.SuccessCallback() {
@Override
public void onSuccess(String result) {
try {
JSONObject obj = new JSONObject(result);
switch (obj.getInt(Config.KEY_STATUS)) {
case Config.RESULT_STATUS_SUCCESS:
if (successCallback!=null) {
successCallback.onSuccess();
}
break;
case Config.RESULT_STATUS_INVALID_TOKEN:
if (failCallback!=null) {
failCallback.onFail(Config.RESULT_STATUS_INVALID_TOKEN);
}
break;
default:
if (failCallback!=null) {
failCallback.onFail(Config.RESULT_STATUS_FAIL);
}
break;
}
} catch (JSONException e) {
e.printStackTrace();
if (failCallback!=null) {
failCallback.onFail(Config.RESULT_STATUS_FAIL);
}
}
}
}, new NetConnection.FailCallback() {
@Override
public void onFail() {
if (failCallback!=null) {
failCallback.onFail(Config.RESULT_STATUS_FAIL);
}
}
}, Config.KEY_ACTION,Config.ACTION_PUB_COMMENT,
Config.KEY_TOKEN,token,
Config.KEY_PHONE_MD5,phone_md5,
Config.KEY_MSG_ID,msgId);
}
public static interface SuccessCallback{
void onSuccess();
}
public static interface FailCallback{
void onFail(int errorCode);
}
}
|
3e0b09c62a11ab07cf2b6587be681c7546898871 | 2,370 | java | Java | pds/java/src/main/java/com/aliyun/pds/client/models/OSSGetFileRequest.java | neozhang2013/alibabacloud-pds-sdk | 7c4d0c14da31baf11c807d8cd4aa0a3ec56be048 | [
"Apache-2.0"
] | null | null | null | pds/java/src/main/java/com/aliyun/pds/client/models/OSSGetFileRequest.java | neozhang2013/alibabacloud-pds-sdk | 7c4d0c14da31baf11c807d8cd4aa0a3ec56be048 | [
"Apache-2.0"
] | null | null | null | pds/java/src/main/java/com/aliyun/pds/client/models/OSSGetFileRequest.java | neozhang2013/alibabacloud-pds-sdk | 7c4d0c14da31baf11c807d8cd4aa0a3ec56be048 | [
"Apache-2.0"
] | null | null | null | 25.483871 | 90 | 0.666245 | 4,659 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.pds.client.models;
import com.aliyun.tea.*;
/**
* 获取文件元数据
*/
public class OSSGetFileRequest extends TeaModel {
// drive_id
@NameInMap("drive_id")
@Validation(pattern = "[0-9]+")
public String driveId;
// file_id
@NameInMap("file_path")
@Validation(required = true, maxLength = 1000, minLength = 1)
public String filePath;
// image_thumbnail_process
// type:string
@NameInMap("image_thumbnail_process")
public String imageThumbnailProcess;
// image_thumbnail_process
// type:string
@NameInMap("image_url_process")
public String imageUrlProcess;
// share_id
@NameInMap("share_id")
@Validation(pattern = "[0-9a-zA-Z-]+")
public String shareId;
// url_expire_sec
@NameInMap("url_expire_sec")
public Long urlExpireSec;
public static OSSGetFileRequest build(java.util.Map<String, ?> map) throws Exception {
OSSGetFileRequest self = new OSSGetFileRequest();
return TeaModel.build(map, self);
}
public OSSGetFileRequest setDriveId(String driveId) {
this.driveId = driveId;
return this;
}
public String getDriveId() {
return this.driveId;
}
public OSSGetFileRequest setFilePath(String filePath) {
this.filePath = filePath;
return this;
}
public String getFilePath() {
return this.filePath;
}
public OSSGetFileRequest setImageThumbnailProcess(String imageThumbnailProcess) {
this.imageThumbnailProcess = imageThumbnailProcess;
return this;
}
public String getImageThumbnailProcess() {
return this.imageThumbnailProcess;
}
public OSSGetFileRequest setImageUrlProcess(String imageUrlProcess) {
this.imageUrlProcess = imageUrlProcess;
return this;
}
public String getImageUrlProcess() {
return this.imageUrlProcess;
}
public OSSGetFileRequest setShareId(String shareId) {
this.shareId = shareId;
return this;
}
public String getShareId() {
return this.shareId;
}
public OSSGetFileRequest setUrlExpireSec(Long urlExpireSec) {
this.urlExpireSec = urlExpireSec;
return this;
}
public Long getUrlExpireSec() {
return this.urlExpireSec;
}
}
|
3e0b0ae7c01a41c14693aab3c4cfca41df60f8f7 | 2,105 | java | Java | support/cas-server-support-throttle-jdbc/src/test/java/org/apereo/cas/web/support/PostgresJdbcThrottledSubmissionHandlerInterceptorAdapterTests.java | hashlash/cas | dedbacfabac217efdebc73cf626e0c8c7bbe0223 | [
"Apache-2.0"
] | 1 | 2020-09-27T11:41:31.000Z | 2020-09-27T11:41:31.000Z | support/cas-server-support-throttle-jdbc/src/test/java/org/apereo/cas/web/support/PostgresJdbcThrottledSubmissionHandlerInterceptorAdapterTests.java | hashlash/cas | dedbacfabac217efdebc73cf626e0c8c7bbe0223 | [
"Apache-2.0"
] | 1 | 2020-07-23T06:09:26.000Z | 2020-07-23T06:09:26.000Z | support/cas-server-support-throttle-jdbc/src/test/java/org/apereo/cas/web/support/PostgresJdbcThrottledSubmissionHandlerInterceptorAdapterTests.java | hashlash/cas | dedbacfabac217efdebc73cf626e0c8c7bbe0223 | [
"Apache-2.0"
] | 1 | 2021-03-03T11:52:17.000Z | 2021-03-03T11:52:17.000Z | 39.716981 | 138 | 0.793824 | 4,660 | package org.apereo.cas.web.support;
import org.apereo.cas.audit.config.CasSupportJdbcAuditConfiguration;
import org.apereo.cas.config.CasHibernateJpaConfiguration;
import org.apereo.cas.config.CasJdbcThrottlingConfiguration;
import org.apereo.cas.util.junit.EnabledIfPortOpen;
import lombok.Getter;
import org.junit.jupiter.api.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
/**
* Unit test for {@link JdbcThrottledSubmissionHandlerInterceptorAdapter}.
*
* @author Marvin S. Addison
* @since 3.0.0
*/
@SpringBootTest(classes = {
CasJdbcThrottlingConfiguration.class,
CasSupportJdbcAuditConfiguration.class,
CasHibernateJpaConfiguration.class,
BaseThrottledSubmissionHandlerInterceptorAdapterTests.SharedTestConfiguration.class
}, properties = {
"cas.jdbc.show-sql=true",
"cas.authn.throttle.usernameParameter=username",
"cas.authn.throttle.failure.code=AUTHENTICATION_FAILED",
"cas.authn.throttle.usernameParameter=username",
"cas.authn.throttle.failure.range-seconds=5",
"cas.authn.throttle.jdbc.user=postgres",
"cas.authn.throttle.jdbc.password=password",
"cas.authn.throttle.jdbc.driver-class=org.postgresql.Driver",
"cas.authn.throttle.jdbc.url=jdbc:postgresql://localhost:5432/audit",
"cas.authn.throttle.jdbc.dialect=org.hibernate.dialect.PostgreSQL95Dialect",
"cas.audit.jdbc.asynchronous=false",
"cas.audit.jdbc.user=postgres",
"cas.audit.jdbc.password=password",
"cas.audit.jdbc.driver-class=org.postgresql.Driver",
"cas.audit.jdbc.url=jdbc:postgresql://localhost:5432/audit",
"cas.audit.jdbc.dialect=org.hibernate.dialect.PostgreSQL95Dialect"
})
@EnabledIfPortOpen(port = 5432)
@Tag("Postgres")
@Getter
public class PostgresJdbcThrottledSubmissionHandlerInterceptorAdapterTests extends BaseThrottledSubmissionHandlerInterceptorAdapterTests {
@Autowired
@Qualifier("authenticationThrottle")
private ThrottledSubmissionHandlerInterceptor throttle;
}
|
3e0b0b0e4fcd757d6e177506646539013b483fbc | 2,372 | java | Java | src/main/java/com/chenc/amqptest/module/se/controller/SEController.java | kouyt5/rabbit-rpc-client | 1d42db03666854b7bb1c89afac16efbde78ffc0b | [
"MIT"
] | 1 | 2021-12-21T13:40:15.000Z | 2021-12-21T13:40:15.000Z | src/main/java/com/chenc/amqptest/module/se/controller/SEController.java | kouyt5/rabbit-rpc-client | 1d42db03666854b7bb1c89afac16efbde78ffc0b | [
"MIT"
] | null | null | null | src/main/java/com/chenc/amqptest/module/se/controller/SEController.java | kouyt5/rabbit-rpc-client | 1d42db03666854b7bb1c89afac16efbde78ffc0b | [
"MIT"
] | null | null | null | 38.885246 | 170 | 0.727234 | 4,661 | package com.chenc.amqptest.module.se.controller;
import java.io.IOException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.UUID;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import com.chenc.amqptest.base.BaseResponse;
import com.chenc.amqptest.module.se.pojo.SEMQResp;
import com.chenc.amqptest.module.se.pojo.SEVo;
import com.chenc.amqptest.module.se.service.SEService;
import com.chenc.amqptest.repo.repository.FileStorageRespsitory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import lombok.AllArgsConstructor;
@RequestMapping("/api")
@AllArgsConstructor
@RestController
public class SEController {
private final SEService seService;
private final FileStorageRespsitory fileStorageRespsitory;
@PostMapping("/se")
public BaseResponse<SEVo> seBase(MultipartFile audio, @RequestParam(defaultValue = "wav") String format) throws InterruptedException, IOException, ExecutionException{
Future<SEMQResp> fseMQResp = seService.getSE(audio.getBytes(), format);
SEMQResp seMQResp = fseMQResp.get();
SEVo seVo = new SEVo("", seMQResp.getDuration(), seMQResp.getEnhance());
// 保存音频到仓库中 service.saveFile(byte[]);
LocalDateTime localDateTime = LocalDateTime.now();
String folder = localDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE);
String namePrefix = localDateTime.format(DateTimeFormatter.ofPattern("HH-mm-ss"));
String path = "audio/"+folder+"/"+namePrefix+"-"+UUID.randomUUID().toString().substring(0, 10)+".wav";
fileStorageRespsitory.saveFile(seVo.getEnhance(), path);
String url = fileStorageRespsitory.getURL(path);
seVo.setUrl(url);
// FileOutputStream outputStream = new FileOutputStream("output.wav");
// outputStream.write(seVo.getEnhance());
// outputStream.close();
return new BaseResponse.Builder<SEVo>()
.setData(seVo)
.setMessage("success")
.setStatus(200)
.build();
}
}
|
3e0b0b84143c90d7d355effd96dcee93c4d92f40 | 619 | java | Java | processor/src/test/java/org/mapstruct/ap/test/bugs/_1269/dto/VehicleImageDto.java | chrisaige/mapstruct | 94e4a9ec140206f5077823406d665d55ac3755bc | [
"Apache-2.0"
] | 5,133 | 2015-01-05T11:16:22.000Z | 2022-03-31T18:56:15.000Z | processor/src/test/java/org/mapstruct/ap/test/bugs/_1269/dto/VehicleImageDto.java | chrisaige/mapstruct | 94e4a9ec140206f5077823406d665d55ac3755bc | [
"Apache-2.0"
] | 2,322 | 2015-01-01T19:20:49.000Z | 2022-03-29T16:31:25.000Z | processor/src/test/java/org/mapstruct/ap/test/bugs/_1269/dto/VehicleImageDto.java | chrisaige/mapstruct | 94e4a9ec140206f5077823406d665d55ac3755bc | [
"Apache-2.0"
] | 820 | 2015-01-03T15:55:11.000Z | 2022-03-30T20:58:07.000Z | 18.757576 | 105 | 0.652666 | 4,662 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._1269.dto;
/**
* @author Filip Hrisafov
*/
public class VehicleImageDto {
private Integer pictureSize;
private String src;
public Integer getPictureSize() {
return pictureSize;
}
public void setPictureSize(Integer pictureSize) {
this.pictureSize = pictureSize;
}
public String getSrc() {
return src;
}
public void setSrc(String src) {
this.src = src;
}
}
|
3e0b0bc43d4f89b9784dacb5cb894881a9ee3e85 | 792 | java | Java | bubolo/test/bubolo/net/command/ClientConnectedTest.java | BU-CS673/bubolo | 1074a1df63a04e69c85f13ba366c90ea76f36721 | [
"MIT"
] | null | null | null | bubolo/test/bubolo/net/command/ClientConnectedTest.java | BU-CS673/bubolo | 1074a1df63a04e69c85f13ba366c90ea76f36721 | [
"MIT"
] | 1 | 2016-05-25T19:02:34.000Z | 2016-05-25T21:18:36.000Z | bubolo/test/bubolo/net/command/ClientConnectedTest.java | BU-CS673/bubolo | 1074a1df63a04e69c85f13ba366c90ea76f36721 | [
"MIT"
] | 3 | 2016-02-02T23:55:45.000Z | 2021-02-21T17:11:01.000Z | 19.317073 | 91 | 0.717172 | 4,663 | /**
*
*/
package bubolo.net.command;
import static org.junit.Assert.*;
import org.junit.Test;
import bubolo.net.NetworkCommand;
import bubolo.world.World;
import static org.mockito.Mockito.mock;
/**
* @author BU CS673 - Clone Productions
*/
public class ClientConnectedTest
{
/**
* Test method for {@link bubolo.net.command.ClientConnected#getClientName()}.
*/
@Test
public void testGetClientName()
{
NetworkCommand command = new ClientConnected("Test");
command.execute(mock(World.class));
}
/**
* Test method for {@link bubolo.net.command.ClientConnected#execute(bubolo.world.World)}.
*/
@Test
public void testExecute()
{
final String NAME = "TEST";
ClientConnected command = new ClientConnected(NAME);
assertEquals(NAME, command.getClientName());
}
}
|
3e0b0c0517e43f6f2fbe80a53208a62565e30633 | 1,071 | java | Java | containment-api/src/main/java/io/github/mike10004/containment/ContainerInfoImpl.java | mike10004/containment | ad4f3336510eedaa7dcb88c162557e5630337e66 | [
"MIT"
] | null | null | null | containment-api/src/main/java/io/github/mike10004/containment/ContainerInfoImpl.java | mike10004/containment | ad4f3336510eedaa7dcb88c162557e5630337e66 | [
"MIT"
] | 1 | 2021-12-02T23:26:04.000Z | 2021-12-02T23:26:04.000Z | containment-api/src/main/java/io/github/mike10004/containment/ContainerInfoImpl.java | mike10004/containment | ad4f3336510eedaa7dcb88c162557e5630337e66 | [
"MIT"
] | null | null | null | 28.945946 | 117 | 0.720822 | 4,664 | package io.github.mike10004.containment;
import static java.util.Objects.requireNonNull;
class ContainerInfoImpl implements ContainerInfo {
private final String containerId;
private final Stickiness stickiness;
private final ContainerParametry.CommandType commandType;
public ContainerInfoImpl(String containerId, Stickiness stickiness, ContainerParametry.CommandType commandType) {
this.containerId = requireNonNull(containerId, "containerId");
this.stickiness = requireNonNull(stickiness);
this.commandType = requireNonNull(commandType);
}
@Override
public String id() {
return containerId;
}
@Override
public String toString() {
return String.format("ContainerInfo{id=%s,%s,%s}", containerId, stickiness, commandType);
}
@Override
public boolean isAutoRemoveEnabled() {
return stickiness == Stickiness.AUTO_REMOVE_ENABLED;
}
@Override
public boolean isStopRequired() {
return commandType == ContainerParametry.CommandType.BLOCKING;
}
}
|
3e0b0c2aef3e1772538ac2e3b1ae8fed55c2e034 | 5,777 | java | Java | src/main/java/com/hrznstudio/matteroverdrive/api/android/module/AndroidModule.java | InnovativeOnlineIndustries/MatterOverdrive | 66163bc5ae12ad674d3700a9f08197cb1d640915 | [
"MIT"
] | 1 | 2020-03-20T22:24:40.000Z | 2020-03-20T22:24:40.000Z | src/main/java/com/hrznstudio/matteroverdrive/api/android/module/AndroidModule.java | InnovativeOnlineIndustries/MatterOverdrive | 66163bc5ae12ad674d3700a9f08197cb1d640915 | [
"MIT"
] | 5 | 2020-11-07T21:45:24.000Z | 2021-01-21T13:16:16.000Z | src/main/java/com/hrznstudio/matteroverdrive/api/android/module/AndroidModule.java | InnovativeOnlineIndustries/MatterOverdrive | 66163bc5ae12ad674d3700a9f08197cb1d640915 | [
"MIT"
] | 1 | 2020-08-18T12:27:39.000Z | 2020-08-18T12:27:39.000Z | 30.405263 | 120 | 0.666436 | 4,665 | package com.hrznstudio.matteroverdrive.api.android.module;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Lists;
import com.google.common.collect.Multimap;
import com.hrznstudio.matteroverdrive.capabilities.android.AndroidData;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.ai.attributes.AttributeModifier;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.util.Util;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TranslationTextComponent;
import net.minecraftforge.common.util.INBTSerializable;
import net.minecraftforge.registries.ForgeRegistryEntry;
import javax.annotation.Nonnull;
import java.util.List;
public abstract class AndroidModule extends ForgeRegistryEntry<AndroidModule> implements INBTSerializable<CompoundNBT> {
private final int maxTier;
private final int minTier;
private final boolean shouldAllowStackingModules;
private String translationKey;
private ITextComponent name;
private List<ITextComponent> tooltip;
private int currentTier;
public static final String CURRENT_TIER = "currentTier";
public AndroidModule() {
this.maxTier = 1;
this.minTier = 0;
this.shouldAllowStackingModules = false;
this.currentTier = this.minTier;
}
public AndroidModule(int maxTier) {
this.maxTier = maxTier;
this.minTier = 0;
this.shouldAllowStackingModules = true;
this.currentTier = this.minTier;
}
public AndroidModule(int maxTier, int minTier, int initTier) {
this.maxTier = maxTier;
this.minTier = minTier;
this.shouldAllowStackingModules = true;
this.currentTier = initTier;
}
/**
* This returns a boolean check against this modifier.
*
* @param module The module being passed to check against this.
* @return Returns if the passed module can be applied with this.
*/
public boolean canApplyTogether(AndroidModule module) {
return shouldAllowStackingModules ? this.getCurrentTier() + 1 <= this.getMaxTier() : module != this;
};
/**
* This is used to set the stored data using a NBT-tag on Install.
*
* @param nbt The NBT being passed for updating the Module.
*/
public void onInstall(LivingEntity entity, AndroidData data, CompoundNBT nbt) {}
/**
* This is used to update the Modules internal data using passed NBT-Data.
*
* @param nbt The NBT being passed for updating the Module.
*/
public void onUpdate(LivingEntity entity, AndroidData data, CompoundNBT nbt) {}
/**
* This is used to set the stored data using a NBT-tag on Removal.
*
* @param nbt The NBT being passed for updating the Module.
*/
public void onRemoval(LivingEntity entity, AndroidData data, CompoundNBT nbt) {}
/**
* This returns a boolean check against both Modifiers not just this Modifier.
*
* @param module Modifier to check against.
* @return Returns the final value if this can be applied together with the other Modifier.
*/
public boolean isCompatibleWith(AndroidModule module) {
return this.canApplyTogether(module) && module.canApplyTogether(this);
}
/**
* @return Returns the list of AttributeModifiers, that this module should apply.
*/
public Multimap<String, AttributeModifier> getAttributeModifiers() {
return HashMultimap.create();
}
/**
* @return Returns the Translation Key for the Modifier.
*/
@Nonnull
public String getTranslationName() {
if (translationKey == null) {
translationKey = Util.makeTranslationKey("android.module", this.getRegistryName());
}
return translationKey;
}
/**
* @return Returns the translated Name for the Modifier.
*/
@Nonnull
public ITextComponent getName() {
if (name == null) {
name = new TranslationTextComponent(this.getTranslationName());
}
return name;
}
/**
* @return Returns the translated Name for the Modifier.
*/
@Nonnull
public List<ITextComponent> getTooltip() {
if (tooltip == null) {
tooltip = Lists.newArrayList();
}
return tooltip;
}
/**
* @return Returns the minimum tier-level of the Module.
*/
public int getMinTier() {
return minTier;
}
/**
* @return Returns the maximum tier-level of the Module.
*/
public int getMaxTier() {
return maxTier;
}
/**
* @param level The tier level being passed pre-setting but post-change.
* @return Returns if the changed level falls within the bounds of minimum and maximum tier.
*/
public int getTierInRange(int level) {
return Math.max(Math.min(level, this.getMaxTier()), this.getMinTier());
}
/**
* @return Gets the current Tier-Level
*/
public int getCurrentTier() {
return currentTier;
}
/**
* @param currentTier Returns the current Tier of the installed Module
*/
public void setCurrentTier(int currentTier) {
this.currentTier = currentTier;
}
/**
* @return Returns the Serialized Data of the Module
*/
@Override
public CompoundNBT serializeNBT() {
CompoundNBT nbt = new CompoundNBT();
nbt.putInt(CURRENT_TIER, this.getCurrentTier());
return nbt;
}
/**
* Deserializes the Data from NBT to actual data the Module can use.
*
* @param nbt The serialized Data of the Module
*/
@Override
public void deserializeNBT(CompoundNBT nbt) {
this.setCurrentTier(nbt.getInt(CURRENT_TIER));
}
}
|
3e0b0c5103969d1438c6f4fcfcea9c5e35bc3b41 | 1,447 | java | Java | src/main/java/com/github/fevernova/io/hdfs/serialization/HDFSWritableSerializer.java | RocMarshal/fevernova | bbb60a892b3bb1785240237764efc012fdb65245 | [
"Apache-2.0"
] | 1 | 2021-08-14T15:28:33.000Z | 2021-08-14T15:28:33.000Z | src/main/java/com/github/fevernova/io/hdfs/serialization/HDFSWritableSerializer.java | RocMarshal/fevernova | bbb60a892b3bb1785240237764efc012fdb65245 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/github/fevernova/io/hdfs/serialization/HDFSWritableSerializer.java | RocMarshal/fevernova | bbb60a892b3bb1785240237764efc012fdb65245 | [
"Apache-2.0"
] | null | null | null | 20.380282 | 75 | 0.683483 | 4,666 | package com.github.fevernova.io.hdfs.serialization;
import com.github.fevernova.framework.common.context.TaskContext;
import com.github.fevernova.framework.common.data.Data;
import org.apache.hadoop.io.BytesWritable;
import org.apache.hadoop.io.LongWritable;
import java.util.Collections;
public class HDFSWritableSerializer implements SequenceFileSerializer {
private BytesWritable makeByteWritable(Data e) {
BytesWritable bytesObject = new BytesWritable();
bytesObject.set(e.getBytes(), 0, e.getBytes().length);
return bytesObject;
}
@Override
public Class<LongWritable> getKeyClass() {
return LongWritable.class;
}
@Override
public Class<BytesWritable> getValueClass() {
return BytesWritable.class;
}
@Override
public Iterable<Record> serialize(Data e) {
Object key = getKey(e);
Object value = getValue(e);
return Collections.singletonList(new Record(key, value));
}
private Object getKey(Data e) {
long eventStamp = e.getTimestamp();
return new LongWritable(eventStamp);
}
private Object getValue(Data e) {
return makeByteWritable(e);
}
public static class Builder implements SequenceFileSerializer.Builder {
@Override
public SequenceFileSerializer build(TaskContext context) {
return new HDFSWritableSerializer();
}
}
}
|
3e0b0c5413f267d26afc3d08b2af5d3f58c9d2a6 | 717 | java | Java | sfm-map/src/main/java/org/simpleflatmapper/map/getter/InstantiatorContextualGetter.java | zenios/SimpleFlatMapper | 6e99418efcf72551eb9d2222fc3197cbc9168ec0 | [
"MIT"
] | 416 | 2015-01-05T21:21:35.000Z | 2022-03-17T21:19:46.000Z | sfm-map/src/main/java/org/simpleflatmapper/map/getter/InstantiatorContextualGetter.java | tanbinh123/SimpleFlatMapper | fbc08180307ae9ad1a5343bafc5575bd9ad66c38 | [
"MIT"
] | 651 | 2015-01-06T11:00:12.000Z | 2022-01-21T23:18:17.000Z | sfm-map/src/main/java/org/simpleflatmapper/map/getter/InstantiatorContextualGetter.java | tanbinh123/SimpleFlatMapper | fbc08180307ae9ad1a5343bafc5575bd9ad66c38 | [
"MIT"
] | 83 | 2015-02-15T00:41:52.000Z | 2022-03-10T17:59:33.000Z | 32.590909 | 138 | 0.779637 | 4,667 | package org.simpleflatmapper.map.getter;
import org.simpleflatmapper.converter.Context;
import org.simpleflatmapper.reflect.Instantiator;
public class InstantiatorContextualGetter<S, T, P> implements ContextualGetter<T, P> {
private final Instantiator<? super S, ? extends P> instantiator;
private final ContextualGetter<? super T, ? extends S> getter;
public InstantiatorContextualGetter(Instantiator<? super S, ? extends P> instantiator, ContextualGetter<? super T, ? extends S> getter) {
this.instantiator = instantiator;
this.getter = getter;
}
@Override
public P get(T target, Context mappingContext) throws Exception {
return instantiator.newInstance(getter.get(target, mappingContext));
}
}
|
3e0b0eee99b4f6fc0c514c1225414f0bc347631a | 457 | java | Java | workflow/src/main/java/samplr/domain/Commands.java | skudinov/samplr | 7156ce70baa989f5d1438f4c64bb5b6e4d26e5d4 | [
"Apache-2.0"
] | null | null | null | workflow/src/main/java/samplr/domain/Commands.java | skudinov/samplr | 7156ce70baa989f5d1438f4c64bb5b6e4d26e5d4 | [
"Apache-2.0"
] | null | null | null | workflow/src/main/java/samplr/domain/Commands.java | skudinov/samplr | 7156ce70baa989f5d1438f4c64bb5b6e4d26e5d4 | [
"Apache-2.0"
] | null | null | null | 30.466667 | 78 | 0.761488 | 4,668 | package samplr.domain;
import samplr.workflow.Command;
import java.util.Collection;
public final class Commands {
public final static Command CREATE_ACTION = new Command("CREATE_ACTION");
public final static Command UPDATE_ACTION = new Command("UPDATE_ACTION");
public final static Command POST_MESSAGE = new Command("POST_MESSAGE");
public static final Command SAVE_IN_ORACLE = new Command("SAVE_IN_MONGO");
private Commands() {}
}
|
3e0b109b6f88c4593d4b30b766da1ff29559b594 | 972 | java | Java | persona/src/main/java/com/crud/estudiante/modelo/Estudiante.java | hackunix/Frontend-Estudiante-SpringBoot | f117448e18ac772e6fe0cfb62c8c5b08d98f872f | [
"Apache-2.0"
] | null | null | null | persona/src/main/java/com/crud/estudiante/modelo/Estudiante.java | hackunix/Frontend-Estudiante-SpringBoot | f117448e18ac772e6fe0cfb62c8c5b08d98f872f | [
"Apache-2.0"
] | null | null | null | persona/src/main/java/com/crud/estudiante/modelo/Estudiante.java | hackunix/Frontend-Estudiante-SpringBoot | f117448e18ac772e6fe0cfb62c8c5b08d98f872f | [
"Apache-2.0"
] | null | null | null | 19.058824 | 61 | 0.593621 | 4,669 | package com.crud.estudiante.modelo;
import javax.persistence.*;
@Entity
@Table(name = "persona")
public class Estudiante {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@Column(length = 50)
private String name;
@Column(length = 10, unique=true)
private String telefono;
public Estudiante(){
// TODO Auto-generated constructor stub
}
public Estudiante(int id, String name, String telefono) {
super();
this.id = id;
this.name = name;
this.telefono = telefono;
}
public int getId() {
return id;
}
public String getName() {
return name;
}
public String getTelefono() {
return telefono;
}
public void setId(int id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public void setTelefono(String telefono) {
this.telefono = telefono;
}
}
|
3e0b10b2014a6c379e5629da30d6e24f4244bb56 | 1,740 | java | Java | chunk/src/main/java/org/duracloud/chunk/stream/CountingDigestInputStream.java | msarmie/duracloud | ba5bef9c07e677bd964836ca6d43a2e2d1c7aa99 | [
"Apache-2.0"
] | 10 | 2016-02-04T02:32:12.000Z | 2021-12-21T18:53:39.000Z | chunk/src/main/java/org/duracloud/chunk/stream/CountingDigestInputStream.java | msarmie/duracloud | ba5bef9c07e677bd964836ca6d43a2e2d1c7aa99 | [
"Apache-2.0"
] | 47 | 2015-01-05T21:36:46.000Z | 2021-12-06T20:16:13.000Z | chunk/src/main/java/org/duracloud/chunk/stream/CountingDigestInputStream.java | acidburn0zzz/duracloud | 5b9194da4230b6e04ee738e23f41f94622e968e1 | [
"Apache-2.0"
] | 16 | 2016-03-23T12:29:23.000Z | 2021-03-09T00:43:13.000Z | 27.619048 | 77 | 0.651149 | 4,670 | /*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://duracloud.org/license/
*/
package org.duracloud.chunk.stream;
import static org.duracloud.common.util.ChecksumUtil.Algorithm.MD5;
import java.io.InputStream;
import java.security.DigestInputStream;
import org.apache.commons.io.input.CountingInputStream;
import org.duracloud.common.util.ChecksumUtil;
/**
* This class combines the two InputStream implementations:
* - CountingInputStream &
* - DigestInputStream
*
* @author Andrew Woods
* Date: Feb 10, 2010
*/
public class CountingDigestInputStream extends CountingInputStream {
private boolean preserveMD5;
private String md5;
/**
* The digest capabilities are turned off if the arg preserveMD5 is false
*
* @param inputStream
* @param preserveMD5
*/
public CountingDigestInputStream(InputStream inputStream,
boolean preserveMD5) {
super(wrapStream(inputStream, preserveMD5));
this.preserveMD5 = preserveMD5;
this.md5 = null;
}
private static InputStream wrapStream(InputStream inputStream,
boolean preserveMD5) {
InputStream stream = inputStream;
if (preserveMD5) {
stream = ChecksumUtil.wrapStream(inputStream, MD5);
}
return stream;
}
public String getMD5() {
if (!preserveMD5) {
md5 = "MD5-not-preserved";
} else if (null == md5) {
md5 = ChecksumUtil.getChecksum((DigestInputStream) this.in);
}
return md5;
}
}
|
3e0b115ec5b743a3e90577a4c9bc4d09f126e27e | 3,483 | java | Java | src/main/java/quick/start/util/JsonUtils.java | yuanweiquan-007/quick.start.orm | 254e41579a4ba3006e0058f4103a424e8e2dbf22 | [
"Apache-2.0"
] | null | null | null | src/main/java/quick/start/util/JsonUtils.java | yuanweiquan-007/quick.start.orm | 254e41579a4ba3006e0058f4103a424e8e2dbf22 | [
"Apache-2.0"
] | 2 | 2020-07-17T11:51:01.000Z | 2020-07-17T11:51:02.000Z | src/main/java/quick/start/util/JsonUtils.java | yuanweiquan-007/quick.start.orm | 254e41579a4ba3006e0058f4103a424e8e2dbf22 | [
"Apache-2.0"
] | null | null | null | 25.23913 | 103 | 0.607522 | 4,671 | package quick.start.util;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.Map;
/**
* @author yuanweiquan
*/
public class JsonUtils {
private final static String DATE_TIME_FORMATTER = "yyyy-MM-dd HH:mm:ss";
private final static ObjectMapper MAPPER = new ObjectMapper()
.setVisibility(PropertyAccessor.FIELD, Visibility.ANY)
.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS)
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
.setDateFormat(new SimpleDateFormat(DATE_TIME_FORMATTER));
/**
* 集合转json
*
* @param data 数据
* @return {@link String}
*/
public static String fromMap(Map<String, Object> data) {
return from(data);
}
/**
* @param data 数据
* @return {@link String}
*/
public static String from(Object data) {
return JSONObject.toJSONString(data);
}
/**
* 转map
*
* @param text 文本
* @return {@link Map}
* @throws IOException ioexception
*/
public static Map<String, Object> toMap(String text) throws IOException {
return to(text, new TypeReference<Map<String, Object>>() {
});
}
/**
* 转maplist
*
* @param text 文本
* @return {@link List}
* @throws IOException ioexception
*/
public static List<Map<String, Object>> toMapList(String text) throws IOException {
return to(text, new TypeReference<List<Map<String, Object>>>() {
});
}
/**
* 分组
*
* @param text 文本
* @return {@link Map}
* @throws IOException ioexception
*/
public static Map<String, Map<String, Object>> toMapKeyed(String text) throws IOException {
return to(text, new TypeReference<Map<String, Map<String, Object>>>() {
});
}
/**
* 分组
*
* @param text 文本
* @return {@link Map}
* @throws IOException ioexception
*/
public static Map<String, List<Map<String, Object>>> toMapGrouped(String text) throws IOException {
return to(text, new TypeReference<Map<String, List<Map<String, Object>>>>() {
});
}
/**
* 转
*
* @param text 文本
* @param reference 参考
* @return {@link E}
* @throws IOException ioexception
*/
public static <E> E to(String text, TypeReference<E> reference) throws IOException {
return MAPPER.readValue(text, reference);
}
/**
* json转对象
*
* @param text 文本
* @param clazz clazz
* @return {@link E}
*/
public static <E> E to(String text, Class<E> clazz) {
try {
return MAPPER.readValue(text, clazz);
} catch (IOException e) {
return null;
}
}
/**
* 是否是json
*
* @param text 文本
* @return boolean
*/
public static boolean is(String text) {
try {
return MAPPER.readTree(text) != null;
} catch (IOException e) {
return false;
}
}
}
|
3e0b11d372b98318b6593942ca0f6a4f99af4c9b | 668 | java | Java | canary-gateway/src/test/java/com/cheaito/canarygateway/CanaryGatewayApplicationTest.java | acheaito/spring-cloud-canary | e969c07563f1995ee4c7f0955d2f0263a60f60f3 | [
"MIT"
] | null | null | null | canary-gateway/src/test/java/com/cheaito/canarygateway/CanaryGatewayApplicationTest.java | acheaito/spring-cloud-canary | e969c07563f1995ee4c7f0955d2f0263a60f60f3 | [
"MIT"
] | null | null | null | canary-gateway/src/test/java/com/cheaito/canarygateway/CanaryGatewayApplicationTest.java | acheaito/spring-cloud-canary | e969c07563f1995ee4c7f0955d2f0263a60f60f3 | [
"MIT"
] | null | null | null | 31.809524 | 106 | 0.738024 | 4,672 | package com.cheaito.canarygateway;
import org.junit.jupiter.api.Test;
import org.mockito.MockedStatic;
import org.springframework.boot.SpringApplication;
import static org.mockito.Mockito.mockStatic;
class CanaryGatewayApplicationTest {
@Test
public void startsSpringApplication() {
try(MockedStatic<SpringApplication> staticMock = mockStatic(SpringApplication.class)) {
staticMock.when(() -> SpringApplication.run(CanaryGatewayApplication.class)).thenReturn(null);
CanaryGatewayApplication.main(new String[]{});
staticMock.verify(() -> SpringApplication.run(CanaryGatewayApplication.class));
}
}
}
|
3e0b138c2cff185952f777947be51f5e6c0ddc5a | 1,620 | java | Java | diomall-order/src/main/java/xyz/zerxoi/diomall/order/config/RabbitConfig.java | Zerxoi/diomall | 2b66a8ff8a47fe95faf2cdf5f0998faa8700a515 | [
"Apache-2.0"
] | null | null | null | diomall-order/src/main/java/xyz/zerxoi/diomall/order/config/RabbitConfig.java | Zerxoi/diomall | 2b66a8ff8a47fe95faf2cdf5f0998faa8700a515 | [
"Apache-2.0"
] | null | null | null | diomall-order/src/main/java/xyz/zerxoi/diomall/order/config/RabbitConfig.java | Zerxoi/diomall | 2b66a8ff8a47fe95faf2cdf5f0998faa8700a515 | [
"Apache-2.0"
] | null | null | null | 33.75 | 99 | 0.680864 | 4,673 | package xyz.zerxoi.diomall.order.config;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;
@Configuration
public class RabbitConfig {
private RabbitTemplate rabbitTemplate;
// setter 注入
@Autowired
public void setRabbitTemplate(RabbitTemplate rabbitTemplate) {
this.rabbitTemplate = rabbitTemplate;
}
@Bean
public MessageConverter messageConverter() {
return new Jackson2JsonMessageConverter();
}
@PostConstruct
public void initRabbitTemplate() {
// correlationData 当前消息的唯一关联数据
// ack 消息是否成功收到
// cause 失败原因
rabbitTemplate.setConfirmCallback((correlationData, ack, cause) -> {
if (ack) {
System.out.println(correlationData);
} else {
System.out.println(cause);
}
});
rabbitTemplate.setReturnCallback((message, replyCode, replyText, exchange, routingKey) -> {
System.out.println("message: " + message);
System.out.println("replyCode: " + replyCode);
System.out.println("replyText: " + replyText);
System.out.println("exchange: " + exchange);
System.out.println("routingKey: " + routingKey);
});
}
}
|
3e0b143bb203bf34496631b2af0baf30b714be14 | 1,081 | java | Java | src/main/java/com/dfremont/tool/hotspotautoconnect/SFRLogonWebPage.java | DamienFremont/tool-wifihotspot-autoreconnect | 0c13ef87c2759930da72f024fe2516e03f2ddc9a | [
"MIT"
] | 1 | 2017-10-18T15:58:18.000Z | 2017-10-18T15:58:18.000Z | src/main/java/com/dfremont/tool/hotspotautoconnect/SFRLogonWebPage.java | DamienFremont/tool-wifihotspot-autoreconnect | 0c13ef87c2759930da72f024fe2516e03f2ddc9a | [
"MIT"
] | null | null | null | src/main/java/com/dfremont/tool/hotspotautoconnect/SFRLogonWebPage.java | DamienFremont/tool-wifihotspot-autoreconnect | 0c13ef87c2759930da72f024fe2516e03f2ddc9a | [
"MIT"
] | null | null | null | 23.5 | 59 | 0.709528 | 4,674 | package com.dfremont.tool.hotspotautoconnect;
import org.openqa.selenium.WebDriver;
import com.dfremont.seleniumtemplate.WebPage;
public class SFRLogonWebPage extends WebPage {
public final String login = "#login";
public final String password = "#password";
public final String conditions = "#conditions";
public final String connexion = "input[name='connexion']";
public final String already = "already";
public SFRLogonWebPage(WebDriver driver) {
super(driver);
}
@Override
public String getUrl() {
return "https://hotspot.wifi.sfr.fr/";
}
@Override
public Boolean isAt() {
return driver.getCurrentUrl().contains(getUrl()) //
&& element(".headerSFR").isDisplayed();
}
public void logon(String usr, String pwd) {
element(login).sendKeys(usr);
element(password).sendKeys(pwd);
element(conditions).click();
element(connexion).click();
}
public Boolean isError() {
return element("#box").isDisplayed() //
&& element("#contenuBox").getText().contains("ERREUR");
}
public void closeError() {
element("#fermerBox a").click();
}
} |
3e0b1476316b4e50e548fe2ce441dc23c2ba49cd | 201 | java | Java | src/main/java/betterwithmods/manual/api/util/package-info.java | sddsd2332/BetterWithMods | 24ff206d9b2c212e71acc06591624454a65a298f | [
"MIT"
] | null | null | null | src/main/java/betterwithmods/manual/api/util/package-info.java | sddsd2332/BetterWithMods | 24ff206d9b2c212e71acc06591624454a65a298f | [
"MIT"
] | null | null | null | src/main/java/betterwithmods/manual/api/util/package-info.java | sddsd2332/BetterWithMods | 24ff206d9b2c212e71acc06591624454a65a298f | [
"MIT"
] | null | null | null | 25.125 | 54 | 0.895522 | 4,675 | @ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package betterwithmods.manual.api.util;
import mcp.MethodsReturnNonnullByDefault;
import javax.annotation.ParametersAreNonnullByDefault;
|
3e0b14e1de4cdc7ad4be3dd3d215d06679417666 | 5,347 | java | Java | api/src/main/java/org/snomed/snap2snomed/model/enumeration/MapStatus.java | aehrc/snap2snomed | 4b242bebe266b34b2bc421c60a34c0e5eacc59aa | [
"Apache-2.0"
] | 2 | 2022-03-11T08:36:55.000Z | 2022-03-14T11:01:06.000Z | api/src/main/java/org/snomed/snap2snomed/model/enumeration/MapStatus.java | aehrc/snap2snomed | 4b242bebe266b34b2bc421c60a34c0e5eacc59aa | [
"Apache-2.0"
] | 12 | 2022-03-11T09:46:16.000Z | 2022-03-29T23:49:26.000Z | api/src/main/java/org/snomed/snap2snomed/model/enumeration/MapStatus.java | aehrc/snap2snomed | 4b242bebe266b34b2bc421c60a34c0e5eacc59aa | [
"Apache-2.0"
] | 2 | 2022-03-11T09:48:17.000Z | 2022-03-30T03:56:19.000Z | 31.269006 | 130 | 0.669908 | 4,676 | /*
* Copyright © 2022 SNOMED International
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.snomed.snap2snomed.model.enumeration;
import java.util.List;
public enum MapStatus {
UNMAPPED {
@Override
public Boolean isValidTransition(MapStatus mapStatus) {
if ( mapStatus == UNMAPPED || mapStatus == DRAFT || mapStatus == MAPPED ) {
return true;
}
return false;
}
@Override
public Boolean isValidTransitionForRole(MapStatus mapStatus, Role role) {
return (role == Role.AUTHOR) && isValidTransition(mapStatus);
}
},
DRAFT {
@Override
public Boolean isValidTransition(MapStatus mapStatus) {
if ( mapStatus == DRAFT || mapStatus == UNMAPPED || mapStatus == MAPPED ) {
return true;
}
return false;
}
@Override
public Boolean isValidTransitionForRole(MapStatus mapStatus, Role role) {
return (role == Role.AUTHOR) && isValidTransition(mapStatus);
}
},
MAPPED {
@Override
public Boolean isValidTransition(MapStatus mapStatus) {
if ( mapStatus == UNMAPPED || mapStatus == DRAFT
|| mapStatus == INREVIEW || mapStatus == ACCEPTED
|| mapStatus == REJECTED || mapStatus == MAPPED ) {
return true;
}
return false;
}
@Override
public Boolean isValidTransitionForRole(MapStatus mapStatus, Role role) {
// This is the transition boundary between Author and Reviewer.
// Authors can only transition to author status and
// reviewers can only transition to a review status
if (role == Role.AUTHOR) {
return isAuthorTransition(mapStatus);
} else if (role == Role.REVIEWER) {
return isReviewTransition(mapStatus);
}
return false;
}
},
INREVIEW {
@Override
public Boolean isValidTransition(MapStatus mapStatus) {
if (mapStatus == INREVIEW || mapStatus == ACCEPTED
|| mapStatus == REJECTED) {
return true;
}
return false;
}
@Override
public Boolean isValidTransitionForRole(MapStatus mapStatus, Role role) {
return (role == Role.REVIEWER) && isValidTransition(mapStatus);
}
},
ACCEPTED {
@Override
public Boolean isValidTransition(MapStatus mapStatus) {
if ( mapStatus == INREVIEW || mapStatus == REJECTED
|| mapStatus == ACCEPTED ) {
return true;
}
return false;
}
@Override
public Boolean isValidTransitionForRole(MapStatus mapStatus, Role role) {
return (role == Role.REVIEWER) && isValidTransition(mapStatus);
}
},
REJECTED {
@Override
public Boolean isValidTransition(MapStatus mapStatus) {
if ( mapStatus == UNMAPPED || mapStatus == DRAFT
|| mapStatus == INREVIEW || mapStatus == ACCEPTED
|| mapStatus == REJECTED || mapStatus == MAPPED ) {
return true;
}
return false;
}
@Override
public Boolean isValidTransitionForRole(MapStatus mapStatus, Role role) {
// This is another transition boundary between Author and Reviewer.
// Authors can only transition back to author status and
// reviewers can only transition to a review status
if (role == Role.AUTHOR) {
return isAuthorTransition(mapStatus);
} else if (role == Role.REVIEWER) {
return isReviewTransition(mapStatus);
}
return false;
}
};
public static enum Role {
AUTHOR("Author", "authoring"),
REVIEWER("Reviewer", "review");
private String name;
private String stateName;
Role(String theName, String theStateName) {
this.name = theName;
this.stateName = theStateName;
}
public String getName() {
return name;
}
public String getStateName() {
return stateName;
}
}
public abstract Boolean isValidTransition(MapStatus mapStatus);
public abstract Boolean isValidTransitionForRole(MapStatus mapStatus, Role role);
private static final List<MapStatus> authorCompleteStatuses = List.of(MapStatus.MAPPED, MapStatus.INREVIEW, MapStatus.ACCEPTED);
private static final List<MapStatus> reviewCompleteStatuses = List.of(MapStatus.ACCEPTED, MapStatus.REJECTED);
public boolean isAuthorState() {
return this.equals(UNMAPPED) || this.equals(DRAFT) || this.equals(MAPPED);
}
public Boolean isAuthorTransition(MapStatus status) {
return status.equals(UNMAPPED) || status.equals(DRAFT) || status.equals(MAPPED);
}
public Boolean isReviewTransition(MapStatus status) {
return status.equals(ACCEPTED) || status.equals(REJECTED) || status.equals(INREVIEW);
}
public static List<MapStatus> getCompletedAuthorStatuses() {
return authorCompleteStatuses;
}
public static List<MapStatus> getCompletedReviewStatuses() {
return reviewCompleteStatuses;
}
}
|
3e0b155c8b7df3086441452478d66d43246e1aa3 | 6,303 | java | Java | sources/modules/flow-engine/src/main/java/com/minsait/onesait/platform/flowengine/nodered/NodeRedLauncher.java | eebonillo/onesaitplatform-cloud | 1bddfd7fa4988d49b6791c981429e41dd034b04c | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2019-09-24T14:55:00.000Z | 2019-10-07T11:48:24.000Z | sources/modules/flow-engine/src/main/java/com/minsait/onesait/platform/flowengine/nodered/NodeRedLauncher.java | eebonillo/onesaitplatform-cloud | 1bddfd7fa4988d49b6791c981429e41dd034b04c | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-10-07T23:42:32.000Z | 2021-03-31T21:53:03.000Z | sources/modules/flow-engine/src/main/java/com/minsait/onesait/platform/flowengine/nodered/NodeRedLauncher.java | onesaitplatform/onesaitplatform-revolution-aut-2 | fa3e5a53961cb43a1f47376e35fcf600b7a4b93b | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-11-22T19:41:48.000Z | 2021-11-22T19:41:48.000Z | 32.489691 | 118 | 0.762335 | 4,677 | /**
* Copyright Indra Soluciones Tecnologías de la Información, S.L.U.
* 2013-2019 SPAIN
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.minsait.onesait.platform.flowengine.nodered;
import java.io.File;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecuteResultHandler;
import org.apache.commons.exec.DefaultExecutor;
import org.apache.commons.exec.ExecuteException;
import org.apache.commons.exec.ExecuteWatchdog;
import org.apache.commons.exec.PumpStreamHandler;
import org.eclipse.jetty.util.RolloverFileOutputStream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import com.minsait.onesait.platform.flowengine.nodered.communication.NodeRedAdminClient;
import com.minsait.onesait.platform.flowengine.nodered.sync.NodeRedDomainSyncMonitor;
import lombok.extern.slf4j.Slf4j;
@Component
@Slf4j
public class NodeRedLauncher {
@Value("${onesaitplatform.flowengine.node.path}")
private String nodePath;
@Value("${onesaitplatform.flowengine.launcher.path}")
private String nodeRedLauncherPath;
@Value("${onesaitplatform.flowengine.launcher.job}")
private String nodeRedJob;
@Value("${onesaitplatform.flowengine.launcher.failsbeforestop.max:10}")
private int maxFailsNumber;
@Value("${onesaitplatform.flowengine.launcher.failsbeforestop.time.millis:60000}")
private int failsBeforeStopMillis;
@Value("${onesaitplatform.flowengine.launcher.reboot.delay.seconds:10}")
private int rebootDelay;
@Value("${onesaitplatform.flowengine.launcher.logging.active:true}")
private Boolean loggingEnabled;
@Value("${onesaitplatform.flowengine.launcher.logging.log:/tmp/log/flowEngine}")
private String debugLog;
@Value("${onesaitplatform.flowengine.launcher.logging.retain.days:5}")
private int debugRatainDays;
@Value("${onesaitplatform.flowengine.launcher.logging.append: false}")
private Boolean logAppend;
private ExecutorService exService = Executors.newSingleThreadExecutor();
@Autowired
private NodeRedAdminClient nodeRedAdminClient;
@Autowired
private NodeRedDomainSyncMonitor nodeRedMonitor;
@PostConstruct
public void init() {
// Stop the flow engine in case it is still up
try {
nodeRedAdminClient.stopFlowEngine();
} catch (Exception e) {
log.warn("Could not stop Flow Engine.");
}
if (null != nodePath && null != nodeRedLauncherPath) {
NodeRedLauncherExecutionThread launcherThread = new NodeRedLauncherExecutionThread(this.nodePath,
this.nodeRedJob, this.nodeRedLauncherPath, this.maxFailsNumber, this.failsBeforeStopMillis,
this.loggingEnabled, this.debugLog);
exService.execute(launcherThread);
}
}
@PreDestroy
public void destroy() {
this.exService.shutdown();
}
private class NodeRedLauncherExecutionThread implements Runnable {
private String nodePath;
private String workingPath;
private String launcherJob;
private int maxFailsNumber;
private int failsBeforeStopMillis;
private boolean stop;
private long lastFailTimestamp;
private int consecutiveFails;
private Boolean loggingEnabled;
private String logPath;
public NodeRedLauncherExecutionThread(String nodePath, String launcherJob, String workingPath,
int maxFailsNumber, int failsBeforeStopMillis, Boolean enableDebugging, String logPath) {
this.nodePath = nodePath;
this.workingPath = workingPath;
this.launcherJob = launcherJob;
this.maxFailsNumber = maxFailsNumber;
this.failsBeforeStopMillis = failsBeforeStopMillis;
this.stop = false;
this.lastFailTimestamp = 0;
this.consecutiveFails = 0;
this.loggingEnabled = enableDebugging;
this.logPath = logPath;
}
public void stop() {
this.stop = true;
nodeRedMonitor.stopMonitor();
}
@Override
public void run() {
CommandLine commandLine = new CommandLine(this.nodePath);
commandLine.addArgument(this.launcherJob);
DefaultExecutor executor = new DefaultExecutor();
executor.setExitValue(0);
executor.setWorkingDirectory(new File(this.workingPath));
while (!stop) {
try {
nodeRedAdminClient.resetSynchronizedWithBDC();
nodeRedMonitor.stopMonitor();
TimeUnit.SECONDS.sleep(rebootDelay);
ExecuteWatchdog watchDog = new ExecuteWatchdog(ExecuteWatchdog.INFINITE_TIMEOUT);
executor.setWatchdog(watchDog);
DefaultExecuteResultHandler handler = new DefaultExecuteResultHandler() {
@Override
public void onProcessComplete(final int exitValue) {
super.onProcessComplete(exitValue);
}
@Override
public void onProcessFailed(final ExecuteException e) {
super.onProcessFailed(e);
processFail();
}
};
if (loggingEnabled) {
executor.setStreamHandler(new PumpStreamHandler(
new RolloverFileOutputStream(logPath + File.separator + "yyyy_mm_dd.debug.log", logAppend, debugRatainDays)));
}
executor.execute(commandLine, handler);
nodeRedMonitor.startMonitor();
handler.waitFor();
} catch (Exception e) {
log.error("Error arrancando NodeRED", e);
this.processFail();
}
}
}
private void processFail() {
long currentTimestamp = System.currentTimeMillis();
// Hace mas de 1 minuto del ultimo fallo
if (currentTimestamp > lastFailTimestamp + this.failsBeforeStopMillis) {
this.consecutiveFails = 1;
} else {
this.consecutiveFails++;
}
lastFailTimestamp = System.currentTimeMillis();
if (this.consecutiveFails > this.maxFailsNumber) {
this.stop();
}
}
}
}
|
3e0b160acac3d7efaea55d8cdafbe90717fdee03 | 649 | java | Java | src/main/java/com/model/entites/Classes.java | shanliangxiaomifeng/ssm_project1 | e5590c2a931ed278a33336eb8f6c917ae9bd4434 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/model/entites/Classes.java | shanliangxiaomifeng/ssm_project1 | e5590c2a931ed278a33336eb8f6c917ae9bd4434 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/model/entites/Classes.java | shanliangxiaomifeng/ssm_project1 | e5590c2a931ed278a33336eb8f6c917ae9bd4434 | [
"Apache-2.0"
] | null | null | null | 16.641026 | 46 | 0.525424 | 4,678 | package com.model.entites;
public class Classes {
private Integer cid;
private String cname;
@Override
public String toString(){
return "Classes{cid=" + cid +
", cname=" + cname +
"}";
}
public Classes(){
}
public Classes(Integer cid, String cname){
this.cid = cid;
this.cname = cname;
}
public Integer getCid() {
return cid;
}
public void setCid(Integer cid) {
this.cid = cid;
}
public String getCname() {
return cname;
}
public void setCname(String cname) {
this.cname = cname;
}
}
|
3e0b164fab419c1998276ad83b95f8bb8a05fff1 | 10,469 | java | Java | server/src/test/java/org/elasticsearch/common/geo/GeometryParserTests.java | diwasjoshi/elasticsearch | 58ce0f94a0bbdf2576e0a00a62abe1854ee7fe2f | [
"Apache-2.0"
] | null | null | null | server/src/test/java/org/elasticsearch/common/geo/GeometryParserTests.java | diwasjoshi/elasticsearch | 58ce0f94a0bbdf2576e0a00a62abe1854ee7fe2f | [
"Apache-2.0"
] | null | null | null | server/src/test/java/org/elasticsearch/common/geo/GeometryParserTests.java | diwasjoshi/elasticsearch | 58ce0f94a0bbdf2576e0a00a62abe1854ee7fe2f | [
"Apache-2.0"
] | null | null | null | 44.172996 | 137 | 0.615054 | 4,679 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
package org.elasticsearch.common.geo;
import org.elasticsearch.ElasticsearchParseException;
import org.elasticsearch.common.Strings;
import org.elasticsearch.geometry.Geometry;
import org.elasticsearch.geometry.GeometryCollection;
import org.elasticsearch.geometry.Line;
import org.elasticsearch.geometry.LinearRing;
import org.elasticsearch.geometry.Point;
import org.elasticsearch.geometry.Polygon;
import org.elasticsearch.geometry.utils.StandardValidator;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.xcontent.ToXContent;
import org.elasticsearch.xcontent.XContentBuilder;
import org.elasticsearch.xcontent.XContentFactory;
import org.elasticsearch.xcontent.XContentParseException;
import org.elasticsearch.xcontent.XContentParser;
import java.util.List;
import java.util.Map;
/**
* Tests for {@link GeometryParser}
*/
public class GeometryParserTests extends ESTestCase {
public void testGeoJsonParsing() throws Exception {
XContentBuilder pointGeoJson = XContentFactory.jsonBuilder()
.startObject()
.field("type", "Point")
.startArray("coordinates")
.value(100.0)
.value(0.0)
.endArray()
.endObject();
try (XContentParser parser = createParser(pointGeoJson)) {
parser.nextToken();
GeometryParserFormat format = GeometryParserFormat.geometryFormat(parser);
assertEquals(
new Point(100, 0),
format.fromXContent(StandardValidator.instance(true), randomBoolean(), randomBoolean(), parser)
);
XContentBuilder newGeoJson = XContentFactory.jsonBuilder();
format.toXContent(new Point(100, 10), newGeoJson, ToXContent.EMPTY_PARAMS);
assertEquals("{\"type\":\"Point\",\"coordinates\":[100.0,10.0]}", Strings.toString(newGeoJson));
}
XContentBuilder pointGeoJsonWithZ = XContentFactory.jsonBuilder()
.startObject()
.field("type", "Point")
.startArray("coordinates")
.value(100.0)
.value(0.0)
.value(10.0)
.endArray()
.endObject();
try (XContentParser parser = createParser(pointGeoJsonWithZ)) {
parser.nextToken();
assertEquals(new Point(100, 0, 10.0), new GeometryParser(true, randomBoolean(), true).parse(parser));
}
try (XContentParser parser = createParser(pointGeoJsonWithZ)) {
parser.nextToken();
expectThrows(IllegalArgumentException.class, () -> new GeometryParser(true, randomBoolean(), false).parse(parser));
}
XContentBuilder polygonGeoJson = XContentFactory.jsonBuilder()
.startObject()
.field("type", "Polygon")
.startArray("coordinates")
.startArray()
.startArray()
.value(100.0)
.value(1.0)
.endArray()
.startArray()
.value(101.0)
.value(1.0)
.endArray()
.startArray()
.value(101.0)
.value(0.0)
.endArray()
.startArray()
.value(100.0)
.value(0.0)
.endArray()
.endArray()
.endArray()
.endObject();
Polygon p = new Polygon(new LinearRing(new double[] { 100d, 101d, 101d, 100d, 100d }, new double[] { 1d, 1d, 0d, 0d, 1d }));
try (XContentParser parser = createParser(polygonGeoJson)) {
parser.nextToken();
// Coerce should automatically close the polygon
assertEquals(p, new GeometryParser(true, true, randomBoolean()).parse(parser));
}
try (XContentParser parser = createParser(polygonGeoJson)) {
parser.nextToken();
// No coerce - the polygon parsing should fail
expectThrows(XContentParseException.class, () -> new GeometryParser(true, false, randomBoolean()).parse(parser));
}
}
public void testWKTParsing() throws Exception {
XContentBuilder pointGeoJson = XContentFactory.jsonBuilder().startObject().field("foo", "Point (100 0)").endObject();
try (XContentParser parser = createParser(pointGeoJson)) {
parser.nextToken(); // Start object
parser.nextToken(); // Field Name
parser.nextToken(); // Field Value
GeometryParserFormat format = GeometryParserFormat.geometryFormat(parser);
assertEquals(
new Point(100, 0),
format.fromXContent(StandardValidator.instance(true), randomBoolean(), randomBoolean(), parser)
);
XContentBuilder newGeoJson = XContentFactory.jsonBuilder().startObject().field("val");
format.toXContent(new Point(100, 10), newGeoJson, ToXContent.EMPTY_PARAMS);
newGeoJson.endObject();
assertEquals("{\"val\":\"POINT (100.0 10.0)\"}", Strings.toString(newGeoJson));
}
// Make sure we can parse values outside the normal lat lon boundaries
XContentBuilder lineGeoJson = XContentFactory.jsonBuilder().startObject().field("foo", "LINESTRING (100 0, 200 10)").endObject();
try (XContentParser parser = createParser(lineGeoJson)) {
parser.nextToken(); // Start object
parser.nextToken(); // Field Name
parser.nextToken(); // Field Value
assertEquals(
new Line(new double[] { 100, 200 }, new double[] { 0, 10 }),
new GeometryParser(true, randomBoolean(), randomBoolean()).parse(parser)
);
}
}
public void testNullParsing() throws Exception {
XContentBuilder pointGeoJson = XContentFactory.jsonBuilder().startObject().nullField("foo").endObject();
try (XContentParser parser = createParser(pointGeoJson)) {
parser.nextToken(); // Start object
parser.nextToken(); // Field Name
parser.nextToken(); // Field Value
GeometryParserFormat format = GeometryParserFormat.geometryFormat(parser);
assertNull(format.fromXContent(StandardValidator.instance(true), randomBoolean(), randomBoolean(), parser));
XContentBuilder newGeoJson = XContentFactory.jsonBuilder().startObject().field("val");
// if we serialize non-null value - it should be serialized as geojson
format.toXContent(new Point(100, 10), newGeoJson, ToXContent.EMPTY_PARAMS);
newGeoJson.endObject();
assertEquals("""
{"val":{"type":"Point","coordinates":[100.0,10.0]}}""", Strings.toString(newGeoJson));
newGeoJson = XContentFactory.jsonBuilder().startObject().field("val");
format.toXContent(null, newGeoJson, ToXContent.EMPTY_PARAMS);
newGeoJson.endObject();
assertEquals("{\"val\":null}", Strings.toString(newGeoJson));
}
}
public void testUnsupportedValueParsing() throws Exception {
XContentBuilder pointGeoJson = XContentFactory.jsonBuilder().startObject().field("foo", 42).endObject();
try (XContentParser parser = createParser(pointGeoJson)) {
parser.nextToken(); // Start object
parser.nextToken(); // Field Name
parser.nextToken(); // Field Value
ElasticsearchParseException ex = expectThrows(
ElasticsearchParseException.class,
() -> new GeometryParser(true, randomBoolean(), randomBoolean()).parse(parser)
);
assertEquals("shape must be an object consisting of type and coordinates", ex.getMessage());
}
}
public void testBasics() {
GeometryParser parser = new GeometryParser(true, randomBoolean(), randomBoolean());
// point
Point expectedPoint = new Point(-122.084110, 37.386637);
testBasics(parser, Map.of("lat", 37.386637, "lon", -122.084110), expectedPoint);
testBasics(parser, "37.386637, -122.084110", expectedPoint);
testBasics(parser, "POINT (-122.084110 37.386637)", expectedPoint);
testBasics(parser, Map.of("type", "Point", "coordinates", List.of(-122.084110, 37.386637)), expectedPoint);
testBasics(parser, List.of(-122.084110, 37.386637), expectedPoint);
// line
Line expectedLine = new Line(new double[] { 0, 1 }, new double[] { 0, 1 });
testBasics(parser, "LINESTRING(0 0, 1 1)", expectedLine);
testBasics(parser, Map.of("type", "LineString", "coordinates", List.of(List.of(0, 0), List.of(1, 1))), expectedLine);
// polygon
Polygon expectedPolygon = new Polygon(new LinearRing(new double[] { 0, 1, 1, 0, 0 }, new double[] { 0, 0, 1, 1, 0 }));
testBasics(parser, "POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))", expectedPolygon);
testBasics(
parser,
Map.of(
"type",
"Polygon",
"coordinates",
List.of(List.of(List.of(0, 0), List.of(1, 0), List.of(1, 1), List.of(0, 1), List.of(0, 0)))
),
expectedPolygon
);
// geometry collection
testBasics(
parser,
List.of(
List.of(-122.084110, 37.386637),
"37.386637, -122.084110",
"POINT (-122.084110 37.386637)",
Map.of("type", "Point", "coordinates", List.of(-122.084110, 37.386637)),
Map.of("type", "LineString", "coordinates", List.of(List.of(0, 0), List.of(1, 1))),
"POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))"
),
new GeometryCollection<>(List.of(expectedPoint, expectedPoint, expectedPoint, expectedPoint, expectedLine, expectedPolygon))
);
expectThrows(ElasticsearchParseException.class, () -> testBasics(parser, "not a geometry", null));
}
private void testBasics(GeometryParser parser, Object value, Geometry expected) {
Geometry geometry = parser.parseGeometry(value);
assertEquals(expected, geometry);
}
}
|
3e0b1739ff09471655d7f3c1f65c0546fe6bc21d | 644 | java | Java | src/backend/turtlequeries/IsPenDown.java | charliewang95/slogo | 3a7cbbb833646716547704fd6508c1c5734cb325 | [
"MIT"
] | null | null | null | src/backend/turtlequeries/IsPenDown.java | charliewang95/slogo | 3a7cbbb833646716547704fd6508c1c5734cb325 | [
"MIT"
] | null | null | null | src/backend/turtlequeries/IsPenDown.java | charliewang95/slogo | 3a7cbbb833646716547704fd6508c1c5734cb325 | [
"MIT"
] | null | null | null | 18.941176 | 67 | 0.695652 | 4,680 | package backend.turtlequeries;
import java.util.ArrayList;
import backend.Command;
import backend.Turtle;
public class IsPenDown extends Command {
private Turtle myTurtle;
private final String PEN_IS_DOWN = "1";
private final String PEN_IS_UP = "0";
public IsPenDown(Turtle t) {
super("TurtleQuery", 0);
myTurtle = t;
}
public String compute(ArrayList<Command> inputs) {
// if(! checkNoInputs(inputs) ) {
// return "0"; //might change because that is the expected output
// }
System.out.println(myTurtle.isPenDown());
if(myTurtle.isPenDown()) {
return PEN_IS_DOWN;
} else {
return PEN_IS_UP;
}
}
} |
3e0b17d7b5fefca4589412cda920a8b9995a9818 | 1,733 | java | Java | tools/core/src/main/java/org/jboss/mapper/camel/blueprint/JxPathExpression.java | bfitzpat/data-mapper | 7a2c0d0f8c96c7bc357ed203d51bcb3af0ed037d | [
"Apache-2.0"
] | null | null | null | tools/core/src/main/java/org/jboss/mapper/camel/blueprint/JxPathExpression.java | bfitzpat/data-mapper | 7a2c0d0f8c96c7bc357ed203d51bcb3af0ed037d | [
"Apache-2.0"
] | null | null | null | tools/core/src/main/java/org/jboss/mapper/camel/blueprint/JxPathExpression.java | bfitzpat/data-mapper | 7a2c0d0f8c96c7bc357ed203d51bcb3af0ed037d | [
"Apache-2.0"
] | null | null | null | 25.485294 | 111 | 0.652048 | 4,681 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.02.13 at 12:09:41 PM EST
//
package org.jboss.mapper.camel.blueprint;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for jxPathExpression complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="jxPathExpression">
* <simpleContent>
* <extension base="<http://camel.apache.org/schema/blueprint>expression">
* <attribute name="lenient" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "jxPathExpression")
public class JxPathExpression
extends Expression
{
@XmlAttribute(name = "lenient")
protected Boolean lenient;
/**
* Gets the value of the lenient property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isLenient() {
return lenient;
}
/**
* Sets the value of the lenient property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setLenient(Boolean value) {
this.lenient = value;
}
}
|
3e0b18092ca2560659ed7ae1a9e55c9e85eb9292 | 1,308 | java | Java | src/main/java/com/ziroom/tech/demeterapi/po/dto/resp/task/AssignDetailResp.java | ziroom-oss/demeter-api | 8d8c0d266b0d9626d62ce94475a9038299c5227c | [
"Apache-2.0"
] | 1 | 2021-12-14T01:33:34.000Z | 2021-12-14T01:33:34.000Z | src/main/java/com/ziroom/tech/demeterapi/po/dto/resp/task/AssignDetailResp.java | ziroom-oss/demeter-api | 8d8c0d266b0d9626d62ce94475a9038299c5227c | [
"Apache-2.0"
] | null | null | null | src/main/java/com/ziroom/tech/demeterapi/po/dto/resp/task/AssignDetailResp.java | ziroom-oss/demeter-api | 8d8c0d266b0d9626d62ce94475a9038299c5227c | [
"Apache-2.0"
] | null | null | null | 18.685714 | 78 | 0.756116 | 4,682 | package com.ziroom.tech.demeterapi.po.dto.resp.task;
import com.ziroom.tech.demeterapi.dao.entity.TaskFinishCondition;
import com.ziroom.tech.demeterapi.dao.entity.TaskFinishOutcome;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* @author daijiankun
*/
@Data
public class AssignDetailResp {
private Long id;
private String taskNo;
private String taskName;
private Date taskStartTime;
private Date taskEndTime;
private Integer taskReward;
private String attachmentUrl;
private String attachmentName;
private Integer taskStatus;
private String taskStatusName;
private Integer taskType;
private String taskTypeName;
private String taskDescription;
private String publisher;
private String publisherName;
private List<String> taskReceiver;
private String receiverName;
private Byte needEmailRemind;
private Byte needPunishment;
private Byte needAcceptance;
private Date createTime;
private Date updateTime;
private String createId;
private String modifyId;
private List<TaskFinishCondition> taskFinishConditionList;
private List<TaskFinishConditionInfoResp> taskFinishConditionInfoRespList;
private List<TaskFinishOutcome> taskFinishOutcomeList;
}
|
3e0b184369459b0ccafe7b08538157ffae76d14f | 3,937 | java | Java | yoko-core/src/test/java/test/obv/TestAbstractSubPOA.java | ngmr/yoko | bd53a16c1a7eb1b2ae1ccc4ded7e0404b185c34c | [
"Apache-2.0"
] | 2 | 2015-07-29T22:53:39.000Z | 2021-11-10T15:02:08.000Z | yoko-core/src/test/java/test/obv/TestAbstractSubPOA.java | ngmr/yoko | bd53a16c1a7eb1b2ae1ccc4ded7e0404b185c34c | [
"Apache-2.0"
] | 32 | 2021-03-11T18:36:39.000Z | 2021-10-05T11:25:15.000Z | yoko-core/src/test/java/test/obv/TestAbstractSubPOA.java | ngmr/yoko | bd53a16c1a7eb1b2ae1ccc4ded7e0404b185c34c | [
"Apache-2.0"
] | 15 | 2015-12-07T03:17:39.000Z | 2021-11-10T15:01:53.000Z | 28.737226 | 76 | 0.576581 | 4,683 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstractSub:1.0
//
public abstract class TestAbstractSubPOA
extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler,
TestAbstractSubOperations
{
static final String[] _ob_ids_ =
{
"IDL:TestAbstractSub:1.0",
"IDL:TestAbstract:1.0"
};
public TestAbstractSub
_this()
{
return TestAbstractSubHelper.narrow(super._this_object());
}
public TestAbstractSub
_this(org.omg.CORBA.ORB orb)
{
return TestAbstractSubHelper.narrow(super._this_object(orb));
}
public String[]
_all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId)
{
return _ob_ids_;
}
public org.omg.CORBA.portable.OutputStream
_invoke(String opName,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
final String[] _ob_names =
{
"abstract_op",
"sub_op"
};
int _ob_left = 0;
int _ob_right = _ob_names.length;
int _ob_index = -1;
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(opName);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
if(_ob_index == -1 && opName.charAt(0) == '_')
{
_ob_left = 0;
_ob_right = _ob_names.length;
String _ob_ami_op =
opName.substring(1);
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(_ob_ami_op);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
}
switch(_ob_index)
{
case 0: // abstract_op
return _OB_op_abstract_op(in, handler);
case 1: // sub_op
return _OB_op_sub_op(in, handler);
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private org.omg.CORBA.portable.OutputStream
_OB_op_abstract_op(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
abstract_op();
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_sub_op(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
sub_op();
out = handler.createReply();
return out;
}
}
|
3e0b18612cc10e866575f7ca4619e18da375b8d0 | 933 | java | Java | saksbehandling/webapp/src/main/java/no/nav/foreldrepenger/web/server/jetty/JettyWebKonfigurasjon.java | navikt/spsak | ede4770de33bd896d62225a9617b713878d1efa5 | [
"MIT"
] | 1 | 2019-11-15T10:37:38.000Z | 2019-11-15T10:37:38.000Z | saksbehandling/webapp/src/main/java/no/nav/foreldrepenger/web/server/jetty/JettyWebKonfigurasjon.java | navikt/spsak | ede4770de33bd896d62225a9617b713878d1efa5 | [
"MIT"
] | null | null | null | saksbehandling/webapp/src/main/java/no/nav/foreldrepenger/web/server/jetty/JettyWebKonfigurasjon.java | navikt/spsak | ede4770de33bd896d62225a9617b713878d1efa5 | [
"MIT"
] | 1 | 2019-11-15T10:37:41.000Z | 2019-11-15T10:37:41.000Z | 23.325 | 101 | 0.677385 | 4,684 | package no.nav.foreldrepenger.web.server.jetty;
public class JettyWebKonfigurasjon implements AppKonfigurasjon {
private static final String CONTEXT_PATH = "/fpsak";
private static final String SWAGGER_HASH = "sha256-2OFkVkSnWOWr0W45P5X5WhpI4DLkq4U03TPyK91dmfk=";
private Integer serverPort;
public JettyWebKonfigurasjon() {}
public JettyWebKonfigurasjon(int serverPort) {
this.serverPort = serverPort;
}
@Override
public int getServerPort() {
if (serverPort == null) {
return AppKonfigurasjon.DEFAULT_SERVER_PORT;
}
return serverPort;
}
@Override
public String getContextPath() {
return CONTEXT_PATH;
}
@Override
public int getSslPort() {
throw new IllegalStateException("SSL port should only be used locally");
}
@Override
public String getSwaggerHash() {
return SWAGGER_HASH;
}
}
|
3e0b1877b6cea1e6cb9a6c84321ac9f2a95a7610 | 4,014 | java | Java | aliyun-java-sdk-r-kvstore/src/main/java/com/aliyuncs/r_kvstore/model/v20150101/MigrateToOtherZoneRequest.java | hegar/aliyun-openapi-java-sdk | d5c96c3ab664273ce30856e3d9d694170898a47d | [
"Apache-2.0"
] | 3 | 2021-01-25T16:15:23.000Z | 2021-01-25T16:15:54.000Z | aliyun-java-sdk-r-kvstore/src/main/java/com/aliyuncs/r_kvstore/model/v20150101/MigrateToOtherZoneRequest.java | hegar/aliyun-openapi-java-sdk | d5c96c3ab664273ce30856e3d9d694170898a47d | [
"Apache-2.0"
] | null | null | null | aliyun-java-sdk-r-kvstore/src/main/java/com/aliyuncs/r_kvstore/model/v20150101/MigrateToOtherZoneRequest.java | hegar/aliyun-openapi-java-sdk | d5c96c3ab664273ce30856e3d9d694170898a47d | [
"Apache-2.0"
] | null | null | null | 23.473684 | 90 | 0.722471 | 4,685 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.r_kvstore.model.v20150101;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
* @version
*/
public class MigrateToOtherZoneRequest extends RpcAcsRequest<MigrateToOtherZoneResponse> {
public MigrateToOtherZoneRequest() {
super("R-kvstore", "2015-01-01", "MigrateToOtherZone", "redisa");
}
private String vSwitchId;
private Long resourceOwnerId;
private String securityToken;
private String resourceOwnerAccount;
private String effectiveTime;
private String ownerAccount;
private String zoneId;
private String dBInstanceId;
private Long ownerId;
public String getVSwitchId() {
return this.vSwitchId;
}
public void setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
if(vSwitchId != null){
putQueryParameter("VSwitchId", vSwitchId);
}
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}
public String getBizSecurityToken() {
return this.securityToken;
}
public void setBizSecurityToken(String securityToken) {
this.securityToken = securityToken;
if(securityToken != null){
putQueryParameter("SecurityToken", securityToken);
}
}
/**
* @deprecated use getBizSecurityToken instead of this.
*/
@Deprecated
public String getSecurityToken() {
return this.securityToken;
}
/**
* @deprecated use setBizSecurityToken instead of this.
*/
@Deprecated
public void setSecurityToken(String securityToken) {
this.securityToken = securityToken;
if(securityToken != null){
putQueryParameter("SecurityToken", securityToken);
}
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}
public String getEffectiveTime() {
return this.effectiveTime;
}
public void setEffectiveTime(String effectiveTime) {
this.effectiveTime = effectiveTime;
if(effectiveTime != null){
putQueryParameter("EffectiveTime", effectiveTime);
}
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
if(ownerAccount != null){
putQueryParameter("OwnerAccount", ownerAccount);
}
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
if(zoneId != null){
putQueryParameter("ZoneId", zoneId);
}
}
public String getDBInstanceId() {
return this.dBInstanceId;
}
public void setDBInstanceId(String dBInstanceId) {
this.dBInstanceId = dBInstanceId;
if(dBInstanceId != null){
putQueryParameter("DBInstanceId", dBInstanceId);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
@Override
public Class<MigrateToOtherZoneResponse> getResponseClass() {
return MigrateToOtherZoneResponse.class;
}
}
|
3e0b18875c99e2fb6b8d3f6212feaf264f31c0fa | 2,737 | java | Java | bus-validate/src/main/java/org/aoju/bus/validate/annotation/Complex.java | ccoderJava/bus | d167dfda1a57c4156de86d84003dc016cb82e87e | [
"MIT"
] | 386 | 2019-07-24T02:33:17.000Z | 2022-03-27T02:05:04.000Z | bus-validate/src/main/java/org/aoju/bus/validate/annotation/Complex.java | ccoderJava/bus | d167dfda1a57c4156de86d84003dc016cb82e87e | [
"MIT"
] | 11 | 2019-11-25T10:17:27.000Z | 2022-03-31T18:35:40.000Z | bus-validate/src/main/java/org/aoju/bus/validate/annotation/Complex.java | ccoderJava/bus | d167dfda1a57c4156de86d84003dc016cb82e87e | [
"MIT"
] | 82 | 2019-08-06T04:11:56.000Z | 2022-03-25T05:45:16.000Z | 42.765625 | 82 | 0.479722 | 4,686 | /*********************************************************************************
* *
* The MIT License (MIT) *
* *
* Copyright (c) 2015-2021 aoju.org and other contributors. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to deal *
* in the Software without restriction, including without limitation the rights *
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
* copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *
* The above copyright notice and this permission notice shall be included in *
* all copies or substantial portions of the Software. *
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
* THE SOFTWARE. *
* *
********************************************************************************/
package org.aoju.bus.validate.annotation;
import org.aoju.bus.core.lang.Normal;
import org.aoju.bus.validate.validators.Matcher;
import java.lang.annotation.*;
/**
* 自定义校验注解元注解,在任意的注解定义上,增加该注解标明这是一个校验注解
*
* <p>
* 在校验环境
* </P>
*
* @author Kimi Liu
* @version 6.3.2
* @since JDK 1.8+
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.ANNOTATION_TYPE})
public @interface Complex {
/**
* 校验器名称, 优先使用类型匹配
*
* @return the string
*/
String value() default Normal.EMPTY;
/**
* 校验器类, 优先使用类型匹配
*
* @return the object
*/
Class<? extends Matcher> clazz() default Matcher.class;
}
|
3e0b19a3216c5b98c687d92b0701631aa86ace82 | 2,415 | java | Java | thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/tracking/RequestStatisticsLogger.java | HoraceChoi95/incubator-pinot | b2608adfc3cd3e3ccf982df6347e8d2cfa6f8e44 | [
"Apache-2.0"
] | 2 | 2019-03-25T23:42:42.000Z | 2019-04-01T23:07:01.000Z | thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/tracking/RequestStatisticsLogger.java | IronOnet/incubator-pinot | bb835df5f903d55c08ab263d81b1db4d61e44ff2 | [
"Apache-2.0"
] | 43 | 2019-10-14T16:22:39.000Z | 2021-08-02T16:58:41.000Z | thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/tracking/RequestStatisticsLogger.java | IronOnet/incubator-pinot | bb835df5f903d55c08ab263d81b1db4d61e44ff2 | [
"Apache-2.0"
] | 2 | 2020-07-08T12:56:07.000Z | 2020-07-29T05:51:15.000Z | 36.590909 | 95 | 0.762319 | 4,687 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pinot.thirdeye.tracking;
import org.apache.pinot.thirdeye.anomaly.utils.ThirdeyeMetricsUtil;
import org.apache.pinot.thirdeye.common.time.TimeGranularity;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class RequestStatisticsLogger implements Runnable {
private static final Logger LOG = LoggerFactory.getLogger(RequestStatisticsLogger.class);
private ScheduledExecutorService scheduledExecutorService;
private TimeGranularity runFrequency;
public RequestStatisticsLogger(TimeGranularity runFrequency) {
this.runFrequency = runFrequency;
this.scheduledExecutorService = Executors.newSingleThreadScheduledExecutor();
}
@Override
public void run() {
try {
long timestamp = System.nanoTime();
RequestStatistics stats = ThirdeyeMetricsUtil.getRequestLog().getStatistics(timestamp);
ThirdeyeMetricsUtil.getRequestLog().truncate(timestamp);
RequestStatisticsFormatter formatter = new RequestStatisticsFormatter();
LOG.info("Recent request performance statistics:\n{}", formatter.format(stats));
} catch (Exception e) {
LOG.error("Could not generate statistics", e);
}
}
public void start() {
LOG.info("starting logger");
this.scheduledExecutorService.scheduleWithFixedDelay(this,
this.runFrequency.getSize(), this.runFrequency.getSize(), this.runFrequency.getUnit());
}
public void shutdown() {
LOG.info("stopping logger");
this.scheduledExecutorService.shutdown();
}
}
|
3e0b1b322946f0cb1dd69b4809ac3557904353c3 | 5,101 | java | Java | Corpus/birt/6735.java | JamesCao2048/BlizzardData | a524bec4f0d297bb748234eeb1c2fcdee3dce7d7 | [
"MIT"
] | 1 | 2022-01-15T02:47:45.000Z | 2022-01-15T02:47:45.000Z | Corpus/birt/6735.java | JamesCao2048/BlizzardData | a524bec4f0d297bb748234eeb1c2fcdee3dce7d7 | [
"MIT"
] | null | null | null | Corpus/birt/6735.java | JamesCao2048/BlizzardData | a524bec4f0d297bb748234eeb1c2fcdee3dce7d7 | [
"MIT"
] | null | null | null | 31.68323 | 103 | 0.693786 | 4,688 | /*******************************************************************************
* Copyright (c) 2011 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.birt.data.engine.impl;
import java.util.Map;
import org.eclipse.birt.core.data.ExpressionUtil;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.data.engine.api.IBaseQueryResults;
import org.eclipse.birt.data.engine.api.IBinding;
import org.eclipse.birt.data.engine.api.IQueryDefinition;
import org.eclipse.birt.data.engine.api.IQueryResults;
import org.eclipse.birt.data.engine.api.querydefn.Binding;
import org.eclipse.birt.data.engine.api.querydefn.NoRecalculateIVQuery;
import org.eclipse.birt.data.engine.api.querydefn.ScriptExpression;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.executor.transform.NoRecalculateIVResultSet;
import org.eclipse.birt.data.engine.impl.document.QueryResultIDUtil;
import org.eclipse.birt.data.engine.odi.IDataSetPopulator;
import org.eclipse.birt.data.engine.odi.IEventHandler;
import org.eclipse.birt.data.engine.odi.IResultIterator;
import org.mozilla.javascript.Scriptable;
/**
* Prepared query for no recalculate IV query.
*/
public class PreparedNoRecalculateIVQuery extends PreparedIVQuerySourceQuery
{
private String resultSetId;
PreparedNoRecalculateIVQuery( DataEngineImpl dataEngine,
IQueryDefinition queryDefn, Map appContext,
IQueryContextVisitor visitor ) throws DataException
{
super( dataEngine, queryDefn, appContext, visitor );
}
/*
* (non-Javadoc)
*
* @see
* org.eclipse.birt.data.engine.impl.PreparedIVQuerySourceQuery#prepareQuery
* ()
*/
protected void prepareQuery( ) throws DataException
{
// Load previous query.
try
{
this.queryResults = PreparedQueryUtil.newInstance( engine,
(IQueryDefinition) queryDefn.getSourceQuery( ),
this.appContext ).execute( null );
( (NoRecalculateIVQuery) queryDefn ).setSourceQuery( null );
}
catch ( BirtException e )
{
throw DataException.wrap( e );
}
if ( !hasBinding )
{
IBinding[] bindings = new IBinding[0];
if ( queryResults != null
&& queryResults.getPreparedQuery( ) != null )
{
IQueryDefinition queryDefinition = queryResults.getPreparedQuery( )
.getReportQueryDefn( );
bindings = (IBinding[]) queryDefinition.getBindings( )
.values( )
.toArray( new IBinding[0] );
}
for ( int i = 0; i < bindings.length; i++ )
{
IBinding binding = bindings[i];
if ( !this.queryDefn.getBindings( )
.containsKey( binding.getBindingName( ) ) )
this.queryDefn.addBinding( new Binding( binding.getBindingName( ),
new ScriptExpression( ExpressionUtil.createJSDataSetRowExpression( binding.getBindingName( ) ),
binding.getDataType( ) ) ) );
}
}
}
protected void initializeExecution( IBaseQueryResults outerResults,
Scriptable scope ) throws DataException
{
String basedID = queryDefn.getQueryResultsID( );
String _1partID = QueryResultIDUtil.get1PartID( basedID );
if ( _1partID == null )
resultSetId = basedID;
else
resultSetId = _1partID;
}
protected IQueryResults produceQueryResults(
IBaseQueryResults outerResults, Scriptable scope )
throws DataException
{
QueryResults queryResults = preparedQuery.doPrepare( outerResults,
scope,
newExecutor( ),
this );
queryResults.setID( resultSetId );
return queryResults;
}
protected QueryExecutor newExecutor( )
{
return new NoUpdateAggrFilterIVQuerySourceExecutor( engine.getSession( )
.getSharedScope( ) );
}
protected class NoUpdateAggrFilterIVQuerySourceExecutor extends IVQuerySourceExecutor
{
NoUpdateAggrFilterIVQuerySourceExecutor( Scriptable sharedScope )
{
super( sharedScope );
ignoreDataSetFilter = true;
}
protected IResultIterator executeOdiQuery( IEventHandler eventHandler )
throws DataException
{
try
{
org.eclipse.birt.data.engine.impl.document.ResultIterator sourceData =
(org.eclipse.birt.data.engine.impl.document.ResultIterator) queryResults.getResultIterator( );
IDataSetPopulator querySourcePopulator = new IVQuerySourcePopulator( sourceData,
getResultClass( ),
query,
queryDefn.getStartingRow( ) );
return new NoRecalculateIVResultSet( query,
resultClass,
querySourcePopulator,
eventHandler,
engine.getSession( ),
sourceData.getGroupInfos( ) );
}
catch ( BirtException e )
{
throw DataException.wrap( e );
}
}
}
}
|
3e0b1b3b1aa913c2c2203b5aa4a247cabba4f530 | 28,990 | java | Java | src/main/java/de/hterhors/semanticmr/crf/SemanticParsingCRFIterator.java | hterhors/SemanticMachineReading | 6ead021e736761baf143b4afc52440b07b977d44 | [
"Apache-2.0"
] | 1 | 2019-12-02T17:11:18.000Z | 2019-12-02T17:11:18.000Z | src/main/java/de/hterhors/semanticmr/crf/SemanticParsingCRFIterator.java | hterhors/SemanticMachineReading | 6ead021e736761baf143b4afc52440b07b977d44 | [
"Apache-2.0"
] | 3 | 2021-03-31T21:51:34.000Z | 2021-12-14T21:19:18.000Z | src/main/java/de/hterhors/semanticmr/crf/SemanticParsingCRFIterator.java | hterhors/SemanticMachineReading | 6ead021e736761baf143b4afc52440b07b977d44 | [
"Apache-2.0"
] | null | null | null | 37.503234 | 117 | 0.714936 | 4,689 | package de.hterhors.semanticmr.crf;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Random;
import java.util.Spliterator;
import java.util.Spliterators;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.google.common.util.concurrent.AtomicDouble;
import de.hterhors.semanticmr.crf.exploration.IExplorationStrategy;
import de.hterhors.semanticmr.crf.helper.log.LogUtils;
import de.hterhors.semanticmr.crf.learner.AdvancedLearner;
import de.hterhors.semanticmr.crf.model.Model;
import de.hterhors.semanticmr.crf.of.IObjectiveFunction;
import de.hterhors.semanticmr.crf.of.SlotFillingObjectiveFunction;
import de.hterhors.semanticmr.crf.sampling.AbstractSampler;
import de.hterhors.semanticmr.crf.sampling.impl.AcceptStrategies;
import de.hterhors.semanticmr.crf.sampling.impl.SamplerCollection;
import de.hterhors.semanticmr.crf.sampling.stopcrit.ISamplingStoppingCriterion;
import de.hterhors.semanticmr.crf.sampling.stopcrit.ITrainingStoppingCriterion;
import de.hterhors.semanticmr.crf.sampling.stopcrit.impl.ConverganceCrit;
import de.hterhors.semanticmr.crf.structure.IEvaluatable.Score;
import de.hterhors.semanticmr.crf.structure.IEvaluatable.Score.EScoreType;
import de.hterhors.semanticmr.crf.structure.annotations.AbstractAnnotation;
import de.hterhors.semanticmr.crf.structure.annotations.EntityTemplate;
import de.hterhors.semanticmr.crf.structure.annotations.SlotType;
import de.hterhors.semanticmr.crf.variables.Annotations;
import de.hterhors.semanticmr.crf.variables.IStateInitializer;
import de.hterhors.semanticmr.crf.variables.Instance;
import de.hterhors.semanticmr.crf.variables.State;
import de.hterhors.semanticmr.eval.CartesianEvaluator;
import de.hterhors.semanticmr.eval.EEvaluationDetail;
import de.hterhors.semanticmr.eval.NerlaEvaluator;
public class SemanticParsingCRFIterator implements ISemanticParsingCRF {
public static final DecimalFormat SCORE_FORMAT = new DecimalFormat("0.00000");
private static Logger log = LogManager.getFormatterLogger("SlotFilling");
/**
* The maximum number of sampling steps per instance. This prevents infinite
* loops if no stopping criterion ever matches.
*/
final static public int MAX_SAMPLING = 200;
private static final String COVERAGE_CONTEXT = "===========COVERAGE============\n";
private static final String TRAIN_CONTEXT = "===========TRAIN============\n";
private static final String INTERMEDIATE_CONTEXT = "===========INTERMEDIATE============\n";
private static final String TEST_CONTEXT = "===========TEST============\n";
public final List<IExplorationStrategy> explorerList;
final Model model;
final IObjectiveFunction objectiveFunction;
final AbstractSampler sampler;
private IStateInitializer initializer;
public void setInitializer(IStateInitializer initializer) {
this.initializer = initializer;
}
public IStateInitializer getInitializer() {
return initializer;
}
private CRFStatistics trainingStatistics;
private CRFStatistics testStatistics;
private IObjectiveFunction coverageObjectiveFunction = new SlotFillingObjectiveFunction(EScoreType.MICRO,
new CartesianEvaluator(EEvaluationDetail.ENTITY_TYPE, EEvaluationDetail.DOCUMENT_LINKED));
public SemanticParsingCRFIterator(Model model, IExplorationStrategy explorer, AbstractSampler sampler,
IObjectiveFunction objectiveFunction) {
this(model, Arrays.asList(explorer), sampler, objectiveFunction);
}
public SemanticParsingCRFIterator(Model model, List<IExplorationStrategy> explorer, AbstractSampler sampler,
IObjectiveFunction objectiveFunction) {
this.model = model;
this.explorerList = explorer;
this.objectiveFunction = objectiveFunction;
this.sampler = sampler;
}
public SemanticParsingCRFIterator(Model model, List<IExplorationStrategy> explorerList, AbstractSampler sampler,
IStateInitializer stateInitializer, IObjectiveFunction trainingObjectiveFunction) {
this.model = model;
this.explorerList = explorerList;
this.objectiveFunction = trainingObjectiveFunction;
this.sampler = sampler;
this.initializer = stateInitializer;
}
public Map<Instance, State> train(final AdvancedLearner learner, final List<Instance> trainingInstances,
final int numberOfEpochs, final ISamplingStoppingCriterion[] samplingStoppingCrits) {
return train(learner, trainingInstances, numberOfEpochs, new ITrainingStoppingCriterion[] {},
samplingStoppingCrits);
}
// public Map<Instance, State> train(final AdvancedLearner learner, final List<Instance> trainingInstances,
// final int numberOfEpochs, final ITrainingStoppingCriterion[] trainingStoppingCrits) {
// return train(learner, trainingInstances, numberOfEpochs, trainingStoppingCrits,
// new ISamplingStoppingCriterion[] {});
// }
public Map<Instance, State> train(final AdvancedLearner learner, List<Instance> trainingInstances,
final int numberOfEpochs, final ITrainingStoppingCriterion[] trainingStoppingCrits,
final ISamplingStoppingCriterion[] samplingStoppingCrits) {
this.trainingStatistics = new CRFStatistics("Train");
log.info("Start training procedure...");
this.trainingStatistics.startTrainingTime = System.currentTimeMillis();
final Map<Instance, State> finalStates = new LinkedHashMap<>();
// Map<Integer, Double> lastModelWeights = new HashMap<>();
trainingInstances = new ArrayList<>(trainingInstances);
/**
* TODO: PARAMETERIZE
*/
boolean includeLeaveOnePropertyOut = false;
// Score: SPECIES_GENDER_WEIGHT_AGE_CATEGORY_AGE 0.94 0.95 0.94
// Score: SPECIES_GENDER_WEIGHT_AGE_CATEGORY_AGE 0.93 0.94 0.91
// standard: Score [getF1()=0.425, getPrecision()=0.598, getRecall()=0.330, tp=61, fp=41, fn=124, tn=0]
// only root: Score [getF1()=0.548, getPrecision()=0.575, getRecall()=0.523, tp=23, fp=17, fn=21, tn=0]
// CRFStatistics [context=Train, getTotalDuration()=85465]
// CRFStatistics [context=Test, getTotalDuration()=299]
// Compute coverage...
// Coverage Training: Score [getF1()=0.931, getPrecision()=1.000, getRecall()=0.871, tp=651, fp=0, fn=96, tn=0]
// Compute coverage...
// Coverage Development: Score [getF1()=0.876, getPrecision()=0.967, getRecall()=0.800, tp=148, fp=5, fn=37, tn=0]
// modelName: Injury9847
// standard: Score [getF1()=0.432, getPrecision()=0.608, getRecall()=0.335, tp=62, fp=40, fn=123, tn=0]
// only root: Score [getF1()=0.571, getPrecision()=0.600, getRecall()=0.545, tp=24, fp=16, fn=20, tn=0]
// CRFStatistics [context=Train, getTotalDuration()=65265]
// CRFStatistics [context=Test, getTotalDuration()=189]
// Compute coverage...
// Coverage Training: Score [getF1()=0.931, getPrecision()=1.000, getRecall()=0.871, tp=651, fp=0, fn=96, tn=0]
// Compute coverage...
// Coverage Development: Score [getF1()=0.876, getPrecision()=0.967, getRecall()=0.800, tp=148, fp=5, fn=37, tn=0]
// modelName: Injury1364
// Collections.sort(trainingInstances);
Random random = new Random(1000L);
for (int epoch = 0; epoch < numberOfEpochs; epoch++) {
Collections.shuffle(trainingInstances, new Random(random.nextLong()));
Map<SlotType, Boolean> leaveOnePropertyOut = null;
if (includeLeaveOnePropertyOut) {
leaveOnePropertyOut = SlotType.storeExcludance();
List<SlotType> types = leaveOnePropertyOut.entrySet().stream().filter(a -> !a.getValue())
.map(a -> a.getKey()).collect(Collectors.toList());
types.get(random.nextInt(types.size())).exclude();
}
log.info("############");
log.info("# Epoch: " + (epoch + 1) + " #");
log.info("############");
final boolean sampleBasedOnObjectiveFunction = sampler.sampleBasedOnObjectiveScore(epoch);
int instanceIndex = 0;
for (Instance instance : trainingInstances) {
final List<State> producedStateChain = new ArrayList<>();
State currentState = initializer.getInitState(instance);
objectiveFunction.score(currentState);
finalStates.put(instance, currentState);
producedStateChain.add(currentState);
int samplingStep;
sampling: for (samplingStep = 0; samplingStep < 1000 + MAX_SAMPLING; samplingStep++) {
for (IExplorationStrategy explorer : explorerList) {
// explorer.set(currentState);
State candidateState = currentState;
double maxValue = 0;
while (explorer.hasNext()) {
State proposalState = explorer.next();
final double newVal;
if (sampleBasedOnObjectiveFunction) {
objectiveFunction.score(proposalState);
newVal = proposalState.getObjectiveScore();
} else {
model.score(proposalState);
newVal = proposalState.getModelScore();
}
if (newVal >= maxValue) {
maxValue = newVal;
candidateState = proposalState;
if (currentState.getObjectiveScore() == 1.0)
break;
}
}
scoreSelectedStates(sampleBasedOnObjectiveFunction, currentState, candidateState);
boolean isAccepted = sampler.getAcceptanceStrategy(epoch).isAccepted(candidateState,
currentState);
model.updateWeights(learner, currentState, candidateState);
if (isAccepted) {
currentState = candidateState;
// LogUtils.logState(log,
// INTERMEDIATE_CONTEXT + " [" + (epoch + 1) + "/" + numberOfEpochs + "]" + "[" + ++instanceIndex + "/"
// + trainingInstances.size() + "]" + "[" + (samplingStep + 1) + "]",
// instance, currentState);
}
producedStateChain.add(currentState);
finalStates.put(instance, currentState);
if (currentState.getObjectiveScore() == 1.0D)
break sampling;
}
if (meetsSamplingStoppingCriterion(samplingStoppingCrits, producedStateChain))
break sampling;
}
this.trainingStatistics.endTrainingTime = System.currentTimeMillis();
LogUtils.logState(log,
TRAIN_CONTEXT + " [" + (epoch + 1) + "/" + numberOfEpochs + "]" + "[" + ++instanceIndex + "/"
+ trainingInstances.size() + "]" + "[" + (samplingStep + 1) + "]",
instance, currentState);
log.info("Time: " + this.trainingStatistics.getTotalDuration());
}
if (includeLeaveOnePropertyOut)
SlotType.restoreExcludance(leaveOnePropertyOut);
// Map<Integer, Double> currentModelWeights = model.getFactorTemplates().stream()
// .flatMap(t -> t.getWeights().getFeatures().entrySet().stream())
// .collect(Collectors.toMap(k -> k.getKey(), v -> v.getValue()));
//
// double modelWeightsDiff = computeThreshold(currentModelWeights, lastModelWeights);
// Score a = new Score();
// NerlaEvaluator eval = new NerlaEvaluator(EEvaluationDetail.ENTITY_TYPE);
// for (Entry<Instance, State> e : finalStates.entrySet()) {
//
// List<EntityTemplate> goldAnnotations = e.getValue().getGoldAnnotations().getAnnotations();
// List<EntityTemplate> predictedAnnotations = e.getValue().getCurrentPredictions().getAnnotations();
//
// List<Integer> bestAssignment = ((CartesianEvaluator) predictionObjectiveFunction.getEvaluator())
// .getBestAssignment(goldAnnotations, predictedAnnotations);
// Score score = simpleEvaluate(false, eval, bestAssignment, goldAnnotations, predictedAnnotations);
// a.add(score);
//
// }
//
// Score s = new Score();
// for (Entry<Instance, State> e : predict(testInstances, new MaxChainLengthCrit(10)).entrySet()) {
//
// List<EntityTemplate> goldAnnotations = e.getValue().getGoldAnnotations().getAnnotations();
// List<EntityTemplate> predictedAnnotations = e.getValue().getCurrentPredictions().getAnnotations();
//
// List<Integer> bestAssignment = ((CartesianEvaluator) predictionObjectiveFunction.getEvaluator())
// .getBestAssignment(goldAnnotations, predictedAnnotations);
// Score score = simpleEvaluate(false, eval, bestAssignment, goldAnnotations, predictedAnnotations);
// s.add(score);
//
// }
// log.info("DIFF\t" + modelWeightsDiff + "\t" + s.getF1() + "\t" + s.getPrecision() + "\t" + s.getRecall()
// + "\t" + a.getF1() + "\t" + a.getPrecision() + "\t" + a.getRecall());
// if (modelWeightsDiff < 0.01)
// break;
if (meetsTrainingStoppingCriterion(trainingStoppingCrits, finalStates))
break;
// lastModelWeights = currentModelWeights;
// Collections.shuffle(trainingInstances);
}
this.trainingStatistics.endTrainingTime = System.currentTimeMillis();
return finalStates;
}
private Score simpleEvaluate(boolean print, NerlaEvaluator evaluator, List<Integer> bestAssignment,
List<EntityTemplate> goldAnnotations, List<EntityTemplate> predictedAnnotationsBaseline) {
Score simpleScore = new Score();
for (int goldIndex = 0; goldIndex < bestAssignment.size(); goldIndex++) {
final int predictIndex = bestAssignment.get(goldIndex);
/*
* Treatments
*/
List<AbstractAnnotation> goldTreatments = new ArrayList<>(goldAnnotations.get(goldIndex)
.getMultiFillerSlot(SlotType.get("hasTreatmentType")).getSlotFiller());
List<AbstractAnnotation> predictTreatments = new ArrayList<>(predictedAnnotationsBaseline.get(predictIndex)
.getMultiFillerSlot(SlotType.get("hasTreatmentType")).getSlotFiller());
Score s;
if (goldTreatments.isEmpty() && predictTreatments.isEmpty())
s = new Score(1, 0, 0);
else
s = evaluator.prf1(goldTreatments, predictTreatments);
simpleScore.add(s);
/*
* OrganismModel
*/
List<AbstractAnnotation> goldOrganismModel = Arrays.asList(
goldAnnotations.get(goldIndex).getSingleFillerSlotOfName("hasOrganismModel").getSlotFiller())
.stream().filter(a -> a != null).collect(Collectors.toList());
List<AbstractAnnotation> predictOrganismModel = Arrays.asList(predictedAnnotationsBaseline.get(predictIndex)
.getSingleFillerSlotOfName("hasOrganismModel").getSlotFiller()).stream().filter(a -> a != null)
.collect(Collectors.toList());
simpleScore.add(evaluator.prf1(goldOrganismModel, predictOrganismModel));
/*
* InjuryModel
*/
List<AbstractAnnotation> goldInjuryModel = Arrays
.asList(goldAnnotations.get(goldIndex).getSingleFillerSlotOfName("hasInjuryModel").getSlotFiller())
.stream().filter(a -> a != null).collect(Collectors.toList());
List<AbstractAnnotation> predictInjuryModel = Arrays.asList(predictedAnnotationsBaseline.get(predictIndex)
.getSingleFillerSlotOfName("hasInjuryModel").getSlotFiller()).stream().filter(a -> a != null)
.collect(Collectors.toList());
simpleScore.add(evaluator.prf1(goldInjuryModel, predictInjuryModel));
}
return simpleScore;
}
private double computeThreshold(Map<Integer, Double> currentModelWeights, Map<Integer, Double> lastModelWeights) {
double diff = 0;
for (Integer currentKey : currentModelWeights.keySet()) {
if (lastModelWeights.containsKey(currentKey)) {
diff += Math.abs(lastModelWeights.get(currentKey) - currentModelWeights.get(currentKey));
} else {
diff += currentModelWeights.get(currentKey);
}
}
for (Integer currentKey : lastModelWeights.keySet()) {
if (!currentModelWeights.containsKey(currentKey)) {
diff += lastModelWeights.get(currentKey);
}
}
return diff;
}
private boolean meetsSamplingStoppingCriterion(ISamplingStoppingCriterion[] stoppingCriterion,
final List<State> producedStateChain) {
for (ISamplingStoppingCriterion sc : stoppingCriterion) {
if (sc.meetsCondition(producedStateChain)) {
return true;
}
}
return false;
}
private boolean meetsTrainingStoppingCriterion(ITrainingStoppingCriterion[] stoppingCriterion,
final Map<Instance, State> producedStateChain) {
for (ITrainingStoppingCriterion sc : stoppingCriterion) {
if (sc.meetsCondition(producedStateChain.values()))
return true;
}
return false;
}
private void scoreSelectedStates(final boolean sampleBasedOnObjectiveFunction, State currentState,
State candidateState) {
if (sampleBasedOnObjectiveFunction) {
model.score(candidateState);
} else {
objectiveFunction.score(candidateState);
objectiveFunction.score(currentState);
}
}
public CRFStatistics getTrainingStatistics() {
return this.trainingStatistics;
}
public CRFStatistics getTestStatistics() {
return this.testStatistics;
}
public Map<Instance, State> predict(List<Instance> instancesToPredict,
ISamplingStoppingCriterion... stoppingCriterion) {
return predictP(this.model, instancesToPredict, 1, stoppingCriterion).entrySet().stream()
.collect(Collectors.toMap(m -> m.getKey(), m -> m.getValue().get(0)));
}
public Map<Instance, State> predictHighRecall(List<Instance> instancesToPredict, final int n,
ISamplingStoppingCriterion... stoppingCriterion) {
return predictP(this.model, instancesToPredict, n, stoppingCriterion).entrySet().stream()
.collect(Collectors.toMap(m -> m.getKey(), m -> merge(m)));
}
public Map<Instance, State> predictHighRecall(Model model, List<Instance> instancesToPredict, final int n,
ISamplingStoppingCriterion... stoppingCriterion) {
return predictP(model, instancesToPredict, n, stoppingCriterion).entrySet().stream()
.collect(Collectors.toMap(m -> m.getKey(), m -> merge(m)));
}
public Map<Instance, State> predict(Model model, List<Instance> instancesToPredict,
ISamplingStoppingCriterion... stoppingCriterion) {
return predictP(model, instancesToPredict, 1, stoppingCriterion).entrySet().stream()
.collect(Collectors.toMap(m -> m.getKey(), m -> m.getValue().get(0)));
}
public Map<Instance, List<State>> collectNBestStates(List<Instance> instancesToPredict, final int n,
ISamplingStoppingCriterion... stoppingCriterion) {
return predictP(this.model, instancesToPredict, n, stoppingCriterion);
}
private Map<Instance, List<State>> predictP(Model model, List<Instance> instancesToPredict, final int n,
ISamplingStoppingCriterion... stoppingCriterion) {
this.testStatistics = new CRFStatistics("Test");
this.testStatistics.startTrainingTime = System.currentTimeMillis();
final Map<Instance, List<State>> finalStates = new LinkedHashMap<>();
int instanceIndex = 0;
for (Instance instance : instancesToPredict) {
final List<State> producedStateChain = new ArrayList<>();
List<State> currentStates = new ArrayList<>();
State currentState = initializer.getInitState(instance);
finalStates.put(instance, Arrays.asList(currentState));
objectiveFunction.score(currentState);
producedStateChain.add(currentState);
int samplingStep;
for (samplingStep = 0; samplingStep < MAX_SAMPLING; samplingStep++) {
for (IExplorationStrategy explorer : explorerList) {
final List<State> proposalStates = explorer.explore(currentState);
if (proposalStates.isEmpty())
proposalStates.add(currentState);
model.score(proposalStates);
Collections.sort(proposalStates,
(s1, s2) -> -Double.compare(s1.getModelScore(), s2.getModelScore()));
final State candidateState = proposalStates.get(0);
boolean accepted = AcceptStrategies.strictModelAccept().isAccepted(candidateState, currentState);
if (accepted) {
currentState = candidateState;
objectiveFunction.score(currentState);
}
producedStateChain.add(currentState);
if (n == 1) {
finalStates.put(instance, Arrays.asList(currentState));
} else {
currentStates = new ArrayList<>();
final State prevCurrentState = producedStateChain.get(producedStateChain.size() - 2);
for (int i = 0; i < Math.min(proposalStates.size(), n); i++) {
accepted = AcceptStrategies.strictModelAccept().isAccepted(proposalStates.get(i),
prevCurrentState); // prev current state
if (accepted) {
objectiveFunction.score(proposalStates.get(i));
currentStates.add(proposalStates.get(i));
} else {
/*
* Quick break cause monotone decreasing model score distribution and strict
* evaluation.
*/
break;
}
}
finalStates.put(instance, currentStates);
}
}
if (meetsSamplingStoppingCriterion(stoppingCriterion, producedStateChain)) {
break;
}
}
this.testStatistics.endTrainingTime = System.currentTimeMillis();
LogUtils.logState(log,
TEST_CONTEXT + "[" + ++instanceIndex + "/" + instancesToPredict.size() + "] [" + samplingStep + "]",
instance, currentState);
// computeCoverage(true, coverageObjectiveFunction, Arrays.asList(instance));
log.info("***********************************************************");
log.info("\n");
log.info("Time: " + this.testStatistics.getTotalDuration());
}
this.testStatistics.endTrainingTime = System.currentTimeMillis();
return finalStates;
}
/**
* Merges the predictions of multiple states into one single state.
*
* @param m
* @return
*/
private State merge(Entry<Instance, List<State>> m) {
List<AbstractAnnotation> mergedAnnotations = new ArrayList<>();
for (int i = 0; i < m.getValue().size(); i++) {
for (AbstractAnnotation abstractAnnotation : m.getValue().get(i).getCurrentPredictions().getAnnotations()) {
mergedAnnotations.add(abstractAnnotation);
}
}
State s = new State(m.getKey(), new Annotations(mergedAnnotations));
objectiveFunction.score(s);
return s;
}
// private void compare(State currentState, State candidateState) {
//
// Map<String, Double> differences = getDifferences(collectFeatures(currentState),
// collectFeatures(candidateState));
// if (differences.isEmpty())
// return;
//
// List<Entry<String, Double>> sortedWeightsPrevState = new ArrayList<>(collectFeatures(currentState).entrySet());
// List<Entry<String, Double>> sortedWeightsCandState = new ArrayList<>(
// collectFeatures(candidateState).entrySet());
//
// Collections.sort(sortedWeightsPrevState, (o1, o2) -> -Double.compare(o1.getValue(), o2.getValue()));
// Collections.sort(sortedWeightsCandState, (o1, o2) -> -Double.compare(o1.getValue(), o2.getValue()));
//
// log.info(currentState.getInstance().getName());
// log.info("_____________GoldAnnotations:_____________");
// log.info(currentState.getGoldAnnotations());
// log.info("_____________PrevState:_____________");
// sortedWeightsPrevState.stream().filter(k -> differences.containsKey(k.getKey())).forEach(log::info);
// log.info("ModelScore: " + currentState.getModelScore() + ": " + currentState.getCurrentPredictions());
// log.info("_____________CandState:_____________");
// sortedWeightsCandState.stream().filter(k -> differences.containsKey(k.getKey())).forEach(log::info);
// log.info("ModelScore: " + candidateState.getModelScore() + ": " + candidateState.getCurrentPredictions());
// log.info("------------------");
// }
// private static Map<String, Double> getDifferences(Map<String, Double> currentFeatures,
// Map<String, Double> candidateFeatures) {
// Map<String, Double> differences = new HashMap<>();
//
// Set<String> keys = new HashSet<>();
//
// keys.addAll(candidateFeatures.keySet());
// keys.addAll(currentFeatures.keySet());
//
// for (String key : keys) {
//
// if (candidateFeatures.containsKey(key) && currentFeatures.containsKey(key)) {
// double diff = 0;
// if ((diff = Math.abs(currentFeatures.get(key) - candidateFeatures.get(key))) != 0.0D) {
// // This should or can not happen as feature weights are shared throughout states
// differences.put(key, diff);
// }
// } else if (currentFeatures.containsKey(key)) {
// differences.put(key, currentFeatures.get(key));
// } else {
// differences.put(key, candidateFeatures.get(key));
// }
//
// }
// return differences;
// }
// private static Map<String, Double> collectFeatures(State currentState) {
// Map<String, Double> features = new HashMap<>();
//
// for (FactorGraph fg : currentState.getFactorGraphs()) {
// for (Factor f : fg.getFactors()) {
//
// for (Entry<Integer, Double> feature : f.getFeatureVector().getFeatures().entrySet()) {
// if (f.getFactorScope().getTemplate().getWeights().getFeatures().containsKey(feature.getKey()))
// features.put(
// f.getFactorScope().getTemplate().getClass().getSimpleName() + ":"
// + Model.getFeatureForIndex(feature.getKey()),
// feature.getValue() * f.getFactorScope().getTemplate().getWeights().getFeatures()
// .get(feature.getKey()));
//
// }
// }
// }
// return features;
// }
/**
*
* Computes the coverage of the given instances. The coverage is defined by the
* objective mean score that can be reached relying on greedy objective function
* sampling strategy. The coverage can be seen as the upper bound of the system.
* The upper bound depends only on the exploration strategy, e.g. the provided
* NER-annotations during slot-filling.
*
* @param printDetailedLog whether detailed log should be printed or not.
* @param predictionOF
* @param instances the instances to compute the coverage on.
* @return a score that contains information of the coverage.
*/
private State candidateState = null;
private Object lock = "";
public Score computeCoverage(final boolean printDetailedLog, IObjectiveFunction predictionOF,
final List<Instance> instances) {
log.info("Compute coverage...");
ISamplingStoppingCriterion[] noObjectiveChangeCrit = new ISamplingStoppingCriterion[] {
new ConverganceCrit(explorerList.size(), s -> s.getObjectiveScore()) };
final Map<Instance, State> finalStates = new LinkedHashMap<>();
int instanceIndex = 0;
for (Instance instance : instances) {
final List<State> producedStateChain = new ArrayList<>();
State currentState = initializer.getInitState(instance);
predictionOF.score(currentState);
finalStates.put(instance, currentState);
producedStateChain.add(currentState);
int samplingStep;
for (samplingStep = 0; samplingStep < MAX_SAMPLING; samplingStep++) {
for (IExplorationStrategy explorer : explorerList) {
// explorer.set(currentState);
AtomicInteger c = new AtomicInteger(0);
AtomicDouble maxValue = new AtomicDouble(0);
candidateState = currentState;
System.out.println(samplingStep);
StreamSupport.stream(Spliterators.spliteratorUnknownSize(explorer, Spliterator.IMMUTABLE), true)
.forEach(proposalState -> {
final double newVal;
objectiveFunction.score(proposalState);
newVal = proposalState.getObjectiveScore();
c.incrementAndGet();
synchronized (lock) {
if (newVal >= maxValue.get()) {
maxValue.set(newVal);
candidateState = proposalState;
}
}
});
System.out.println(c);
// State candidateState = currentState;
// double maxValue = 0;
// while (explorer.hasNext()) {
// c++;
// State proposalState = explorer.next();
//
// final double newVal;
// objectiveFunction.score(proposalState);
// newVal = proposalState.getObjectiveScore();
//
// if (newVal >= maxValue) {
// maxValue = newVal;
// candidateState = proposalState;
//
// if (currentState.getObjectiveScore() == 1.0)
// break;
//
// }
// }
// System.out.println(c);
// final List<State> proposalStates = explorer.explore(currentState);
//
// if (proposalStates.isEmpty())
// proposalStates.add(currentState);
//
// predictionOF.score(proposalStates);
// final State candidateState = SamplerCollection.greedyObjectiveStrategy()
// .sampleCandidate(proposalStates);
boolean isAccepted = SamplerCollection.greedyObjectiveStrategy().getAcceptanceStrategy(0)
.isAccepted(candidateState, currentState);
if (isAccepted) {
currentState = candidateState;
}
producedStateChain.add(currentState);
finalStates.put(instance, currentState);
}
if (meetsSamplingStoppingCriterion(noObjectiveChangeCrit, producedStateChain))
break;
}
if (printDetailedLog)
LogUtils.logState(log, COVERAGE_CONTEXT + " [1/1]" + "[" + ++instanceIndex + "/" + instances.size()
+ "]" + "[" + (samplingStep + 1) + "]", instance, currentState);
}
Score meanTrainOFScore = new Score();
for (Entry<Instance, State> finalState : finalStates.entrySet()) {
predictionOF.score(finalState.getValue());
if (printDetailedLog)
log.info(
finalState.getKey().getName().substring(0, Math.min(finalState.getKey().getName().length(), 10))
+ "... \t" + SCORE_FORMAT.format(finalState.getValue().getObjectiveScore()));
meanTrainOFScore.add(finalState.getValue().getMicroScore());
}
return meanTrainOFScore;
}
public String getModelName() {
return model.getName();
}
public void scoreWithModel(List<State> nextStates) {
this.model.score(nextStates);
}
}
|
3e0b1b6207b0ba16e03bcccce9b3ade2399f4c08 | 1,730 | java | Java | nu.bibi.twigcs.plugin/src/nu/bibi/twigcs/json/JsonWriterPrettyPrint.java | laurentmuller/plugin-twigcs | 560f26e1d386bb5c5a42035215c61a181bf1203a | [
"MIT"
] | null | null | null | nu.bibi.twigcs.plugin/src/nu/bibi/twigcs/json/JsonWriterPrettyPrint.java | laurentmuller/plugin-twigcs | 560f26e1d386bb5c5a42035215c61a181bf1203a | [
"MIT"
] | null | null | null | nu.bibi.twigcs.plugin/src/nu/bibi/twigcs/json/JsonWriterPrettyPrint.java | laurentmuller/plugin-twigcs | 560f26e1d386bb5c5a42035215c61a181bf1203a | [
"MIT"
] | 2 | 2020-03-07T16:28:34.000Z | 2020-03-09T06:23:48.000Z | 20.05814 | 74 | 0.705507 | 4,690 | /**
* This file is part of the twigcs-plugin package.
*
* (c) Laurent Muller <envkt@example.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package nu.bibi.twigcs.json;
import java.io.IOException;
import java.io.Writer;
/* package */
class JsonWriterPrettyPrint extends JsonWriter {
private final char[] indentChars;
private int indent;
JsonWriterPrettyPrint(final Writer writer, final char[] indentChars) {
super(writer);
this.indentChars = indentChars;
}
@Override
protected void writeArrayClose() throws IOException {
indent--;
writeNewLine();
super.writeArrayClose();
}
@Override
protected void writeArrayOpen() throws IOException {
indent++;
super.writeArrayOpen();
writeNewLine();
}
@Override
protected void writeArraySeparator() throws IOException {
super.writeArraySeparator();
if (!writeNewLine()) {
writer.write(' ');
}
}
@Override
protected void writeMemberSeparator() throws IOException {
super.writeMemberSeparator();
writer.write(' ');
}
@Override
protected void writeObjectClose() throws IOException {
indent--;
writeNewLine();
super.writeObjectClose();
}
@Override
protected void writeObjectOpen() throws IOException {
indent++;
super.writeObjectOpen();
writeNewLine();
}
@Override
protected void writeObjectSeparator() throws IOException {
super.writeObjectSeparator();
if (!writeNewLine()) {
writer.write(' ');
}
}
private boolean writeNewLine() throws IOException {
if (indentChars == null) {
return false;
}
writer.write('\n');
for (int i = 0; i < indent; i++) {
writer.write(indentChars);
}
return true;
}
} |
3e0b1cdd20090e8ed5f7a5375cb49e06f8ddc8d4 | 1,328 | java | Java | objectbox-java/src/main/java/io/objectbox/sync/ConnectivityMonitor.java | MrSlateZB/objectbox-java | effbff99a86263556834f9fce804ff8cbf38ebb2 | [
"Apache-2.0"
] | 3,288 | 2017-09-04T06:12:36.000Z | 2022-03-31T05:36:56.000Z | objectbox-java/src/main/java/io/objectbox/sync/ConnectivityMonitor.java | PowerOlive/objectbox-java | 60d3e8e89c01c34bcd947a5a9844cd5fc4c28f3c | [
"Apache-2.0"
] | 943 | 2017-09-04T08:53:45.000Z | 2022-03-29T07:03:53.000Z | objectbox-java/src/main/java/io/objectbox/sync/ConnectivityMonitor.java | PowerOlive/objectbox-java | 60d3e8e89c01c34bcd947a5a9844cd5fc4c28f3c | [
"Apache-2.0"
] | 289 | 2017-09-04T06:27:33.000Z | 2022-03-26T02:49:31.000Z | 25.056604 | 90 | 0.645331 | 4,691 | package io.objectbox.sync;
import javax.annotation.Nullable;
/**
* Used by {@link SyncClient} to observe connectivity changes.
* <p>
* Implementations are provided by a {@link io.objectbox.sync.internal.Platform platform}.
*/
public abstract class ConnectivityMonitor {
@Nullable
private SyncClient syncClient;
void setObserver(SyncClient syncClient) {
//noinspection ConstantConditions Annotations do not enforce non-null.
if (syncClient == null) {
throw new IllegalArgumentException("Sync client must not be null");
}
this.syncClient = syncClient;
onObserverSet();
}
void removeObserver() {
this.syncClient = null;
onObserverRemoved();
}
/**
* Called right after the observer was set.
*/
public void onObserverSet() {
}
/**
* Called right after the observer was removed.
*/
public void onObserverRemoved() {
}
/**
* Notifies the observer that a connection is available.
* Implementers should call this once a working network connection is available.
*/
public final void notifyConnectionAvailable() {
SyncClient syncClient = this.syncClient;
if (syncClient != null) {
syncClient.notifyConnectionAvailable();
}
}
}
|
3e0b1d6b35451fc4ea6b583a50ff6b201be8c039 | 3,041 | java | Java | template_java/src/main/java/cs451/Parser.java | jschweiz/CS451-2020-project | 26f27f3f5d3c718975e58e9adba0cc2c56af0f22 | [
"MIT"
] | null | null | null | template_java/src/main/java/cs451/Parser.java | jschweiz/CS451-2020-project | 26f27f3f5d3c718975e58e9adba0cc2c56af0f22 | [
"MIT"
] | null | null | null | template_java/src/main/java/cs451/Parser.java | jschweiz/CS451-2020-project | 26f27f3f5d3c718975e58e9adba0cc2c56af0f22 | [
"MIT"
] | null | null | null | 23.573643 | 132 | 0.583032 | 4,692 | package cs451;
import java.util.List;
public class Parser {
private String[] args;
private long pid;
private long pport;
private Host ownHost;
private String pip;
private IdParser idParser;
private HostsParser hostsParser;
private BarrierParser barrierParser;
private SignalParser signalParser;
private OutputParser outputParser;
private ConfigParser configParser;
public Parser(String[] args) {
this.args = args;
}
public void populateOwnProcess(Host h) {
this.pport = h.getPort();
this.pip = h.getIp();
this.ownHost = h;
}
public void parse() {
pid = ProcessHandle.current().pid();
idParser = new IdParser();
hostsParser = new HostsParser();
barrierParser = new BarrierParser();
signalParser = new SignalParser();
outputParser = new OutputParser();
configParser = null;
int argsNum = args.length;
if (argsNum != Constants.ARG_LIMIT_NO_CONFIG && argsNum != Constants.ARG_LIMIT_CONFIG) {
help();
}
if (!idParser.populate(args[Constants.ID_KEY], args[Constants.ID_VALUE])) {
help();
}
if (!hostsParser.populate(args[Constants.HOSTS_KEY], args[Constants.HOSTS_VALUE])) {
help();
}
if (!hostsParser.inRange(idParser.getId())) {
help();
}
if (!barrierParser.populate(args[Constants.BARRIER_KEY], args[Constants.BARRIER_VALUE])) {
help();
}
if (!signalParser.populate(args[Constants.SIGNAL_KEY], args[Constants.SIGNAL_VALUE])) {
help();
}
if (!outputParser.populate(args[Constants.OUTPUT_KEY], args[Constants.OUTPUT_VALUE])) {
help();
}
if (argsNum == Constants.ARG_LIMIT_CONFIG) {
configParser = new ConfigParser();
if (!configParser.populate(args[Constants.CONFIG_VALUE])) {
}
}
}
private void help() {
System.err.println("Usage: ./run.sh --id ID --hosts HOSTS --barrier NAME:PORT --signal NAME:PORT --output OUTPUT [config]");
System.exit(1);
}
public int myId() {
return idParser.getId();
}
public Host myHost() {
return ownHost;
}
public String myIp() {
return pip;
}
public long myPort() {
return pport;
}
public List<Host> hosts() {
return hostsParser.getHosts();
}
public String barrierIp() {
return barrierParser.getIp();
}
public int barrierPort() {
return barrierParser.getPort();
}
public String signalIp() {
return signalParser.getIp();
}
public int signalPort() {
return signalParser.getPort();
}
public String output() {
return outputParser.getPath();
}
public boolean hasConfig() {
return configParser != null;
}
public String config() {
return configParser.getPath();
}
}
|
3e0b1dbcc5d54c639b597bfe4914bbef850ee857 | 560 | java | Java | Java Web/src/main/java/util/Sexo.java | ManoLuuL/Saude_Virtual | b08ab946f804148b340c3ee4e302d2deadcb1a02 | [
"MIT"
] | 1 | 2021-11-04T13:03:12.000Z | 2021-11-04T13:03:12.000Z | Java Web/src/main/java/util/Sexo.java | ManoLuuL/Saude_Virtual | b08ab946f804148b340c3ee4e302d2deadcb1a02 | [
"MIT"
] | null | null | null | Java Web/src/main/java/util/Sexo.java | ManoLuuL/Saude_Virtual | b08ab946f804148b340c3ee4e302d2deadcb1a02 | [
"MIT"
] | null | null | null | 19.310345 | 79 | 0.610714 | 4,693 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package util;
import java.util.ArrayList;
/**
*
* @author T-Gamer
*/
public class Sexo {
public ArrayList<String> sexos = new ArrayList();
//metodo
public Sexo(){
preenchersexo();
}
public void preenchersexo(){
sexos.add("");
sexos.add("Masculino");
sexos.add("Feminino");
sexos.add("Outro");
}
}
|
3e0b1dcf2dc57386e9a97a482222c88bb8ec05bd | 2,317 | java | Java | src/main/java/mx/infotec/dads/sekc/admin/practice/dto/CompletitionCriterion.java | dads-software-brotherhood/sekc | 96835b107a0ef39f601bc505ef37aa349133e6cb | [
"Apache-2.0"
] | 4 | 2017-05-16T22:44:55.000Z | 2021-12-23T07:11:25.000Z | src/main/java/mx/infotec/dads/sekc/admin/practice/dto/CompletitionCriterion.java | dads-software-brotherhood/sekc | 96835b107a0ef39f601bc505ef37aa349133e6cb | [
"Apache-2.0"
] | 1 | 2017-07-20T18:10:03.000Z | 2017-07-20T18:10:09.000Z | src/main/java/mx/infotec/dads/sekc/admin/practice/dto/CompletitionCriterion.java | dads-software-brotherhood/sekc | 96835b107a0ef39f601bc505ef37aa349133e6cb | [
"Apache-2.0"
] | null | null | null | 31.310811 | 105 | 0.753992 | 4,694 |
package mx.infotec.dads.sekc.admin.practice.dto;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.ArrayList;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"alphaStates",
"workProductsLevelofDetail",
"otherConditions"
})
public class CompletitionCriterion implements Criteriable{
@JsonProperty("alphaStates")
private List<AlphaState> alphaStates = new ArrayList<>();
@JsonProperty("workProductsLevelofDetail")
private List<WorkProductsLevelofDetail> workProductsLevelofDetail = new ArrayList<>();
@JsonProperty("otherConditions")
private List<String> otherConditions = null;
@JsonIgnore
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonProperty("alphaStates")
public List<AlphaState> getAlphaStates() {
return alphaStates;
}
@JsonProperty("alphaStates")
public void setAlphaStates(List<AlphaState> alphaStates) {
this.alphaStates = alphaStates;
}
@JsonProperty("workProductsLevelofDetail")
public List<WorkProductsLevelofDetail> getWorkProductsLevelofDetail() {
return workProductsLevelofDetail;
}
@JsonProperty("workProductsLevelofDetail")
public void setWorkProductsLevelofDetail(List<WorkProductsLevelofDetail> workProductsLevelofDetail) {
this.workProductsLevelofDetail = workProductsLevelofDetail;
}
@JsonProperty("otherConditions")
public List<String> getOtherConditions() {
return otherConditions;
}
@JsonProperty("otherConditions")
public void setOtherConditions(List<String> otherConditions) {
this.otherConditions = otherConditions;
}
@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}
|
3e0b1dead7a0a6562f7ffcbad889c2510d2e6b64 | 926 | java | Java | app/src/main/java/com/miguebarrera/consorciotransportesandalucia/models/HorarioIda.java | migueBarrera/Consorcio-Transportes-Andalucia | ab6481415959f7cce14ce3d6d95d7919e4d21e19 | [
"MIT"
] | null | null | null | app/src/main/java/com/miguebarrera/consorciotransportesandalucia/models/HorarioIda.java | migueBarrera/Consorcio-Transportes-Andalucia | ab6481415959f7cce14ce3d6d95d7919e4d21e19 | [
"MIT"
] | null | null | null | app/src/main/java/com/miguebarrera/consorciotransportesandalucia/models/HorarioIda.java | migueBarrera/Consorcio-Transportes-Andalucia | ab6481415959f7cce14ce3d6d95d7919e4d21e19 | [
"MIT"
] | null | null | null | 27.235294 | 94 | 0.74406 | 4,695 | package com.miguebarrera.consorciotransportesandalucia.models;
import java.util.ArrayList;
/**
* Created by migueBarreraBluumi on 16/01/2018.
*/
public class HorarioIda {
private ArrayList<String> horas;
public ArrayList<String> getHoras() { return this.horas; }
public void setHoras(ArrayList<String> horas) { this.horas = horas; }
private String frecuencia;
public String getFrecuencia() { return this.frecuencia; }
public void setFrecuencia(String frecuencia) { this.frecuencia = frecuencia; }
private String observaciones;
public String getObservaciones() { return this.observaciones; }
public void setObservaciones(String observaciones) { this.observaciones = observaciones; }
private String demandahoras;
public String getDemandahoras() { return this.demandahoras; }
public void setDemandahoras(String demandahoras) { this.demandahoras = demandahoras; }
}
|
3e0b1e2d84ca10d778b07a8af8e743e3b0d40e9b | 6,305 | java | Java | src/main/java/app/ScheduleValidator.java | shchoichoi/se306_a01 | ac1b959cd7c5778695d0c52676f8ff0c0b67abc6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/main/java/app/ScheduleValidator.java | shchoichoi/se306_a01 | ac1b959cd7c5778695d0c52676f8ff0c0b67abc6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/main/java/app/ScheduleValidator.java | shchoichoi/se306_a01 | ac1b959cd7c5778695d0c52676f8ff0c0b67abc6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | 37.307692 | 121 | 0.525139 | 4,696 | package app;
import app.exception.InvalidScheduleException;
import scheduleModel.IProcessor;
import scheduleModel.ISchedule;
import taskModel.Task;
import taskModel.TaskModel;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class ScheduleValidator {
ISchedule schedule;
public ScheduleValidator(ISchedule schedule) {
this.schedule = schedule;
}
public void validate(TaskModel model) {
// This validation is done on fully completed schedule
// ********We need one more input: full task model in order to compare**********
// ****Rules for valid schedule****
// 1. All the tasks has been scheduled && No duplicate tasks
// 2. No overlapping tasks on a single processor
// 3. Nothing starts before time 0
// 4. For all tasks all the parents has been schedule before a child
// 5. Make sure communication link cost is taken into consideration
//
/* ## invalid tasks: #1
Get tasks from each processors
put them into a setS
Make setT
Compare the two sets*/
// Putting entry set into String set
List<Task> allTasks = model.getTasks();
Set<String> allTaskSet = new HashSet<>();
for(Task t : allTasks) {
allTaskSet.add(t.getName());
}
// Get list of all tasks in string set
List<IProcessor> processorList = schedule.getProcessors();
List<Task> scheduledTasks = new ArrayList<>();
for (int i = 0; i < processorList.size(); i++) {
// Access each processor then add the tasks
IProcessor processor = processorList.get(i);
scheduledTasks.addAll(processor.getTasks());
}
// Putting list of task name into String set
Set<String> scheduledTaskSet = new HashSet<>();
for(Task t : scheduledTasks){
scheduledTaskSet.add(t.getName());
}
if(!allTaskSet.equals(scheduledTaskSet)){
throw new InvalidScheduleException("Invalid tasks scheduled (Duplicate tasks or not all tasks scheduled <3");
}
/*## Task scheduled before time 0: #3*/
for (int i = 0; i < processorList.size(); i++) {
List<Task> listOfTasks = processorList.get(i).getTasks();
for(Task t : listOfTasks) {
if(processorList.get(i).getStartTimeOf(t) < 0){
throw new InvalidScheduleException("Task scheduled before time 0 <3");
}
}
}
/*## overlapping schedule in a single processor: #2
For each processor
Make a new array with size equal to finish time of processor
Initialise the all elements in array with 0
Loop through all tasks in the map
and for each task add 1 to the corresponding array element
check if the completed array contains any index with number greater than 1*/
for (int i = 0; i < processorList.size(); i++) {
// if out of bounds exception plus one the array. I cant count
int [] fill = new int[processorList.get(i).getFinishTime()];
List<Task> listOfTasks = processorList.get(i).getTasks();
for(Task t : listOfTasks) {
int startTime = processorList.get(i).getStartTimeOf(t);
// Maybe have to + or - 1 in the condition. I cant count
for(int use = startTime; use < startTime + t.getWeight(); use++ ){
fill[use]++;
}
}
// Check if the fill array has anything more than 1. I cant count
for(int j = 0; j < fill.length; j++){
if(fill[j] > 1){
throw new InvalidScheduleException("Overlapping tasks <3");
}
}
}
// ## parents scheduled after child: #4
// for every task, loop through it's parents
// check that for every parent, the finishing time of the parent is less than or equal to
// the starting time of the child
for (Task t: scheduledTasks) {
if(!t.getParents().isEmpty()) {
int start = 0;
for (int i = 0; i < processorList.size(); i++) {
if (processorList.get(i).contains(t)) {
start = processorList.get(i).getStartTimeOf(t);
}
}
Set<Task> parentList = t.getParents();
int parentFin;
for(Task p : parentList){
for (int i = 0; i < processorList.size(); i++) {
if (processorList.get(i).contains(p)) {
parentFin = processorList.get(i).getFinishTimeOf(p);
if(start < parentFin){
throw new InvalidScheduleException("Parent task is not scheduled before child task <3");
}
}
}
}
}
}
// ## Make sure communication link cost is taken into consideration: #5
for(Task p : scheduledTasks){
if(!p.getChildren().isEmpty()){
Set<Task> children = p.getChildren();
for(Task c : children) {
IProcessor cProcessor = null;
IProcessor pProcessor = null;
for (IProcessor pr : processorList) {
if (pr.contains(c)) {
cProcessor = pr;
}
if(pr.contains(p)){
pProcessor = pr;
}
}
if(!pProcessor.equals(cProcessor)) {
int parentFin = pProcessor.getFinishTimeOf(p);
int childStart = cProcessor.getStartTimeOf(c);
// I cant count
if((childStart - parentFin) < p.getChildLinkCost(c)) {
throw new InvalidScheduleException("Link cost is ignored!! <3");
}
}
}
}
}
}
}
|
3e0b1e5b93f783e913d7dc9ed51aac710af3e95e | 22,026 | java | Java | Kingdoms/src/nl/knokko/logger/GriefLogger.java | knokko/Kingdoms | b7ebcf2b5562d7317a4f5a99e858cdaea6c53cff | [
"MIT"
] | null | null | null | Kingdoms/src/nl/knokko/logger/GriefLogger.java | knokko/Kingdoms | b7ebcf2b5562d7317a4f5a99e858cdaea6c53cff | [
"MIT"
] | null | null | null | Kingdoms/src/nl/knokko/logger/GriefLogger.java | knokko/Kingdoms | b7ebcf2b5562d7317a4f5a99e858cdaea6c53cff | [
"MIT"
] | null | null | null | 38.915194 | 227 | 0.697085 | 4,697 | package nl.knokko.logger;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.UUID;
import nl.knokko.kingdoms.Kingdom;
import nl.knokko.kingdoms.Kingdoms;
import nl.knokko.main.KingdomsPlugin;
import nl.knokko.utils.Utils;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityExplodeEvent;
import org.bukkit.event.entity.EntityInteractEvent;
import org.bukkit.event.player.PlayerBucketEmptyEvent;
import org.bukkit.event.player.PlayerBucketFillEvent;
import org.bukkit.event.player.PlayerInteractEntityEvent;
import org.bukkit.event.player.PlayerInteractEvent;
public class GriefLogger implements Listener {
private static final String FOLDER = "Grief Logger";
//block log identifiers
private static final byte ID_BREAK = -128;
private static final byte ID_PLACE = -127;
private static final byte IDB_INTERACT = -126;
private static final byte ID_BUCKET_FILL = -125;
private static final byte ID_BUCKET_EMPTY = -124;
private static final byte IDB_ENTITY_INTERACT = -123;
private static final byte ID_EXPLODE = -122;
//entity log identifiers
private static final byte IDE_INTERACT = -128;
private static final byte ID_ATTACK = -127;
private static final byte ID_ATTACKED = -126;
private Map<String, BlockLog> blockLogs = new HashMap<String, BlockLog>();
private Map<String, EntityLog> entityLogs = new HashMap<String, EntityLog>();
private final KingdomsPlugin plug;
public GriefLogger(KingdomsPlugin plugin) {
plug = plugin;
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onBlockPlace(BlockPlaceEvent event){
reportBlockAction(ID_PLACE, event.getPlayer(), event.getBlockPlaced());
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onBlockBreak(BlockBreakEvent event){
reportBlockAction(ID_BREAK, event.getPlayer(), event.getBlock());
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onEntityExplode(EntityExplodeEvent event){
if(!plug.getSettings().logGriefing())
return;
Player player = Utils.getPlayer(event.getEntity());
if(player != null){
for(Block block : event.blockList())
reportBlockAction(ID_EXPLODE, player, block);
}
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onEntityInteract(EntityInteractEvent event){
Player player = Utils.getPlayer(event.getEntity());
if(player != null)
reportBlockAction(IDB_ENTITY_INTERACT, player, event.getBlock());
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onEntityAttack(EntityDamageByEntityEvent event){
Player attacker = Utils.getPlayer(event.getDamager());
if(attacker != null){
reportEntityAction(ID_ATTACK, attacker, event.getEntity());
return;//prevent double logged attacks
}
Player victim = Utils.getPlayer(event.getEntity());
if(victim != null){
Kingdom kd = plug.getKingdoms().getLocationKingdom(victim.getLocation());
if(kd != null)
reportEntityAction(ID_ATTACKED, victim.getUniqueId(), kd, event.getDamager(), System.currentTimeMillis(), victim.getLocation());
}
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onPlayerEntityInteract(PlayerInteractEntityEvent event){
reportEntityAction(IDE_INTERACT, event.getPlayer(), event.getRightClicked());
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onPlayerInteract(PlayerInteractEvent event){
reportBlockAction(IDB_INTERACT, event.getPlayer(), event.getClickedBlock());
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onBucketFill(PlayerBucketFillEvent event){
reportBlockAction(ID_BUCKET_FILL, event.getPlayer(), event.getBlockClicked());
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onBucketEmpty(PlayerBucketEmptyEvent event){
reportBlockAction(ID_BUCKET_EMPTY, event.getPlayer(), event.getBlockClicked());
}
public void save(){
new File(plug.getDataFolder().getAbsolutePath() + File.separator + FOLDER).mkdirs();
Iterator<Entry<String, BlockLog>> iterator = blockLogs.entrySet().iterator();
while(iterator.hasNext()){
Entry<String,BlockLog> entry = iterator.next();
entry.getValue().save(plug, entry.getKey());
}
Iterator<Entry<String, EntityLog>> it = entityLogs.entrySet().iterator();
while(it.hasNext()){
Entry<String, EntityLog> entry = it.next();
entry.getValue().save(plug, entry.getKey());
}
}
public void logKingdom(Kingdom kd, boolean ignoreOwnMembers){
getBlockLog(kd).saveToText(plug, kd, ignoreOwnMembers);
getEntityLog(kd).saveToText(plug, kd, ignoreOwnMembers);
}
private void logPlayerBlocks(String playerName, boolean ignoreOwnKingdom){
ArrayList<String> lines = new ArrayList<String>();
File folder = new File(plug.getDataFolder().getAbsolutePath() + File.separator + FOLDER);
File[] files = folder.listFiles();
for(File file : files){
if(file.getName().endsWith(".blg")){
Kingdom kd = plug.getKingdoms().getKingdom(file.getName().substring(0, file.getName().length() - 4));
if(kd != null)
lines.addAll(getBlockLog(kd).produceLines(file, plug, playerName, kd, ignoreOwnKingdom));
}
}
try {
PrintWriter writer = new PrintWriter(plug.getDataFolder().getAbsolutePath() + File.separator + FOLDER + File.separator + "block log of " + playerName + ".txt");
for(String line : lines)
writer.println(line);
writer.close();
} catch(Exception ex){
ex.printStackTrace();
}
}
public void logPlayer(String playerName, boolean ignoreOwnKingdom){
logPlayerBlocks(playerName, ignoreOwnKingdom);
logPlayerEntities(playerName, ignoreOwnKingdom);
}
private void logPlayerEntities(String playerName, boolean ignoreOwnKingdom){
ArrayList<String> lines = new ArrayList<String>();
File folder = new File(plug.getDataFolder().getAbsolutePath() + File.separator + FOLDER);
File[] files = folder.listFiles();
for(File file : files){
if(file.getName().endsWith(".elg")){
Kingdom kd = plug.getKingdoms().getKingdom(file.getName().substring(0, file.getName().length() - 4));
if(kd != null)
lines.addAll(getEntityLog(kd).produceLines(file, plug, playerName, kd, ignoreOwnKingdom));
}
}
try {
PrintWriter writer = new PrintWriter(plug.getDataFolder().getAbsolutePath() + File.separator + FOLDER + File.separator + "entity log of " + playerName + ".txt");
for(String line : lines)
writer.println(line);
writer.close();
} catch(Exception ex){
ex.printStackTrace();
}
}
public void reportBlockAction(byte type, UUID playerID, Kingdom kd, Material old, long time, int x, int y, int z){
if(!plug.getSettings().logOwnKingdomEdit() && plug.getKingdoms().getPlayerKingdom(playerID) == kd)
return;
if(plug.getSettings().logGriefing())
getBlockLog(kd).addAction(type, playerID, old, time, x, y, z);
}
public void reportBlockAction(byte type, UUID playerID, Kingdom kd, Material old, long time, Location location){
reportBlockAction(type, playerID, kd, old, time, location.getBlockX(), location.getBlockY(), location.getBlockZ());
}
public void reportBlockAction(byte type, Player player, Block block){
Kingdom kd = plug.getKingdoms().getLocationKingdom(block.getLocation());
if(kd != null)
reportBlockAction(type, player.getUniqueId(), kd, block.getType(), System.currentTimeMillis(), block.getLocation());
}
public void reportEntityAction(byte type, UUID playerID, Kingdom kd, Entity target, long time, int x, int y, int z){
if(plug.getSettings().logGriefing())
getEntityLog(kd).addAction(type, playerID, target, time, x, y, z);
}
public void reportEntityAction(byte type, UUID playerID, Kingdom kd, Entity target, long time, Location location){
reportEntityAction(type, playerID, kd, target, time, location.getBlockX(), location.getBlockY(), location.getBlockZ());
}
public void reportEntityAction(byte type, Player player, Entity target){
Kingdom kd = plug.getKingdoms().getLocationKingdom(target.getLocation());
if(kd != null)
reportEntityAction(type, player.getUniqueId(), kd, target, System.currentTimeMillis(), target.getLocation());
}
private BlockLog getBlockLog(Kingdom kd){
BlockLog log = blockLogs.get(kd.getName());
if(log == null){
log = new BlockLog();
blockLogs.put(kd.getName(), log);
}
return log;
}
private EntityLog getEntityLog(Kingdom kd){
EntityLog log = entityLogs.get(kd.getName());
if(log == null){
log = new EntityLog();
entityLogs.put(kd.getName(), log);
}
return log;
}
private static class BlockLog {
private static final int BYTES = 1 + 16 + 2 + 8 + 4 + 4 + 4;
private static byte[] toBytes(byte type, UUID playerID, Material old, long time, int x, int y, int z){
ByteBuffer buffer = ByteBuffer.allocate(BYTES);
buffer.put(type);
buffer.putLong(playerID.getMostSignificantBits());
buffer.putLong(playerID.getLeastSignificantBits());
buffer.putShort((short) old.ordinal());//there aren't more than 32000 materials
buffer.putLong(time);
buffer.putInt(x);
buffer.putInt(y);
buffer.putInt(z);
return buffer.array();
}
private static byte[] loadBytes(KingdomsPlugin plugin, String kdName){
try {
File file = new File(getAbsolutePath(plugin, kdName));
if(file.length() > Integer.MAX_VALUE)
throw new RuntimeException("Grief log too long! (" + file.getAbsolutePath() + ") [" + file.length() + " bytes]");
byte[] data = new byte[(int) file.length()];
FileInputStream input = new FileInputStream(file);
input.read(data);
input.close();
return data;
} catch(Exception ex){
Bukkit.getLogger().warning("No previous block log could be found for " + kdName + ": " + ex.getMessage());
return null;
}
}
private static byte[][] split(byte[] data){
if(data == null)
return null;
byte[][] splitted = new byte[data.length / BYTES][];
for(int i = 0; i < splitted.length; i++){
splitted[i] = Arrays.copyOfRange(data, i * BYTES, i * BYTES + BYTES);
}
return splitted;
}
private static String toLine(byte[] line, Kingdom kd, Kingdoms kds, boolean ignoreOwnMembers){
ByteBuffer buffer = ByteBuffer.wrap(line);
byte type = buffer.get();
UUID id = new UUID(buffer.getLong(), buffer.getLong());
short mater = buffer.getShort();
long time = buffer.getLong();
int x = buffer.getInt();
int y = buffer.getInt();
int z = buffer.getInt();
OfflinePlayer player = Bukkit.getOfflinePlayer(id);
if(ignoreOwnMembers && kds.getPlayerKingdom(player.getUniqueId()) == kd)
return null;
String sMaterial;
if(mater < 0 || mater >= Material.values().length)
sMaterial = "Unknown Material";
else
sMaterial = Material.values()[mater].name().toLowerCase();
String playerName = player != null ? player.getName() : "Unknown Player";
Calendar cal = new Calendar.Builder().setInstant(time).build();
String sTime = "[" + cal.get(Calendar.DATE) + "/" + cal.get(Calendar.MONTH) + "/" + cal.get(Calendar.YEAR) + " " + cal.get(Calendar.HOUR_OF_DAY) + ":" + cal.get(Calendar.MINUTE) + ":" + cal.get(Calendar.SECOND) + "] ";
String sLoc = " at (" + x + "," + y + "," + z + ")";
if(type == ID_BREAK)
return sTime + playerName + " broke " + sMaterial + sLoc;
if(type == ID_PLACE)
return sTime + playerName + " placed " + sMaterial + sLoc;
if(type == IDB_INTERACT)
return sTime + playerName + " interacted with " + sMaterial + sLoc;
if(type == ID_BUCKET_FILL)
return sTime + playerName + " filled a bucket with " + sMaterial + sLoc;
if(type == ID_BUCKET_EMPTY)
return sTime + playerName + " emptied a bucket with " + sMaterial + sLoc;
throw new RuntimeException("Unknown type: " + type);
}
private static void addLine(byte[] data, KingdomsPlugin plug, String playerName, Kingdom kd, ArrayList<String> lines, boolean ignoreOwnKD){
ByteBuffer buffer = ByteBuffer.wrap(data, 1, 16);
UUID id = new UUID(buffer.getLong(), buffer.getLong());
if(Bukkit.getOfflinePlayer(id).getName().equals(playerName)){
String line = toLine(data, kd, plug.getKingdoms(), ignoreOwnKD);
line += " (" + kd.getName() + ")";
lines.add(line);
}
}
private static String getAbsolutePath(KingdomsPlugin plugin, String kdName){
return plugin.getDataFolder().getAbsolutePath() + File.separator + FOLDER + File.separator + kdName + ".blg";
}
private static String getTextPath(KingdomsPlugin plugin, String kdName){
return plugin.getDataFolder().getAbsolutePath() + File.separator + FOLDER + File.separator + kdName + " block log.txt";
}
private List<byte[]> bytes = new ArrayList<byte[]>();
private void addAction(byte type, UUID playerID, Material old, long time, int x, int y, int z){
bytes.add(toBytes(type, playerID, old, time, x, y, z));
}
private void save(KingdomsPlugin plugin, String kdName){
try {
byte[] previousData = loadBytes(plugin, kdName);
FileOutputStream output = new FileOutputStream(getAbsolutePath(plugin, kdName));
if(previousData != null)
output.write(previousData);
for(byte[] data : bytes)
output.write(data);
output.close();
} catch (Exception e) {
e.printStackTrace();
}
}
private void saveToText(KingdomsPlugin plugin, Kingdom kd, boolean ignoreOwnMembers){
String[] lines = produceLines(plugin, kd, ignoreOwnMembers);
try {
PrintWriter writer = new PrintWriter(getTextPath(plugin, kd.getName()));
for(String line : lines)
if(line != null)
writer.println(line);
writer.close();
} catch(Exception ex){
ex.printStackTrace();
}
}
private String[] produceLines(KingdomsPlugin plug, Kingdom kd, boolean ignoreOwnMembers){
byte[][] firstData = split(loadBytes(plug, kd.getName()));
if(firstData != null){
String[] lines = new String[firstData.length + bytes.size()];
for(int i = 0; i < firstData.length; i++){
lines[i] = toLine(firstData[i], kd, plug.getKingdoms(), ignoreOwnMembers);
}
for(int i = 0; i < bytes.size(); i++){
lines[i + firstData.length] = toLine(bytes.get(i), kd, plug.getKingdoms(), ignoreOwnMembers);
}
return lines;
}
String[] lines = new String[bytes.size()];
for(int i = 0; i < bytes.size(); i++)
lines[i] = toLine(bytes.get(i), kd, plug.getKingdoms(), ignoreOwnMembers);
return lines;
}
private ArrayList<String> produceLines(File file, KingdomsPlugin plug, String playerName, Kingdom kd, boolean ignoreOwnKD){
ArrayList<String> lines = new ArrayList<String>();
byte[][] firstData = split(loadBytes(plug, kd.getName()));
if(firstData != null)
for(int i = 0; i < firstData.length; i++)
addLine(firstData[i], plug, playerName, kd, lines, ignoreOwnKD);
for(byte[] data : bytes)
addLine(data, plug, playerName, kd, lines, ignoreOwnKD);
return lines;
}
}
private static class EntityLog {
private static final int BYTES = 1 + 16 + 2 + 8 + 4 + 4 + 4;
private static byte[] toBytes(byte type, UUID playerID, Entity target, long time, int x, int y, int z){
ByteBuffer buffer = ByteBuffer.allocate(BYTES);
buffer.put(type);
buffer.putLong(playerID.getMostSignificantBits());
buffer.putLong(playerID.getLeastSignificantBits());
buffer.putShort((short) target.getType().ordinal());//there aren't more than 32000 materials
buffer.putLong(time);
buffer.putInt(x);
buffer.putInt(y);
buffer.putInt(z);
return buffer.array();
}
private static byte[] loadBytes(KingdomsPlugin plugin, String kdName){
try {
File file = new File(getAbsolutePath(plugin, kdName));
if(file.length() > Integer.MAX_VALUE)
throw new RuntimeException("Grief log too long! (" + file.getAbsolutePath() + ") [" + file.length() + " bytes]");
byte[] data = new byte[(int) file.length()];
FileInputStream input = new FileInputStream(file);
input.read(data);
input.close();
return data;
} catch(Exception ex){
Bukkit.getLogger().warning("No previous entity log could be found for " + kdName + ": " + ex.getMessage());
return null;
}
}
private static byte[][] split(byte[] data){
if(data == null)
return null;
byte[][] splitted = new byte[data.length / BYTES][];
for(int i = 0; i < splitted.length; i++){
splitted[i] = Arrays.copyOfRange(data, i * BYTES, i * BYTES + BYTES);
}
return splitted;
}
private static String toLine(byte[] line, Kingdom kd, Kingdoms kds, boolean ignoreOwnMembers){
ByteBuffer buffer = ByteBuffer.wrap(line);
byte type = buffer.get();
UUID id = new UUID(buffer.getLong(), buffer.getLong());
short entityType = buffer.getShort();
long time = buffer.getLong();
int x = buffer.getInt();
int y = buffer.getInt();
int z = buffer.getInt();
OfflinePlayer player = Bukkit.getOfflinePlayer(id);
if(ignoreOwnMembers && kds.getPlayerKingdom(player.getUniqueId()) == kd)
return null;
String sEntity;
if(entityType < 0 || entityType >= EntityType.values().length)
sEntity = "Unknown Material";
else
sEntity = EntityType.values()[entityType].name().toLowerCase();
String playerName = player != null ? player.getName() : "Unknown Player";
Calendar cal = new Calendar.Builder().setInstant(time).build();
String sTime = "[" + cal.get(Calendar.DATE) + "/" + cal.get(Calendar.MONTH) + "/" + (cal.get(Calendar.YEAR) + 1) + " " + cal.get(Calendar.HOUR_OF_DAY) + ":" + cal.get(Calendar.MINUTE) + ":" + cal.get(Calendar.SECOND) + "] ";
String sLoc = " at (" + x + "," + y + "," + z + ")";
if(type == IDB_INTERACT)
return sTime + playerName + " interacted with " + sEntity + sLoc;
if(type == ID_ATTACK)
return sTime + playerName + " attacked " + sEntity + sLoc;
if(type == ID_ATTACKED)
return sTime + playerName + " was attacked by " + sEntity + sLoc;
throw new RuntimeException("Unknown type: " + type);
}
private static void addLine(byte[] data, KingdomsPlugin plug, String playerName, Kingdom kd, ArrayList<String> lines, boolean ignoreOwnKD){
ByteBuffer buffer = ByteBuffer.wrap(data, 1, 16);
UUID id = new UUID(buffer.getLong(), buffer.getLong());
if(Bukkit.getOfflinePlayer(id).getName().equals(playerName)){
String line = toLine(data, kd, plug.getKingdoms(), ignoreOwnKD);
line += " (" + kd.getName() + ")";
lines.add(line);
}
}
private static String getAbsolutePath(KingdomsPlugin plugin, String kdName){
return plugin.getDataFolder().getAbsolutePath() + File.separator + FOLDER + File.separator + kdName + ".elg";
}
private static String getTextPath(KingdomsPlugin plugin, String kdName){
return plugin.getDataFolder().getAbsolutePath() + File.separator + FOLDER + File.separator + kdName + " entity log.txt";
}
private List<byte[]> bytes = new ArrayList<byte[]>();
private void addAction(byte type, UUID playerID, Entity entity, long time, int x, int y, int z){
bytes.add(toBytes(type, playerID, entity, time, x, y, z));
}
private void save(KingdomsPlugin plugin, String kdName){
try {
byte[] previousData = loadBytes(plugin, kdName);
FileOutputStream output = new FileOutputStream(getAbsolutePath(plugin, kdName));
if(previousData != null)
output.write(previousData);
for(byte[] data : bytes)
output.write(data);
output.close();
} catch (Exception e) {
e.printStackTrace();
}
}
private void saveToText(KingdomsPlugin plugin, Kingdom kd, boolean ignoreOwnMembers){
String[] lines = produceBookLines(plugin, kd, ignoreOwnMembers);
try {
PrintWriter writer = new PrintWriter(getTextPath(plugin, kd.getName()));
for(String line : lines)
if(line != null)
writer.println(line);
writer.close();
} catch(Exception ex){
ex.printStackTrace();
}
}
private String[] produceBookLines(KingdomsPlugin plug, Kingdom kd, boolean ignoreOwnMembers){
byte[][] firstData = split(loadBytes(plug, kd.getName()));
if(firstData != null){
String[] lines = new String[firstData.length + bytes.size()];
for(int i = 0; i < firstData.length; i++){
String line = toLine(firstData[i], kd, plug.getKingdoms(), ignoreOwnMembers);
lines[i] = line;
}
for(int i = 0; i < bytes.size(); i++){
String line = toLine(bytes.get(i), kd, plug.getKingdoms(), ignoreOwnMembers);
lines[i + firstData.length] = line;
}
return lines;
}
String[] lines = new String[bytes.size()];
for(int i = 0; i < bytes.size(); i++){
String line = toLine(bytes.get(i), kd, plug.getKingdoms(), ignoreOwnMembers);
lines[i] = line;
}
return lines;
}
private ArrayList<String> produceLines(File file, KingdomsPlugin plug, String playerName, Kingdom kd, boolean ignoreOwnKD){
ArrayList<String> lines = new ArrayList<String>();
byte[][] firstData = split(loadBytes(plug, kd.getName()));
if(firstData != null)
for(int i = 0; i < firstData.length; i++)
addLine(firstData[i], plug, playerName, kd, lines, ignoreOwnKD);
for(byte[] data : bytes)
addLine(data, plug, playerName, kd, lines, ignoreOwnKD);
return lines;
}
}
}
|
3e0b1ea3afbc83ae629604a5fbf557f994b11cb6 | 2,521 | java | Java | wamp4j-core/src/main/java/jlibs/wamp4j/msg/SubscribeMessage.java | vvasianovych/jlibs | 9eaf68928f10f1d73ebb7b71761a8ec90caad1ac | [
"Apache-2.0"
] | 59 | 2015-06-01T22:02:06.000Z | 2022-03-02T14:46:08.000Z | wamp4j-core/src/main/java/jlibs/wamp4j/msg/SubscribeMessage.java | vvasianovych/jlibs | 9eaf68928f10f1d73ebb7b71761a8ec90caad1ac | [
"Apache-2.0"
] | 48 | 2015-06-01T21:57:16.000Z | 2022-02-28T07:14:58.000Z | wamp4j-core/src/main/java/jlibs/wamp4j/msg/SubscribeMessage.java | vvasianovych/jlibs | 9eaf68928f10f1d73ebb7b71761a8ec90caad1ac | [
"Apache-2.0"
] | 31 | 2015-06-12T06:40:54.000Z | 2020-09-14T04:38:40.000Z | 31.123457 | 113 | 0.692186 | 4,698 | /**
* Copyright 2015 Santhosh Kumar Tekuri
*
* The JLibs authors license this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package jlibs.wamp4j.msg;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import jlibs.wamp4j.error.InvalidMessageException;
import static jlibs.wamp4j.Util.nonNull;
/**
* A Subscriber communicates its interest in a topic to a Broker by sending a SUBSCRIBE message
*
* A Broker, receiving a SUBSCRIBE message, can fullfil or reject the subscription,
* so it answers with SUBSCRIBED or ERROR messages.
*
* @author Santhosh Kumar Tekuri
*/
public class SubscribeMessage extends WAMPMessage{
public static final int ID = 32;
/**
* random, ephemeral ID chosen by the Subscriber and used to correlate the Broker's response with the request
*/
public final long requestID;
/**
* a dictionary that allows to provide additional subscription request details in a extensible way
*/
public final ObjectNode options;
/**
* the topic the Subscriber wants to subscribe to
*/
public final String topic;
public SubscribeMessage(long requestID, ObjectNode options, String topic){
this.requestID = requestID;
this.options = options;
this.topic = nonNull(topic, "null topic");
}
@Override
public int getID(){
return ID;
}
@Override
public void toArrayNode(ArrayNode array){
array.add(idNodes[ID]);
array.add(requestID);
array.add(objectNode(options));
array.add(topic);
}
static final Decoder decoder = new Decoder(){
@Override
public WAMPMessage decode(ArrayNode array) throws InvalidMessageException{
if(array.size()!=4)
throw new InvalidMessageException();
assert id(array)==ID;
return new SubscribeMessage(longValue(array, 1), objectValue(array, 2), textValue(array, 3));
}
};
}
|
3e0b1ebfcab042c8e84cad47223453d9d45e8c5d | 3,409 | java | Java | src/main/java/com/brouhaha/block/Block.java | lhmzhou/brouhaha | 3bc6acdd97b11d99f1fa4bf85cb6ab021a5e653a | [
"MIT"
] | null | null | null | src/main/java/com/brouhaha/block/Block.java | lhmzhou/brouhaha | 3bc6acdd97b11d99f1fa4bf85cb6ab021a5e653a | [
"MIT"
] | null | null | null | src/main/java/com/brouhaha/block/Block.java | lhmzhou/brouhaha | 3bc6acdd97b11d99f1fa4bf85cb6ab021a5e653a | [
"MIT"
] | null | null | null | 27.055556 | 158 | 0.734526 | 4,699 | package com.brouhaha;
import com.brouhaha.Ledger;
import com.brouhaha.chain.Transaction;
import com.brouhaha.chain.TransactionVerifier;
import com.brouhaha.chain.Wallet;
import com.brouhaha.crypto.Merkle;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.KeyFactory;
import java.security.spec.InvalidKeySpecException;
import java.util.List;
import java.util.Date;
import org.apache.log4j.*;
public class Block {
private String hash;
private String previousHash;
private List<Transaction> transactions;
private long timestamp; // of milliseconds since 1/1/1970.
private int nonce;
private String merkleRoot;
private Block(String previousHash, List<Transaction> transactions) {
this.transactions = transactions;
this.previousHash = previousHash;
this.nonce = 0;
this.timeStamp = new Date().getTime();
// this.hash = "9999999999";
this.hash = calculateHash();
}
public String getPreviousHash() {
return previousHash; // return reference to the previous block’s hash
}
public String getHash() {
return hash; // returns the hash of the block (which for a valid, solved block should be below the target).
}
public List<Transaction> getTransactions() {
return transactions;
}
public void setTransactions(List<Transaction> transactions) {
this.transactions = transactions;
}
public long getTimeStamp() {
return timestamp;
}
public void setTimeStamp(long timestamp) {
this.timeStamp = timeStamp;
}
public String getNonce() {
return nonce;
}
public void setNonce(String nonce) {
this.nonce = nonce;
}
public String getMerkleRoot() {
return merkleRoot;
}
public void setMerkleRoot(String merkleRoot) {
this.merkleRoot = merkleRoot;
}
/**
* calculateHash() computes new hash based on block's contents
*
* @return String calculated hash
*/
public String calculateHash() throws UnsupportedEncodingException, NoSuchAlgorithmException {
String merkleRoot = Merkle.getMerkleRoot(transactions);
this.merkleRoot = merkleRoot;
return Merkle.applySha256((previousHash + merkleRoot + timestamp + nonce).getBytes("UTF-8"));
}
/**
* mine() generates the hash value of the Block in accordance to the difficulty
*
* @param list of transactions
* @param previousHash,
* @param difficulty
* @return block
*/
public static Block mine(List<Transaction> transactions, String previousHash, int difficulty) throws UnsupportedEncodingException, NoSuchAlgorithmException {
Block block = new Block(previousHash, transactions);
// String target = new String(new char[difficulty]).replace('\0', '0');
// create a string with difficulty * "0"
String target = Merkle.getDifficultyString(difficulty);
// Is hash solved?
while(!block.hash.substring(0, difficulty).equals(target)) {
/*
FYI on difficulty:
Low difficulty like 1 or 2 can be mined nearly instantly on most computers.
Blocks with higher difficulty can take longer to mine.
*/
block.nonce ++; // if wrong target, increment nonce
// log.debug("nonce = " + nonce);
block.hash = block.calculateHash();
}
System.out.println("Jackpot! Block Mined: " + block.hash);
return block;
}
} |
3e0b1f197dcce403ec085ae3c202edc29653d838 | 3,002 | java | Java | src/main/java/eu/h2020/symbiote/pr/communication/rabbit/TrustManagerListener.java | symbiote-h2020/PlatformRegistry | 004c90961dd002a137a896cb069ab536c701ec66 | [
"Apache-2.0"
] | null | null | null | src/main/java/eu/h2020/symbiote/pr/communication/rabbit/TrustManagerListener.java | symbiote-h2020/PlatformRegistry | 004c90961dd002a137a896cb069ab536c701ec66 | [
"Apache-2.0"
] | null | null | null | src/main/java/eu/h2020/symbiote/pr/communication/rabbit/TrustManagerListener.java | symbiote-h2020/PlatformRegistry | 004c90961dd002a137a896cb069ab536c701ec66 | [
"Apache-2.0"
] | null | null | null | 44.147059 | 96 | 0.601599 | 4,700 | package eu.h2020.symbiote.pr.communication.rabbit;
import eu.h2020.symbiote.cloud.trust.model.TrustEntry;
import eu.h2020.symbiote.pr.services.TrustManagerService;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* This class is used as a simple listener.
*
* @author Ilia Pietri (ICOM)
* @since 31/05/2018.
*/
@Component
public class TrustManagerListener {
private static Log log = LogFactory.getLog(TrustManagerListener.class);
private TrustManagerService trustManagerService;
@Autowired
public TrustManagerListener(TrustManagerService trustManagerService) {
this.trustManagerService = trustManagerService;
}
/**
* Spring AMQP Listener for listening to new FederationResources updates from Trust Manager.
* @param resourceTrustUpdated message received from Trust Manager
*/
@RabbitListener(
bindings = @QueueBinding(
value = @Queue(
value = "${rabbit.queueName.trust.updateAdaptiveResourceTrust}",
durable = "${rabbit.exchange.trust.durable}",
autoDelete = "${rabbit.exchange.trust.autodelete}",
exclusive = "false",
arguments= {
@Argument(
name = "x-message-ttl",
value="${spring.rabbitmq.template.reply-timeout}",
type="java.lang.Integer")}
),
exchange = @Exchange(
value = "${rabbit.exchange.trust}",
ignoreDeclarationExceptions = "true",//
durable = "${rabbit.exchange.trust.durable}",
autoDelete = "${rabbit.exchange.trust.autodelete}",
internal = "${rabbit.exchange.trust.internal}",
type = "${rabbit.exchange.trust.type}"),
key = "${rabbit.routingKey.trust.updateAdaptiveResourceTrust}")
)
public void updateAdaptiveResourceTrust(TrustEntry resourceTrustUpdated) {
log.info("Received updated adaptive trust of federated resource from Trust Manager: " +
ReflectionToStringBuilder.toString(resourceTrustUpdated));
// ToDo: rework this to return proper error messages and/or do not requeue the request
try {
trustManagerService.updateFedResAdaptiveResourceTrust(resourceTrustUpdated);
} catch (Exception e) {
log.info("Exception thrown during updating trust of federated resources", e);
}
}
}
|
3e0b1f479bf1de36d89c906c7a7aee7f08e79649 | 3,429 | java | Java | emma-mitos/src/main/java/org/emmalanguage/mitos/operators/CFAwareFileSinkGen.java | stratosphere/emma | e47910f5bbd4e8d808cc30a90489f4dd93da60b1 | [
"BSL-1.0"
] | 61 | 2016-07-08T12:37:41.000Z | 2022-02-12T06:54:23.000Z | emma-mitos/src/main/java/org/emmalanguage/mitos/operators/CFAwareFileSinkGen.java | stratosphere/emma | e47910f5bbd4e8d808cc30a90489f4dd93da60b1 | [
"BSL-1.0"
] | 144 | 2016-07-08T10:53:57.000Z | 2021-09-10T12:48:59.000Z | emma-mitos/src/main/java/org/emmalanguage/mitos/operators/CFAwareFileSinkGen.java | stratosphere/emma | e47910f5bbd4e8d808cc30a90489f4dd93da60b1 | [
"BSL-1.0"
] | 21 | 2016-07-07T14:48:58.000Z | 2020-08-05T02:50:10.000Z | 31.218182 | 123 | 0.651427 | 4,701 | /*
* Copyright © 2014 TU Berlin (kenaa@example.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.emmalanguage.mitos.operators;
import org.emmalanguage.mitos.util.SerializedBuffer;
import org.emmalanguage.mitos.util.Unit;
import org.apache.flink.api.common.typeutils.TypeSerializer;
import org.apache.flink.core.fs.FileSystem;
import org.apache.flink.core.fs.Path;
import org.apache.flink.types.Either;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.URI;
import java.net.URISyntaxException;
/**
* Each time when the control flow reaches the operator, we create a new out file.
* First input is a singleton bag with an Integer, which is appended to the filename.
* Second input is a bag of Integers, which are written to the current file.
*
* Warning: At the moment, it only works with para 1.
*/
public class CFAwareFileSinkGen<T> extends BagOperator<Either<Integer, T>, Unit> implements DontThrowAwayInputBufs {
private final String baseName;
private String currentFileName;
private SerializedBuffer<T> buffer;
private final TypeSerializer<T> inputSer;
private boolean[] closed = new boolean[2];
public CFAwareFileSinkGen(String baseName, TypeSerializer<T> inputSer) {
this.baseName = baseName;
this.inputSer = inputSer;
}
@Override
public void openOutBag() {
super.openOutBag();
assert host.partitionId == 0; // we need para 1
buffer = new SerializedBuffer<>(inputSer);
closed[0] = false;
closed[1] = false;
currentFileName = null;
}
@Override
public void pushInElement(Either<Integer, T> e, int logicalInputId) {
super.pushInElement(e, logicalInputId);
if (logicalInputId == 0) {
assert e.isLeft();
currentFileName = baseName + e.left();
} else {
assert logicalInputId == 1;
assert e.isRight();
buffer.add(e.right());
}
}
@Override
public void closeInBag(int inputId) {
super.closeInBag(inputId);
closed[inputId] = true;
if (closed[0] && closed[1]) {
try {
FileSystem fs = FileSystem.get(new URI(currentFileName));
//BufferedReader br = new BufferedReader(new InputStreamReader(fs.open(new Path(currentFileName))));
//PrintWriter csvWriter = new PrintWriter(currentFileName, "UTF-8");
PrintWriter writer = new PrintWriter(fs.create(new Path(currentFileName), FileSystem.WriteMode.OVERWRITE));
for (T e : buffer) {
writer.println(e.toString());
}
buffer = null;
writer.close();
} catch (URISyntaxException | IOException e) {
throw new RuntimeException(e);
}
out.closeBag();
}
}
}
|
3e0b1ffe79db3b26a94db0f5916b897f204d681f | 605 | java | Java | app/src/main/java/de/p72b/mocklation/service/geocoder/Constants.java | ZCShou/Mocklation | e70cdac9bbbfa51312f091b65287d4efc92d15d3 | [
"MIT"
] | null | null | null | app/src/main/java/de/p72b/mocklation/service/geocoder/Constants.java | ZCShou/Mocklation | e70cdac9bbbfa51312f091b65287d4efc92d15d3 | [
"MIT"
] | null | null | null | app/src/main/java/de/p72b/mocklation/service/geocoder/Constants.java | ZCShou/Mocklation | e70cdac9bbbfa51312f091b65287d4efc92d15d3 | [
"MIT"
] | null | null | null | 50.416667 | 104 | 0.773554 | 4,702 | package de.p72b.mocklation.service.geocoder;
public class Constants {
static final int SUCCESS_RESULT = 0;
public static final int FAILURE_RESULT = 1;
private static final String PACKAGE_NAME = "com.google.android.gms.location.sample.locationaddress";
public static final String RECEIVER = PACKAGE_NAME + ".RECEIVER";
public static final String RESULT_DATA_KEY = PACKAGE_NAME + ".RESULT_DATA_KEY";
public static final String RESULT_DATA_MESSAGE = PACKAGE_NAME + ".RESULT_DATA_MESSAGE";
public static final String LOCATION_DATA_EXTRA = PACKAGE_NAME + ".LOCATION_DATA_EXTRA";
}
|
3e0b204f4ecd639469e1a3bbe82423a395c01bd0 | 24,741 | java | Java | aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/CaptionFormat.java | DamonTung/aws-sdk-java | e33012aea76a1cc18866120d0c53fd593b2cf550 | [
"Apache-2.0"
] | 1 | 2019-10-17T14:03:43.000Z | 2019-10-17T14:03:43.000Z | aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/CaptionFormat.java | DamonTung/aws-sdk-java | e33012aea76a1cc18866120d0c53fd593b2cf550 | [
"Apache-2.0"
] | null | null | null | aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/model/CaptionFormat.java | DamonTung/aws-sdk-java | e33012aea76a1cc18866120d0c53fd593b2cf550 | [
"Apache-2.0"
] | 2 | 2017-10-05T10:52:18.000Z | 2018-10-19T09:13:12.000Z | 30.282742 | 138 | 0.494159 | 4,703 | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.elastictranscoder.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* <p>
* The file format of the output captions. If you leave this value blank, Elastic Transcoder returns an error.
* </p>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CaptionFormat implements Serializable, Cloneable, StructuredPojo {
/**
* <p>
* The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for this
* output.
* </p>
* <ul>
* <li>
* <p>
* <b>Valid Embedded Caption Formats:</b>
* </p>
* <ul>
* <li>
* <p>
* <b>for FLAC</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP3</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP4</b>: mov-text
* </p>
* </li>
* <li>
* <p>
* <b>For MPEG-TS</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For ogg</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For webm</b>: None
* </p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Valid Sidecar Caption Formats:</b> Elastic Transcoder supports dfxp (first div element only), scc, srt, and
* webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
* </p>
* <ul>
* <li>
* <p>
* <b>For FMP4</b>: dfxp
* </p>
* </li>
* <li>
* <p>
* <b>Non-FMP4 outputs</b>: All sidecar types
* </p>
* </li>
* </ul>
* <p>
* <code>fmp4</code> captions have an extension of <code>.ismt</code>
* </p>
* </li>
* </ul>
*/
private String format;
/**
* <p>
* The prefix for caption filenames, in the form <i>description</i>-<code>{language}</code>, where:
* </p>
* <ul>
* <li>
* <p>
* <i>description</i> is a description of the video.
* </p>
* </li>
* <li>
* <p>
* <code>{language}</code> is a literal value that Elastic Transcoder replaces with the two- or three-letter code
* for the language of the caption in the output file names.
* </p>
* </li>
* </ul>
* <p>
* If you don't include <code>{language}</code> in the file name pattern, Elastic Transcoder automatically appends "
* <code>{language}</code>" to the value that you specify for the description. In addition, Elastic Transcoder
* automatically appends the count to the end of the segment files.
* </p>
* <p>
* For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", and the
* language of the captions is English (en), the name of the first caption file is be Sydney-en-sunrise00000.srt.
* </p>
*/
private String pattern;
/**
* <p>
* The encryption settings, if any, that you want Elastic Transcoder to apply to your caption formats.
* </p>
*/
private Encryption encryption;
/**
* <p>
* The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for this
* output.
* </p>
* <ul>
* <li>
* <p>
* <b>Valid Embedded Caption Formats:</b>
* </p>
* <ul>
* <li>
* <p>
* <b>for FLAC</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP3</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP4</b>: mov-text
* </p>
* </li>
* <li>
* <p>
* <b>For MPEG-TS</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For ogg</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For webm</b>: None
* </p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Valid Sidecar Caption Formats:</b> Elastic Transcoder supports dfxp (first div element only), scc, srt, and
* webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
* </p>
* <ul>
* <li>
* <p>
* <b>For FMP4</b>: dfxp
* </p>
* </li>
* <li>
* <p>
* <b>Non-FMP4 outputs</b>: All sidecar types
* </p>
* </li>
* </ul>
* <p>
* <code>fmp4</code> captions have an extension of <code>.ismt</code>
* </p>
* </li>
* </ul>
*
* @param format
* The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for
* this output.</p>
* <ul>
* <li>
* <p>
* <b>Valid Embedded Caption Formats:</b>
* </p>
* <ul>
* <li>
* <p>
* <b>for FLAC</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP3</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP4</b>: mov-text
* </p>
* </li>
* <li>
* <p>
* <b>For MPEG-TS</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For ogg</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For webm</b>: None
* </p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Valid Sidecar Caption Formats:</b> Elastic Transcoder supports dfxp (first div element only), scc, srt,
* and webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
* </p>
* <ul>
* <li>
* <p>
* <b>For FMP4</b>: dfxp
* </p>
* </li>
* <li>
* <p>
* <b>Non-FMP4 outputs</b>: All sidecar types
* </p>
* </li>
* </ul>
* <p>
* <code>fmp4</code> captions have an extension of <code>.ismt</code>
* </p>
* </li>
*/
public void setFormat(String format) {
this.format = format;
}
/**
* <p>
* The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for this
* output.
* </p>
* <ul>
* <li>
* <p>
* <b>Valid Embedded Caption Formats:</b>
* </p>
* <ul>
* <li>
* <p>
* <b>for FLAC</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP3</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP4</b>: mov-text
* </p>
* </li>
* <li>
* <p>
* <b>For MPEG-TS</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For ogg</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For webm</b>: None
* </p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Valid Sidecar Caption Formats:</b> Elastic Transcoder supports dfxp (first div element only), scc, srt, and
* webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
* </p>
* <ul>
* <li>
* <p>
* <b>For FMP4</b>: dfxp
* </p>
* </li>
* <li>
* <p>
* <b>Non-FMP4 outputs</b>: All sidecar types
* </p>
* </li>
* </ul>
* <p>
* <code>fmp4</code> captions have an extension of <code>.ismt</code>
* </p>
* </li>
* </ul>
*
* @return The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for
* this output.</p>
* <ul>
* <li>
* <p>
* <b>Valid Embedded Caption Formats:</b>
* </p>
* <ul>
* <li>
* <p>
* <b>for FLAC</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP3</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP4</b>: mov-text
* </p>
* </li>
* <li>
* <p>
* <b>For MPEG-TS</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For ogg</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For webm</b>: None
* </p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Valid Sidecar Caption Formats:</b> Elastic Transcoder supports dfxp (first div element only), scc,
* srt, and webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
* </p>
* <ul>
* <li>
* <p>
* <b>For FMP4</b>: dfxp
* </p>
* </li>
* <li>
* <p>
* <b>Non-FMP4 outputs</b>: All sidecar types
* </p>
* </li>
* </ul>
* <p>
* <code>fmp4</code> captions have an extension of <code>.ismt</code>
* </p>
* </li>
*/
public String getFormat() {
return this.format;
}
/**
* <p>
* The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for this
* output.
* </p>
* <ul>
* <li>
* <p>
* <b>Valid Embedded Caption Formats:</b>
* </p>
* <ul>
* <li>
* <p>
* <b>for FLAC</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP3</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP4</b>: mov-text
* </p>
* </li>
* <li>
* <p>
* <b>For MPEG-TS</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For ogg</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For webm</b>: None
* </p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Valid Sidecar Caption Formats:</b> Elastic Transcoder supports dfxp (first div element only), scc, srt, and
* webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
* </p>
* <ul>
* <li>
* <p>
* <b>For FMP4</b>: dfxp
* </p>
* </li>
* <li>
* <p>
* <b>Non-FMP4 outputs</b>: All sidecar types
* </p>
* </li>
* </ul>
* <p>
* <code>fmp4</code> captions have an extension of <code>.ismt</code>
* </p>
* </li>
* </ul>
*
* @param format
* The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for
* this output.</p>
* <ul>
* <li>
* <p>
* <b>Valid Embedded Caption Formats:</b>
* </p>
* <ul>
* <li>
* <p>
* <b>for FLAC</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP3</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For MP4</b>: mov-text
* </p>
* </li>
* <li>
* <p>
* <b>For MPEG-TS</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For ogg</b>: None
* </p>
* </li>
* <li>
* <p>
* <b>For webm</b>: None
* </p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <b>Valid Sidecar Caption Formats:</b> Elastic Transcoder supports dfxp (first div element only), scc, srt,
* and webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
* </p>
* <ul>
* <li>
* <p>
* <b>For FMP4</b>: dfxp
* </p>
* </li>
* <li>
* <p>
* <b>Non-FMP4 outputs</b>: All sidecar types
* </p>
* </li>
* </ul>
* <p>
* <code>fmp4</code> captions have an extension of <code>.ismt</code>
* </p>
* </li>
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CaptionFormat withFormat(String format) {
setFormat(format);
return this;
}
/**
* <p>
* The prefix for caption filenames, in the form <i>description</i>-<code>{language}</code>, where:
* </p>
* <ul>
* <li>
* <p>
* <i>description</i> is a description of the video.
* </p>
* </li>
* <li>
* <p>
* <code>{language}</code> is a literal value that Elastic Transcoder replaces with the two- or three-letter code
* for the language of the caption in the output file names.
* </p>
* </li>
* </ul>
* <p>
* If you don't include <code>{language}</code> in the file name pattern, Elastic Transcoder automatically appends "
* <code>{language}</code>" to the value that you specify for the description. In addition, Elastic Transcoder
* automatically appends the count to the end of the segment files.
* </p>
* <p>
* For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", and the
* language of the captions is English (en), the name of the first caption file is be Sydney-en-sunrise00000.srt.
* </p>
*
* @param pattern
* The prefix for caption filenames, in the form <i>description</i>-<code>{language}</code>, where:</p>
* <ul>
* <li>
* <p>
* <i>description</i> is a description of the video.
* </p>
* </li>
* <li>
* <p>
* <code>{language}</code> is a literal value that Elastic Transcoder replaces with the two- or three-letter
* code for the language of the caption in the output file names.
* </p>
* </li>
* </ul>
* <p>
* If you don't include <code>{language}</code> in the file name pattern, Elastic Transcoder automatically
* appends "<code>{language}</code>" to the value that you specify for the description. In addition, Elastic
* Transcoder automatically appends the count to the end of the segment files.
* </p>
* <p>
* For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", and
* the language of the captions is English (en), the name of the first caption file is be
* Sydney-en-sunrise00000.srt.
*/
public void setPattern(String pattern) {
this.pattern = pattern;
}
/**
* <p>
* The prefix for caption filenames, in the form <i>description</i>-<code>{language}</code>, where:
* </p>
* <ul>
* <li>
* <p>
* <i>description</i> is a description of the video.
* </p>
* </li>
* <li>
* <p>
* <code>{language}</code> is a literal value that Elastic Transcoder replaces with the two- or three-letter code
* for the language of the caption in the output file names.
* </p>
* </li>
* </ul>
* <p>
* If you don't include <code>{language}</code> in the file name pattern, Elastic Transcoder automatically appends "
* <code>{language}</code>" to the value that you specify for the description. In addition, Elastic Transcoder
* automatically appends the count to the end of the segment files.
* </p>
* <p>
* For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", and the
* language of the captions is English (en), the name of the first caption file is be Sydney-en-sunrise00000.srt.
* </p>
*
* @return The prefix for caption filenames, in the form <i>description</i>-<code>{language}</code>, where:</p>
* <ul>
* <li>
* <p>
* <i>description</i> is a description of the video.
* </p>
* </li>
* <li>
* <p>
* <code>{language}</code> is a literal value that Elastic Transcoder replaces with the two- or three-letter
* code for the language of the caption in the output file names.
* </p>
* </li>
* </ul>
* <p>
* If you don't include <code>{language}</code> in the file name pattern, Elastic Transcoder automatically
* appends "<code>{language}</code>" to the value that you specify for the description. In addition, Elastic
* Transcoder automatically appends the count to the end of the segment files.
* </p>
* <p>
* For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", and
* the language of the captions is English (en), the name of the first caption file is be
* Sydney-en-sunrise00000.srt.
*/
public String getPattern() {
return this.pattern;
}
/**
* <p>
* The prefix for caption filenames, in the form <i>description</i>-<code>{language}</code>, where:
* </p>
* <ul>
* <li>
* <p>
* <i>description</i> is a description of the video.
* </p>
* </li>
* <li>
* <p>
* <code>{language}</code> is a literal value that Elastic Transcoder replaces with the two- or three-letter code
* for the language of the caption in the output file names.
* </p>
* </li>
* </ul>
* <p>
* If you don't include <code>{language}</code> in the file name pattern, Elastic Transcoder automatically appends "
* <code>{language}</code>" to the value that you specify for the description. In addition, Elastic Transcoder
* automatically appends the count to the end of the segment files.
* </p>
* <p>
* For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", and the
* language of the captions is English (en), the name of the first caption file is be Sydney-en-sunrise00000.srt.
* </p>
*
* @param pattern
* The prefix for caption filenames, in the form <i>description</i>-<code>{language}</code>, where:</p>
* <ul>
* <li>
* <p>
* <i>description</i> is a description of the video.
* </p>
* </li>
* <li>
* <p>
* <code>{language}</code> is a literal value that Elastic Transcoder replaces with the two- or three-letter
* code for the language of the caption in the output file names.
* </p>
* </li>
* </ul>
* <p>
* If you don't include <code>{language}</code> in the file name pattern, Elastic Transcoder automatically
* appends "<code>{language}</code>" to the value that you specify for the description. In addition, Elastic
* Transcoder automatically appends the count to the end of the segment files.
* </p>
* <p>
* For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", and
* the language of the captions is English (en), the name of the first caption file is be
* Sydney-en-sunrise00000.srt.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CaptionFormat withPattern(String pattern) {
setPattern(pattern);
return this;
}
/**
* <p>
* The encryption settings, if any, that you want Elastic Transcoder to apply to your caption formats.
* </p>
*
* @param encryption
* The encryption settings, if any, that you want Elastic Transcoder to apply to your caption formats.
*/
public void setEncryption(Encryption encryption) {
this.encryption = encryption;
}
/**
* <p>
* The encryption settings, if any, that you want Elastic Transcoder to apply to your caption formats.
* </p>
*
* @return The encryption settings, if any, that you want Elastic Transcoder to apply to your caption formats.
*/
public Encryption getEncryption() {
return this.encryption;
}
/**
* <p>
* The encryption settings, if any, that you want Elastic Transcoder to apply to your caption formats.
* </p>
*
* @param encryption
* The encryption settings, if any, that you want Elastic Transcoder to apply to your caption formats.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CaptionFormat withEncryption(Encryption encryption) {
setEncryption(encryption);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getFormat() != null)
sb.append("Format: ").append(getFormat()).append(",");
if (getPattern() != null)
sb.append("Pattern: ").append(getPattern()).append(",");
if (getEncryption() != null)
sb.append("Encryption: ").append(getEncryption());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CaptionFormat == false)
return false;
CaptionFormat other = (CaptionFormat) obj;
if (other.getFormat() == null ^ this.getFormat() == null)
return false;
if (other.getFormat() != null && other.getFormat().equals(this.getFormat()) == false)
return false;
if (other.getPattern() == null ^ this.getPattern() == null)
return false;
if (other.getPattern() != null && other.getPattern().equals(this.getPattern()) == false)
return false;
if (other.getEncryption() == null ^ this.getEncryption() == null)
return false;
if (other.getEncryption() != null && other.getEncryption().equals(this.getEncryption()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFormat() == null) ? 0 : getFormat().hashCode());
hashCode = prime * hashCode + ((getPattern() == null) ? 0 : getPattern().hashCode());
hashCode = prime * hashCode + ((getEncryption() == null) ? 0 : getEncryption().hashCode());
return hashCode;
}
@Override
public CaptionFormat clone() {
try {
return (CaptionFormat) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.elastictranscoder.model.transform.CaptionFormatMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
|
3e0b21d18d39c31416b020e8d3040de15fc24aa7 | 6,268 | java | Java | cordapp/src/main/java/com/pcc/flows/NOCUpdateCriminalHistoryFlow.java | AmrithaKM/passport | 182478488b7af1b51c3bb399d4c1681110e941ff | [
"Apache-2.0"
] | null | null | null | cordapp/src/main/java/com/pcc/flows/NOCUpdateCriminalHistoryFlow.java | AmrithaKM/passport | 182478488b7af1b51c3bb399d4c1681110e941ff | [
"Apache-2.0"
] | null | null | null | cordapp/src/main/java/com/pcc/flows/NOCUpdateCriminalHistoryFlow.java | AmrithaKM/passport | 182478488b7af1b51c3bb399d4c1681110e941ff | [
"Apache-2.0"
] | null | null | null | 49.746032 | 149 | 0.745054 | 4,704 | package com.pcc.flows;
import co.paralleluniverse.fibers.Suspendable;
import com.google.common.collect.ImmutableList;
import com.pcc.bean.PCCUpdateCriminalHistoryBean;
import com.pcc.contracts.NOCCommands;
import com.pcc.contracts.NOCContract;
import com.pcc.contracts.PCCContract;
import com.pcc.states.CriminalHistoryState;
import com.pcc.states.NOCApplicationDetailsState;
import com.pcc.states.NOCDataState;
import net.corda.core.contracts.StateAndRef;
import net.corda.core.contracts.UniqueIdentifier;
import net.corda.core.flows.*;
import net.corda.core.identity.AbstractParty;
import net.corda.core.identity.Party;
import net.corda.core.node.services.vault.QueryCriteria;
import net.corda.core.transactions.SignedTransaction;
import net.corda.core.transactions.TransactionBuilder;
import net.corda.core.utilities.ProgressTracker;
import net.corda.core.utilities.ProgressTracker.Step;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
@InitiatingFlow
@StartableByRPC
public class NOCUpdateCriminalHistoryFlow extends FlowLogic<SignedTransaction> {
private static final Logger logger = LoggerFactory.getLogger(NOCUpdateCriminalHistoryFlow.class);
private final PCCUpdateCriminalHistoryBean dataBean;
private final List<AbstractParty> listOfListeners;
private final UniqueIdentifier linearId;
private final Step GENERATING_TRANSACTION = new Step("Generating transaction NOCUpdateCriminalHistoryFlow.");
private final Step SIGNING_TRANSACTION = new Step("Signing transaction with our private key NOCUpdateCriminalHistoryFlow.");
private final Step FINALISING_TRANSACTION = new Step("Obtaining notary signature and recording transaction NOCUpdateCriminalHistoryFlow.") {
@Override
public ProgressTracker childProgressTracker() {
return FinalityFlow.Companion.tracker();
}
};
public NOCUpdateCriminalHistoryFlow(PCCUpdateCriminalHistoryBean dataBean,
List<AbstractParty> listOfListeners,
UniqueIdentifier linearId) {
this.dataBean = dataBean;
this.listOfListeners = listOfListeners;
this.linearId = linearId;
}
// The progress tracker checkpoints each stage of the flow and outputs the specified messages when each
// checkpoint is reached in the code. See the 'progressTracker.currentStep' expressions within the call()
// function.
private final ProgressTracker progressTracker = new ProgressTracker(
GENERATING_TRANSACTION,
SIGNING_TRANSACTION,
FINALISING_TRANSACTION
);
@Override
public ProgressTracker getProgressTracker() {
return progressTracker;
}
@Suspendable
public SignedTransaction call() throws FlowException {
logger.info("dataBean : "+dataBean.toString());
logger.info("list Of Listeners are : "+listOfListeners.toString());
logger.info("The linear ID is : "+linearId.toString());
Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);
QueryCriteria queryCriteria = new QueryCriteria.LinearStateQueryCriteria(null, ImmutableList.of(linearId.getId()));
if (getServiceHub().getVaultService().queryBy(NOCDataState.class, queryCriteria).getStates().size() == 0) {
throw new FlowException("There is no data in this node against this lineadId");
}
StateAndRef<NOCDataState> inputStateAndRef = getServiceHub().getVaultService().queryBy(NOCDataState.class, queryCriteria).getStates().get(0);
progressTracker.setCurrentStep(GENERATING_TRANSACTION);
NOCDataState nocDataState = inputStateAndRef.getState().getData();
NOCApplicationDetailsState nocApplicationDetailsState = nocDataState.getNocApplicationDetailsState();
nocApplicationDetailsState.setUserId(dataBean.getUpdatedBy());
nocApplicationDetailsState.setUpdateTimeStamp(dataBean.getUpdateTimeStamp());
nocApplicationDetailsState.setIpAddress(dataBean.getIpAddress());
List<CriminalHistoryState> listCriminalHistoryState = new ArrayList<CriminalHistoryState>();
CriminalHistoryState criminalHistoryState = null;
for (int i=0; i< dataBean.getListCriminalHistoryBean().size(); i++) {
criminalHistoryState = new CriminalHistoryState();
criminalHistoryState.setFirstName(dataBean.getListCriminalHistoryBean().get(i).getFirstName());
criminalHistoryState.setLastName(dataBean.getListCriminalHistoryBean().get(i).getLastName());
criminalHistoryState.setRelativeName(dataBean.getListCriminalHistoryBean().get(i).getRelativeName());
/*criminalHistoryState.setCrimeDetails(dataBean.getListCriminalHistoryBean().get(i).getCrimeDetails());
criminalHistoryState.setCrimeLaw(dataBean.getListCriminalHistoryBean().get(i).getCrimeLaw());
criminalHistoryState.setCrimeSection(dataBean.getListCriminalHistoryBean().get(i).getCrimeSection());
criminalHistoryState.setCrimeJurisdiction(dataBean.getListCriminalHistoryBean().get(i).getCrimeJurisdiction());*/
//criminalHistoryState.setIsSelected(dataBean.getListCriminalHistoryBean().get(i).getIsSelected());
listCriminalHistoryState.add(criminalHistoryState);
}
nocApplicationDetailsState.setListCriminalHistoryState(listCriminalHistoryState);
String status = "";
NOCDataState updatedNOCDataState = null;
updatedNOCDataState = nocDataState.updateCriminalStatusByDCRB(
nocApplicationDetailsState,
listOfListeners,
"DCRB Added Criminal History");
progressTracker.setCurrentStep(SIGNING_TRANSACTION);
TransactionBuilder builder = new TransactionBuilder(notary)
.addInputState(inputStateAndRef)
.addOutputState(updatedNOCDataState, NOCContract.ID)
.addCommand(new NOCCommands.NOCUpdateCriminalHistory(), getOurIdentity().getOwningKey());
progressTracker.setCurrentStep(FINALISING_TRANSACTION);
return subFlow(new com.pcc.flows.VerifySignAndFinaliseFlow(builder));
}
} |
3e0b21da2f467de738ba4e6769cea61dc4ac2995 | 1,173 | java | Java | languages/baseLanguage/collections/source_gen/jetbrains/mps/baseLanguage/collections/dataFlow/MapEntry_DataFlow.java | trespasserw/MPS | dbc5c76496e8ccef46dd420eefcd5089b1bc234b | [
"Apache-2.0"
] | null | null | null | languages/baseLanguage/collections/source_gen/jetbrains/mps/baseLanguage/collections/dataFlow/MapEntry_DataFlow.java | trespasserw/MPS | dbc5c76496e8ccef46dd420eefcd5089b1bc234b | [
"Apache-2.0"
] | null | null | null | languages/baseLanguage/collections/source_gen/jetbrains/mps/baseLanguage/collections/dataFlow/MapEntry_DataFlow.java | trespasserw/MPS | dbc5c76496e8ccef46dd420eefcd5089b1bc234b | [
"Apache-2.0"
] | null | null | null | 51 | 180 | 0.816709 | 4,705 | package jetbrains.mps.baseLanguage.collections.dataFlow;
/*Generated by MPS */
import jetbrains.mps.lang.dataFlow.DataFlowBuilder;
import jetbrains.mps.lang.dataFlow.DataFlowBuilderContext;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations;
import org.jetbrains.mps.openapi.language.SContainmentLink;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
public class MapEntry_DataFlow extends DataFlowBuilder {
public void build(final DataFlowBuilderContext _context) {
_context.getBuilder().build((SNode) SLinkOperations.getTarget(_context.getNode(), LINKS.key$LlfT));
_context.getBuilder().build((SNode) SLinkOperations.getTarget(_context.getNode(), LINKS.value$JmKo));
}
private static final class LINKS {
/*package*/ static final SContainmentLink key$LlfT = MetaAdapterFactory.getContainmentLink(0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x118f249550fL, 0x118f24b00ccL, "key");
/*package*/ static final SContainmentLink value$JmKo = MetaAdapterFactory.getContainmentLink(0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x118f249550fL, 0x118f24b224fL, "value");
}
}
|
3e0b21daa768c58d93ffbef23b1c4b71b826518f | 3,767 | java | Java | src/com/bjwg/main/util/SqlUtil.java | liangjinx/BJWG | f0186f8d369af0fb682f24bb4b98b2cdb0d6a893 | [
"Apache-2.0"
] | null | null | null | src/com/bjwg/main/util/SqlUtil.java | liangjinx/BJWG | f0186f8d369af0fb682f24bb4b98b2cdb0d6a893 | [
"Apache-2.0"
] | null | null | null | src/com/bjwg/main/util/SqlUtil.java | liangjinx/BJWG | f0186f8d369af0fb682f24bb4b98b2cdb0d6a893 | [
"Apache-2.0"
] | null | null | null | 28.323308 | 94 | 0.382002 | 4,706 | package com.bjwg.main.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.bjwg.main.constant.SQLConstant;
/**
* sql语句工具类
* @author Allen
* @version 创建时间:2015-4-3 下午05:49:27
* @Modified By:Allen
* Version: 1.0
* jdk : 1.6
* 类说明:
*/
public class SqlUtil
{
/**
* 拼接sql语句
* @param operateType sql类型
* @param tblName 表名
* @param columns 列名
* @return
*/
public static String appendSql(int operateType, String tblName, List<String> columns){
StringBuffer sql = new StringBuffer();
switch (operateType)
{
case SQLConstant.INSERT:
sql.append("insert into ").append(tblName).append("(");
for (int i = 0; i < columns.size(); i++)
{
sql.append(columns.get(i)).append(",");
}
sql = new StringBuffer(sql.substring(0, sql.length() - 1));
sql.append(")").append(" values (");
for (int i = 0; i < columns.size(); i++)
{
sql.append("?,");
}
sql = new StringBuffer(sql.substring(0, sql.length() - 1));
sql.append(")");
break;
case SQLConstant.DELETE:
sql.append("delete ").append(tblName).append(" where ");
for (int i = 0; i < columns.size(); i++)
{
sql.append(columns.get(i)).append("= ?").append(" and");
}
sql = new StringBuffer(sql.substring(0, sql.length() - 3));
break;
case SQLConstant.UPDATE:
sql.append("update ").append(tblName).append(" set ");
for (int i = 0; i < columns.size(); i++)
{
sql.append(columns.get(i)).append("= ?").append(" ,");
}
sql = new StringBuffer(sql.substring(0, sql.length() - 1));
break;
case SQLConstant.SELECT:
sql.append("select * from").append(tblName).append(" where ");
for (int i = 0; i < columns.size(); i++)
{
sql.append(columns.get(i)).append("= ? and");
}
sql = new StringBuffer(sql.substring(0, sql.length() - 3));
break;
default:
break;
}
return sql.toString();
}
public static void main(String[] args)
{
SqlUtil sqlUtil = new SqlUtil();
// String tblName = "O2O_Manager";
// List<String> columns = new ArrayList<String>(Arrays.asList("username","password"));
String tblName = "HZD_SHOP";
List<String> columns = new ArrayList<String>(Arrays.asList("shop_id","name","address"));
ConsoleUtil.println(appendSql(SQLConstant.DELETE, tblName, columns));
}
}
|
3e0b21e5d598654c6c8dbc9247f8c9dd859b786e | 746 | java | Java | apps/OboeTester/app/src/main/java/com/mobileer/oboetester/ExtraTestsActivity.java | antonioolf/oboe | b161fd170e1f92a1fb13402850159a6180d0b54f | [
"Apache-2.0"
] | 3,008 | 2017-10-02T18:00:40.000Z | 2022-03-31T23:30:31.000Z | apps/OboeTester/app/src/main/java/com/mobileer/oboetester/ExtraTestsActivity.java | antonioolf/oboe | b161fd170e1f92a1fb13402850159a6180d0b54f | [
"Apache-2.0"
] | 1,085 | 2017-10-23T17:04:22.000Z | 2022-03-31T23:10:19.000Z | apps/OboeTester/app/src/main/java/com/mobileer/oboetester/ExtraTestsActivity.java | antonioolf/oboe | b161fd170e1f92a1fb13402850159a6180d0b54f | [
"Apache-2.0"
] | 510 | 2017-11-08T18:24:55.000Z | 2022-03-30T06:40:32.000Z | 25.724138 | 69 | 0.752011 | 4,707 | package com.mobileer.oboetester;
import android.content.Intent;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
public class ExtraTestsActivity extends BaseOboeTesterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_extra_tests);
}
public void onLaunchMainActivity(View view) {
launchTestActivity(MainActivity.class);
}
public void onLaunchExternalTapTest(View view) {
launchTestThatDoesRecording(ExternalTapToToneActivity.class);
}
public void onLaunchPlugLatencyTest(View view) {
launchTestActivity(TestPlugLatencyActivity.class);
}
}
|
3e0b2231b1b3a4ddaded3a9900b750980922974f | 6,703 | java | Java | org.aion.avm.core/src/org/aion/avm/core/util/DescriptorParser.java | jmdisher/AVM | e282ecee4bf204ad143d5295b1151ece5b3469c5 | [
"MIT"
] | 48 | 2018-12-05T17:18:50.000Z | 2022-03-08T15:25:07.000Z | javaee/rt/src/java/org/aion/avm/core/util/DescriptorParser.java | pranav925/goloop | 19f19e6ba6ccb25f464ae0cc31b76a9b30a13f0f | [
"Apache-2.0"
] | 411 | 2018-12-04T21:29:50.000Z | 2020-08-13T17:25:48.000Z | javaee/rt/src/java/org/aion/avm/core/util/DescriptorParser.java | pranav925/goloop | 19f19e6ba6ccb25f464ae0cc31b76a9b30a13f0f | [
"Apache-2.0"
] | 27 | 2018-12-05T17:06:58.000Z | 2021-11-11T14:56:02.000Z | 39.662722 | 140 | 0.580337 | 4,708 | package org.aion.avm.core.util;
import i.RuntimeAssertionError;
/**
* A simple state machine for parsing descriptors. This can be used to parse both simple type descriptors and complete method descriptors.
* Note that the design takes and returns a userData argument in order to avoid the need to create stateful Callbacks implementation classes
* in the common cases. The userData returned from one event is passed as the input to the next (with the first coming from outside and the
* last being returned).
*/
public class DescriptorParser {
public static final char BYTE = 'B';
public static final char CHAR = 'C';
public static final char DOUBLE = 'D';
public static final char FLOAT = 'F';
public static final char INTEGER = 'I';
public static final char LONG = 'J';
public static final char SHORT = 'S';
public static final char BOOLEAN = 'Z';
public static final char ARRAY = '[';
public static final char OBJECT_START = 'L';
public static final char OBJECT_END = ';';
public static final char ARGS_START = '(';
public static final char ARGS_END = ')';
public static final char VOID = 'V';
/**
* Parses the entire descriptor, calling out to the given callbacks object to handle parsing events.
*
* @param descriptor The descriptor to parse.
* @param callbacks The Callbacks object which will handle the parsing events.
* @param userData The initial userData object to pass to the Callbacks methods.
* @return The final userData returned by the final Callbacks event.
*/
public static <T> T parse(String descriptor, Callbacks<T> callbacks, T userData) {
int arrayDimensions = 0;
StringBuilder parsingObject = null;
for (int index = 0; index < descriptor.length(); ++index) {
char c = descriptor.charAt(index);
if (null != parsingObject) {
switch (c) {
case OBJECT_END:
// End of object name.
userData = callbacks.readObject(arrayDimensions, parsingObject.toString(), userData);
arrayDimensions = 0;
parsingObject = null;
break;
default:
// Just assemble the object.
parsingObject.append(c);
}
} else {
switch (c) {
case BYTE:
userData = callbacks.readByte(arrayDimensions, userData);
arrayDimensions = 0;
break;
case CHAR:
userData = callbacks.readChar(arrayDimensions, userData);
arrayDimensions = 0;
break;
case DOUBLE:
userData = callbacks.readDouble(arrayDimensions, userData);
arrayDimensions = 0;
break;
case FLOAT:
userData = callbacks.readFloat(arrayDimensions, userData);
arrayDimensions = 0;
break;
case INTEGER:
userData = callbacks.readInteger(arrayDimensions, userData);
arrayDimensions = 0;
break;
case LONG:
userData = callbacks.readLong(arrayDimensions, userData);
arrayDimensions = 0;
break;
case SHORT:
userData = callbacks.readShort(arrayDimensions, userData);
arrayDimensions = 0;
break;
case BOOLEAN:
userData = callbacks.readBoolean(arrayDimensions, userData);
arrayDimensions = 0;
break;
case VOID:
RuntimeAssertionError.assertTrue(0 == arrayDimensions);
userData = callbacks.readVoid(userData);
break;
case OBJECT_START:
parsingObject = new StringBuilder();
break;
case ARRAY:
arrayDimensions += 1;
break;
case ARGS_START:
RuntimeAssertionError.assertTrue(0 == arrayDimensions);
userData = callbacks.argumentStart(userData);
break;
case ARGS_END:
RuntimeAssertionError.assertTrue(0 == arrayDimensions);
userData = callbacks.argumentEnd(userData);
break;
default:
throw RuntimeAssertionError.unreachable("Unexpected descriptor character: " + c);
}
}
}
RuntimeAssertionError.assertTrue(0 == arrayDimensions);
RuntimeAssertionError.assertTrue(null == parsingObject);
return userData;
}
/**
* The callback interface which defines the parsing events generated by this parser.
*
* @param <T> The userData arg/return type.
*/
public static interface Callbacks<T> {
public T argumentStart(T userData);
public T argumentEnd(T userData);
public T readObject(int arrayDimensions, String type, T userData);
public T readVoid(T userData);
public T readBoolean(int arrayDimensions, T userData);
public T readShort(int arrayDimensions, T userData);
public T readLong(int arrayDimensions, T userData);
public T readInteger(int arrayDimensions, T userData);
public T readFloat(int arrayDimensions, T userData);
public T readDouble(int arrayDimensions, T userData);
public T readChar(int arrayDimensions, T userData);
public T readByte(int arrayDimensions, T userData);
}
/**
* A specialized implementation of Callbacks which omits events related to argument lists.
* This is a more appropriate implementation to use if the caller is only parsing single types.
*
* @param <T> The userData arg/return type.
*/
public static abstract class TypeOnlyCallbacks<T> implements Callbacks<T> {
public T argumentStart(T userData) {
throw RuntimeAssertionError.unreachable("Type-only parser received method-style callback");
}
public T argumentEnd(T userData) {
throw RuntimeAssertionError.unreachable("Type-only parser received method-style callback");
}
public T readVoid(T userData) {
throw RuntimeAssertionError.unreachable("Type-only parser received method-style callback");
}
}
}
|
3e0b2246b4c61b4a358aea3a4221454238dd600e | 766 | java | Java | fcrepo-server/src/test/java/org/fcrepo/server/storage/translation/TestMETSFedoraExtDODeserializer.java | FLVC/fcrepo-src-3.4.2 | 8b31f3e627d4c8eef0d16bf8f0fe18a4803c4a52 | [
"Apache-2.0"
] | 15 | 2015-02-02T22:38:14.000Z | 2018-12-31T19:38:25.000Z | fcrepo-server/src/test/java/org/fcrepo/server/storage/translation/TestMETSFedoraExtDODeserializer.java | FLVC/fcrepo-src-3.4.2 | 8b31f3e627d4c8eef0d16bf8f0fe18a4803c4a52 | [
"Apache-2.0"
] | 9 | 2020-11-16T20:45:22.000Z | 2022-02-01T01:14:11.000Z | fcrepo-server/src/test/java/org/fcrepo/server/storage/translation/TestMETSFedoraExtDODeserializer.java | FLVC/fcrepo-src-3.4.2 | 8b31f3e627d4c8eef0d16bf8f0fe18a4803c4a52 | [
"Apache-2.0"
] | 30 | 2015-01-08T16:42:35.000Z | 2021-03-17T13:36:56.000Z | 30.64 | 75 | 0.744125 | 4,709 | /* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.storage.translation;
import org.fcrepo.server.storage.translation.DODeserializer;
import org.fcrepo.server.storage.translation.DOSerializer;
/**
* Common unit tests for METSFedoraExt deserializers.
*
* @author Chris Wilper
*/
public abstract class TestMETSFedoraExtDODeserializer
extends TestXMLDODeserializer {
TestMETSFedoraExtDODeserializer(DODeserializer deserializer,
DOSerializer associatedSerializer) {
super(deserializer, associatedSerializer);
}
}
|
3e0b2267554f87ddbbd1681e2f8954add8ec5d3c | 2,408 | java | Java | gmall-wms/src/main/java/com/atguigu/gmall/wms/controller/WareOrderTaskController.java | zhaojunen-777/gmall | 39eff51c306b75413b8b4cc97e948a46cdd2de06 | [
"Apache-2.0"
] | null | null | null | gmall-wms/src/main/java/com/atguigu/gmall/wms/controller/WareOrderTaskController.java | zhaojunen-777/gmall | 39eff51c306b75413b8b4cc97e948a46cdd2de06 | [
"Apache-2.0"
] | 7 | 2020-05-21T19:10:37.000Z | 2022-03-31T22:20:40.000Z | gmall-wms/src/main/java/com/atguigu/gmall/wms/controller/WareOrderTaskController.java | zhaojunen-777/gmall | 39eff51c306b75413b8b4cc97e948a46cdd2de06 | [
"Apache-2.0"
] | null | null | null | 24.55102 | 79 | 0.695345 | 4,710 | package com.atguigu.gmall.wms.controller;
import java.util.Arrays;
import java.util.Map;
import com.atguigu.core.bean.PageVo;
import com.atguigu.core.bean.QueryCondition;
import com.atguigu.core.bean.Resp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import com.atguigu.gmall.wms.entity.WareOrderTaskEntity;
import com.atguigu.gmall.wms.service.WareOrderTaskService;
/**
* 库存工作单
*
* @author zje
* @email anpch@example.com
* @date 2020-01-02 18:28:12
*/
@Api(tags = "库存工作单 管理")
@RestController
@RequestMapping("wms/wareordertask")
public class WareOrderTaskController {
@Autowired
private WareOrderTaskService wareOrderTaskService;
/**
* 列表
*/
@ApiOperation("分页查询(排序)")
@GetMapping("/list")
@PreAuthorize("hasAuthority('wms:wareordertask:list')")
public Resp<PageVo> list(QueryCondition queryCondition) {
PageVo page = wareOrderTaskService.queryPage(queryCondition);
return Resp.ok(page);
}
/**
* 信息
*/
@ApiOperation("详情查询")
@GetMapping("/info/{id}")
@PreAuthorize("hasAuthority('wms:wareordertask:info')")
public Resp<WareOrderTaskEntity> info(@PathVariable("id") Long id){
WareOrderTaskEntity wareOrderTask = wareOrderTaskService.getById(id);
return Resp.ok(wareOrderTask);
}
/**
* 保存
*/
@ApiOperation("保存")
@PostMapping("/save")
@PreAuthorize("hasAuthority('wms:wareordertask:save')")
public Resp<Object> save(@RequestBody WareOrderTaskEntity wareOrderTask){
wareOrderTaskService.save(wareOrderTask);
return Resp.ok(null);
}
/**
* 修改
*/
@ApiOperation("修改")
@PostMapping("/update")
@PreAuthorize("hasAuthority('wms:wareordertask:update')")
public Resp<Object> update(@RequestBody WareOrderTaskEntity wareOrderTask){
wareOrderTaskService.updateById(wareOrderTask);
return Resp.ok(null);
}
/**
* 删除
*/
@ApiOperation("删除")
@PostMapping("/delete")
@PreAuthorize("hasAuthority('wms:wareordertask:delete')")
public Resp<Object> delete(@RequestBody Long[] ids){
wareOrderTaskService.removeByIds(Arrays.asList(ids));
return Resp.ok(null);
}
}
|
3e0b2296322c25b284cedec8c5f9acf4a19d4e67 | 3,518 | java | Java | furms-web-ui/src/main/java/io/imunity/furms/ui/views/landing/LandingPageView.java | unity-idm/furms | ba587eb7dd9c1c67e6c2b5e833f73e034e17746f | [
"BSD-2-Clause"
] | 2 | 2021-05-10T08:36:18.000Z | 2021-11-02T10:22:45.000Z | furms-web-ui/src/main/java/io/imunity/furms/ui/views/landing/LandingPageView.java | unity-idm/furms | ba587eb7dd9c1c67e6c2b5e833f73e034e17746f | [
"BSD-2-Clause"
] | 24 | 2020-11-18T22:27:15.000Z | 2022-01-05T11:47:30.000Z | furms-web-ui/src/main/java/io/imunity/furms/ui/views/landing/LandingPageView.java | unity-idm/furms | ba587eb7dd9c1c67e6c2b5e833f73e034e17746f | [
"BSD-2-Clause"
] | null | null | null | 33.826923 | 106 | 0.773735 | 4,711 | /*
* Copyright (c) 2020 Bixbit s.c. All rights reserved.
* See LICENSE file for licensing information.
*/
package io.imunity.furms.ui.views.landing;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.dependency.CssImport;
import com.vaadin.flow.component.html.H3;
import com.vaadin.flow.component.html.H4;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.AfterNavigationEvent;
import com.vaadin.flow.router.AfterNavigationObserver;
import com.vaadin.flow.router.Route;
import io.imunity.furms.ui.components.FurmsViewComponent;
import io.imunity.furms.ui.components.PageTitle;
import io.imunity.furms.ui.user_context.FurmsViewUserContext;
import io.imunity.furms.ui.user_context.RoleTranslator;
import io.imunity.furms.ui.user_context.ViewMode;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import static com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment.CENTER;
import static io.imunity.furms.domain.constant.RoutesConst.LANDING_PAGE_URL;
import static io.imunity.furms.domain.constant.RoutesConst.LOGOUT_TRIGGER_URL;
import static java.lang.String.format;
import static java.util.stream.Collectors.toList;
@Route(LANDING_PAGE_URL)
@PageTitle(key = "view.landing.title")
@CssImport("./styles/views/landing-page.css")
public class LandingPageView extends FurmsViewComponent implements AfterNavigationObserver {
private final Map<ViewMode, List<FurmsViewUserContext>> data;
LandingPageView(RoleTranslator roleTranslator) {
this.data = roleTranslator.refreshAuthzRolesAndGetRolesToUserViewContexts();
final VerticalLayout[] linksBlocks = data.keySet().stream()
.sorted()
.map(viewMode -> addSelectBlock(viewMode, data.get(viewMode)))
.toArray(VerticalLayout[]::new);
final VerticalLayout layout = new VerticalLayout();
layout.setDefaultHorizontalComponentAlignment(CENTER);
layout.add(new H3(getTranslation("view.landing.title")));
layout.add(linksBlocks);
getContent().add(layout);
getContent().setClassName("landing-page");
}
private VerticalLayout addSelectBlock(ViewMode viewMode, List<FurmsViewUserContext> userContexts) {
final VerticalLayout selectBlock = new VerticalLayout();
if (viewMode.hasHeader()) {
final H4 label = new H4(getTranslation(format("view.landing.role.%s", viewMode.name())));
selectBlock.add(label);
}
final Button[] buttons = userContexts.stream()
.sorted()
.map(this::createLink)
.toArray(Button[]::new);
selectBlock.add(buttons);
selectBlock.setDefaultHorizontalComponentAlignment(CENTER);
return selectBlock;
}
private Button createLink(FurmsViewUserContext userContext) {
final Button link = new Button(userContext.name);
link.setClassName("button-link");
link.addClickListener(event -> {
userContext.setAsCurrent();
UI.getCurrent().navigate(userContext.route);
});
return link;
}
@Override
public void afterNavigation(AfterNavigationEvent afterNavigationEvent) {
List<FurmsViewUserContext> viewUserContexts = data.values().stream()
.flatMap(Collection::stream)
.collect(toList());
if (viewUserContexts.size() == 0) {
UI.getCurrent().getPage().setLocation(LOGOUT_TRIGGER_URL);
return;
}
if (viewUserContexts.size() == 1 || (viewUserContexts.size() == 2 && data.containsKey(ViewMode.USER))) {
viewUserContexts.get(0).setAsCurrent();
UI.getCurrent().navigate(viewUserContexts.get(0).route);
}
}
}
|
3e0b22acaaded5ff0c5fcf6c4d1e35cfeb45b377 | 810 | java | Java | app/src/main/java/com/example/android/miwok/PhrasesActivity.java | jungho1109/Miwok | ec2b22164540aa9ea7257d4b270ef52c1476049d | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/example/android/miwok/PhrasesActivity.java | jungho1109/Miwok | ec2b22164540aa9ea7257d4b270ef52c1476049d | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/example/android/miwok/PhrasesActivity.java | jungho1109/Miwok | ec2b22164540aa9ea7257d4b270ef52c1476049d | [
"Apache-2.0"
] | null | null | null | 27 | 63 | 0.758025 | 4,712 | package com.example.android.miwok;
import android.content.Context;
import android.graphics.Color;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuInflater;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;
import java.util.ArrayList;
public class PhrasesActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_category);
getSupportFragmentManager().beginTransaction()
.replace(R.id.container, new NumbersFragment())
.commit();
}
}
|
3e0b230f1f1c674fc6b033ec9d44cc415a08608b | 2,392 | java | Java | taotao-cloud-microservice/taotao-cloud-promotion/taotao-cloud-promotion-biz/src/main/java/com/taotao/cloud/promotion/biz/controller/buyer/PintuanBuyerController.java | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 47 | 2021-04-13T10:32:13.000Z | 2022-03-31T10:30:30.000Z | taotao-cloud-microservice/taotao-cloud-promotion/taotao-cloud-promotion-biz/src/main/java/com/taotao/cloud/promotion/biz/controller/buyer/PintuanBuyerController.java | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 1 | 2021-11-01T07:41:04.000Z | 2021-11-01T07:41:10.000Z | taotao-cloud-microservice/taotao-cloud-promotion/taotao-cloud-promotion-biz/src/main/java/com/taotao/cloud/promotion/biz/controller/buyer/PintuanBuyerController.java | shuigedeng/taotao-cloud-paren | 3d281b919490f7cbee4520211e2eee5da7387564 | [
"Apache-2.0"
] | 21 | 2021-04-13T10:32:17.000Z | 2022-03-26T07:43:22.000Z | 39.213115 | 122 | 0.788043 | 4,713 | package com.taotao.cloud.promotion.biz.controller.buyer;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.taotao.cloud.promotion.api.enums.PromotionsStatusEnum;
import com.taotao.cloud.promotion.api.vo.PintuanMemberVO;
import com.taotao.cloud.promotion.api.vo.PintuanShareVO;
import com.taotao.cloud.promotion.api.vo.PromotionGoodsSearchParams;
import com.taotao.cloud.promotion.biz.entity.PromotionGoods;
import com.taotao.cloud.promotion.biz.service.PintuanService;
import com.taotao.cloud.promotion.biz.service.PromotionGoodsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* 买家端,拼团接口
*
*
* @since 2021/2/20
**/
@Api(tags = "买家端,拼团接口")
@RestController
@RequestMapping("/buyer/promotion/pintuan")
public class PintuanBuyerController {
@Autowired
private PromotionGoodsService promotionGoodsService;
@Autowired
private PintuanService pintuanService;
@ApiOperation(value = "获取拼团商品")
@GetMapping
public ResultMessage<IPage<PromotionGoods>> getPintuanCategory(String goodsName, String categoryPath, PageVO pageVo) {
PromotionGoodsSearchParams searchParams = new PromotionGoodsSearchParams();
searchParams.setGoodsName(goodsName);
searchParams.setPromotionType(PromotionTypeEnum.PINTUAN.name());
searchParams.setPromotionStatus(PromotionsStatusEnum.START.name());
searchParams.setCategoryPath(categoryPath);
return ResultUtil.data(promotionGoodsService.pageFindAll(searchParams, pageVo));
}
@ApiOperation(value = "获取当前拼团活动的未成团的会员")
@GetMapping("/{pintuanId}/members")
public ResultMessage<List<PintuanMemberVO>> getPintuanMember(@PathVariable String pintuanId) {
return ResultUtil.data(pintuanService.getPintuanMember(pintuanId));
}
@ApiOperation(value = "获取当前拼团订单的拼团分享信息")
@GetMapping("/share")
public ResultMessage<PintuanShareVO> share(String parentOrderSn, String skuId) {
return ResultUtil.data(pintuanService.getPintuanShareInfo(parentOrderSn, skuId));
}
}
|
3e0b23ebaa9f96b9cf14debd7acab8b95ff6c019 | 766 | java | Java | chapter_001/src/main/java/ru/job4j/loop/Counter.java | KonstantinKovtun/KovtunK | 3ef12fd31fa7544ff309e6f3a6787811fa36fe82 | [
"Apache-2.0"
] | 1 | 2018-07-16T22:38:40.000Z | 2018-07-16T22:38:40.000Z | chapter_001/src/main/java/ru/job4j/loop/Counter.java | KonstantinKovtun/KovtunK | 3ef12fd31fa7544ff309e6f3a6787811fa36fe82 | [
"Apache-2.0"
] | null | null | null | chapter_001/src/main/java/ru/job4j/loop/Counter.java | KonstantinKovtun/KovtunK | 3ef12fd31fa7544ff309e6f3a6787811fa36fe82 | [
"Apache-2.0"
] | null | null | null | 20.864865 | 66 | 0.514249 | 4,714 | package ru.job4j.loop;
/**
* Class Counter count the sum of all even numbers.
* @author Kovtun Konstantin (envkt@example.com)
* @version $Id$
* @since 0.1
*/
public class Counter {
/**
* Convert RUB to EUR.
* @param start, start value.
* @param finish, finish value.
* @return sum.
*/
public int add(int start, int finish) {
int sum = 0;
for (int i = start; i <= finish; i++) {
if (i % 2 == 0) {
sum += i;
}
}
return sum;
}
public static void main(String[] args) {
final int START = 1;
final int FINISH = 28;
Counter counter = new Counter();
System.out.println("SUM : " + counter.add(START, FINISH));
}
} |
3e0b24038c2d76eedfa0aef3be30a5d1c32b00f1 | 3,196 | java | Java | src/org/kitfox/date/ZonedLocalDateParseAndMarshall.java | Rouche/utilities | 41274b60e1e9e019b795ec142492598cec002803 | [
"MIT"
] | null | null | null | src/org/kitfox/date/ZonedLocalDateParseAndMarshall.java | Rouche/utilities | 41274b60e1e9e019b795ec142492598cec002803 | [
"MIT"
] | null | null | null | src/org/kitfox/date/ZonedLocalDateParseAndMarshall.java | Rouche/utilities | 41274b60e1e9e019b795ec142492598cec002803 | [
"MIT"
] | null | null | null | 29.592593 | 126 | 0.648936 | 4,715 | /**
*
*/
package org.kitfox.date;
import java.time.*;
import java.time.format.DateTimeParseException;
import org.junit.Test;
import lombok.extern.slf4j.Slf4j;
import static org.assertj.core.api.Assertions.assertThat;
/**
* @author larj15
*/
@Slf4j
public class ZonedLocalDateParseAndMarshall {
@Test
public void iso8601_Zoned() throws Exception {
log.info("ZonedDateTime from zone: {}", ZonedDateTime.parse("2020-04-09T18:03:26-05:00[America/Toronto]").toString());
log.info("ZonedDateTime from -5: {}", ZonedDateTime.parse("2020-04-09T18:03:26-05:00").toString());
log.info("ZonedDateTime from Z: {}", ZonedDateTime.parse("2020-04-09T18:03:26Z").toString());
}
@Test
public void local() {
log.info("LocalDate: {}", LocalDate.parse("2020-04-01").toString());
}
@Test
public void offset() {
log.info("Offset from -5: {}", OffsetDateTime.parse("2020-04-09T18:03:26-05:00").toString());
log.info("Offset from Z: {}", OffsetDateTime.parse("2020-04-09T18:03:26Z").toString());
}
@Test
public void localDateTime() {
log.info("LocalDateTime: {}", LocalDateTime.parse("2020-04-03T18:03:26").toString());
}
@Test
public void instantToOffset() {
Instant instant = Instant.now();
String s = instant.toString();
String offset = OffsetDateTime.parse(s).toString();
log.info("Offset from Instant: [{}]", offset);
assertThat(s).isEqualTo(offset);
}
@Test(expected = DateTimeParseException.class)
public void offsetToInstant() {
OffsetDateTime offset = OffsetDateTime.now();
String s = offset.toString();
log.info("Offset now: [{}]", s);
String instant = Instant.parse(s).toString();
log.info("Instant from Offset: {}", instant);
assertThat(s).isEqualTo(OffsetDateTime.parse(s).toString());
}
@Test(expected = DateTimeParseException.class)
public void noDash_NoOffset() {
ZonedDateTime.parse("2020-04-09T18:03:26");
}
@Test(expected = DateTimeParseException.class)
public void noDash_Zoned() {
ZonedDateTime.parse("20200409T180326Z");
}
@Test(expected = DateTimeParseException.class)
public void noTime_Zoned() {
ZonedDateTime.parse("2020-04-09");
}
@Test(expected = DateTimeParseException.class)
public void local_Zoned() {
log.info(LocalDate.parse("2020-04-09T18:03:26+00:00").toString());
}
@Test(expected = DateTimeParseException.class)
public void offset_Zoned() {
log.info(OffsetDateTime.parse("2020-04-09T18:03:26-05:00[America/Toronto]").toString());
}
@Test(expected = DateTimeParseException.class)
public void offset_NoOffset() {
log.info(OffsetDateTime.parse("2020-04-09T18:03:26").toString());
}
@Test(expected = DateTimeParseException.class)
public void localDateTime_Offset() {
log.info(LocalDateTime.parse("2020-04-03T18:03:26-5:00").toString());
}
@Test(expected = DateTimeParseException.class)
public void localDateTime_NoTime() {
log.info(LocalDateTime.parse("2020-04-03").toString());
}
}
|
3e0b24909e7c09312fe01288cade9df4f79be3c4 | 31 | java | Java | job/src/main/java/quick/pager/job/common/package-info.java | SiGuiyang/job | 8a0a4adb6ae137b7331a163a3f24e39f8bf312a0 | [
"MIT"
] | 10 | 2018-05-30T11:02:47.000Z | 2021-09-06T12:30:33.000Z | job/src/main/java/quick/pager/job/common/package-info.java | A1498037026/job | 8a0a4adb6ae137b7331a163a3f24e39f8bf312a0 | [
"MIT"
] | null | null | null | job/src/main/java/quick/pager/job/common/package-info.java | A1498037026/job | 8a0a4adb6ae137b7331a163a3f24e39f8bf312a0 | [
"MIT"
] | 4 | 2019-08-28T13:30:45.000Z | 2021-07-23T01:46:58.000Z | 31 | 31 | 0.83871 | 4,716 | package quick.pager.job.common; |
3e0b24ef8e78b1e95f171af118530e03982e7252 | 508 | java | Java | robotium-solo/src/main/java/com/samstewart/hadaly/actions/MenuAction.java | upsight/Hadaly | b9b016aea7fafa8c7ae6aab06209d672cb99070c | [
"Apache-2.0"
] | null | null | null | robotium-solo/src/main/java/com/samstewart/hadaly/actions/MenuAction.java | upsight/Hadaly | b9b016aea7fafa8c7ae6aab06209d672cb99070c | [
"Apache-2.0"
] | null | null | null | robotium-solo/src/main/java/com/samstewart/hadaly/actions/MenuAction.java | upsight/Hadaly | b9b016aea7fafa8c7ae6aab06209d672cb99070c | [
"Apache-2.0"
] | null | null | null | 18.142857 | 87 | 0.748031 | 4,717 | package com.samstewart.hadaly.actions;
import android.app.Activity;
import android.test.InstrumentationTestCase;
import android.view.View;
public class MenuAction implements Action {
private String mTitle;
public MenuAction(String title) {
mTitle = title;
}
@Override
public void setView(View view) {
// pass
}
@Override
public void doAction(Activity activity, InstrumentationTestCase testCase, View view) {
// TODO: show the menu then press the item matching the selector
}
}
|
3e0b25a86a665ab73686876a4c70fac72fa09ed8 | 639 | java | Java | 01设计模式专题/10观察者模式/src/main/java/com/chengxiaoxiao/observer/jdk/Teacher.java | iquanzhan/java-framework-learn | 2c3400e1efb18e32e34eab5a586f5279a918d4c0 | [
"MIT"
] | null | null | null | 01设计模式专题/10观察者模式/src/main/java/com/chengxiaoxiao/observer/jdk/Teacher.java | iquanzhan/java-framework-learn | 2c3400e1efb18e32e34eab5a586f5279a918d4c0 | [
"MIT"
] | null | null | null | 01设计模式专题/10观察者模式/src/main/java/com/chengxiaoxiao/observer/jdk/Teacher.java | iquanzhan/java-framework-learn | 2c3400e1efb18e32e34eab5a586f5279a918d4c0 | [
"MIT"
] | null | null | null | 22.034483 | 85 | 0.605634 | 4,718 | package com.chengxiaoxiao.observer.jdk;
import java.util.Observable;
import java.util.Observer;
/**
* 观察者
*
* @Description:
* @Author: Cheng XiaoXiao (🍊 ^_^ ^_^)
* @Date: 2021-04-18 15:13
*/
public class Teacher implements Observer {
private String name;
public Teacher(String name) {
this.name = name;
}
public void update(Observable o, Object arg) {
Gper gper = (Gper) o;
Question question = (Question) arg;
System.out.println(name + "老师您好\n" + "您周到一个来自" + gper.getName() + "的提问" +
"问题内容如下:" + question.getContent() + "提问者:" + question.getUserName());
}
}
|
3e0b26e4cc26a0e47d5b09c1b15fc662de897a38 | 1,535 | java | Java | shiro-project/src/main/java/com/cmcc/shiro/dao/UserDao.java | scoldfield/shiro | 412301d55c4c3d617b2e0cfee442c59409320f67 | [
"MIT"
] | null | null | null | shiro-project/src/main/java/com/cmcc/shiro/dao/UserDao.java | scoldfield/shiro | 412301d55c4c3d617b2e0cfee442c59409320f67 | [
"MIT"
] | null | null | null | shiro-project/src/main/java/com/cmcc/shiro/dao/UserDao.java | scoldfield/shiro | 412301d55c4c3d617b2e0cfee442c59409320f67 | [
"MIT"
] | null | null | null | 27.410714 | 112 | 0.679479 | 4,719 | package com.cmcc.shiro.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.cmcc.basic.dao.BaseDao;
import com.cmcc.shiro.model.Resource;
import com.cmcc.shiro.model.Role;
import com.cmcc.shiro.model.User;
@Repository("userDao")
public class UserDao extends BaseDao<User> implements IUserDao {
public List<User> listUser() {
return super.list("from User");
}
public User loadByUsername(String username) {
return (User)super.queryObject("from User where username=?", username);
}
public List<User> listByRole(int id) {
String hql = "select u from User u,Role r,UserRole ur where u.id=ur.userId and r.id=ur.roleId and r.id=?";
// return super.listObj(hql, id);
return null;
}
public List<Resource> listAllResource(int uid) {
String hql = "select res from User u,Resource res,UserRole ur,RoleResource rr where " +
"u.id=ur.userId and ur.roleId=rr.roleId and rr.resId=res.id and u.id=?";
// return super.listObj(hql, uid);
return null;
}
@Override
public List<String> listRoleSnByUser(int uid) {
String hql = "select r.sn from UserRole ur,Role r,User u where u.id=ur.userId and r.id=ur.roleId and u.id=?";
// return super.listObj(hql, uid);
return null;
}
@Override
public List<Role> listUserRole(int uid) {
String hql = "select r from UserRole ur,Role r,User u where u.id=ur.userId and r.id=ur.roleId and u.id=?";
// return super.listObj(hql, uid);
return null;
}
}
|
3e0b26f1608753acbbe2424909269af473fe6b24 | 900 | java | Java | src/androidTest/java/nitezh/ministock/activities/menu/MenuScrollableEnteringStocksTest.java | karlogonzales/ministocks-390 | ac260128c691c8b1bd000e029f08d6cb705f0578 | [
"MIT"
] | 4 | 2018-01-20T20:10:31.000Z | 2018-03-12T02:56:17.000Z | src/androidTest/java/nitezh/ministock/activities/menu/MenuScrollableEnteringStocksTest.java | karlogonzales/ministocks-390 | ac260128c691c8b1bd000e029f08d6cb705f0578 | [
"MIT"
] | 63 | 2018-01-15T21:12:47.000Z | 2018-04-16T04:17:21.000Z | src/androidTest/java/nitezh/ministock/activities/menu/MenuScrollableEnteringStocksTest.java | karlogonzales/ministocks-390 | ac260128c691c8b1bd000e029f08d6cb705f0578 | [
"MIT"
] | 1 | 2018-01-26T18:51:07.000Z | 2018-01-26T18:51:07.000Z | 23.076923 | 137 | 0.736667 | 4,720 | package nitezh.ministock.activities.menu;
import android.support.test.rule.ActivityTestRule;
import android.view.View;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import nitezh.ministock.R;
import static org.junit.Assert.assertNotNull;
public class MenuScrollableEnteringStocksTest {
@Rule
public ActivityTestRule<MenuScrollableEnteringStocks> mActivityTestRule = new ActivityTestRule<>(MenuScrollableEnteringStocks.class);
private MenuScrollableEnteringStocks mActivity = null;
@Before
public void setUp() throws Exception {
mActivity = mActivityTestRule.getActivity();
}
@Test
public void testLaunch() {
View view = mActivity.findViewById(R.id.entering_stocks);
assertNotNull(view);
}
@After
public void tearDown() throws Exception {
mActivity = null;
}
} |
3e0b27255167f9f30fa4075a9e1425a3aa26d6a9 | 1,919 | java | Java | src/main/java/it/polimi/ingsw/model/Board/DevCardSlot.java | cicabuca/ingswAM2021-Arbasino-Azzara-Bianco | adc996af03afdaaf76d9a35142499dd68c6c80d6 | [
"MIT"
] | null | null | null | src/main/java/it/polimi/ingsw/model/Board/DevCardSlot.java | cicabuca/ingswAM2021-Arbasino-Azzara-Bianco | adc996af03afdaaf76d9a35142499dd68c6c80d6 | [
"MIT"
] | null | null | null | src/main/java/it/polimi/ingsw/model/Board/DevCardSlot.java | cicabuca/ingswAM2021-Arbasino-Azzara-Bianco | adc996af03afdaaf76d9a35142499dd68c6c80d6 | [
"MIT"
] | 1 | 2021-08-01T13:46:45.000Z | 2021-08-01T13:46:45.000Z | 25.586667 | 105 | 0.633142 | 4,721 | package it.polimi.ingsw.model.Board;
import it.polimi.ingsw.model.Cards.CardRequirement;
import it.polimi.ingsw.model.Cards.DevCard;
import it.polimi.ingsw.model.QuantityResource;
import java.util.ArrayList;
import java.util.List;
/**
* The class represents a DevCardSlot of the Personal Board. There can be up to 3 cards per slot and
* a card can be added to the Slot if and only if the card is a level higher than the one on the Slot
*/
public class DevCardSlot extends ProductionSlot {
private final List<DevCard> cards;
public DevCardSlot() {
this.cards = new ArrayList<>();
}
/**
* @return the card on top of the slot if present, null otherwise
*/
public DevCard getTopCard () {
if(cards.size()>0)
return cards.get(cards.size() - 1);
return null;
}
/**
* Adds a card in the slot
* @param card card to add
*/
public void addCard (DevCard card) {
cards.add(card);
}
@Override
public List<QuantityResource> getProductionPowerInput() {
return getTopCard().getProductionPowerInput();
}
@Override
public List<QuantityResource> getProductionPowerOutput() {
return getTopCard().getProductionPowerOutput();
}
@Override
public int numberOfCardsSatisfyingCardRequirement(CardRequirement cardRequirement){
int counter = 0;
for (DevCard c : cards){
if (c.getColor() == cardRequirement.getColor() && c.getLevel() >= cardRequirement.getLevel())
counter++;
}
return counter;
}
/**
* @return the level of the card on top of the deck if present, 0 otherwise
*/
public int getTopCardLevel(){
return cards.size();
}
@Override
public boolean hasCards() {
return (cards.size() > 0);
}
public List<DevCard> getCards() {
return cards;
}
}
|
3e0b293de620f4325fa7cbb852feedd8a3358013 | 1,136 | java | Java | src/main/java/com/car/domain/GroupRoles.java | kebukeyi/SCM-WebPlatform | a0e3906ebeb73ddf69ff791bd5bac8cea8223af1 | [
"Apache-2.0"
] | 1 | 2020-09-03T14:19:34.000Z | 2020-09-03T14:19:34.000Z | src/main/java/com/car/domain/GroupRoles.java | kebukeyi/SCM-WebPlatform | a0e3906ebeb73ddf69ff791bd5bac8cea8223af1 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/car/domain/GroupRoles.java | kebukeyi/SCM-WebPlatform | a0e3906ebeb73ddf69ff791bd5bac8cea8223af1 | [
"Apache-2.0"
] | null | null | null | 16.955224 | 53 | 0.587148 | 4,722 | package com.car.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* @Author : mmy
* @Creat Time : 2020/5/15 16:37
* @Description
*/
public class GroupRoles {
List<GroupRole> data;
private int page;
private int total;
private int limit;
private boolean IsExcel;
@JsonProperty("data")
public List<GroupRole> getData() {
return data;
}
public void setData(List<GroupRole> data) {
this.data = data;
}
@JsonProperty("page")
public int getPage() {
return page;
}
public void setPage(int page) {
this.page = page;
}
@JsonProperty("total")
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}
@JsonProperty("limit")
public int getLimit() {
return limit;
}
public void setLimit(int limit) {
this.limit = limit;
}
@JsonProperty("IsExcel")
public boolean isExcel() {
return IsExcel;
}
public void setExcel(boolean excel) {
IsExcel = excel;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.