blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 132 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 28 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c7c4b45f3284fb7c7310beb26fd726b7495fd0d | 0ae7317e280a12a918a394cf5487840a1d1485ad | /src/main/java/com/goat/jdk/learn/chapter005/F021/item03/NaiveMerchant.java | 9e943076a96b35e66183012d7a2fbe94f2443ca6 | [] | no_license | yangfancoming/goatjdk | 81dd83058e133114cbe829be07186f730f9939a8 | 098ad4c495d3f45fdc1718f650306db4968d1667 | refs/heads/master | 2022-06-26T03:50:22.515609 | 2021-10-29T08:26:37 | 2021-10-29T08:26:37 | 204,645,318 | 0 | 0 | null | 2022-06-17T02:37:10 | 2019-08-27T07:26:14 | Java | UTF-8 | Java | false | false | 557 | java | package com.goat.jdk.learn.chapter005.F021.item03;
/**
* Created by Administrator on 2019/12/5.
*
* @ Description: TODO
* @ author 山羊来了
* @ date 2019/12/5---14:17
*/
public class NaiveMerchant extends Merchant {
@Override
public Double actionPrice(double price) {
return 0.9 * price;
}
public static void main(String[] args) {
Merchant merchant = new NaiveMerchant();
// price 必须定义成 Number 类型
Number price = merchant.actionPrice(40);
System.out.println(price);
}
}
| [
"34465021+jwfl724168@users.noreply.github.com"
] | 34465021+jwfl724168@users.noreply.github.com |
57efa1adfc5c96f07f306c2ac3bed3d684045a87 | b47472fd03a8d519a7b58deb76669e3c38e1d972 | /src/jUnit/lesson39/Lesson39.java | afeb982956441e1f417713a8b508fd2c82ad5ed9 | [] | no_license | KMN24/AdvancedJava | 4b6bcf31a2ff953c27fbdf745cc2bb7ebdd35855 | 27a6d34b4fdbfc562ac20a93abe516ae56875345 | refs/heads/master | 2023-03-09T00:05:01.714457 | 2021-03-02T12:45:52 | 2021-03-02T12:45:52 | 341,535,266 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,449 | java | package jUnit.lesson39;
// todo JUnit (часть II)
// Ignore and Assume
// Тест, помеченный @Ignore, не выполняется. Лучше это не исп-ть.
// Вместо Assert можно исп-ть Assume ( с методами assumeFalse, assumeEquals и др.)
// Если проверка верна - тест пройден.
// Если проверка не верна - тест игонорируется.
// Вспомогательные методы :
// @BeforeClass - запускается только один раз при запуске теста(static)
// @Before - запускается перед каждым тестовым методом.
// @After - запускается после каждого метода.
// @AfterClass - запускается после того, как отработали все тестовые методы(static).
// Жизненный цикл тестируещего класса
// * @BeforeClass
// * Для каждого @Test - метода: - создание экзампляра тестового класса
// - @Before
// - @Test
// - @After
// * @AfterClass
public class Lesson39 {
public static void main(String[] args) {
// Нужно чтобы создать Maven проект
// MavenProject - мы создали и там практикуемся
}
}
| [
"kanatbekov.meder.00@gmail.com"
] | kanatbekov.meder.00@gmail.com |
4c80f0a9ec5663506f8560c97825ee90ecdf54ae | 0aa065db5a5c88caed37a32b82adcad9d5df2505 | /JSP/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work/Catalina/localhost/jspStudy/org/apache/jsp/ch06/ex06_002d06_jsp.java | f7899d1445191d912e4bca869202c96338924ac3 | [] | no_license | psyoongsc/LauguageStudy | b62ec2fe0cf1b0acf794ee8fac8dcaf082fd2870 | 4eecab943cd112d28e7d3778a3abc02bf844c36d | refs/heads/master | 2023-01-22T03:30:09.271492 | 2021-05-04T08:02:20 | 2021-05-04T08:02:20 | 140,408,832 | 0 | 0 | null | 2023-01-11T22:23:12 | 2018-07-10T09:25:31 | C# | UTF-8 | Java | false | false | 4,416 | java | /*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/7.0.88
* Generated at: 2018-07-10 05:05:05 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.apache.jsp.ch06;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class ex06_002d06_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final javax.servlet.jsp.JspFactory _jspxFactory =
javax.servlet.jsp.JspFactory.getDefaultFactory();
private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;
private volatile javax.el.ExpressionFactory _el_expressionfactory;
private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;
public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
return _jspx_dependants;
}
public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
if (_el_expressionfactory == null) {
synchronized (this) {
if (_el_expressionfactory == null) {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
}
}
}
return _el_expressionfactory;
}
public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
if (_jsp_instancemanager == null) {
synchronized (this) {
if (_jsp_instancemanager == null) {
_jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
}
}
}
return _jsp_instancemanager;
}
public void _jspInit() {
}
public void _jspDestroy() {
}
public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException {
final javax.servlet.jsp.PageContext pageContext;
javax.servlet.http.HttpSession session = null;
final javax.servlet.ServletContext application;
final javax.servlet.ServletConfig config;
javax.servlet.jsp.JspWriter out = null;
final java.lang.Object page = this;
javax.servlet.jsp.JspWriter _jspx_out = null;
javax.servlet.jsp.PageContext _jspx_page_context = null;
try {
response.setContentType("text/html; charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write('\r');
out.write('\n');
request.setCharacterEncoding("UTF-8");
out.write("\r\n");
out.write("<!DOCTYPE html>\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta charset=\"UTF-8\">\r\n");
out.write("<title>배열로 전송된 값 처리</title>\r\n");
out.write("</head>\r\n");
out.write("<body>\r\n");
out.write("\t<h4>당신이 보고 싶은 영화제목으로 선택한 것은?</h4>\r\n");
out.write("\t\r\n");
out.write("\t");
String[] selected = request.getParameterValues("movie");
for (int i=0; i<selected.length; i++) {
out.write('\r');
out.write('\n');
out.write(' ');
out.print( i+1 );
out.write('.');
out.write(' ');
out.print( selected[i] );
out.write("<br>\r\n");
out.write("\t");
}
out.write("\r\n");
out.write("</body>\r\n");
out.write("</html>");
} catch (java.lang.Throwable t) {
if (!(t instanceof javax.servlet.jsp.SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try {
if (response.isCommitted()) {
out.flush();
} else {
out.clearBuffer();
}
} catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
else throw new ServletException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
| [
"40999564+psyoongsc@users.noreply.github.com"
] | 40999564+psyoongsc@users.noreply.github.com |
439111f37678916f6a583a3a586adb2133438c51 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /java/testFramework/src/com/intellij/debugger/BreakpointComment.java | 21dc82d4ec6f55b5fc8711fae62def1bd5c6ba62 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Java | false | false | 8,686 | java | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.debugger;
import com.intellij.openapi.util.Pair;
import com.intellij.ui.classFilter.ClassFilter;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.*;
/**
* The properties of a breakpoint from a test source file, specified by a 'Breakpoint!' comment.
* <p>
* The general syntax of a breakpoint comment is:
* <blockquote>
* [<i>kind</i>[(<i>kindValue</i>)]] Breakpoint! [<i>name</i>(<i>value</i>)...]
* </blockquote>
* <p>
* The <i>kind</i> and <i>name</i> may consist of several words.
* <p>
* Examples:
* <ul>
* <li>{@code Breakpoint!}
* — a line breakpoint
* <li>{@code Method Breakpoint!}
* — a method breakpoint
* <li>{@code Field(myName) Breakpoint! LogExpression(myName.substring(1)) Pass count(3)}
* — a breakpoint on the field <i>myName</i>
* that when reached logs the given expression
* and only hits every 3rd time it is reached
* </ul>
* <p>
* This parser only parses the general syntax.
* Which breakpoint kinds are allowed and what their properties are
* is up to the code that uses this parser.
* <p>
* After parsing the breakpoint properties
* using {@link #readKind()}, {@link #readKindValue()} and {@link #readValue(String)},
* calling {@link #done()} checks that all properties of the breakpoint
* have been read.
*/
public final class BreakpointComment {
private @Nullable String kind;
private @Nullable String kindValue;
private final Map<@NotNull String, @NotNull String> values = new LinkedHashMap<>();
private final Map<@NotNull String, Integer> index = new LinkedHashMap<>();
private final Set<@NotNull String> validValues = new TreeSet<>();
private final @NotNull String fileName;
private final int lineNumber;
/**
* @param text the line containing the comment
* @param fileName the file name, for diagnostics
* @param lineNumber the 0-based line containing the comment, for diagnostics
*/
public static @NotNull BreakpointComment parse(@NotNull String text, @NotNull String fileName, int lineNumber) {
BreakpointComment comment = new BreakpointComment(fileName, lineNumber);
return new Parser(text, comment).parse();
}
private BreakpointComment(@NotNull String fileName, int lineNumber) {
this.fileName = fileName;
this.lineNumber = lineNumber;
}
/**
* Reads the optional kind of the breakpoint.
* <p>
* Typical values are "Method" or "Exception".
*
* @see #readKindValue()
*/
public @NotNull String readKind() {
String kind = this.kind;
assert kind != null;
this.kind = null;
return kind;
}
/**
* Reads the optional further parameter of the breakpoint kind,
* for example {@code myName} in {@code Field(myName) Breakpoint!}.
*/
public @Nullable String readKindValue() {
String value = kindValue;
kindValue = null;
return value;
}
/**
* Reads a named property of the breakpoint, which has the form <i>name(value)</i>.
* Any parentheses in the value must be balanced.
*/
public @Nullable String readValue(@NotNull String name) {
validValues.add(name);
return values.remove(name);
}
/**
* Reads a named boolean property of the breakpoint.
*/
public @Nullable Boolean readBooleanValue(@NotNull String name) {
String value = readValue(name);
if (value == null) return null;
if (value.equals("true")) return true;
if (value.equals("false")) return false;
throw error("Invalid boolean value '" + value + "' for '" + name + "'", index.get(name));
}
/**
* Reads a named integer property of the breakpoint.
*/
public @Nullable Integer readIntValue(@NotNull String name) {
String value = readValue(name);
if (value == null) return null;
try {
return Integer.parseInt(value);
}
catch (NumberFormatException e) {
throw error("Invalid integer value '" + value + "' for '" + name + "'", index.get(name));
}
}
/**
* Parses a string like {@code "Included,-ExceptionTest,-com.intellij.rt.*"} into
* two lists of included and excluded class filters.
*/
public static @NotNull Pair<ClassFilter[], ClassFilter[]> parseClassFilters(@NotNull String value) {
ArrayList<ClassFilter> include = new ArrayList<>();
ArrayList<ClassFilter> exclude = new ArrayList<>();
for (String pattern : value.split(",")) {
if (pattern.startsWith("-")) {
exclude.add(new ClassFilter(pattern.substring(1)));
}
else {
include.add(new ClassFilter(pattern));
}
}
return Pair.create(include.toArray(ClassFilter.EMPTY_ARRAY), exclude.toArray(ClassFilter.EMPTY_ARRAY));
}
/** Checks that all properties have been read. */
public void done() {
if (kind != null) throw error("Unprocessed kind '" + kind + "'");
if (kindValue != null) throw error("Unprocessed kind value '" + kindValue + "'");
if (values.size() >= 1) {
String valid = String.join(", ", validValues);
String msg = "Unprocessed %s '%s', %s".formatted(
values.size() > 1 ? "values" : "value",
String.join(", ", values.keySet()),
validValues.size() > 1 ? "valid values are '" + valid + "'" :
validValues.size() == 1 ? "the only valid value is '" + valid + "'" :
"the breakpoint takes no values");
throw error(msg, index.get(values.keySet().iterator().next()));
}
}
private @NotNull RuntimeException error(String msg) {
return new IllegalArgumentException(msg + " at " + fileName + ":" + (lineNumber + 1));
}
private @NotNull RuntimeException error(String msg, int index) {
return new IllegalArgumentException(msg + " at " + fileName + ":" + (lineNumber + 1) + ":" + (index + 1));
}
private static class Parser {
private final int[] s;
private final int len;
private int i;
private final BreakpointComment comment;
private Parser(@NotNull String lineText, BreakpointComment comment) {
s = lineText.codePoints().toArray();
len = s.length;
this.comment = comment;
}
@NotNull BreakpointComment parse() {
while (i + 1 < len && !(s[i] == '/' && s[i + 1] == '/')) i++;
skip('/');
skip('/');
skipWhitespace();
final String head = parseName();
if (i < len && s[i] == '(') {
// We have kind with value.
comment.kind = head;
comment.kindValue = parseValue();
skipWhitespace();
int nameStart = i;
String tail = parseName();
if (!tail.equals("Breakpoint")) {
throw errorAt(nameStart, "Expected 'Breakpoint' instead of '" + tail + "'");
}
}
else {
var kind = head.replaceFirst("\\s*Breakpoint$", "");
comment.kind = kind.isEmpty() ? "Line" : kind;
}
skip('!');
while (i < len) {
skipWhitespace();
if (i >= len) break; // Allow trailing space.
int nameStart = i;
String key = parseName();
if (key.isEmpty()) throw errorAt(i, "Expected breakpoint property key");
if (comment.values.containsKey(key)) throw errorAt(nameStart, "Duplicate property key '" + key + "'");
String value = parseValue();
comment.values.put(key, value);
comment.index.put(key, nameStart);
}
skipWhitespace();
if (i < len) throw errorAt(i, "Extra '" + new String(s, i, len - i) + "'");
return comment;
}
private void skipWhitespace() {
while (i < len && Character.isWhitespace(s[i])) i++;
}
private void skip(int cp) {
if (!(i < len && s[i] == cp)) throw errorAt(i, "Expected '" + Character.toString(cp) + "'");
i++;
}
private @NotNull String parseName() {
int start = i;
while (i < len && (Character.isJavaIdentifierPart(s[i]) || Character.isWhitespace(s[i]))) i++;
if (i == start) throw errorAt(start, "Expected a name");
return new String(s, start, i - start);
}
private @NotNull String parseValue() {
skip('(');
int start = i;
int depth = 1;
for (; i < len; i++) {
if (s[i] == '(') depth++;
if (s[i] == ')' && --depth == 0) return new String(s, start, i++ - start);
}
throw errorAt(start, "Unfinished value '" + new String(s, start, len - start) + "'");
}
private @NotNull RuntimeException errorAt(int index, String msg) {
return new IllegalArgumentException(msg + " at " + comment.fileName + ":" + (comment.lineNumber + 1) + ":" + (index + 1));
}
}
}
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
c320446594d5946e8a001218a7cfb32ea7291189 | ce329ee01e1f8e0db8cfa208d32b5ced50992e89 | /src/test/java/ffbit/sorting/MergeSorterTest.java | 6f30718c6f93100ff6918c1fdad298a3c330afde | [] | no_license | ffbit/sorting | 670418e8b0d8ab2af0e4e6721c09fd52fd171a3f | 693710d1b58c05affef2973d54d63dd56250a92a | refs/heads/master | 2016-09-05T12:54:47.754760 | 2012-06-30T20:50:40 | 2012-06-30T20:50:40 | 2,456,379 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 268 | java | package ffbit.sorting;
public class MergeSorterTest extends SorterTest {
public MergeSorterTest(int[] sources, int[] expecteds) {
super(sources, expecteds);
}
@Override
public void initSorter() {
sorter = new MergeSorter();
}
}
| [
"ffbit@mint"
] | ffbit@mint |
4cb6764bf233bfa50a5cfe545fbcb30ca143fff0 | 3107e5f123d39d13fb2d0cc6792790614e4bd77e | /src/main/java/com/imooc/sell/controller/BuyerProductController.java | 6ecbb7e48695ba5bf3a5eac74f668ebf58c7d4cc | [] | no_license | lawrencezr/imooc--sell | d4057dc0ea360f78c831da3061372f4452b86c5a | 0d410622f17e512feb6346adba9540e4a8c1b399 | refs/heads/master | 2022-07-30T12:47:30.996761 | 2020-05-25T17:50:45 | 2020-05-25T17:50:45 | 266,323,329 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,692 | java | package com.imooc.sell.controller;
import com.imooc.sell.VO.ProductInfoVO;
import com.imooc.sell.VO.ProductVO;
import com.imooc.sell.VO.ResultVO;
import com.imooc.sell.dataobject.ProductCategory;
import com.imooc.sell.dataobject.ProductInfo;
import com.imooc.sell.service.CategoryService;
import com.imooc.sell.service.ProductService;
import com.imooc.sell.utils.ResultVOUtil;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.persistence.criteria.CriteriaBuilder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
@RestController
@RequestMapping("buyer/product")
public class BuyerProductController {
@Autowired
private ProductService productService;
@Autowired
private CategoryService categoryService;
@GetMapping("/list")
public ResultVO list(){
//1.查询所有上架的商品
List<ProductInfo> productInfoList = productService.findUpAll();
//2.查询类目(一次性查询)
// List<Integer> categoryTypeList = new ArrayList<>();
// for(ProductInfo productInfo:productInfoList){
// categoryTypeList.add(productInfo.getCategoryType());
// }
List<Integer> categoryTypeList = productInfoList.stream()
.map(e->e.getCategoryType())
.collect(Collectors.toList());
List<ProductCategory> productCategoryList= categoryService.findByCategoryTypeIn(categoryTypeList);
//3.数据拼装
List<ProductVO> productVOList = new ArrayList<>();
for(ProductCategory productCategory:productCategoryList){
ProductVO productVO = new ProductVO();
productVO.setCategoryType(productCategory.getCategoryType());
productVO.setCategoryName(productCategory.getCategoryName());
List<ProductInfoVO> productInfoVOList = new ArrayList<>();
for(ProductInfo productInfo:productInfoList){
if(productInfo.getCategoryType()==productCategory.getCategoryType()){
ProductInfoVO productInfoVO = new ProductInfoVO();
BeanUtils.copyProperties(productInfo, productInfoVO);
productInfoVOList.add(productInfoVO);
}
}
productVO.setProductInfoVOList(productInfoVOList);
productVOList.add(productVO);
}
return ResultVOUtil.successs(productVOList);
}
}
| [
"ruizheng1119@gmail.com"
] | ruizheng1119@gmail.com |
49fcfcc20b9254c4defea06b97e3e08a1200795b | cd43df4b05376e2de3a99227c020777f7053b96b | /src/command/Command.java | 2fe2d3783bf6b441ed2525511f5760f0bef0a653 | [] | no_license | elegios/zuul | 02ce6b345e7d7c7e416aa4abde0b70724ba8aff3 | 3891de8977eed887e3a43b706dcefc24a4a1997e | refs/heads/master | 2021-01-25T08:55:18.126764 | 2012-12-06T20:02:46 | 2012-12-06T20:02:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,233 | java | package command;
/**
* This is an abstract class representing a command. An instance
* of a command can either be a factory instance or an actual
* instance. A factory instance can use the parse(InputLine, int,
* Listener, Printer) method to try and parse the InputLine as a
* command of the current class. If successful it will return an
* actual instance of the current class. This actual instance
* responds to the give() method that issues the command.
*
* The interfaces Listener and Printer are subclassed as required
* by subclasses of Command to provide the necessary methods.
* The objects passed as Listener and Printer to the parse method
* should make sure to implement the correct subclass of these
* interfaces.
*/
public abstract class Command {
private String keyWord;
protected Command(String keyWord) {
this.keyWord = keyWord;
}
/**
* Tries to parse the given InputLine to an instance of the current
* Command class. If successful such an instance is returned, otherwise
* null is returned. The id parameter is used by other classes to
* differentiate this command from others. The exact use may vary.
*
* The Listener and Printer parameters should implement the subclassed
* interfaces in the current command, if any, otherwise a ClassCastException
* will be thrown
*
* @param inputLine the InputLine to be parsed
* @param id an id to be stored in the command
* @param listener the object that listens to the new command
* @param printer the object that prints for the new command
* @return a new instance of the current command class if successful, otherwise null.
* @throws ClassCastException if either listener or printer do not conform to the interfaces for this class
*/
public abstract Command parse(InputLine inputLine, int id,
Listener listener,
Printer printer) throws ClassCastException;
protected boolean defaultParse(InputLine inputLine) {
if (keyWord.equals(inputLine.claimNext()))
return true;
inputLine.releaseClaim();
return false;
}
protected Command() {}
public abstract void give();
public interface Listener {}
public interface Printer {}
}
| [
"viktor@palmkvist.com"
] | viktor@palmkvist.com |
df3880d761060fb913a13931a64bd811072c742e | 8d969f29cebd31afd5b08e78d7fbf4e70fdbf9cb | /src/main/java/desserts/DessertDAOImpl.java | e17b63cd036f3658aee75019d7884e747dcfd806 | [] | no_license | bkc123/phase2-assign1 | f2980baf34e2f01f393347f6676968cf3edd8caf | 59f3daa6985877962479407dfb95831af51f09a9 | refs/heads/master | 2023-02-21T07:51:11.341793 | 2021-01-22T07:24:43 | 2021-01-22T07:24:43 | 331,682,518 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,995 | java | package desserts;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class DessertDAOImpl implements DessertDAO {
final static String SELECT_ALL_SQL = "select id, name, good from goodstuff";
final static String INSERT_SQL = "insert into goodstuff (name, good) values (?, ?)";
final static String BY_NAME_SQL = "select id, name, good from goodstuff order by name asc";
List<DessertDTO> desserts = new ArrayList<>();
Connection conn = null;
public DessertDAOImpl() {
try {
Class.forName("com.mysql.cj.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/desserts?createDatabaseIfNotExist=true", "root", "root");
} catch (ClassNotFoundException e) {
System.out.println("Driver not found");
} catch (SQLException e) {
System.out.println("SQL exception");
e.printStackTrace();
}
}
@Override
public List<DessertDTO> getAll() {
List<DessertDTO> desserts = new ArrayList<>();
try (Statement stmt = conn.createStatement()) {
ResultSet rs = stmt.executeQuery(SELECT_ALL_SQL);
while (rs.next()) {
long id = rs.getLong("id");
String name = rs.getString("name");
boolean good = rs.getBoolean("good");
desserts.add(new DessertDTO(id, name, good));
}
} catch (SQLException e) {
System.out.println("unable to run query");
e.printStackTrace();
}
return desserts;
}
public String getGoodDesserts(String dessertName, boolean good) {
try (CallableStatement cs = conn.prepareCall("{CALL AddDessertAndArt(?, ?, ?)}")) {
cs.setString(1, dessertName);
cs.setInt(2, (good ? 1 : 0));
cs.registerOutParameter(3, Types.VARCHAR);
cs.executeUpdate();
return cs.getString(3);
} catch (SQLException e) {
System.out.println("Unable to run query");
System.out.println("SQL State: " + e.getSQLState());
System.out.println("Error Code: " + e.getErrorCode());
e.printStackTrace();
}
return null;
}
/**
* Example on how to call a stored procedure
*/
public boolean isGood(Long dessertId) {
try (CallableStatement cs = conn.prepareCall("{CALL GetIsGood(?, ?)}")) {
cs.setLong(1, dessertId);
cs.registerOutParameter(2, java.sql.Types.INTEGER);
cs.executeUpdate();
int good = cs.getInt(2);
return (good == 1);
} catch (SQLException e) {
System.out.println("Unable to run query");
System.out.println("SQL State: " + e.getSQLState());
System.out.println("Error Code: " + e.getErrorCode());
e.printStackTrace();
}
return false;
}
public List<DessertDTO> sortedByName() {
List<DessertDTO> desserts = new ArrayList<>();
try (Statement stmt = conn.createStatement()) {
ResultSet rs = stmt.executeQuery(BY_NAME_SQL);
while (rs.next()) {
long id = rs.getLong("id");
String name = rs.getString("name");
boolean good = rs.getBoolean("good");
desserts.add(new DessertDTO(id, name, good));
}
} catch (SQLException e) {
System.out.println("unable to run query");
e.printStackTrace();
}
return desserts;
}
@Override
public DessertDTO create(DessertDTO dessert) {
try (PreparedStatement preparedStatement = conn.prepareStatement(
INSERT_SQL,
Statement.RETURN_GENERATED_KEYS
)) {
preparedStatement.setString(1, dessert.getName());
preparedStatement.setInt(2, (dessert.isGood() ? 1 : 0));
int affectedRows = preparedStatement.executeUpdate();
if (affectedRows == 0) {
throw new SQLException("Unable to create record");
}
try (ResultSet generatedKeys = preparedStatement.getGeneratedKeys()) {
if (generatedKeys.next()) {
dessert.setId(generatedKeys.getLong(1));
return dessert;
} else {
throw new SQLException("Creating product failed, no ID obtained.");
}
}
} catch (SQLException e) {
System.out.println("unable to run query");
e.printStackTrace();
}
return null;
}
@Override
public void remove(DessertDTO dessert) {
desserts.remove(dessert);
}
@Override
public void remove(Long id) {
}
@Override
public DessertDTO update(DessertDTO dessert) {
return null;
}
@Override
public int count() {
return desserts.size();
}
}
| [
"chhantyalbinod@gmail.com"
] | chhantyalbinod@gmail.com |
897e8129cb456f446b2a6a33ecc93140d76585de | a5bcbc7ed5f50cde2ccb862aa3450a0aa6cfbde8 | /01-algorithm/src/main/java/org/sprintdragon/algorithm/lc/Title198.java | 50254a92ad32be35cb1996626040d3b25813aed7 | [] | no_license | psiitoy/accumulate | f733b35929864658e8eeb342792521afaf2f1aac | 1059cf22d1b2d3cc7919e185ae94d380e045bf8f | refs/heads/master | 2022-05-04T05:35:14.261835 | 2022-04-09T12:26:21 | 2022-04-09T12:26:21 | 100,947,657 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,560 | java | package org.sprintdragon.algorithm.lc;
public class Title198 {
/**
* 这个是我自创的,还是官方的正向解法比较简单
*
* @param nums
* @return
*/
public int rob(int[] nums) {
int len = nums.length;
int[] dp = new int[len];
dp[len - 1] = nums[len - 1];
if (len == 1) {
return dp[len - 1];
}
dp[len - 2] = Math.max(nums[len - 2], nums[len - 1]);
if (len == 2) {
return dp[len - 2];
}
dp[len - 3] = Math.max(nums[len - 3] + nums[len - 1], nums[len - 2]);
if (len == 3) {
return dp[len - 3];
}
for (int i = len - 4; i >= 0; i--) {
int res1 = nums[i] + dp[i + 2];
int res2 = nums[i + 1] + dp[i + 3];
dp[i] = Math.max(res1, res2);
}
return dp[0];
}
public int robDg(int[] nums) {
return process(nums, 0);
}
public int process(int[] nums, int index) {
if (index >= nums.length) {
return 0;
}
if (index == nums.length - 1) {
return nums[index];
}
if (index == nums.length - 2) {
return Math.max(nums[index], nums[index + 1]);
}
if (index == nums.length - 3) {
return Math.max(nums[index] + nums[index + 2], nums[index + 1]);
}
int res1 = nums[index] + process(nums, index + 2);
int res2 = nums[index + 1] + process(nums, index + 3);
return Math.max(res1, res2);
}
}
| [
"psiitoy@126.com"
] | psiitoy@126.com |
e9bd0e1a14bc4826b85e64876450283c867f214e | 11014280987b580281b967e728f17df9948a5aca | /src/edu/northwestern/at/utils/swing/html/HTMLUtils.java | 7c95c7849c8463d675ff09559c297fe5d4f758a4 | [] | no_license | craigberry/wordhoard | 9fe18e023358e3bcfcf25f3ca12b493de32f4220 | 6a264612e9f79431c62205451788903a4433f9e2 | refs/heads/master | 2022-09-01T03:42:18.578730 | 2022-08-26T17:11:26 | 2022-08-27T16:55:01 | 170,930,259 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,160 | java | package edu.northwestern.at.utils.swing.html;
/* Please see the license information at the end of this file. */
import java.io.*;
import java.net.*;
import javax.swing.text.html.*;
/** Utility methods for working with HTML documents. */
public class HTMLUtils
{
public static String stripHTML( String htmlText )
{
// Stripped HTML text will be written
// into stringWriter.
StringWriter stringWriter = new StringWriter( htmlText.length() );
try
{
// Get HTML parser instance.
HTMLParserGetter kit = new HTMLParserGetter();
HTMLEditorKit.Parser parser = kit.getParser();
// Set HTML parser callback which is
// called for each type of HTML tag.
// Line-breaking tags are replaced with
// a blank.
HTMLEditorKit.ParserCallback callback =
new HTMLStripper
(
stringWriter ,
System.getProperty( "line.separator" , " " )
);
// Open input stream over html text.
StringReader stringReader = new StringReader( htmlText );
// Parse the URL contents.
parser.parse( stringReader , callback , false );
}
catch ( IOException e )
{
// System.err.println( e );
}
return stringWriter.toString();
}
}
/*
* <p>
* Copyright © 2004-2011 Northwestern University.
* </p>
* <p>
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* </p>
* <p>
* 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.
* </p>
* <p>
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA.
* </p>
*/
| [
"craigberry@mac.com"
] | craigberry@mac.com |
9f84abb928d08c929a589638daec96634ca06dc9 | becdffd87e9898b3dd91ba6099cf7a891269c7ad | /Ssup-ChatApplication/app/src/main/java/akb/chat/com/PhoneLoginActivity.java | 724b215837f6229c114b5582d60b9edbe6ba575b | [] | no_license | anup0017/Ssup | c2cc763a15af6aa223f1c6f9663532acbe7a5c26 | 2703a7dddd2c79834c804127691408bdc773da19 | refs/heads/master | 2020-06-10T00:01:00.953508 | 2019-06-24T15:32:11 | 2019-06-24T15:32:11 | 191,899,890 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,031 | java | package akb.chat.com;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.FirebaseException;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseAuthInvalidCredentialsException;
import com.google.firebase.auth.PhoneAuthCredential;
import com.google.firebase.auth.PhoneAuthProvider;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.iid.FirebaseInstanceId;
import java.util.concurrent.TimeUnit;
public class PhoneLoginActivity extends AppCompatActivity {
private Button sendVerCode, submit;
private EditText phoneInput, verCode;
private PhoneAuthProvider.OnVerificationStateChangedCallbacks callbacks;
private String mVerificationId;
private PhoneAuthProvider.ForceResendingToken mResendToken;
private FirebaseAuth mAuth;
private DatabaseReference UsersRef;
private ProgressDialog progressDialog;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_phone_login);
mAuth = FirebaseAuth.getInstance();
UsersRef = FirebaseDatabase.getInstance().getReference().child("Users");
InitializeField();
progressDialog = new ProgressDialog(this);
sendVerCode.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String phoneNumber = phoneInput.getText().toString();
if (TextUtils.isEmpty(phoneNumber)) {
Toast.makeText(PhoneLoginActivity.this, "Phone number field cannot be empty...", Toast.LENGTH_SHORT).show();
}
else {
progressDialog.setTitle("Phone Verification");
progressDialog.setMessage("Please wait while we authenticate your phone number");
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.show();
PhoneAuthProvider.getInstance().verifyPhoneNumber(
phoneNumber, // Phone number to verify
60, // Timeout duration
TimeUnit.SECONDS, // Unit of timeout
PhoneLoginActivity.this, // Activity (for callback binding)
callbacks); // OnVerificationStateChangedCallbacks
}
}
});
submit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
sendVerCode.setVisibility(View.INVISIBLE);
phoneInput.setVisibility(View.INVISIBLE);
String vercode = verCode.getText().toString();
if (TextUtils.isEmpty(vercode)) {
Toast.makeText(PhoneLoginActivity.this, "Enter the verification code first", Toast.LENGTH_SHORT).show();
}
else {
progressDialog.setTitle("Verification Code");
progressDialog.setMessage("Please wait while we verify your code");
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.show();
PhoneAuthCredential credential = PhoneAuthProvider.getCredential(mVerificationId, vercode);
signInWithPhoneAuthCredential(credential);
}
}
});
callbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks() {
@Override
public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {
signInWithPhoneAuthCredential(phoneAuthCredential);
}
@Override
public void onVerificationFailed(FirebaseException e) {
progressDialog.dismiss();
Toast.makeText(PhoneLoginActivity.this, "Invalid Phone number or verification code...", Toast.LENGTH_SHORT).show();
sendVerCode.setVisibility(View.VISIBLE);
phoneInput.setVisibility(View.VISIBLE);
submit.setVisibility(View.INVISIBLE);
verCode.setVisibility(View.INVISIBLE);
}
@Override
public void onCodeSent(String verificationId,
PhoneAuthProvider.ForceResendingToken token) {
mVerificationId = verificationId;
mResendToken = token;
progressDialog.dismiss();
Toast.makeText(PhoneLoginActivity.this, "Verification code sent.", Toast.LENGTH_SHORT).show();
sendVerCode.setVisibility(View.INVISIBLE);
phoneInput.setVisibility(View.INVISIBLE);
submit.setVisibility(View.VISIBLE);
verCode.setVisibility(View.VISIBLE);
}
};
}
private void InitializeField() {
sendVerCode = (Button) findViewById(R.id.send_ver_code);
submit = (Button) findViewById(R.id.verify_button);
phoneInput = (EditText) findViewById(R.id.phone_input);
verCode = (EditText) findViewById(R.id.ver_code);
}
private void signInWithPhoneAuthCredential(PhoneAuthCredential credential) {
mAuth.signInWithCredential(credential)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
String current_uid = mAuth.getCurrentUser().getUid();
String device_token = FirebaseInstanceId.getInstance().getToken();
UsersRef.child(current_uid).child("device_token").setValue(device_token).addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
if (task.isSuccessful()) {
progressDialog.dismiss();
Toast.makeText(PhoneLoginActivity.this, "Login Success!!", Toast.LENGTH_SHORT).show();
sendUserToMainPage();
}
else
{
Toast.makeText(PhoneLoginActivity.this, "Error: " + task.getException(), Toast.LENGTH_SHORT).show();
}
}
});
} else {
if (task.getException() instanceof FirebaseAuthInvalidCredentialsException) {
String message = task.getException().toString();
Toast.makeText(PhoneLoginActivity.this, "Error: " + message, Toast.LENGTH_SHORT).show();
// The verification code entered was invalid
}
}
}
});
}
private void sendUserToMainPage() {
Intent i = new Intent(PhoneLoginActivity.this, MainActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(i);
finish();
}
}
| [
"anup99886@gmail.com"
] | anup99886@gmail.com |
16cb03f7d03951ad9963dfb99a475067a476a8d5 | 7cc89475db7fed5dd2cae577e346a83d2b6ef8ab | /prj-ssm-helloworld/src/com/lyh/ssm/service/impl/UserServiceImpl.java | c14a86ae5b5736e27d5c9bc4e94aaed2470c892f | [] | no_license | lyhgittest/prj-ssm-helloworld | 7ff075e8d8dbfd56a936470bb09cd57857ff3c1a | bf2a880ffcdd98e9a4e4cafa41139b0f49552ee7 | refs/heads/master | 2021-05-11T11:55:56.234331 | 2018-01-16T06:14:34 | 2018-01-16T06:14:34 | 117,648,005 | 0 | 1 | null | 2018-01-16T12:58:17 | 2018-01-16T07:23:34 | Java | UTF-8 | Java | false | false | 467 | java | package com.lyh.ssm.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lyh.ssm.bean.User;
import com.lyh.ssm.dao.UserDao;
import com.lyh.ssm.service.UserService;
@Service
public class UserServiceImpl implements UserService {
@Autowired
private UserDao userDao;
@Override
public User selectUserById(Integer id) {
return userDao.selectUser(id);
}
}
| [
"gittest@qq.com"
] | gittest@qq.com |
be5ff94e5f9b2f76e477489b6d0704940d820b9c | c0d8ae4010f1f98cbba39815de94f6d70525f051 | /src/main/java/com/finalproj/schoolmanagementsystem/Service/TeacherService.java | 11b747f727525c5cd27b8d90f7a1acfa859bb933 | [] | no_license | johnmiko01/schoolmanagementsystem | 407398e2bd788a702b6a7ebd8c8f8e734e319fff | 1cf558376caf4259237ff3486997ec7d45cd361a | refs/heads/master | 2023-09-03T21:32:53.733090 | 2021-11-14T14:40:26 | 2021-11-14T14:40:26 | 427,953,158 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 200 | java | package com.finalproj.schoolmanagementsystem.Service;
import com.finalproj.schoolmanagementsystem.model.Teacher;
public interface TeacherService {
public Teacher saveTeacher(Teacher teacher);
}
| [
"solomonjohnmiko14@gmail.com"
] | solomonjohnmiko14@gmail.com |
3b2236700bb04dc639a873f213e81976c6e5e8e4 | b155a2f629bbf9df66eca2766f294ce5f9473ac3 | /web/src/main/java/org/nikolay/books/web/util/EmailValidationUtil.java | fc5b6c9f5b5638d0f77d1dbd4b36d10a42cbcc87 | [] | no_license | NikolayDagil/books-magazin | 7adef28489a16afdf0f697b82674ed903f619093 | 271e9092a2a34af24855fbfed46df6ea5e335cd0 | refs/heads/master | 2021-01-01T06:05:01.744728 | 2012-12-21T11:54:40 | 2012-12-21T11:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 603 | java | /**
*
*/
package org.nikolay.books.web.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author Nikolay Dagil
*
*/
public class EmailValidationUtil {
public boolean isNormalEmail(String email) {
Pattern pat;
Matcher mat;
boolean found;
pat = Pattern.compile("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
+ "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$");
mat = pat.matcher(email);
found = mat.matches();
if (found) {
found = true;
} else {
found = false;
}
System.out.println("--------------------> " + found);
return found;
}
} | [
"Nikolay.Dagil@gmail.com"
] | Nikolay.Dagil@gmail.com |
ca00288ca561dcaf6a121ff9a9f99bf8be292174 | 09960b68707da3891f45ac2eda90e177a742b28d | /web/ahnew/src/main/java/com/szty/aihao/service/aihaobusiness37_service.java | c026fba7cd0f8644932ab2059135e4cedd550d5b | [] | no_license | jiangyiman/szty | a72434d586f836f8a9039b3a5a293f614a1e4b99 | 9087733b2b88b6ac0e0cd7d13652f02b42cdb848 | refs/heads/master | 2021-05-30T22:03:01.114487 | 2016-03-25T06:25:18 | 2016-03-25T06:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,003 | java | /*
*@===================================================================
*@项目说明
*@作者:宋春林
*@版本信息:@Copy Right 2011-2015
*@文件: iDataAihaobusiness37.java
*@项目名称:JAVA项目管理
*@创建时间:2015/10/15
*@===================================================================
*/
package com.szty.aihao.service;
import com.szty.aihao.dao.aihaobusiness37_Dao;
import com.szty.aihao.core.aihaobusiness37_core;
import com.szty.aihao.factory.classFactory;
import java.util.Dictionary;
import java.util.List;
/**
*@文件说明
*@AIHAOBUSINESS37逻辑层接口
*@作者:宋春林
*/
public class aihaobusiness37_service
{
public aihaobusiness37_core _dal=classFactory.getaihaobusiness37();
/**
* 向数据库中插入一条新记录。
* @param AIHAOBUSINESS37实体
* @return 新插入记录的编号
*/
public int insert_aihaobusiness37 (aihaobusiness37_Dao _AIHAOBUSINESS37Model ) throws Exception{
return _dal.insert_aihaobusiness37( _AIHAOBUSINESS37Model);
}
/**
* 向数据库中插入一条新记录。
* @param AIHAOBUSINESS37prrameter
* @return 新插入记录的编号
*/
public int insert_aihaobusiness37(Object[] _para) throws Exception{
return _dal.insert_aihaobusiness37( _para);
}
/**
* 向数据库中插入一条新记录。
* @param AIHAOBUSINESS37实体
* @return 影响的行数
*/
public int update_aihaobusiness37(aihaobusiness37_Dao _AIHAOBUSINESS37Model) throws Exception{
return _dal.update_aihaobusiness37( _AIHAOBUSINESS37Model);
}
/**
* 删除数据表AIHAOBUSINESS37中的一条记录
* @param AIHAOBUSINESS37实体
* @return 新插入记录的编号
*/
public int delete_aihaobusiness37(int Sname) throws Exception{
return _dal.delete_aihaobusiness37( Sname);
}
/**
* 得到 aihaobusiness37 数据实体
* @param Sname">Sname
* @return<aihaobusiness37 数据实体
* @throws Exception
*/
public aihaobusiness37_Dao get_aihaobusiness37Dao(int Sname) throws Exception{
return _dal.get_aihaobusiness37Dao( Sname);
}
/**
* 根据AIHAOBUSINESS37返回的查询DataRow创建一个AIHAOBUSINESS37Entity对象
* @param AIHAOBUSINESS37 row
* @returnAIHAOBUSINESS37List对象
* @throws Exception
*/
public List<aihaobusiness37_Dao> get_aihaobusiness37_All() throws Exception{
return _dal.get_aihaobusiness37_All();
}
/**
* 根据AIHAOBUSINESS37返回的查询DataRow创建一个AIHAOBUSINESS37Entity对象
* @param AIHAOBUSINESS37 row
* @returnAIHAOBUSINESS37List对象
* @throws Exception
*/
public List<aihaobusiness37_Dao> get_aihaobusiness37_All(String strWhere) throws Exception{
return _dal.get_aihaobusiness37_All(strWhere);
}
/* 根据SCLTEST返回 分页数据
*
* @param SCLTEST
* row
* @returnSCLTESTList对象
* @throws Exception
*/
public List<aihaobusiness37_Dao> get_aihaobusiness37_Page(int pageSize, int pageIndex,String strWhere) throws Exception
{
return _dal.get_aihaobusiness37_Page(pageSize,pageIndex,strWhere);
}
/**
* 根据AIHAOBUSINESS37返回的查询DataRow创建一个AIHAOBUSINESS37Entity对象
* @param AIHAOBUSINESS37 row
* @returnAIHAOBUSINESS37Dictionary对象
* @throws Exception
*/
public Dictionary<Integer, aihaobusiness37_Dao> get_aihaobusiness37_Dictionary(String strWhere) throws Exception{
return _dal.get_aihaobusiness37_Dictionary(strWhere);
}
/**
* 更新AIHAOBUSINESS37字段加一
* @param FieldName
* @param sid
*/
public int create_aihaobusiness37_UpdateIncreate(String FieldName,int sid) throws Exception{
return _dal.create_aihaobusiness37_UpdateIncreate( FieldName, sid);
}
/**
* 更新AIHAOBUSINESS37Int型字段
* @param FieldName
* @param Num
* @param sid
*/
public int create_aihaobusiness37_UpdateInteger(String FieldName,int Num,int sid) throws Exception{
return _dal.create_aihaobusiness37_UpdateInteger( FieldName, Num, sid);
}
/**
* 更新AIHAOBUSINESS37IString型字段
* @param FieldName
* @param Value
* @param sid
*/
public int createaihaobusiness37_UpdateString(String FieldName,String Value,int sid) throws Exception{
return _dal.create_aihaobusiness37_UpdateString( FieldName, Value, sid);
}
}
| [
"279941737@qq.com"
] | 279941737@qq.com |
3fcda2fa62d1d81227f5805bb83a74b8620b7a61 | 5d2570a17c6bd717414d03609aa0af960aa3128d | /tc-company/src/main/java/com/tc/db/enums/MessageState.java | 778669cdc9ed12cade79a664e65b003133ffaaab | [] | no_license | huanhan/TaskCircle | a2eee63f0810b0758d8eb5442d62fa46efdf5bdf | b4cb445e4bfbfac77a1d8ff36a4b12f59c20e404 | refs/heads/master | 2021-06-14T00:58:58.841146 | 2019-06-30T14:20:31 | 2019-06-30T14:20:31 | 194,519,703 | 1 | 0 | null | 2021-06-04T02:03:19 | 2019-06-30T13:34:17 | Java | UTF-8 | Java | false | false | 655 | java | package com.tc.db.enums;
import com.tc.dto.trans.TransEnum;
import java.util.ArrayList;
import java.util.List;
/**
* 消息状态
* @author Cyg
*/
public enum MessageState {
NORMAL("正常"),
STOP("停用"),
;
private String state;
public String getState() {
return state;
}
MessageState(String state) {
this.state = state;
}
public static List<TransEnum> toList() {
List<TransEnum> result = new ArrayList<>();
for (MessageState value : MessageState.values()) {
result.add(TransEnum.init(value.name(),value.getState()));
}
return result;
}
}
| [
"416195227@qq.com"
] | 416195227@qq.com |
41bf57fcb94b29eed20974193cc664fa62a8b585 | a36d40485f92f78b75b5528ad6372fe6a2c00f28 | /app/src/main/java/com/example/nikkoekasaputra/simplenewsapps/activity/DetailNewsActivity.java | 7e68d045217e717021d7d5e6493766641ba4a27a | [] | no_license | NikkoES/SimpleNewsApps | 616982b30c6bb035541489f58d025c7d3a470b69 | 73b4ea02dc841929a7834cdecc8a0694a6ac23a5 | refs/heads/master | 2021-04-03T06:44:52.147978 | 2018-03-29T08:24:57 | 2018-03-29T08:24:57 | 124,904,677 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,583 | java | package com.example.nikkoekasaputra.simplenewsapps.activity;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.example.nikkoekasaputra.simplenewsapps.R;
public class DetailNewsActivity extends AppCompatActivity {
String imgNews, titleNews, contentNews, dateNews, authorNews, sourceNews;
ImageView ivImgNews;
TextView tvTitleNews, tvContentNews, tvDateNews, tvAuthorNews, tvSourceNews;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_detail_news);
// Setting Toolbar
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setTitle("Detail News");
bindView();
imgNews = getIntent().getStringExtra("imgNews");
titleNews = getIntent().getStringExtra("titleNews");
contentNews = getIntent().getStringExtra("contentNews");
dateNews = getIntent().getStringExtra("dateNews");
authorNews = getIntent().getStringExtra("authorNews");
sourceNews = getIntent().getStringExtra("sourceNews");
Glide.with(getApplicationContext())
.load(imgNews)
.placeholder(R.drawable.no_image_icon)
.into(ivImgNews);
tvTitleNews.setText(titleNews);
tvContentNews.setText(contentNews);
tvDateNews.setText(dateNews);
tvSourceNews.setText("view more");
tvAuthorNews.setText(authorNews);
tvSourceNews.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(sourceNews)));
}
});
}
public void bindView(){
ivImgNews = (ImageView) findViewById(R.id.img_news);
tvTitleNews = (TextView) findViewById(R.id.title_news);
tvContentNews = (TextView) findViewById(R.id.content_news);
tvAuthorNews = (TextView) findViewById(R.id.author_news);
tvDateNews = (TextView) findViewById(R.id.date_news);
tvSourceNews = (TextView) findViewById(R.id.source_news);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.action_menu, menu);
return super.onCreateOptionsMenu(menu);
}
@Override
public void onBackPressed() {
super.onBackPressed();
overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()){
case android.R.id.home : {
finish();
overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
break;
}
case R.id.share : {
Intent i = new Intent(android.content.Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(android.content.Intent.EXTRA_TEXT, titleNews+"\n\n"+contentNews+"\n\n"+sourceNews);
startActivity(Intent.createChooser(i, "Share this Article ?"));
break;
}
}
return super.onOptionsItemSelected(item);
}
}
| [
"nikkoeka04@gmail.com"
] | nikkoeka04@gmail.com |
fb460d3483ec889926c2614c54f69c239e65079f | ef74747416c5b4a8946e43b87157c6c09669922d | /src/main/java/com/hrtxn/ringtone/project/telcertification/mapper/TelCerDistributorMapper.java | 1b43f05bc4c4e9e83cfadccd51b72e25a1d1b0bf | [] | no_license | zhuozuozhang/ringtone | 726032bb140fd5e2501cd880d783f33c051a5174 | a27bdbadebb5924b357838a3bfb1c57b137701aa | refs/heads/master | 2020-09-03T12:03:27.455263 | 2019-11-04T08:52:49 | 2019-11-04T08:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,893 | java | package com.hrtxn.ringtone.project.telcertification.mapper;
import com.hrtxn.ringtone.common.domain.BaseRequest;
import com.hrtxn.ringtone.common.domain.Page;
import com.hrtxn.ringtone.project.telcertification.domain.CertificationOrder;
import com.hrtxn.ringtone.project.telcertification.domain.PlotBarData;
import com.hrtxn.ringtone.project.telcertification.domain.TelCerDistributor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @Author: yuanye
* @Date: Created in 14:52 2019/9/19
* @Description:
* @Modified By:
*/
@Repository
public interface TelCerDistributorMapper {
/**
* 添加渠道商统计信息
* @param telCerDistributor
* @return
*/
int insert(TelCerDistributor telCerDistributor);
/**
* 获得全部渠道商信息 或者 根据条件获取
* @param page
* @param request
* @return
*/
List<TelCerDistributor> getAllTelCerDistributorInfo(@Param("page")Page page, @Param("param") BaseRequest request);
/**
* 获得当前账号的全部订购
* @param userId
* @return
*/
TelCerDistributor getServiceNum(Integer userId);
/**
* 获得当前账号的上个月订购
* @param userId
* @return
*/
TelCerDistributor getLastMonth(Integer userId);
/**
* 获得当前账号的当月订购
* @param userId
* @return
*/
TelCerDistributor getTheMonthService(Integer userId);
/**
* 获得当前账号的今日订购
* @param userId
* @return
*/
TelCerDistributor getTodayService(Integer userId);
/**
* 更新渠道商信息
* @param telCerDistributor
* @return
*/
int updateByPrimaryKey(TelCerDistributor telCerDistributor);
List<PlotBarData> getMonthData(@Param("param") BaseRequest request);
}
| [
"1493985293@qq.com"
] | 1493985293@qq.com |
f3bc137f7f081eab1252e411ef0314c4ac742e15 | c8496cf47fe04dcb660ac74dfd40c7fbe5cd4342 | /jianyue_android-master/app/src/main/java/test/com/jianyue/reader_activity/Read_activity/MainActivity.java | a6f068c2937a9fccf3c771d897ac0e067beccbc8 | [] | no_license | houzhenyuan/jinyue | 93d6dcecf050793450f661958fbdad4778f787ed | 039e6b2ffcebf195fc4a73e803be10025467aa7f | refs/heads/master | 2020-03-07T04:56:07.463326 | 2018-03-29T12:03:06 | 2018-03-29T12:03:06 | 127,281,090 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 28,444 | java | //阅读器主体
package test.com.jianyue.reader_activity.Read_activity;
import android.annotation.SuppressLint;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
import com.squareup.okhttp.Call;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.MediaType;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import java.io.IOException;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import test.com.jianyue.R;
import test.com.jianyue.Json_receive.GsonRead;
import test.com.jianyue.Json_receive.Util;
import test.com.jianyue.reader_activity.Read_activity.Bottom_list.Bottom_Dialog;
import test.com.jianyue.reader_activity.Read_activity.Bottom_list.Dialog_adjust;
public class MainActivity extends AppCompatActivity {
/**test**/
/**解析 Gson 用到的变量**/
String text;
String Title;
String Auther;
String Text;
List<String> list;
String LJson;
/**okhttp**/
public static final String TAG = "MainActivity";
public static final MediaType JSON= MediaType.parse("application/json; charset=utf-8");
String jsonTags = "{\"tag\":[\"ccc\",\"ddd\" ]}";
@BindView(R.id.textView)
TextView textView;
private DrawerLayout mDrawerLayout;
private ScrollView scrollView;
private TextView textTitle,textAuthor,barTitle,textFinish;
Toolbar toolbar;
ActionBar actionBar;
public float textSize=7;
public int color=0;
public static final String DIALOG_TAG_2 = "dialog2";
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Window window = getWindow();
//隐藏标题栏
requestWindowFeature(Window.FEATURE_NO_TITLE);
//隐藏状态栏
//定义全屏参数
int flag= WindowManager.LayoutParams.FLAG_FULLSCREEN;
//设置当前窗体为全屏显示
window.setFlags(flag, flag);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
//绑定布局和按键
mDrawerLayout = findViewById(R.id.drawer_layout);
scrollView=findViewById(R.id.scrollView);
barTitle=findViewById(R.id.barTitle);
textTitle=findViewById(R.id.textTitle);
textAuthor=findViewById(R.id.textAuthor);
textFinish=findViewById(R.id.textFinish);
toolbar = findViewById(R.id.toolbar);//toolbar导入
setSupportActionBar(toolbar);//toolbar绑定为actionbar
actionBar = getSupportActionBar();
SharePreference sp = new SharePreference(MainActivity.this);
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);//把返回键显示出来
if(sp.getNight()){
actionBar.setHomeAsUpIndicator(R.drawable.ic_tagnight);
}
else{
if(sp.getWhite()){
actionBar.setHomeAsUpIndicator(R.drawable.ic_tagwhite);//把返回键和标签按钮绑定
}
else if(sp.getGreen()){
actionBar.setHomeAsUpIndicator(R.drawable.ic_taggreen);
}
else if(sp.getYellow()){
actionBar.setHomeAsUpIndicator(R.drawable.ic_tagyellow);
}
else if(sp.getPink()){
actionBar.setHomeAsUpIndicator(R.drawable.ic_tagpink);
}
}
}
//初始化样式
init();
//调用按键设置
set_checkout();
//OnTouch监听器
scrollView.setOnTouchListener(new PicOnTouchListener());
}
//OnTouch监听器,监听scrollview的滑动,让标题选择显示
private class PicOnTouchListener implements View.OnTouchListener {
private int lastY = 0;
private int touchEventId = -9983761;
int[] position=new int[2];
@Override
public boolean onTouch(View v, MotionEvent event) {
int eventAction = event.getAction();
switch (eventAction) {
case MotionEvent.ACTION_DOWN:
break;
case MotionEvent.ACTION_MOVE:
textAuthor.getLocationOnScreen(position);
if(position[1]<=150){//作者不在屏幕上
barTitle.setText(Title);
}
else{//作者在屏幕上
barTitle.setText("");
}
break;
case MotionEvent.ACTION_UP:
//惯性滑动,每隔1ms监听一次
handler.sendMessageDelayed(handler.obtainMessage(touchEventId, v), 1);
break;
default:
break;
}
return false;
}
@SuppressLint("HandlerLeak")
Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
View scroller = (View) msg.obj;
if (msg.what == touchEventId) {
if (lastY != scroller.getScrollY()) {//窗口惯性滑动未停止
textAuthor.getLocationOnScreen(position);
if(position[1]<=150){//作者不在屏幕上
barTitle.setText(Title);
}
else{//作者在屏幕上
barTitle.setText("");
}
handler.sendMessageDelayed(handler.obtainMessage(touchEventId, scroller), 1);
lastY = scroller.getScrollY();
}
}
}
};
}
// 改变字号
public void setsize(int i){
System.out.println("tests");
if(i == 0) {
textView.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PX, 45);
}
else if(i == 1) {
textView.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PX, 55);
}
else if(i == 2) {
textView.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PX, 65);
}
}
//设置字体背景颜色
public void setColor(int i) {
color=i;
getWindow().invalidatePanelMenu(Window.FEATURE_OPTIONS_PANEL);
invalidateOptionsMenu();
System.out.println("Color");
if(i == 0) { // white
barTitle.setTextColor(Color.parseColor("#333333"));
textTitle.setBackgroundColor(Color.parseColor("#ffffff"));
textTitle.setTextColor(Color.parseColor("#333333"));
textAuthor.setBackgroundColor(Color.parseColor("#ffffff"));
textAuthor.setTextColor(Color.parseColor("#333333"));
textView.setBackgroundColor(Color.parseColor("#ffffff"));
textView.setTextColor(Color.parseColor("#333333"));
toolbar.setBackgroundColor(Color.parseColor("#ffffff"));
toolbar.setTitleTextColor(Color.parseColor("#333333"));
textFinish.setBackgroundColor(Color.parseColor("#ffffff"));
textFinish.setTextColor(Color.parseColor("#333333"));
actionBar.setHomeAsUpIndicator(R.drawable.ic_tagwhite);
}
else if(i == 1) { // green
barTitle.setTextColor(Color.parseColor("#709a7b"));
textFinish.setBackgroundColor(Color.parseColor("#f0fdf0"));
textFinish.setTextColor(Color.parseColor("#709a7b"));
textTitle.setBackgroundColor(Color.parseColor("#f0fdf0"));
textTitle.setTextColor(Color.parseColor("#709a7b"));
textAuthor.setBackgroundColor(Color.parseColor("#f0fdf0"));
textAuthor.setTextColor(Color.parseColor("#709a7b"));
textView.setBackgroundColor(Color.parseColor("#f0fdf0"));
textView.setTextColor(Color.parseColor("#709a7b"));
toolbar.setBackgroundColor(Color.parseColor("#f0fdf0"));
toolbar.setTitleTextColor(Color.parseColor("#709a7b"));
actionBar.setHomeAsUpIndicator(R.drawable.ic_taggreen);
}
else if(i == 2) { // yellow
barTitle.setTextColor(Color.parseColor("#b88940"));
textFinish.setBackgroundColor(Color.parseColor("#f7f7e8"));
textFinish.setTextColor(Color.parseColor("#b88940"));
textTitle.setBackgroundColor(Color.parseColor("#f7f7e8"));
textTitle.setTextColor(Color.parseColor("#b88940"));
textAuthor.setBackgroundColor(Color.parseColor("#f7f7e8"));
textAuthor.setTextColor(Color.parseColor("#b88940"));
textView.setBackgroundColor(Color.parseColor("#f7f7e8"));
textView.setTextColor(Color.parseColor("#b88940"));
toolbar.setBackgroundColor(Color.parseColor("#f7f7e8"));
toolbar.setTitleTextColor(Color.parseColor("#b88940"));
actionBar.setHomeAsUpIndicator(R.drawable.ic_tagyellow);
}
else if(i == 3) { // pink
barTitle.setTextColor(Color.parseColor("#db7d6d"));
textFinish.setBackgroundColor(Color.parseColor("#fff6ef"));
textFinish.setTextColor(Color.parseColor("#db7d6d"));
textTitle.setBackgroundColor(Color.parseColor("#fff6ef"));
textTitle.setTextColor(Color.parseColor("#db7d6d"));
textAuthor.setBackgroundColor(Color.parseColor("#fff6ef"));
textAuthor.setTextColor(Color.parseColor("#db7d6d"));
textView.setBackgroundColor(Color.parseColor("#fff6ef"));
textView.setTextColor(Color.parseColor("#db7d6d"));
toolbar.setBackgroundColor(Color.parseColor("#fff6ef"));
toolbar.setTitleTextColor(Color.parseColor("#db7d6d"));
actionBar.setHomeAsUpIndicator(R.drawable.ic_tagpink);
}
else if(i == 4) { // night
barTitle.setTextColor(Color.parseColor("#5b5952"));
textFinish.setBackgroundColor(Color.parseColor("#0d0d0b"));
textFinish.setTextColor(Color.parseColor("#5b5952"));
textTitle.setBackgroundColor(Color.parseColor("#0d0d0b"));
textTitle.setTextColor(Color.parseColor("#5b5952"));
textAuthor.setBackgroundColor(Color.parseColor("#0d0d0b"));
textAuthor.setTextColor(Color.parseColor("#5b5952"));
textView.setBackgroundColor(Color.parseColor("#0d0d0b"));
textView.setTextColor(Color.parseColor("#5b5952"));
toolbar.setBackgroundColor(Color.parseColor("#0d0d0b"));
toolbar.setTitleTextColor(Color.parseColor("#5b5952"));
actionBar.setHomeAsUpIndicator(R.drawable.ic_tagnight);
}
}
//使用 okhttp 网络获取文章的 Json,LJson 为获取到的 Json,需要进一步读取
private void testjson(){
try{
final Request request = new Request.Builder()
.url("http://106.14.154.220:8081/jianyue/getArticle.html?json=历史")
.get()
.build();
OkHttpClient client = new OkHttpClient();
Call mcall = client.newCall(request);
mcall.enqueue(new Callback() {
@Override
public void onFailure(Request request, IOException e) {
mHandler.obtainMessage(3, null).sendToTarget();
}
@Override
public void onResponse(Response response) throws IOException {
LJson = response.body().string();
//String json = response.body().string();
mHandler.obtainMessage(1, LJson).sendToTarget();
}
});
}catch (Exception e){
System.out.println("error!");
}
}
Handler mHandler = new Handler(new Handler.Callback(){
@Override
public boolean handleMessage(Message msg) {
switch (msg.what) {
case 0:
Toast.makeText(MainActivity.this, "hhh", Toast.LENGTH_SHORT).show();
System.out.println("hhh");
return true;
case 1:
//Context mContaxt = new ;
System.out.println(msg.obj.toString());
/*text = LJson;
list = GsonRead.getGson(text);//读取 json
Title = list.get(0); // 标题
Auther = list.get(1); // 作者 TODO Add textview write author
Text = list.get(2); // 文章内容
toolbar.setTitle(Title); // 更改 toolbar 显示的标题
textView.setText(Text); // 更改文章内容 TODO 文章结尾标志
textView.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PX, MainActivity.getResources().getDimensionPixelOffset(R.dimen.text_middle_size));
text = "";*/
return true;
default:
return false;
}
}
});
Handler tshandler = new Handler(new Handler.Callback() {
@Override
public boolean handleMessage(Message message) {
switch (message.what) {
case 0:
System.out.println("hhh");
return true;
case 1:
System.out.println("hhh");
return true;
default:
return false;
}
}
});
//加载toolbar布局
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.toolbar, menu);
changeFlashButtonColor(menu);
return true;
}
//动态加载刷新按钮,让它随着背景颜色的变化而变化
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
changeFlashButtonColor(menu);
return super.onPrepareOptionsMenu(menu);
}
//改变刷新按钮颜色函数
public void changeFlashButtonColor(Menu menu){
switch (color) {
case 0:
menu.findItem(R.id.flashWhite).setVisible(true);
menu.findItem(R.id.flashGreen).setVisible(false);
menu.findItem(R.id.flashYellow).setVisible(false);
menu.findItem(R.id.flashPink).setVisible(false);
menu.findItem(R.id.flashNight).setVisible(false);
break;
case 1:
menu.findItem(R.id.flashWhite).setVisible(false);
menu.findItem(R.id.flashGreen).setVisible(true);
menu.findItem(R.id.flashYellow).setVisible(false);
menu.findItem(R.id.flashPink).setVisible(false);
menu.findItem(R.id.flashNight).setVisible(false);
break;
case 2:
menu.findItem(R.id.flashWhite).setVisible(false);
menu.findItem(R.id.flashGreen).setVisible(false);
menu.findItem(R.id.flashYellow).setVisible(true);
menu.findItem(R.id.flashPink).setVisible(false);
menu.findItem(R.id.flashNight).setVisible(false);
break;
case 3:
menu.findItem(R.id.flashWhite).setVisible(false);
menu.findItem(R.id.flashGreen).setVisible(false);
menu.findItem(R.id.flashYellow).setVisible(false);
menu.findItem(R.id.flashPink).setVisible(true);
menu.findItem(R.id.flashNight).setVisible(false);
break;
case 4:
menu.findItem(R.id.flashWhite).setVisible(false);
menu.findItem(R.id.flashGreen).setVisible(false);
menu.findItem(R.id.flashYellow).setVisible(false);
menu.findItem(R.id.flashPink).setVisible(false);
menu.findItem(R.id.flashNight).setVisible(true);
break;
}
}
//处理toolbar点击事件
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home://侧边栏
mDrawerLayout.openDrawer(GravityCompat.START);
break;
case R.id.flashWhite://刷新
flash_text();
break;
case R.id.flashNight://刷新
flash_text();
break;
case R.id.flashGreen://刷新
flash_text();
break;
case R.id.flashPink://刷新
flash_text();
break;
case R.id.flashYellow://刷新
flash_text();
break;
default:
}
return true;
}
//刷新功能
public void flash_text(){
new Thread() {
@Override
public void run() {
if(jsonTags == null) {
System.out.println("runFailed");
} else {
// //postJson();
// testjson();
}
}
}.start();
text = Util.getJson(MainActivity.this, "TestJson.json");
GsonRead gsonRead;
System.out.println(LJson);
System.out.println(LJson);
//text = LJson;
list = GsonRead.getGson(text);
Title = list.get(0);
Auther = list.get(1);
Text = list.get(2);
scrollView.fullScroll(View.FOCUS_UP);//返回顶部
barTitle.setText("");
textTitle.setText(Title);//显示正文标题
textAuthor.setText(Auther);//显示作者
textView.setText(Text);//显示文章内容
textView.setTextSize(android.util.TypedValue.COMPLEX_UNIT_PX, 50);
text = "";
}
//读取SharedPreference,赋值给checkbox兴趣标签,复选框按键功能,把复选框的内容记录到shareperference
public void set_checkout() {
//读取SharedPreference,赋值给checkbox兴趣标签
CheckBox meiwen1 = findViewById(R.id.MeiWen1);
CheckBox qingan1 = findViewById(R.id.QinGan1);
CheckBox zhentan1 = findViewById(R.id.ZhenTan1);
CheckBox lishi1 = findViewById(R.id.LiShi1);
CheckBox lizhi1 = findViewById(R.id.LiZhi1);
CheckBox youmo1 = findViewById(R.id.YouMo1);
SharePreference sp = new SharePreference(MainActivity.this);
boolean flag = sp.getMeiWen();
meiwen1.setChecked(flag);
flag = sp.getQinGan();
qingan1.setChecked(flag);
flag = sp.getZhenTan();
zhentan1.setChecked(flag);
flag = sp.getLiShi();
lishi1.setChecked(flag);
flag = sp.getLiZhi();
lizhi1.setChecked(flag);
flag = sp.getYouMo();
youmo1.setChecked(flag);
//复选框按键功能,把复选框的内容记录到shareperference
meiwen1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
// TODO Auto-generated method stub
SharePreference sp = new SharePreference(MainActivity.this);
if (isChecked) {
sp.setMeiWenTrue();
} else {
sp.setMeiWenFalse();
}
}
});
qingan1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
// TODO Auto-generated method stub
SharePreference sp = new SharePreference(MainActivity.this);
if (isChecked) {
sp.setQinGanTrue();
} else {
sp.setQinGanFalse();
}
}
});
zhentan1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
// TODO Auto-generated method stub
SharePreference sp = new SharePreference(MainActivity.this);
if (isChecked) {
sp.setZhenTanTrue();
} else {
sp.setZhenTanFalse();
}
}
});
lishi1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
// TODO Auto-generated method stub
SharePreference sp = new SharePreference(MainActivity.this);
if (isChecked) {
sp.setLiShiTrue();
} else {
sp.setLiShiFalse();
}
}
});
lizhi1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
// TODO Auto-generated method stub
SharePreference sp = new SharePreference(MainActivity.this);
if (isChecked) {
sp.setLiZhiTrue();
} else {
sp.setLiZhiFalse();
}
}
});
youmo1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
// TODO Auto-generated method stub
SharePreference sp = new SharePreference(MainActivity.this);
if (isChecked) {
sp.setYouMoTrue();
} else {
sp.setYouMoFalse();
}
}
});
}
@OnClick({R.id.toolbar, R.id.textView})
public void onViewClicked(View view) {
switch (view.getId()) {
case R.id.toolbar:
Toast.makeText(MainActivity.this, "toolbar", Toast.LENGTH_SHORT);
break;
case R.id.textView:
//正文点击事件,调出底栏
Dialog_adjust dialog_adjust = Dialog_adjust.newInstance();
dialog_adjust.setXxxlistener(new Dialog_adjust.xxxlistener() {
@Override
public void test(int i) {
setsize(i);
}
public void color(int i) {
setColor(i);
}
});
Bottom_Dialog bottom_dialog = Bottom_Dialog.newInstance();
bottom_dialog.Init(dialog_adjust);
bottom_dialog.show(getFragmentManager(), DIALOG_TAG_2);
break;
}
}
//初始化样式
public void init(){
SharePreference sp = new SharePreference(MainActivity.this);
//设置文字和背景颜色
if(sp.getNight()){
color=4;
textFinish.setBackgroundColor(Color.parseColor("#0d0d0b"));
textFinish.setTextColor(Color.parseColor("#5b5952"));
barTitle.setTextColor(Color.parseColor("#5b5952"));
textTitle.setBackgroundColor(Color.parseColor("#0d0d0b"));
textTitle.setTextColor(Color.parseColor("#5b5952"));
textAuthor.setBackgroundColor(Color.parseColor("#0d0d0b"));
textAuthor.setTextColor(Color.parseColor("#5b5952"));
textView.setBackgroundColor(Color.parseColor("#0d0d0b"));
textView.setTextColor(Color.parseColor("#5b5952"));
toolbar.setBackgroundColor(Color.parseColor("#0d0d0b"));
toolbar.setTitleTextColor(Color.parseColor("#5b5952"));
}
else{
if(sp.getWhite()){
color=0;
textFinish.setBackgroundColor(Color.parseColor("#ffffff"));
textFinish.setTextColor(Color.parseColor("#333333"));
barTitle.setTextColor(Color.parseColor("#333333"));
textTitle.setBackgroundColor(Color.parseColor("#ffffff"));
textTitle.setTextColor(Color.parseColor("#333333"));
textAuthor.setBackgroundColor(Color.parseColor("#ffffff"));
textAuthor.setTextColor(Color.parseColor("#333333"));
textView.setBackgroundColor(Color.parseColor("#ffffff"));
textView.setTextColor(Color.parseColor("#333333"));
toolbar.setBackgroundColor(Color.parseColor("#ffffff"));
toolbar.setTitleTextColor(Color.parseColor("#333333"));
}
if(sp.getGreen()){
color=1;
barTitle.setTextColor(Color.parseColor("#709a7b"));
textFinish.setBackgroundColor(Color.parseColor("#f0fdf0"));
textFinish.setTextColor(Color.parseColor("#709a7b"));
textTitle.setBackgroundColor(Color.parseColor("#f0fdf0"));
textTitle.setTextColor(Color.parseColor("#709a7b"));
textAuthor.setBackgroundColor(Color.parseColor("#f0fdf0"));
textAuthor.setTextColor(Color.parseColor("#709a7b"));
textView.setBackgroundColor(Color.parseColor("#f0fdf0"));
textView.setTextColor(Color.parseColor("#709a7b"));
toolbar.setBackgroundColor(Color.parseColor("#f0fdf0"));
toolbar.setTitleTextColor(Color.parseColor("#709a7b"));
}
if(sp.getYellow()){
color=2;
barTitle.setTextColor(Color.parseColor("#b88940"));
textFinish.setBackgroundColor(Color.parseColor("#f7f7e8"));
textFinish.setTextColor(Color.parseColor("#b88940"));
textTitle.setBackgroundColor(Color.parseColor("#f7f7e8"));
textTitle.setTextColor(Color.parseColor("#b88940"));
textAuthor.setBackgroundColor(Color.parseColor("#f7f7e8"));
textAuthor.setTextColor(Color.parseColor("#b88940"));
textView.setBackgroundColor(Color.parseColor("#f7f7e8"));
textView.setTextColor(Color.parseColor("#b88940"));
toolbar.setBackgroundColor(Color.parseColor("#f7f7e8"));
toolbar.setTitleTextColor(Color.parseColor("#b88940"));
}
if(sp.getPink()){
color=3;
barTitle.setTextColor(Color.parseColor("#db7d6d"));
textFinish.setBackgroundColor(Color.parseColor("#fff6ef"));
textFinish.setTextColor(Color.parseColor("#db7d6d"));
textTitle.setBackgroundColor(Color.parseColor("#fff6ef"));
textTitle.setTextColor(Color.parseColor("#db7d6d"));
textAuthor.setBackgroundColor(Color.parseColor("#fff6ef"));
textAuthor.setTextColor(Color.parseColor("#db7d6d"));
textView.setBackgroundColor(Color.parseColor("#fff6ef"));
textView.setTextColor(Color.parseColor("#db7d6d"));
toolbar.setBackgroundColor(Color.parseColor("#fff6ef"));
toolbar.setTitleTextColor(Color.parseColor("#db7d6d"));
}
}
getWindow().invalidatePanelMenu(Window.FEATURE_OPTIONS_PANEL);
invalidateOptionsMenu();
//设置文字大小
int i=sp.getSize();//获取字号
setsize(i);
}
}
| [
"326590910@qq.com"
] | 326590910@qq.com |
0d7c60012442c9963a7a5e57d4423becc34b500e | f699844da1fc433477bda43b24c6990d5eb5adc7 | /src/main/java/com/iss/db/bean/Sysdictype.java | fde4dbbd1b1cd8d27cd678cb52c5d775eaec4b98 | [] | no_license | Yangxulei/ERP | 51b37c9dc8aed6dfcb1e040efdc086eb23e4e948 | 23097ae87bf5959bf0acdb56fbb1e94f87eecbbf | refs/heads/master | 2021-01-22T19:54:20.397655 | 2017-03-17T01:09:14 | 2017-03-17T01:09:14 | 85,256,348 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 995 | java | package com.iss.db.bean;
// Generated 2017-3-8 16:19:15 by Hibernate Tools 4.3.5.Final
/**
* Sysdictype generated by hbm2java
*/
public class Sysdictype implements java.io.Serializable {
private Integer id;
private String name;
private String desc;
private Byte enable;
public Sysdictype() {
}
public Sysdictype(String name) {
this.name = name;
}
public Sysdictype(String name, String desc, Byte enable) {
this.name = name;
this.desc = desc;
this.enable = enable;
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDesc() {
return this.desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public Byte getEnable() {
return this.enable;
}
public void setEnable(Byte enable) {
this.enable = enable;
}
}
| [
"yangxulei84@qq.com"
] | yangxulei84@qq.com |
5445a503b114f7b42a131b3661acd3971b5a9f9b | 5ea3a4584c91ec42c498a8b4fbeca422fd54859f | /network-resilience/src/br/ufrgs/inf/bdinetr/domain/message/GoalResponse.java | a78d31eea060da1943b5b79cf3331833f6474234 | [] | no_license | ingridnunes/bdi-network-resilience | 95a933b83c86ef974a0f060acc438d896d876221 | 817c4122279c182c82b549f5dbf62607eda34435 | refs/heads/main | 2023-07-14T07:46:14.730364 | 2021-08-12T13:19:45 | 2021-08-12T13:19:45 | 377,258,888 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,141 | java | //----------------------------------------------------------------------------
// Copyright (C) 2011 Ingrid Nunes
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// To contact the authors:
// http://inf.ufrgs.br/prosoft/bdi4jade/
//
//----------------------------------------------------------------------------
package br.ufrgs.inf.bdinetr.domain.message;
import jade.content.Concept;
import jade.content.ContentElement;
import java.io.Serializable;
import java.util.Date;
/**
* @author Ingrid Nunes
*/
public class GoalResponse<K> implements Serializable, Concept,
ContentElement {
private static final long serialVersionUID = -260033218376521461L;
private K predicate;
private Date timestamp;
private Boolean value;
public GoalResponse() {
}
public GoalResponse(K predicate) {
this(predicate, null);
}
public GoalResponse(K predicate, Boolean value) {
this(predicate, value, null);
}
public GoalResponse(K predicate, Boolean value, Date timestamp) {
this.predicate = predicate;
this.value = value;
this.timestamp = timestamp;
}
public K getPredicate() {
return predicate;
}
public Date getTimestamp() {
return timestamp;
}
public Boolean getValue() {
return value;
}
public void setPredicate(K predicate) {
this.predicate = predicate;
}
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
public void setValue(Boolean value) {
this.value = value;
}
}
| [
"ingridnunes@gmail.com"
] | ingridnunes@gmail.com |
2b29de801ff6bb5b2a6331ec5d9a2108017de5f5 | 0f5b39c105ba2e702557f92f6ae81b26ba435d4f | /src/main/java/org/apache/tomcat/util/collections/ConcurrentCache.java | 9e7531f528c5949be1496480682a42b63ffcb9be | [
"Apache-2.0"
] | permissive | frpascua/Tomcat-7 | 31d26447722856f5127cb001bfb49e603d606109 | e51fcf57d338eb8d74e638c5a384acd594009b89 | refs/heads/master | 2023-04-01T23:21:35.882186 | 2017-02-19T08:33:16 | 2017-02-19T08:33:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,629 | java | /*
* 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.tomcat.util.collections;
import java.util.Map;
import java.util.WeakHashMap;
import java.util.concurrent.ConcurrentHashMap;
public final class ConcurrentCache<K, V> {
private final int size;
private final Map<K, V> eden;
private final Map<K, V> longterm;
public ConcurrentCache(int size) {
this.size = size;
this.eden = new ConcurrentHashMap<K, V>(size);
this.longterm = new WeakHashMap<K, V>(size);
}
public V get(K k) {
V v = this.eden.get(k);
if (v == null) {
synchronized (longterm) {
v = this.longterm.get(k);
}
if (v != null) {
this.eden.put(k, v);
}
}
return v;
}
public void put(K k, V v) {
if (this.eden.size() >= size) {
synchronized (longterm) {
this.longterm.putAll(this.eden);
}
this.eden.clear();
}
this.eden.put(k, v);
}
}
| [
"britrock@163.com"
] | britrock@163.com |
748156aee4a097873f57be64e7cb217f74c10bce | 6b61316cd18fd07051ee723097f2e2c2e0948085 | /maven-customplugin-master/src/main/java/com/mymaven/myplugin/example/myfirstmavenplugin/ReminderMojo.java | 297271ffb0bd2750cd87f9e142e6cde0908486c9 | [] | no_license | JohnyzHub/Maven | 55037120ae46ccdb8dd6d930db7a3a9cd9056ee3 | 36231b907a6b6317308887ec6ff4af23eafca43d | refs/heads/master | 2021-09-05T19:36:33.659208 | 2018-01-30T15:51:56 | 2018-01-30T15:51:56 | 79,725,781 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,395 | java | package com.mymaven.myplugin.example.myfirstmavenplugin;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* 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.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
/**
* @goal remind
* @requiresProject false
* @author johnybasha
*
*/
//@Mojo(name="remind")
public class ReminderMojo extends AbstractMojo {
/**
* @Parameter expression="${remind.message}" default-value="Hello World.."
*/
private String message = "Hello World!";
public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info(message.toString());
}
} | [
"jbshaik82@gmail.com"
] | jbshaik82@gmail.com |
fce8ed16e50e415a33b2f1393c466b45f40956e5 | 72dd76eb65cedb6ccfdf1796b627d8d77bb097e3 | /src/main/java/com/PitaYa/GuGuDa/controllers/SportCircleTableController.java | c6885bc6352aee63fdce7698e13b487c8705fda0 | [] | no_license | Boli-CS/GuGuDaServer | fba6f2289e20c4073a3ee2ad9a7ef2e51c1c22be | 5edec83614beb444d6a485bd36e0cac72b466a03 | refs/heads/master | 2021-01-13T13:20:20.620507 | 2015-12-29T11:10:12 | 2015-12-29T11:10:12 | 47,629,843 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,990 | java | package com.PitaYa.GuGuDa.controllers;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import com.PitaYa.GuGuDa.service.circle.CircleTableService;
import com.PitaYa.domain.circle.CircleTableViewCellDomain;
import com.PitaYa.domain.common.UpladDataResult;
/**
* 运动圈界面分发
* @author boli
*
*/
@RestController
public class SportCircleTableController {
private static final Logger logger = LoggerFactory.getLogger(SportCircleTableController.class);
@Autowired
CircleTableService circleTableService;
@RequestMapping(value="/circle/cells", method = RequestMethod.GET)
public List<CircleTableViewCellDomain> trendsCells(@RequestParam("type") Integer type) {
List<CircleTableViewCellDomain> result = null;
try {
result = circleTableService.findNewestSportCircle(type);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return result;
}
@RequestMapping(value="/circle/upload")
public UpladDataResult updateProfile(HttpServletRequest request) {
UpladDataResult upladDataResult = new UpladDataResult();
if(request instanceof MultipartHttpServletRequest) {
MultipartHttpServletRequest multipartHttpServletRequest=(MultipartHttpServletRequest) request;
for (Map.Entry entry : multipartHttpServletRequest.getMultiFileMap().entrySet()) {
circleTableService.uploadNewCircleTrend(entry.getKey().toString(),
multipartHttpServletRequest.getFile(entry.getKey().toString()));
}
}
return upladDataResult;
}
}
| [
"libo4101001@gmail.com"
] | libo4101001@gmail.com |
8566877f6f15ff6f5f2f5c5f0c28393f3767c71e | 395a52d1a150410482e10deb75ca0b884e6c70fd | /src/modelo/Disciplina.java | 44346dd2942899c5589a9ee4a47bb9d7e0d59f30 | [] | no_license | wdevjr/Projeto_Crud | 35dd9f6f7724069c1d8c063395edccc00dcc6364 | bbb77516db9c6bbd4e607614cae17444932b90b1 | refs/heads/master | 2020-12-02T23:50:40.012169 | 2017-07-25T11:35:23 | 2017-07-25T11:35:23 | 54,804,483 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,828 | java | package modelo;
import java.io.Serializable;
import javax.persistence.*;
import modelo.Curso;
@Entity
@Table(name = "disciplina")
public class Disciplina implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID", nullable=false)
private int id;
@Basic(optional = false)
@Column(name = "NOME", nullable=false)
private String nome;
@Basic(optional = false)
@Column(name = "QUANTIDADECREDITOS", nullable=true)
private int quantidadeCreditos;
@Basic(optional = false)
@Column(name = "NOMEPROFESSOR", nullable=true)
private String nomeProfessor;
@JoinColumn(name = "CURSO_ID", referencedColumnName = "ID", nullable=false)
@ManyToOne
private Curso curso;
public Disciplina() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public int getQuantidadeCreditos() {
return quantidadeCreditos;
}
public void setQuantidadeCreditos(int quantidadeCreditos) {
this.quantidadeCreditos = quantidadeCreditos;
}
public String getNomeProfessor() {
return nomeProfessor;
}
public void setNomeProfessor(String nomeProfessor) {
this.nomeProfessor = nomeProfessor;
}
public Curso getCurso() {
return curso;
}
public void setCurso(Curso curso) {
this.curso = curso;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Disciplina)) {
return false;
}
Disciplina other = (Disciplina) object;
if (!(this.getId() == other.getId())) {
return false;
}
return true;
}
}
| [
"warhjr@gmail.com"
] | warhjr@gmail.com |
b22f990a7b3441c2f1ab19b574e3f5b2e6247672 | 2b97a6c5a5e9ab51334e032b10be1bfd1db4e125 | /src/main/java/org/j4m0/sqli/entity/User.java | 5c8e6e2781d67fecd1dedd311ddce18a0444bc11 | [] | no_license | amiseo/SQLi | eb8b8a90a5adb38385cc44166836359a718dfe2b | 8d7d06c9d1880b073d47ee80c570c8f22313b364 | refs/heads/master | 2021-05-27T07:29:16.061171 | 2014-04-28T20:44:03 | 2014-04-28T20:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 995 | java | package org.j4m0.sqli.entity;
import java.io.Serializable;
/**
*
* @author j4m0
*/
public class User implements Serializable {
private Long id;
private String name;
private String lastName;
private String email;
private String password;
public Long getId() {
return id;
}
public void setId(final Long id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(final String name) {
this.name = name;
}
public String getLastName() {
return this.lastName;
}
public void setLastName(final String lastName) {
this.lastName = lastName;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
| [
"j4m0@outlook.com"
] | j4m0@outlook.com |
6e19325141686818840257aa2c07b8c97edf6e02 | 8041d211396da58f2a029adfd37fe718ae6c727f | /aliyun-java-sdk-cdn/src/main/java/com/aliyuncs/cdn/transform/v20141111/DescribeDomainsBySourceResponseUnmarshaller.java | eab95856d2b7b0cef6baff9c0ab4c41724772d31 | [
"Apache-2.0"
] | permissive | xiaoyao8023/aliyun-openapi-java-sdk | deeb449acd9784892452a1de4f7140297c773394 | b17e087bfb26fcb537ecd3d0e0ba069af5948599 | refs/heads/master | 2021-01-02T09:45:58.467850 | 2017-08-04T02:20:47 | 2017-08-04T02:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,493 | java | /*
* 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 com.aliyuncs.cdn.transform.v20141111;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.cdn.model.v20141111.DescribeDomainsBySourceResponse;
import com.aliyuncs.cdn.model.v20141111.DescribeDomainsBySourceResponse.DomainsData;
import com.aliyuncs.cdn.model.v20141111.DescribeDomainsBySourceResponse.DomainsData.domainInfo;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeDomainsBySourceResponseUnmarshaller {
public static DescribeDomainsBySourceResponse unmarshall(DescribeDomainsBySourceResponse describeDomainsBySourceResponse, UnmarshallerContext context) {
describeDomainsBySourceResponse.setRequestId(context.stringValue("DescribeDomainsBySourceResponse.RequestId"));
describeDomainsBySourceResponse.setSources(context.stringValue("DescribeDomainsBySourceResponse.Sources"));
List<DomainsData> domainsListList = new ArrayList<DomainsData>();
for (int i = 0; i < context.lengthValue("DescribeDomainsBySourceResponse.DomainsList.Length"); i++) {
DomainsData domainsData = new DomainsData();
domainsData.setSource(context.stringValue("DescribeDomainsBySourceResponse.DomainsList["+ i +"].Source"));
List<String> domains = new ArrayList<String>();
for (int j = 0; j < context.lengthValue("DescribeDomainsBySourceResponse.DomainsList["+ i +"].Domains.Length"); j++) {
domains.add(context.stringValue("DescribeDomainsBySourceResponse.DomainsList["+ i +"].Domains["+ j +"]"));
}
domainsData.setDomains(domains);
List<domainInfo> domainInfosList = new ArrayList<domainInfo>();
for (int j = 0; j < context.lengthValue("DescribeDomainsBySourceResponse.DomainsList["+ i +"].DomainInfos.Length"); j++) {
domainInfo domainInfo = new domainInfo();
domainInfo.setDomainName(context.stringValue("DescribeDomainsBySourceResponse.DomainsList["+ i +"].DomainInfos["+ j +"].DomainName"));
domainInfo.setDomainCname(context.stringValue("DescribeDomainsBySourceResponse.DomainsList["+ i +"].DomainInfos["+ j +"].DomainCname"));
domainInfo.setCreateTime(context.stringValue("DescribeDomainsBySourceResponse.DomainsList["+ i +"].DomainInfos["+ j +"].CreateTime"));
domainInfo.setUpdateTime(context.stringValue("DescribeDomainsBySourceResponse.DomainsList["+ i +"].DomainInfos["+ j +"].UpdateTime"));
domainInfo.setStatus(context.stringValue("DescribeDomainsBySourceResponse.DomainsList["+ i +"].DomainInfos["+ j +"].Status"));
domainInfosList.add(domainInfo);
}
domainsData.setDomainInfos(domainInfosList);
domainsListList.add(domainsData);
}
describeDomainsBySourceResponse.setDomainsList(domainsListList);
return describeDomainsBySourceResponse;
}
} | [
"zhangw@alibaba-inc.com"
] | zhangw@alibaba-inc.com |
6ceb874e51ba79ffc86f95730eb0946aa441f991 | fab0312d0cbc6bec75a0fbe673e58cc94362fb48 | /spring7_tx/src/main/java/com/yc/tx/service/AccountServiceImpl.java | 1eb5ff0547da6c697f747e2063a98d553269a1e5 | [] | no_license | 2499690598/testspring | c43ab6953b33ee4395e5a18c94cf86aa8b082610 | b1c187f80bdcb26562260a7dde9e4fd596fe272c | refs/heads/master | 2023-04-13T18:05:25.895602 | 2021-04-24T02:54:28 | 2021-04-24T02:54:28 | 356,524,506 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,754 | java | package com.yc.tx.service;
import com.yc.tx.Accounts;
import com.yc.tx.OpRecord;
import com.yc.tx.bean.OpTypes;
import com.yc.tx.dao.AccountsDao;
import com.yc.tx.dao.OpRecordDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.sql.Timestamp;
import java.util.List;
import java.util.UUID;
@Service
@Transactional(propagation = Propagation.REQUIRED,
isolation = Isolation.DEFAULT,
readOnly = false,
timeout = 100,
rollbackForClassName = {"RuntimeException"})
public class AccountServiceImpl implements AccountService {
@Autowired
private AccountsDao accountsDao;
@Autowired
private OpRecordDao opRecordDao;
@Override
public Integer openAccount(Accounts account, double money) {
account.setBalance(money);
int accountid = accountsDao.saveAccount(account);
OpRecord opRecord = new OpRecord();
opRecord.setAccountid(1);
opRecord.setOpmoney(1.0);
opRecord.setOptype(OpTypes.deposite.getName());
opRecord.setOptime(new Timestamp(System.currentTimeMillis()));
opRecord.setTransferid(" ");
opRecordDao.saveOpRecord(opRecord);
return accountid;
}
@Override
public Accounts deposite(Accounts account, double money, String optype, String transferid) {
Accounts a = this.showBalance(account);
OpRecord opRecord = new OpRecord();
opRecord.setAccountid(a.getAccountId());
opRecord.setOpmoney(money);
opRecord.setOptype(optype); //用枚举做这个值(约束值),不容易出错
opRecord.setOptime(new Timestamp(System.currentTimeMillis())); //这里是一个Timestamp
if (transferid == null) {
opRecord.setTransferid(" ");
} else {
opRecord.setTransferid(transferid);
}
opRecordDao.saveOpRecord(opRecord);
a.setBalance(a.getBalance() + money);
accountsDao.updateAccount(a);
return a;
}
@Override
public Accounts withdraw(Accounts account, double money, String optype, String transferid) {
Accounts a = this.showBalance(account);
OpRecord opRecord = new OpRecord();
opRecord.setAccountid(a.getAccountId());
opRecord.setOpmoney(money);
opRecord.setOptype(optype); //用枚举做这个值(约束值),不容易出错
opRecord.setOptime(new Timestamp(System.currentTimeMillis())); //这里是一个Timestamp
if (transferid == null) {
opRecord.setTransferid(" ");
} else {
opRecord.setTransferid(transferid);
}
opRecordDao.saveOpRecord(opRecord);
a.setBalance(a.getBalance() - money);
accountsDao.updateAccount(a);
return a;
}
@Override
public Accounts transfer(Accounts inAccount, Accounts outAccount, double money) {
String uid = UUID.randomUUID().toString(); //转账流水
this.deposite(inAccount, money, OpTypes.transfer.getName(), uid);
Accounts newAccounts = this.withdraw(outAccount, money, OpTypes.transfer.getName(), uid);
return newAccounts;
}
@Override
@Transactional(readOnly = true)
public Accounts showBalance(Accounts account) {
return accountsDao.findAccount(account.getAccountId());
}
@Override
@Transactional(readOnly = true)
public List<OpRecord> findById(Accounts account) {
return opRecordDao.findByAccountid(account.getAccountId());
}
}
| [
"2499690598@qq.com"
] | 2499690598@qq.com |
031123aca6a8f317773fcf5559b95af5c02af2a5 | c5bfb6110cbbc90a522d9982f08e90c1d3af3473 | /ClassToJava/src/com/dips/intent/attribute/stackframe/Same_locals_1_stack_frame_extended.java | a769fa8a13c7a6229b185569caf12459e746ad9f | [] | no_license | dips48/classfileExam | b6d5c61d358fe96e4f656fd8d3dfb266e6b14607 | 40b617d2129d8c0d2041e9381e70e989a55f66ab | refs/heads/master | 2021-01-01T16:30:58.881667 | 2014-09-03T01:25:00 | 2014-09-03T01:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 837 | java | package com.dips.intent.attribute.stackframe;
import com.dips.intent.attribute.stackframe.typeinfo.Verification_type_info;
public class Same_locals_1_stack_frame_extended extends Base_frame{
byte[] offset_delta=new byte[2];
Verification_type_info verification_type_info;
public byte[] getOffset_delta() {
return offset_delta;
}
public void setOffset_delta(byte[] offset_delta) {
this.offset_delta = offset_delta;
}
public Verification_type_info getVerification_type_info() {
return verification_type_info;
}
public void setVerification_type_info(Verification_type_info verification_type_info) {
this.verification_type_info = verification_type_info;
}
public Same_locals_1_stack_frame_extended(){
setFrame_type((byte)247);
}
}
| [
"xuyun.xy@ALI-78005W.hz.ali.com"
] | xuyun.xy@ALI-78005W.hz.ali.com |
61bde11c454580a9b926caf1d97ad5006be37f51 | 9a6b23464c4ac158e5485ae6a3d467ad7f521cd3 | /CS2010/New BluJ Battleships/Battleships Project/Battleships Project/BlueJBSProj/com/uni/base/AbstractController.java | aa628001f4fff2ad5d91e3006f1d9713ed34a723 | [] | no_license | Rajan-Gopalji/University-Work | f8e3243a68a58b0c10b7d77e0953fa349305dda1 | 2718b33d5b1d860841c1227492fa6656686a57d7 | refs/heads/master | 2021-09-10T14:10:22.376511 | 2018-03-27T14:51:39 | 2018-03-27T14:51:39 | 107,674,169 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,046 | java | package com.uni.base;
/**
* User: dogmaan
* Date: 06/06/12
* Time: 18:21
* This class is based on code obtained from http://www.oracle.com/technetwork/articles/javase/index-142890.html
*/
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.lang.reflect.Method;
import java.util.ArrayList;
/**
* This class provides base level functionality for each controller. This includes the
* ability to register multiple models and views, propagating model change events to
* each of the views, and providing a utility function to broadcast model property
* changes when necessary.
* @author Robert Eckstein edited by dogmaan
*/
public abstract class AbstractController implements PropertyChangeListener
{
// Vectors that hold a list of the registered models and views for this controller.
protected ArrayList<Observer> registeredViews;
protected ArrayList<AbstractModel> registeredModels;
/** Creates a new instance of Controller */
public AbstractController() {
registeredViews = new ArrayList<Observer>();
registeredModels = new ArrayList<AbstractModel>();
}
/**
* Binds a model to this controller. Once added, the controller will listen for all
* model property changes and propagate them on to registered views. In addition,
* it is also responsible for resetting the model properties when a view changes
* state.
* @param model The model to be added
*/
public void addModel(AbstractModel model) {
registeredModels.add(model);
model.addPropertyChangeListener(this);
}
/**
* Unbinds a model from this controller.
* @param model The model to be removed
*/
public void removeModel(AbstractModel model) {
registeredModels.remove(model);
model.removePropertyChangeListener(this);
}
/**
* Binds a view to this controller. The controller will propagate all model property
* changes to each view for consideration.
* @param view The view to be added
*/
public void addView(Observer view) {
registeredViews.add(view);
}
/**
* Unbinds a view from this controller.
* @param view The view to be removed
*/
public void removeView(Observer view) {
registeredViews.remove(view);
}
// Used to observe property changes from registered models and propagate
// them on to all the views.
/**
* This method is used to implement the PropertyChangeListener interface. Any model
* changes will be sent to this controller through the use of this method.
* @param evt An object that describes the model's property change.
*/
public void propertyChange(PropertyChangeEvent evt) {
for (Observer view: registeredViews) {
view.modelPropertyChange(evt);
}
}
/**
* Convenience method that subclasses can call upon to fire off property changes
* back to the models. This method used reflection to inspect each of the model
* classes to determine if it is the owner of the property in question. If it
* isn't, a NoSuchMethodException is throws (which the method ignores).
*
* @param propertyName The name of the property
* @param newValue An object that represents the new value of the property.
*/
protected void setModelProperty(String propertyName, Object newValue) {
for (AbstractModel model: registeredModels) {
try {
Method method = model.getClass().
getMethod("set"+propertyName, new Class[] {
newValue.getClass()
}
);
method.invoke(model, newValue);
} catch (Exception ex) {
// Handle exception
System.out.println("Exception in AbstractController:setModelProperty:\n" + ex.getLocalizedMessage());
ex.printStackTrace();
}
}
}
}
| [
"gopaljir@aston.ac.uk"
] | gopaljir@aston.ac.uk |
f6b7c17655bb53dfba0b54dc7ba3404433256c14 | 38c4451ab626dcdc101a11b18e248d33fd8a52e0 | /identifiers/batik-1.7/sources/org/apache/batik/css/parser/DefaultConditionFactory.java | 3d77a8bdf746fe32bab35f93d6677c0bc095822f | [] | no_license | habeascorpus/habeascorpus-data | 47da7c08d0f357938c502bae030d5fb8f44f5e01 | 536d55729f3110aee058ad009bcba3e063b39450 | refs/heads/master | 2020-06-04T10:17:20.102451 | 2013-02-19T15:19:21 | 2013-02-19T15:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,453 | java | org PACKAGE_IDENTIFIER false
apache PACKAGE_IDENTIFIER false
batik PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
parser PACKAGE_IDENTIFIER false
org PACKAGE_IDENTIFIER false
w3c PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
sac UNKNOWN_IDENTIFIER false
AttributeCondition UNKNOWN_IDENTIFIER false
org PACKAGE_IDENTIFIER false
w3c PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
sac UNKNOWN_IDENTIFIER false
CSSException UNKNOWN_IDENTIFIER false
org PACKAGE_IDENTIFIER false
w3c PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
sac UNKNOWN_IDENTIFIER false
CombinatorCondition UNKNOWN_IDENTIFIER false
org PACKAGE_IDENTIFIER false
w3c PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
sac UNKNOWN_IDENTIFIER false
Condition UNKNOWN_IDENTIFIER false
org PACKAGE_IDENTIFIER false
w3c PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
sac UNKNOWN_IDENTIFIER false
ConditionFactory UNKNOWN_IDENTIFIER false
org PACKAGE_IDENTIFIER false
w3c PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
sac UNKNOWN_IDENTIFIER false
ContentCondition UNKNOWN_IDENTIFIER false
org PACKAGE_IDENTIFIER false
w3c PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
sac UNKNOWN_IDENTIFIER false
LangCondition UNKNOWN_IDENTIFIER false
org PACKAGE_IDENTIFIER false
w3c PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
sac UNKNOWN_IDENTIFIER false
NegativeCondition UNKNOWN_IDENTIFIER false
org PACKAGE_IDENTIFIER false
w3c PACKAGE_IDENTIFIER false
css PACKAGE_IDENTIFIER false
sac UNKNOWN_IDENTIFIER false
PositionalCondition UNKNOWN_IDENTIFIER false
DefaultConditionFactory TYPE_IDENTIFIER true
ConditionFactory UNKNOWN_IDENTIFIER false
ConditionFactory UNKNOWN_IDENTIFIER false
INSTANCE UNKNOWN_IDENTIFIER true
DefaultConditionFactory TYPE_IDENTIFIER false
DefaultConditionFactory METHOD_IDENTIFIER false
CombinatorCondition UNKNOWN_IDENTIFIER false
createAndCondition UNKNOWN_IDENTIFIER true
Condition UNKNOWN_IDENTIFIER false
first UNKNOWN_IDENTIFIER true
Condition UNKNOWN_IDENTIFIER false
second UNKNOWN_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
DefaultAndCondition TYPE_IDENTIFIER false
first UNKNOWN_IDENTIFIER false
second UNKNOWN_IDENTIFIER false
CombinatorCondition UNKNOWN_IDENTIFIER false
createOrCondition UNKNOWN_IDENTIFIER true
Condition UNKNOWN_IDENTIFIER false
first UNKNOWN_IDENTIFIER true
Condition UNKNOWN_IDENTIFIER false
second UNKNOWN_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
CSSException UNKNOWN_IDENTIFIER false
NegativeCondition UNKNOWN_IDENTIFIER false
createNegativeCondition UNKNOWN_IDENTIFIER true
Condition UNKNOWN_IDENTIFIER false
condition UNKNOWN_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
CSSException UNKNOWN_IDENTIFIER false
PositionalCondition UNKNOWN_IDENTIFIER false
createPositionalCondition UNKNOWN_IDENTIFIER true
position VARIABLE_IDENTIFIER true
typeNode VARIABLE_IDENTIFIER true
type VARIABLE_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
CSSException UNKNOWN_IDENTIFIER false
AttributeCondition UNKNOWN_IDENTIFIER false
createAttributeCondition UNKNOWN_IDENTIFIER true
String TYPE_IDENTIFIER false
localName VARIABLE_IDENTIFIER true
String TYPE_IDENTIFIER false
namespaceURI VARIABLE_IDENTIFIER true
specified VARIABLE_IDENTIFIER true
String TYPE_IDENTIFIER false
value VARIABLE_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
DefaultAttributeCondition TYPE_IDENTIFIER false
localName VARIABLE_IDENTIFIER false
namespaceURI VARIABLE_IDENTIFIER false
specified VARIABLE_IDENTIFIER false
value VARIABLE_IDENTIFIER false
AttributeCondition UNKNOWN_IDENTIFIER false
createIdCondition UNKNOWN_IDENTIFIER true
String TYPE_IDENTIFIER false
value VARIABLE_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
DefaultIdCondition TYPE_IDENTIFIER false
value VARIABLE_IDENTIFIER false
LangCondition UNKNOWN_IDENTIFIER false
createLangCondition UNKNOWN_IDENTIFIER true
String TYPE_IDENTIFIER false
lang VARIABLE_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
DefaultLangCondition TYPE_IDENTIFIER false
lang VARIABLE_IDENTIFIER false
AttributeCondition UNKNOWN_IDENTIFIER false
createOneOfAttributeCondition UNKNOWN_IDENTIFIER true
String TYPE_IDENTIFIER false
localName VARIABLE_IDENTIFIER true
String TYPE_IDENTIFIER false
nsURI VARIABLE_IDENTIFIER true
specified VARIABLE_IDENTIFIER true
String TYPE_IDENTIFIER false
value VARIABLE_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
DefaultOneOfAttributeCondition TYPE_IDENTIFIER false
localName VARIABLE_IDENTIFIER false
nsURI VARIABLE_IDENTIFIER false
specified VARIABLE_IDENTIFIER false
value VARIABLE_IDENTIFIER false
AttributeCondition UNKNOWN_IDENTIFIER false
createBeginHyphenAttributeCondition UNKNOWN_IDENTIFIER true
String TYPE_IDENTIFIER false
localName VARIABLE_IDENTIFIER true
String TYPE_IDENTIFIER false
namespaceURI VARIABLE_IDENTIFIER true
specified VARIABLE_IDENTIFIER true
String TYPE_IDENTIFIER false
value VARIABLE_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
DefaultBeginHyphenAttributeCondition TYPE_IDENTIFIER false
localName VARIABLE_IDENTIFIER false
namespaceURI VARIABLE_IDENTIFIER false
specified VARIABLE_IDENTIFIER false
value VARIABLE_IDENTIFIER false
AttributeCondition UNKNOWN_IDENTIFIER false
createClassCondition UNKNOWN_IDENTIFIER true
String TYPE_IDENTIFIER false
namespaceURI VARIABLE_IDENTIFIER true
String TYPE_IDENTIFIER false
value VARIABLE_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
DefaultClassCondition TYPE_IDENTIFIER false
namespaceURI VARIABLE_IDENTIFIER false
value VARIABLE_IDENTIFIER false
AttributeCondition UNKNOWN_IDENTIFIER false
createPseudoClassCondition UNKNOWN_IDENTIFIER true
String TYPE_IDENTIFIER false
namespaceURI VARIABLE_IDENTIFIER true
String TYPE_IDENTIFIER false
value VARIABLE_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
DefaultPseudoClassCondition TYPE_IDENTIFIER false
namespaceURI VARIABLE_IDENTIFIER false
value VARIABLE_IDENTIFIER false
Condition UNKNOWN_IDENTIFIER false
createOnlyChildCondition UNKNOWN_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
CSSException UNKNOWN_IDENTIFIER false
Condition UNKNOWN_IDENTIFIER false
createOnlyTypeCondition UNKNOWN_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
CSSException UNKNOWN_IDENTIFIER false
ContentCondition UNKNOWN_IDENTIFIER false
createContentCondition UNKNOWN_IDENTIFIER true
String TYPE_IDENTIFIER false
data VARIABLE_IDENTIFIER true
CSSException UNKNOWN_IDENTIFIER false
CSSException UNKNOWN_IDENTIFIER false
| [
"pschulam@gmail.com"
] | pschulam@gmail.com |
a856067e6ea8d275c89499973c8b10fb9b4d442a | e02da3e8ec1efdb22056bd2494d68a1bb47b192c | /src/main/java/de/fhdortmund/seelab/smarthomelabeler/ViewMain.java | 4588dc596f93c3f305995313262de2e08a939e1d | [] | no_license | SeelabFhdo/SmarthomeLabeler | 78eb7b9d9e1ce4ee74e88d2b5078069d9c40b63e | 5ecaef090ba1c2cef8ef4508f95510a18dd24c9c | refs/heads/master | 2021-05-16T17:38:12.163870 | 2017-09-10T23:47:56 | 2017-09-10T23:47:56 | 103,028,386 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 773 | java | package de.fhdortmund.seelab.smarthomelabeler;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
/**
* Created by jonas on 14.08.17.
*/
public class ViewMain extends Application{
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("view/MainView.fxml"));
Scene scene = new Scene(root, 680, 450);
stage.setTitle("Smarthome-Labeler");
setUserAgentStylesheet(STYLESHEET_CASPIAN);
stage.setResizable(true);
stage.setScene(scene);
stage.show();
}
}
| [
"jonas@flecknet.de"
] | jonas@flecknet.de |
a98056bb0751def561b21a14d96bdc7d330a4e9b | e358e356cfdc717a070ad53b883b1f8237b8b6b0 | /src/hackerEarthProblems/StackOperations.java | 592ebd21780cf05860c2754630443d482987796d | [] | no_license | narang-shivani/java-practice | 787d867ebeaf80a2387a1d33236fdd86b9e446b0 | d0c150b84baadc23b5127b48686405b1d29b86db | refs/heads/master | 2023-06-07T12:01:35.359886 | 2021-06-27T08:27:41 | 2021-06-27T08:27:41 | 380,688,930 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,312 | java | package hackerEarthProblems;
import java.util.List;
import java.util.*;
import static java.lang.Integer.parseInt;
/**
* Problem
* You are given a stack of N integers.
* In one operation, you can either pop an element from the stack or push any popped element into the stack.
* You need to maximize the top element of the stack after performing exactly K operations.
* If the stack becomes empty after performing K operations and there is no other way for the stack to be non-empty, print -1.
*
* Input format :
* The first line of input consists of two space-separated integers N and K.
* The second line of input consists N space-separated integers denoting the elements of the stack.
* The first element represents the top of the stack and the last element represents the bottom of the stack.
*
* Output format :
* Print the maximum possible top element of the stack after performing exactly K operations.
*
* Sample Input
* 6 4
* 1 2 4 3 3 5
* Sample Output
* 4
* Explanation: In 3 operations, we remove 1,2,4 and in the fourth operation, we push 4 back into the stack. Hence, 4 is the answer.
*/
public class StackOperations {
public static void main(String args[]) throws Exception {
System.out.println("Enter input");
List<String> input = new ArrayList<>();
Scanner s = new Scanner(System.in);
System.out.println("Input received");
while (s.hasNext()) {
input.add(s.nextLine());
}
int n = parseInt(input.get(0).split(" ")[0]);
int k = parseInt(input.get(0).split(" ")[1]);
List<String> elements = new ArrayList<String>(Arrays.asList(input.get(1).split(" ")));
Stack<String> orstack = new Stack();
int i = elements.size() - 1;
while (i > 0) {
orstack.push(elements.get(i));
i--;
}
maxElement(orstack, n, k);
}
static void maxElement(Stack<String> orstack, int n, int k) {
List<Integer> poppedElements = new ArrayList<Integer>();
int i = 0;
while (i < k) {
poppedElements.add(parseInt(orstack.pop()));
i++;
}
Collections.sort(poppedElements);
orstack.push(poppedElements.get(k-2).toString());
System.out.println(orstack.peek());
}
}
| [
"shivani@telekom-digital.com"
] | shivani@telekom-digital.com |
f273d7c0750d2d43ada138c31ceeaffd7263af28 | 0e9056539140df518e4b72c4ea564fc5e00b2b1a | /src/main/java/com/giacobbo/blog/factory/PostFactory.java | 1b936b5a83a99f1382367a9ea0636c388913e780 | [] | no_license | diegogiacobbo/back-personnel | 90f1762a021a3b3db8ae1e0f5c1756d846ac446f | 8a86e1520ea40c7026e1feccc264a33aa2ab9c4d | refs/heads/master | 2023-04-30T03:39:23.837495 | 2021-02-01T16:48:31 | 2021-02-01T16:48:31 | 206,426,743 | 0 | 0 | null | 2023-04-14T17:48:32 | 2019-09-04T22:33:55 | Java | UTF-8 | Java | false | false | 824 | java | package com.giacobbo.blog.factory;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.giacobbo.blog.model.Post;
public class PostFactory implements Serializable {
private static final long serialVersionUID = 1L;
private PostFactory() {
}
public static Post create(String title, String content, LocalDateTime date) {
return new PostBuilder()
.addTitle(title)
.addContent(content)
.addData(date)
.instance();
}
public static Post createPublic(String title, String content, LocalDateTime date) {
return new PostBuilder()
.addTitle(title)
.addContent(content)
.addData(date)
.addPublic(Boolean.TRUE)
.instance();
}
}
| [
"diegogiacobbo@gmail.com"
] | diegogiacobbo@gmail.com |
5d2869693d82830ad774408e268202cd7bdfca88 | 40565597e3c0aa65aef47c8072261c84d6184958 | /src/ch03/PembagiKecil.java | d0a81d969ef1428e340c453c95a14d75da3c7b2d | [] | no_license | MSaskii/Alpro_12_02 | d47de6ff25f1e296a663f50dbca54224d22308f6 | af6a172fb9fd1081f57cd555cfc6c39745110163 | refs/heads/master | 2023-03-27T17:29:10.879908 | 2021-03-31T01:54:59 | 2021-03-31T01:54:59 | 266,070,642 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 594 | java | package ch03;
import java.util.Scanner;
public class PembagiKecil {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Input Bilangan = ");
int bil = in.nextInt();
if (bil > 0 && bil <= 2) {
System.out.println("Pembagi Terkecil = " + bil);
} else {
for (int a = 4; a <= bil; a ++) {
if (bil % a == 0) {
System.out.println("Pembagi Terkecil = " + a);
break;
}
}
}
}
} | [
"11950110012@students.uin-suska.ac.id"
] | 11950110012@students.uin-suska.ac.id |
bc79c9941cb5cd55e1c648b76fea2bf45eb14c52 | 4964e5ce772aee16a7c0d1fd51cc1dcaf7e756d0 | /2017/app/build/generated/source/r/debug/android/support/design/R.java | 14cf4169426774e2e3860684e0b1b02b417e42be | [] | no_license | krkeco/StockHawk_ff | d7dbbb02d8194b010cd3f2ff38c8010711d7d7b8 | 7cdb609d51e97c9ffb1604217166a9abf7c622f0 | refs/heads/master | 2021-01-13T02:56:29.149985 | 2017-02-09T22:15:42 | 2017-02-09T22:15:42 | 77,080,831 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 135,125 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.design;
public final class R {
public static final class anim {
public static final int abc_fade_in = 0x7f050000;
public static final int abc_fade_out = 0x7f050001;
public static final int abc_grow_fade_in_from_bottom = 0x7f050002;
public static final int abc_popup_enter = 0x7f050003;
public static final int abc_popup_exit = 0x7f050004;
public static final int abc_shrink_fade_out_from_bottom = 0x7f050005;
public static final int abc_slide_in_bottom = 0x7f050006;
public static final int abc_slide_in_top = 0x7f050007;
public static final int abc_slide_out_bottom = 0x7f050008;
public static final int abc_slide_out_top = 0x7f050009;
public static final int design_appbar_state_list_animator = 0x7f05000a;
public static final int design_bottom_sheet_slide_in = 0x7f05000b;
public static final int design_bottom_sheet_slide_out = 0x7f05000c;
public static final int design_fab_in = 0x7f05000d;
public static final int design_fab_out = 0x7f05000e;
public static final int design_snackbar_in = 0x7f05000f;
public static final int design_snackbar_out = 0x7f050010;
}
public static final class attr {
public static final int actionBarDivider = 0x7f010045;
public static final int actionBarItemBackground = 0x7f010046;
public static final int actionBarPopupTheme = 0x7f01003f;
public static final int actionBarSize = 0x7f010044;
public static final int actionBarSplitStyle = 0x7f010041;
public static final int actionBarStyle = 0x7f010040;
public static final int actionBarTabBarStyle = 0x7f01003b;
public static final int actionBarTabStyle = 0x7f01003a;
public static final int actionBarTabTextStyle = 0x7f01003c;
public static final int actionBarTheme = 0x7f010042;
public static final int actionBarWidgetTheme = 0x7f010043;
public static final int actionButtonStyle = 0x7f010060;
public static final int actionDropDownStyle = 0x7f01005c;
public static final int actionLayout = 0x7f0100dd;
public static final int actionMenuTextAppearance = 0x7f010047;
public static final int actionMenuTextColor = 0x7f010048;
public static final int actionModeBackground = 0x7f01004b;
public static final int actionModeCloseButtonStyle = 0x7f01004a;
public static final int actionModeCloseDrawable = 0x7f01004d;
public static final int actionModeCopyDrawable = 0x7f01004f;
public static final int actionModeCutDrawable = 0x7f01004e;
public static final int actionModeFindDrawable = 0x7f010053;
public static final int actionModePasteDrawable = 0x7f010050;
public static final int actionModePopupWindowStyle = 0x7f010055;
public static final int actionModeSelectAllDrawable = 0x7f010051;
public static final int actionModeShareDrawable = 0x7f010052;
public static final int actionModeSplitBackground = 0x7f01004c;
public static final int actionModeStyle = 0x7f010049;
public static final int actionModeWebSearchDrawable = 0x7f010054;
public static final int actionOverflowButtonStyle = 0x7f01003d;
public static final int actionOverflowMenuStyle = 0x7f01003e;
public static final int actionProviderClass = 0x7f0100df;
public static final int actionViewClass = 0x7f0100de;
public static final int activityChooserViewStyle = 0x7f010068;
public static final int alertDialogButtonGroupStyle = 0x7f01008c;
public static final int alertDialogCenterButtons = 0x7f01008d;
public static final int alertDialogStyle = 0x7f01008b;
public static final int alertDialogTheme = 0x7f01008e;
public static final int allowStacking = 0x7f0100a4;
public static final int alpha = 0x7f0100b6;
public static final int arrowHeadLength = 0x7f0100c8;
public static final int arrowShaftLength = 0x7f0100c9;
public static final int autoCompleteTextViewStyle = 0x7f010093;
public static final int background = 0x7f01000c;
public static final int backgroundSplit = 0x7f01000e;
public static final int backgroundStacked = 0x7f01000d;
public static final int backgroundTint = 0x7f01013b;
public static final int backgroundTintMode = 0x7f01013c;
public static final int barLength = 0x7f0100ca;
public static final int behavior_autoHide = 0x7f0100d7;
public static final int behavior_hideable = 0x7f0100a2;
public static final int behavior_overlapTop = 0x7f0100ef;
public static final int behavior_peekHeight = 0x7f0100a1;
public static final int behavior_skipCollapsed = 0x7f0100a3;
public static final int borderWidth = 0x7f0100d5;
public static final int borderlessButtonStyle = 0x7f010065;
public static final int bottomSheetDialogTheme = 0x7f0100c1;
public static final int bottomSheetStyle = 0x7f0100c2;
public static final int buttonBarButtonStyle = 0x7f010062;
public static final int buttonBarNegativeButtonStyle = 0x7f010091;
public static final int buttonBarNeutralButtonStyle = 0x7f010092;
public static final int buttonBarPositiveButtonStyle = 0x7f010090;
public static final int buttonBarStyle = 0x7f010061;
public static final int buttonGravity = 0x7f010130;
public static final int buttonPanelSideLayout = 0x7f010021;
public static final int buttonStyle = 0x7f010094;
public static final int buttonStyleSmall = 0x7f010095;
public static final int buttonTint = 0x7f0100b7;
public static final int buttonTintMode = 0x7f0100b8;
public static final int checkboxStyle = 0x7f010096;
public static final int checkedTextViewStyle = 0x7f010097;
public static final int closeIcon = 0x7f0100f4;
public static final int closeItemLayout = 0x7f01001e;
public static final int collapseContentDescription = 0x7f010132;
public static final int collapseIcon = 0x7f010131;
public static final int collapsedTitleGravity = 0x7f0100b1;
public static final int collapsedTitleTextAppearance = 0x7f0100ab;
public static final int color = 0x7f0100c4;
public static final int colorAccent = 0x7f010083;
public static final int colorBackgroundFloating = 0x7f01008a;
public static final int colorButtonNormal = 0x7f010087;
public static final int colorControlActivated = 0x7f010085;
public static final int colorControlHighlight = 0x7f010086;
public static final int colorControlNormal = 0x7f010084;
public static final int colorPrimary = 0x7f010081;
public static final int colorPrimaryDark = 0x7f010082;
public static final int colorSwitchThumbNormal = 0x7f010088;
public static final int commitIcon = 0x7f0100f9;
public static final int contentInsetEnd = 0x7f010017;
public static final int contentInsetEndWithActions = 0x7f01001b;
public static final int contentInsetLeft = 0x7f010018;
public static final int contentInsetRight = 0x7f010019;
public static final int contentInsetStart = 0x7f010016;
public static final int contentInsetStartWithNavigation = 0x7f01001a;
public static final int contentScrim = 0x7f0100ac;
public static final int controlBackground = 0x7f010089;
public static final int counterEnabled = 0x7f01011d;
public static final int counterMaxLength = 0x7f01011e;
public static final int counterOverflowTextAppearance = 0x7f010120;
public static final int counterTextAppearance = 0x7f01011f;
public static final int customNavigationLayout = 0x7f01000f;
public static final int defaultQueryHint = 0x7f0100f3;
public static final int dialogPreferredPadding = 0x7f01005a;
public static final int dialogTheme = 0x7f010059;
public static final int displayOptions = 0x7f010005;
public static final int divider = 0x7f01000b;
public static final int dividerHorizontal = 0x7f010067;
public static final int dividerPadding = 0x7f0100db;
public static final int dividerVertical = 0x7f010066;
public static final int drawableSize = 0x7f0100c6;
public static final int drawerArrowStyle = 0x7f010000;
public static final int dropDownListViewStyle = 0x7f010079;
public static final int dropdownListPreferredItemHeight = 0x7f01005d;
public static final int editTextBackground = 0x7f01006e;
public static final int editTextColor = 0x7f01006d;
public static final int editTextStyle = 0x7f010098;
public static final int elevation = 0x7f01001c;
public static final int errorEnabled = 0x7f01011b;
public static final int errorTextAppearance = 0x7f01011c;
public static final int expandActivityOverflowButtonDrawable = 0x7f010020;
public static final int expanded = 0x7f010026;
public static final int expandedTitleGravity = 0x7f0100b2;
public static final int expandedTitleMargin = 0x7f0100a5;
public static final int expandedTitleMarginBottom = 0x7f0100a9;
public static final int expandedTitleMarginEnd = 0x7f0100a8;
public static final int expandedTitleMarginStart = 0x7f0100a6;
public static final int expandedTitleMarginTop = 0x7f0100a7;
public static final int expandedTitleTextAppearance = 0x7f0100aa;
public static final int fabSize = 0x7f0100d3;
public static final int foregroundInsidePadding = 0x7f0100d8;
public static final int gapBetweenBars = 0x7f0100c7;
public static final int goIcon = 0x7f0100f5;
public static final int headerLayout = 0x7f0100e7;
public static final int height = 0x7f010001;
public static final int hideOnContentScroll = 0x7f010015;
public static final int hintAnimationEnabled = 0x7f010121;
public static final int hintEnabled = 0x7f01011a;
public static final int hintTextAppearance = 0x7f010119;
public static final int homeAsUpIndicator = 0x7f01005f;
public static final int homeLayout = 0x7f010010;
public static final int icon = 0x7f010009;
public static final int iconifiedByDefault = 0x7f0100f1;
public static final int imageButtonStyle = 0x7f01006f;
public static final int indeterminateProgressStyle = 0x7f010012;
public static final int initialActivityCount = 0x7f01001f;
public static final int insetForeground = 0x7f0100ee;
public static final int isLightTheme = 0x7f010002;
public static final int itemBackground = 0x7f0100e5;
public static final int itemIconTint = 0x7f0100e3;
public static final int itemPadding = 0x7f010014;
public static final int itemTextAppearance = 0x7f0100e6;
public static final int itemTextColor = 0x7f0100e4;
public static final int keylines = 0x7f0100b9;
public static final int layout = 0x7f0100f0;
public static final int layoutManager = 0x7f0100ea;
public static final int layout_anchor = 0x7f0100bc;
public static final int layout_anchorGravity = 0x7f0100be;
public static final int layout_behavior = 0x7f0100bb;
public static final int layout_collapseMode = 0x7f0100b4;
public static final int layout_collapseParallaxMultiplier = 0x7f0100b5;
public static final int layout_dodgeInsetEdges = 0x7f0100c0;
public static final int layout_insetEdge = 0x7f0100bf;
public static final int layout_keyline = 0x7f0100bd;
public static final int layout_scrollFlags = 0x7f010029;
public static final int layout_scrollInterpolator = 0x7f01002a;
public static final int listChoiceBackgroundIndicator = 0x7f010080;
public static final int listDividerAlertDialog = 0x7f01005b;
public static final int listItemLayout = 0x7f010025;
public static final int listLayout = 0x7f010022;
public static final int listMenuViewStyle = 0x7f0100a0;
public static final int listPopupWindowStyle = 0x7f01007a;
public static final int listPreferredItemHeight = 0x7f010074;
public static final int listPreferredItemHeightLarge = 0x7f010076;
public static final int listPreferredItemHeightSmall = 0x7f010075;
public static final int listPreferredItemPaddingLeft = 0x7f010077;
public static final int listPreferredItemPaddingRight = 0x7f010078;
public static final int logo = 0x7f01000a;
public static final int logoDescription = 0x7f010135;
public static final int maxActionInlineWidth = 0x7f0100fd;
public static final int maxButtonHeight = 0x7f01012f;
public static final int measureWithLargestChild = 0x7f0100d9;
public static final int menu = 0x7f0100e2;
public static final int multiChoiceItemLayout = 0x7f010023;
public static final int navigationContentDescription = 0x7f010134;
public static final int navigationIcon = 0x7f010133;
public static final int navigationMode = 0x7f010004;
public static final int overlapAnchor = 0x7f0100e8;
public static final int paddingEnd = 0x7f010139;
public static final int paddingStart = 0x7f010138;
public static final int panelBackground = 0x7f01007d;
public static final int panelMenuListTheme = 0x7f01007f;
public static final int panelMenuListWidth = 0x7f01007e;
public static final int passwordToggleContentDescription = 0x7f010124;
public static final int passwordToggleDrawable = 0x7f010123;
public static final int passwordToggleEnabled = 0x7f010122;
public static final int passwordToggleTint = 0x7f010125;
public static final int passwordToggleTintMode = 0x7f010126;
public static final int popupMenuStyle = 0x7f01006b;
public static final int popupTheme = 0x7f01001d;
public static final int popupWindowStyle = 0x7f01006c;
public static final int preserveIconSpacing = 0x7f0100e0;
public static final int pressedTranslationZ = 0x7f0100d4;
public static final int progressBarPadding = 0x7f010013;
public static final int progressBarStyle = 0x7f010011;
public static final int queryBackground = 0x7f0100fb;
public static final int queryHint = 0x7f0100f2;
public static final int radioButtonStyle = 0x7f010099;
public static final int ratingBarStyle = 0x7f01009a;
public static final int ratingBarStyleIndicator = 0x7f01009b;
public static final int ratingBarStyleSmall = 0x7f01009c;
public static final int reverseLayout = 0x7f0100ec;
public static final int rippleColor = 0x7f0100d2;
public static final int scrimAnimationDuration = 0x7f0100b0;
public static final int scrimVisibleHeightTrigger = 0x7f0100af;
public static final int searchHintIcon = 0x7f0100f7;
public static final int searchIcon = 0x7f0100f6;
public static final int searchViewStyle = 0x7f010073;
public static final int seekBarStyle = 0x7f01009d;
public static final int selectableItemBackground = 0x7f010063;
public static final int selectableItemBackgroundBorderless = 0x7f010064;
public static final int showAsAction = 0x7f0100dc;
public static final int showDividers = 0x7f0100da;
public static final int showText = 0x7f010108;
public static final int singleChoiceItemLayout = 0x7f010024;
public static final int spanCount = 0x7f0100eb;
public static final int spinBars = 0x7f0100c5;
public static final int spinnerDropDownItemStyle = 0x7f01005e;
public static final int spinnerStyle = 0x7f01009e;
public static final int splitTrack = 0x7f010107;
public static final int srcCompat = 0x7f01002b;
public static final int stackFromEnd = 0x7f0100ed;
public static final int state_above_anchor = 0x7f0100e9;
public static final int state_collapsed = 0x7f010027;
public static final int state_collapsible = 0x7f010028;
public static final int statusBarBackground = 0x7f0100ba;
public static final int statusBarScrim = 0x7f0100ad;
public static final int subMenuArrow = 0x7f0100e1;
public static final int submitBackground = 0x7f0100fc;
public static final int subtitle = 0x7f010006;
public static final int subtitleTextAppearance = 0x7f010128;
public static final int subtitleTextColor = 0x7f010137;
public static final int subtitleTextStyle = 0x7f010008;
public static final int suggestionRowLayout = 0x7f0100fa;
public static final int switchMinWidth = 0x7f010105;
public static final int switchPadding = 0x7f010106;
public static final int switchStyle = 0x7f01009f;
public static final int switchTextAppearance = 0x7f010104;
public static final int tabBackground = 0x7f01010c;
public static final int tabContentStart = 0x7f01010b;
public static final int tabGravity = 0x7f01010e;
public static final int tabIndicatorColor = 0x7f010109;
public static final int tabIndicatorHeight = 0x7f01010a;
public static final int tabMaxWidth = 0x7f010110;
public static final int tabMinWidth = 0x7f01010f;
public static final int tabMode = 0x7f01010d;
public static final int tabPadding = 0x7f010118;
public static final int tabPaddingBottom = 0x7f010117;
public static final int tabPaddingEnd = 0x7f010116;
public static final int tabPaddingStart = 0x7f010114;
public static final int tabPaddingTop = 0x7f010115;
public static final int tabSelectedTextColor = 0x7f010113;
public static final int tabTextAppearance = 0x7f010111;
public static final int tabTextColor = 0x7f010112;
public static final int textAllCaps = 0x7f01002f;
public static final int textAppearanceLargePopupMenu = 0x7f010056;
public static final int textAppearanceListItem = 0x7f01007b;
public static final int textAppearanceListItemSmall = 0x7f01007c;
public static final int textAppearancePopupMenuHeader = 0x7f010058;
public static final int textAppearanceSearchResultSubtitle = 0x7f010071;
public static final int textAppearanceSearchResultTitle = 0x7f010070;
public static final int textAppearanceSmallPopupMenu = 0x7f010057;
public static final int textColorAlertDialogListItem = 0x7f01008f;
public static final int textColorError = 0x7f0100c3;
public static final int textColorSearchUrl = 0x7f010072;
public static final int theme = 0x7f01013a;
public static final int thickness = 0x7f0100cb;
public static final int thumbTextPadding = 0x7f010103;
public static final int thumbTint = 0x7f0100fe;
public static final int thumbTintMode = 0x7f0100ff;
public static final int tickMark = 0x7f01002c;
public static final int tickMarkTint = 0x7f01002d;
public static final int tickMarkTintMode = 0x7f01002e;
public static final int title = 0x7f010003;
public static final int titleEnabled = 0x7f0100b3;
public static final int titleMargin = 0x7f010129;
public static final int titleMarginBottom = 0x7f01012d;
public static final int titleMarginEnd = 0x7f01012b;
public static final int titleMarginStart = 0x7f01012a;
public static final int titleMarginTop = 0x7f01012c;
public static final int titleMargins = 0x7f01012e;
public static final int titleTextAppearance = 0x7f010127;
public static final int titleTextColor = 0x7f010136;
public static final int titleTextStyle = 0x7f010007;
public static final int toolbarId = 0x7f0100ae;
public static final int toolbarNavigationButtonStyle = 0x7f01006a;
public static final int toolbarStyle = 0x7f010069;
public static final int track = 0x7f010100;
public static final int trackTint = 0x7f010101;
public static final int trackTintMode = 0x7f010102;
public static final int useCompatPadding = 0x7f0100d6;
public static final int voiceIcon = 0x7f0100f8;
public static final int windowActionBar = 0x7f010030;
public static final int windowActionBarOverlay = 0x7f010032;
public static final int windowActionModeOverlay = 0x7f010033;
public static final int windowFixedHeightMajor = 0x7f010037;
public static final int windowFixedHeightMinor = 0x7f010035;
public static final int windowFixedWidthMajor = 0x7f010034;
public static final int windowFixedWidthMinor = 0x7f010036;
public static final int windowMinWidthMajor = 0x7f010038;
public static final int windowMinWidthMinor = 0x7f010039;
public static final int windowNoTitle = 0x7f010031;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs = 0x7f0a0000;
public static final int abc_allow_stacked_button_bar = 0x7f0a0001;
public static final int abc_config_actionMenuItemAllCaps = 0x7f0a0002;
public static final int abc_config_closeDialogWhenTouchOutside = 0x7f0a0003;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f0a0004;
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark = 0x7f0c004c;
public static final int abc_background_cache_hint_selector_material_light = 0x7f0c004d;
public static final int abc_btn_colored_borderless_text_material = 0x7f0c004e;
public static final int abc_color_highlight_material = 0x7f0c004f;
public static final int abc_hint_foreground_material_dark = 0x7f0c0050;
public static final int abc_hint_foreground_material_light = 0x7f0c0051;
public static final int abc_input_method_navigation_guard = 0x7f0c0001;
public static final int abc_primary_text_disable_only_material_dark = 0x7f0c0052;
public static final int abc_primary_text_disable_only_material_light = 0x7f0c0053;
public static final int abc_primary_text_material_dark = 0x7f0c0054;
public static final int abc_primary_text_material_light = 0x7f0c0055;
public static final int abc_search_url_text = 0x7f0c0056;
public static final int abc_search_url_text_normal = 0x7f0c0002;
public static final int abc_search_url_text_pressed = 0x7f0c0003;
public static final int abc_search_url_text_selected = 0x7f0c0004;
public static final int abc_secondary_text_material_dark = 0x7f0c0057;
public static final int abc_secondary_text_material_light = 0x7f0c0058;
public static final int abc_tint_btn_checkable = 0x7f0c0059;
public static final int abc_tint_default = 0x7f0c005a;
public static final int abc_tint_edittext = 0x7f0c005b;
public static final int abc_tint_seek_thumb = 0x7f0c005c;
public static final int abc_tint_spinner = 0x7f0c005d;
public static final int abc_tint_switch_thumb = 0x7f0c005e;
public static final int abc_tint_switch_track = 0x7f0c005f;
public static final int accent_material_dark = 0x7f0c0005;
public static final int accent_material_light = 0x7f0c0006;
public static final int background_floating_material_dark = 0x7f0c0007;
public static final int background_floating_material_light = 0x7f0c0008;
public static final int background_material_dark = 0x7f0c0009;
public static final int background_material_light = 0x7f0c000a;
public static final int bright_foreground_disabled_material_dark = 0x7f0c000b;
public static final int bright_foreground_disabled_material_light = 0x7f0c000c;
public static final int bright_foreground_inverse_material_dark = 0x7f0c000d;
public static final int bright_foreground_inverse_material_light = 0x7f0c000e;
public static final int bright_foreground_material_dark = 0x7f0c000f;
public static final int bright_foreground_material_light = 0x7f0c0010;
public static final int button_material_dark = 0x7f0c0011;
public static final int button_material_light = 0x7f0c0012;
public static final int design_bottom_navigation_shadow_color = 0x7f0c0016;
public static final int design_error = 0x7f0c0060;
public static final int design_fab_shadow_end_color = 0x7f0c0017;
public static final int design_fab_shadow_mid_color = 0x7f0c0018;
public static final int design_fab_shadow_start_color = 0x7f0c0019;
public static final int design_fab_stroke_end_inner_color = 0x7f0c001a;
public static final int design_fab_stroke_end_outer_color = 0x7f0c001b;
public static final int design_fab_stroke_top_inner_color = 0x7f0c001c;
public static final int design_fab_stroke_top_outer_color = 0x7f0c001d;
public static final int design_snackbar_background_color = 0x7f0c001e;
public static final int design_textinput_error_color_dark = 0x7f0c001f;
public static final int design_textinput_error_color_light = 0x7f0c0020;
public static final int design_tint_password_toggle = 0x7f0c0061;
public static final int dim_foreground_disabled_material_dark = 0x7f0c0021;
public static final int dim_foreground_disabled_material_light = 0x7f0c0022;
public static final int dim_foreground_material_dark = 0x7f0c0023;
public static final int dim_foreground_material_light = 0x7f0c0024;
public static final int foreground_material_dark = 0x7f0c0025;
public static final int foreground_material_light = 0x7f0c0026;
public static final int highlighted_text_material_dark = 0x7f0c0027;
public static final int highlighted_text_material_light = 0x7f0c0028;
public static final int material_blue_grey_800 = 0x7f0c002a;
public static final int material_blue_grey_900 = 0x7f0c002b;
public static final int material_blue_grey_950 = 0x7f0c002c;
public static final int material_deep_teal_200 = 0x7f0c002d;
public static final int material_deep_teal_500 = 0x7f0c002e;
public static final int material_grey_100 = 0x7f0c0030;
public static final int material_grey_300 = 0x7f0c0031;
public static final int material_grey_50 = 0x7f0c0032;
public static final int material_grey_600 = 0x7f0c0033;
public static final int material_grey_800 = 0x7f0c0034;
public static final int material_grey_850 = 0x7f0c0035;
public static final int material_grey_900 = 0x7f0c0036;
public static final int notification_action_color_filter = 0x7f0c0000;
public static final int notification_icon_bg_color = 0x7f0c0038;
public static final int notification_material_background_media_default_color = 0x7f0c0039;
public static final int primary_dark_material_dark = 0x7f0c003a;
public static final int primary_dark_material_light = 0x7f0c003b;
public static final int primary_material_dark = 0x7f0c003c;
public static final int primary_material_light = 0x7f0c003d;
public static final int primary_text_default_material_dark = 0x7f0c003e;
public static final int primary_text_default_material_light = 0x7f0c003f;
public static final int primary_text_disabled_material_dark = 0x7f0c0040;
public static final int primary_text_disabled_material_light = 0x7f0c0041;
public static final int ripple_material_dark = 0x7f0c0042;
public static final int ripple_material_light = 0x7f0c0043;
public static final int secondary_text_default_material_dark = 0x7f0c0044;
public static final int secondary_text_default_material_light = 0x7f0c0045;
public static final int secondary_text_disabled_material_dark = 0x7f0c0046;
public static final int secondary_text_disabled_material_light = 0x7f0c0047;
public static final int switch_thumb_disabled_material_dark = 0x7f0c0048;
public static final int switch_thumb_disabled_material_light = 0x7f0c0049;
public static final int switch_thumb_material_dark = 0x7f0c0062;
public static final int switch_thumb_material_light = 0x7f0c0063;
public static final int switch_thumb_normal_material_dark = 0x7f0c004a;
public static final int switch_thumb_normal_material_light = 0x7f0c004b;
}
public static final class dimen {
public static final int abc_action_bar_content_inset_material = 0x7f08000c;
public static final int abc_action_bar_content_inset_with_nav = 0x7f08000d;
public static final int abc_action_bar_default_height_material = 0x7f080001;
public static final int abc_action_bar_default_padding_end_material = 0x7f08000e;
public static final int abc_action_bar_default_padding_start_material = 0x7f08000f;
public static final int abc_action_bar_elevation_material = 0x7f08001e;
public static final int abc_action_bar_icon_vertical_padding_material = 0x7f08001f;
public static final int abc_action_bar_overflow_padding_end_material = 0x7f080020;
public static final int abc_action_bar_overflow_padding_start_material = 0x7f080021;
public static final int abc_action_bar_progress_bar_size = 0x7f080002;
public static final int abc_action_bar_stacked_max_height = 0x7f080022;
public static final int abc_action_bar_stacked_tab_max_width = 0x7f080023;
public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f080024;
public static final int abc_action_bar_subtitle_top_margin_material = 0x7f080025;
public static final int abc_action_button_min_height_material = 0x7f080026;
public static final int abc_action_button_min_width_material = 0x7f080027;
public static final int abc_action_button_min_width_overflow_material = 0x7f080028;
public static final int abc_alert_dialog_button_bar_height = 0x7f080000;
public static final int abc_button_inset_horizontal_material = 0x7f080029;
public static final int abc_button_inset_vertical_material = 0x7f08002a;
public static final int abc_button_padding_horizontal_material = 0x7f08002b;
public static final int abc_button_padding_vertical_material = 0x7f08002c;
public static final int abc_cascading_menus_min_smallest_width = 0x7f08002d;
public static final int abc_config_prefDialogWidth = 0x7f080005;
public static final int abc_control_corner_material = 0x7f08002e;
public static final int abc_control_inset_material = 0x7f08002f;
public static final int abc_control_padding_material = 0x7f080030;
public static final int abc_dialog_fixed_height_major = 0x7f080006;
public static final int abc_dialog_fixed_height_minor = 0x7f080007;
public static final int abc_dialog_fixed_width_major = 0x7f080008;
public static final int abc_dialog_fixed_width_minor = 0x7f080009;
public static final int abc_dialog_list_padding_vertical_material = 0x7f080031;
public static final int abc_dialog_min_width_major = 0x7f08000a;
public static final int abc_dialog_min_width_minor = 0x7f08000b;
public static final int abc_dialog_padding_material = 0x7f080032;
public static final int abc_dialog_padding_top_material = 0x7f080033;
public static final int abc_disabled_alpha_material_dark = 0x7f080034;
public static final int abc_disabled_alpha_material_light = 0x7f080035;
public static final int abc_dropdownitem_icon_width = 0x7f080036;
public static final int abc_dropdownitem_text_padding_left = 0x7f080037;
public static final int abc_dropdownitem_text_padding_right = 0x7f080038;
public static final int abc_edit_text_inset_bottom_material = 0x7f080039;
public static final int abc_edit_text_inset_horizontal_material = 0x7f08003a;
public static final int abc_edit_text_inset_top_material = 0x7f08003b;
public static final int abc_floating_window_z = 0x7f08003c;
public static final int abc_list_item_padding_horizontal_material = 0x7f08003d;
public static final int abc_panel_menu_list_width = 0x7f08003e;
public static final int abc_progress_bar_height_material = 0x7f08003f;
public static final int abc_search_view_preferred_height = 0x7f080040;
public static final int abc_search_view_preferred_width = 0x7f080041;
public static final int abc_seekbar_track_background_height_material = 0x7f080042;
public static final int abc_seekbar_track_progress_height_material = 0x7f080043;
public static final int abc_select_dialog_padding_start_material = 0x7f080044;
public static final int abc_switch_padding = 0x7f080019;
public static final int abc_text_size_body_1_material = 0x7f080045;
public static final int abc_text_size_body_2_material = 0x7f080046;
public static final int abc_text_size_button_material = 0x7f080047;
public static final int abc_text_size_caption_material = 0x7f080048;
public static final int abc_text_size_display_1_material = 0x7f080049;
public static final int abc_text_size_display_2_material = 0x7f08004a;
public static final int abc_text_size_display_3_material = 0x7f08004b;
public static final int abc_text_size_display_4_material = 0x7f08004c;
public static final int abc_text_size_headline_material = 0x7f08004d;
public static final int abc_text_size_large_material = 0x7f08004e;
public static final int abc_text_size_medium_material = 0x7f08004f;
public static final int abc_text_size_menu_header_material = 0x7f080050;
public static final int abc_text_size_menu_material = 0x7f080051;
public static final int abc_text_size_small_material = 0x7f080052;
public static final int abc_text_size_subhead_material = 0x7f080053;
public static final int abc_text_size_subtitle_material_toolbar = 0x7f080003;
public static final int abc_text_size_title_material = 0x7f080054;
public static final int abc_text_size_title_material_toolbar = 0x7f080004;
public static final int design_appbar_elevation = 0x7f080056;
public static final int design_bottom_navigation_active_item_max_width = 0x7f080057;
public static final int design_bottom_navigation_active_text_size = 0x7f080058;
public static final int design_bottom_navigation_elevation = 0x7f080059;
public static final int design_bottom_navigation_height = 0x7f08005a;
public static final int design_bottom_navigation_item_max_width = 0x7f08005b;
public static final int design_bottom_navigation_item_min_width = 0x7f08005c;
public static final int design_bottom_navigation_margin = 0x7f08005d;
public static final int design_bottom_navigation_shadow_height = 0x7f08005e;
public static final int design_bottom_navigation_text_size = 0x7f08005f;
public static final int design_bottom_sheet_modal_elevation = 0x7f080060;
public static final int design_bottom_sheet_peek_height_min = 0x7f080061;
public static final int design_fab_border_width = 0x7f080062;
public static final int design_fab_elevation = 0x7f080063;
public static final int design_fab_image_size = 0x7f080064;
public static final int design_fab_size_mini = 0x7f080065;
public static final int design_fab_size_normal = 0x7f080066;
public static final int design_fab_translation_z_pressed = 0x7f080067;
public static final int design_navigation_elevation = 0x7f080068;
public static final int design_navigation_icon_padding = 0x7f080069;
public static final int design_navigation_icon_size = 0x7f08006a;
public static final int design_navigation_max_width = 0x7f080010;
public static final int design_navigation_padding_bottom = 0x7f08006b;
public static final int design_navigation_separator_vertical_padding = 0x7f08006c;
public static final int design_snackbar_action_inline_max_width = 0x7f080011;
public static final int design_snackbar_background_corner_radius = 0x7f080012;
public static final int design_snackbar_elevation = 0x7f08006d;
public static final int design_snackbar_extra_spacing_horizontal = 0x7f080013;
public static final int design_snackbar_max_width = 0x7f080014;
public static final int design_snackbar_min_width = 0x7f080015;
public static final int design_snackbar_padding_horizontal = 0x7f08006e;
public static final int design_snackbar_padding_vertical = 0x7f08006f;
public static final int design_snackbar_padding_vertical_2lines = 0x7f080016;
public static final int design_snackbar_text_size = 0x7f080070;
public static final int design_tab_max_width = 0x7f080071;
public static final int design_tab_scrollable_min_width = 0x7f080017;
public static final int design_tab_text_size = 0x7f080072;
public static final int design_tab_text_size_2line = 0x7f080073;
public static final int disabled_alpha_material_dark = 0x7f080074;
public static final int disabled_alpha_material_light = 0x7f080075;
public static final int highlight_alpha_material_colored = 0x7f08007b;
public static final int highlight_alpha_material_dark = 0x7f08007c;
public static final int highlight_alpha_material_light = 0x7f08007d;
public static final int hint_alpha_material_dark = 0x7f08007e;
public static final int hint_alpha_material_light = 0x7f08007f;
public static final int hint_pressed_alpha_material_dark = 0x7f080080;
public static final int hint_pressed_alpha_material_light = 0x7f080081;
public static final int item_touch_helper_max_drag_scroll_per_frame = 0x7f080082;
public static final int item_touch_helper_swipe_escape_max_velocity = 0x7f080083;
public static final int item_touch_helper_swipe_escape_velocity = 0x7f080084;
public static final int notification_action_icon_size = 0x7f080085;
public static final int notification_action_text_size = 0x7f080086;
public static final int notification_big_circle_margin = 0x7f080087;
public static final int notification_content_margin_start = 0x7f08001a;
public static final int notification_large_icon_height = 0x7f080088;
public static final int notification_large_icon_width = 0x7f080089;
public static final int notification_main_column_padding_top = 0x7f08001b;
public static final int notification_media_narrow_margin = 0x7f08001c;
public static final int notification_right_icon_size = 0x7f08008a;
public static final int notification_right_side_padding_top = 0x7f080018;
public static final int notification_small_icon_background_padding = 0x7f08008b;
public static final int notification_small_icon_size_as_large = 0x7f08008c;
public static final int notification_subtext_size = 0x7f08008d;
public static final int notification_top_pad = 0x7f08008e;
public static final int notification_top_pad_large_text = 0x7f08008f;
}
public static final class drawable {
public static final int abc_ab_share_pack_mtrl_alpha = 0x7f020000;
public static final int abc_action_bar_item_background_material = 0x7f020001;
public static final int abc_btn_borderless_material = 0x7f020002;
public static final int abc_btn_check_material = 0x7f020003;
public static final int abc_btn_check_to_on_mtrl_000 = 0x7f020004;
public static final int abc_btn_check_to_on_mtrl_015 = 0x7f020005;
public static final int abc_btn_colored_material = 0x7f020006;
public static final int abc_btn_default_mtrl_shape = 0x7f020007;
public static final int abc_btn_radio_material = 0x7f020008;
public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f020009;
public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f02000a;
public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f02000b;
public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f02000c;
public static final int abc_cab_background_internal_bg = 0x7f02000d;
public static final int abc_cab_background_top_material = 0x7f02000e;
public static final int abc_cab_background_top_mtrl_alpha = 0x7f02000f;
public static final int abc_control_background_material = 0x7f020010;
public static final int abc_dialog_material_background = 0x7f020011;
public static final int abc_edit_text_material = 0x7f020012;
public static final int abc_ic_ab_back_material = 0x7f020013;
public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f020014;
public static final int abc_ic_clear_material = 0x7f020015;
public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f020016;
public static final int abc_ic_go_search_api_material = 0x7f020017;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f020018;
public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f020019;
public static final int abc_ic_menu_overflow_material = 0x7f02001a;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f02001b;
public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f02001c;
public static final int abc_ic_menu_share_mtrl_alpha = 0x7f02001d;
public static final int abc_ic_search_api_material = 0x7f02001e;
public static final int abc_ic_star_black_16dp = 0x7f02001f;
public static final int abc_ic_star_black_36dp = 0x7f020020;
public static final int abc_ic_star_black_48dp = 0x7f020021;
public static final int abc_ic_star_half_black_16dp = 0x7f020022;
public static final int abc_ic_star_half_black_36dp = 0x7f020023;
public static final int abc_ic_star_half_black_48dp = 0x7f020024;
public static final int abc_ic_voice_search_api_material = 0x7f020025;
public static final int abc_item_background_holo_dark = 0x7f020026;
public static final int abc_item_background_holo_light = 0x7f020027;
public static final int abc_list_divider_mtrl_alpha = 0x7f020028;
public static final int abc_list_focused_holo = 0x7f020029;
public static final int abc_list_longpressed_holo = 0x7f02002a;
public static final int abc_list_pressed_holo_dark = 0x7f02002b;
public static final int abc_list_pressed_holo_light = 0x7f02002c;
public static final int abc_list_selector_background_transition_holo_dark = 0x7f02002d;
public static final int abc_list_selector_background_transition_holo_light = 0x7f02002e;
public static final int abc_list_selector_disabled_holo_dark = 0x7f02002f;
public static final int abc_list_selector_disabled_holo_light = 0x7f020030;
public static final int abc_list_selector_holo_dark = 0x7f020031;
public static final int abc_list_selector_holo_light = 0x7f020032;
public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f020033;
public static final int abc_popup_background_mtrl_mult = 0x7f020034;
public static final int abc_ratingbar_indicator_material = 0x7f020035;
public static final int abc_ratingbar_material = 0x7f020036;
public static final int abc_ratingbar_small_material = 0x7f020037;
public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f020038;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f020039;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f02003a;
public static final int abc_scrubber_primary_mtrl_alpha = 0x7f02003b;
public static final int abc_scrubber_track_mtrl_alpha = 0x7f02003c;
public static final int abc_seekbar_thumb_material = 0x7f02003d;
public static final int abc_seekbar_tick_mark_material = 0x7f02003e;
public static final int abc_seekbar_track_material = 0x7f02003f;
public static final int abc_spinner_mtrl_am_alpha = 0x7f020040;
public static final int abc_spinner_textfield_background_material = 0x7f020041;
public static final int abc_switch_thumb_material = 0x7f020042;
public static final int abc_switch_track_mtrl_alpha = 0x7f020043;
public static final int abc_tab_indicator_material = 0x7f020044;
public static final int abc_tab_indicator_mtrl_alpha = 0x7f020045;
public static final int abc_text_cursor_material = 0x7f020046;
public static final int abc_text_select_handle_left_mtrl_dark = 0x7f020047;
public static final int abc_text_select_handle_left_mtrl_light = 0x7f020048;
public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f020049;
public static final int abc_text_select_handle_middle_mtrl_light = 0x7f02004a;
public static final int abc_text_select_handle_right_mtrl_dark = 0x7f02004b;
public static final int abc_text_select_handle_right_mtrl_light = 0x7f02004c;
public static final int abc_textfield_activated_mtrl_alpha = 0x7f02004d;
public static final int abc_textfield_default_mtrl_alpha = 0x7f02004e;
public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f02004f;
public static final int abc_textfield_search_default_mtrl_alpha = 0x7f020050;
public static final int abc_textfield_search_material = 0x7f020051;
public static final int abc_vector_test = 0x7f020052;
public static final int design_bottom_navigation_item_background = 0x7f020053;
public static final int design_fab_background = 0x7f020054;
public static final int design_ic_visibility = 0x7f020055;
public static final int design_snackbar_background = 0x7f020056;
public static final int navigation_empty_icon = 0x7f020061;
public static final int notification_action_background = 0x7f020062;
public static final int notification_bg = 0x7f020063;
public static final int notification_bg_low = 0x7f020064;
public static final int notification_bg_low_normal = 0x7f020065;
public static final int notification_bg_low_pressed = 0x7f020066;
public static final int notification_bg_normal = 0x7f020067;
public static final int notification_bg_normal_pressed = 0x7f020068;
public static final int notification_icon_background = 0x7f020069;
public static final int notification_template_icon_bg = 0x7f020070;
public static final int notification_template_icon_low_bg = 0x7f020071;
public static final int notification_tile_bg = 0x7f02006a;
public static final int notify_panel_notification_icon_bg = 0x7f02006b;
}
public static final class id {
public static final int action0 = 0x7f0e0089;
public static final int action_bar = 0x7f0e0060;
public static final int action_bar_activity_content = 0x7f0e0000;
public static final int action_bar_container = 0x7f0e005f;
public static final int action_bar_root = 0x7f0e005b;
public static final int action_bar_spinner = 0x7f0e0001;
public static final int action_bar_subtitle = 0x7f0e0040;
public static final int action_bar_title = 0x7f0e003f;
public static final int action_container = 0x7f0e0086;
public static final int action_context_bar = 0x7f0e0061;
public static final int action_divider = 0x7f0e008d;
public static final int action_image = 0x7f0e0087;
public static final int action_menu_divider = 0x7f0e0002;
public static final int action_menu_presenter = 0x7f0e0003;
public static final int action_mode_bar = 0x7f0e005d;
public static final int action_mode_bar_stub = 0x7f0e005c;
public static final int action_mode_close_button = 0x7f0e0041;
public static final int action_text = 0x7f0e0088;
public static final int actions = 0x7f0e0095;
public static final int activity_chooser_view_content = 0x7f0e0042;
public static final int add = 0x7f0e001c;
public static final int alertTitle = 0x7f0e004e;
public static final int all = 0x7f0e0034;
public static final int always = 0x7f0e0038;
public static final int auto = 0x7f0e0023;
public static final int beginning = 0x7f0e0036;
public static final int bottom = 0x7f0e0024;
public static final int buttonPanel = 0x7f0e0049;
public static final int cancel_action = 0x7f0e008a;
public static final int center = 0x7f0e0025;
public static final int center_horizontal = 0x7f0e0026;
public static final int center_vertical = 0x7f0e0027;
public static final int checkbox = 0x7f0e0057;
public static final int chronometer = 0x7f0e0092;
public static final int clip_horizontal = 0x7f0e0030;
public static final int clip_vertical = 0x7f0e0031;
public static final int collapseActionView = 0x7f0e0039;
public static final int contentPanel = 0x7f0e004f;
public static final int custom = 0x7f0e0055;
public static final int customPanel = 0x7f0e0054;
public static final int decor_content_parent = 0x7f0e005e;
public static final int default_activity_button = 0x7f0e0045;
public static final int design_bottom_sheet = 0x7f0e007a;
public static final int design_menu_item_action_area = 0x7f0e0081;
public static final int design_menu_item_action_area_stub = 0x7f0e0080;
public static final int design_menu_item_text = 0x7f0e007f;
public static final int design_navigation_view = 0x7f0e007e;
public static final int disableHome = 0x7f0e0010;
public static final int edit_query = 0x7f0e0062;
public static final int end = 0x7f0e0028;
public static final int end_padder = 0x7f0e009c;
public static final int enterAlways = 0x7f0e0017;
public static final int enterAlwaysCollapsed = 0x7f0e0018;
public static final int exitUntilCollapsed = 0x7f0e0019;
public static final int expand_activities_button = 0x7f0e0043;
public static final int expanded_menu = 0x7f0e0056;
public static final int fill = 0x7f0e0032;
public static final int fill_horizontal = 0x7f0e0033;
public static final int fill_vertical = 0x7f0e0029;
public static final int fixed = 0x7f0e003d;
public static final int home = 0x7f0e0004;
public static final int homeAsUp = 0x7f0e0011;
public static final int icon = 0x7f0e0047;
public static final int icon_group = 0x7f0e0096;
public static final int ifRoom = 0x7f0e003a;
public static final int image = 0x7f0e0044;
public static final int info = 0x7f0e0093;
public static final int item_touch_helper_previous_elevation = 0x7f0e0005;
public static final int largeLabel = 0x7f0e0078;
public static final int left = 0x7f0e002a;
public static final int line1 = 0x7f0e0098;
public static final int line3 = 0x7f0e009a;
public static final int listMode = 0x7f0e000d;
public static final int list_item = 0x7f0e0046;
public static final int media_actions = 0x7f0e008c;
public static final int middle = 0x7f0e0037;
public static final int mini = 0x7f0e0035;
public static final int multiply = 0x7f0e001d;
public static final int navigation_header_container = 0x7f0e007d;
public static final int never = 0x7f0e003b;
public static final int none = 0x7f0e0012;
public static final int normal = 0x7f0e000e;
public static final int notification_background = 0x7f0e0094;
public static final int notification_main_column = 0x7f0e008f;
public static final int notification_main_column_container = 0x7f0e008e;
public static final int parallax = 0x7f0e002e;
public static final int parentPanel = 0x7f0e004b;
public static final int pin = 0x7f0e002f;
public static final int progress_circular = 0x7f0e0006;
public static final int progress_horizontal = 0x7f0e0007;
public static final int radio = 0x7f0e0059;
public static final int right = 0x7f0e002b;
public static final int right_icon = 0x7f0e0097;
public static final int right_side = 0x7f0e0090;
public static final int screen = 0x7f0e001e;
public static final int scroll = 0x7f0e001a;
public static final int scrollIndicatorDown = 0x7f0e0053;
public static final int scrollIndicatorUp = 0x7f0e0050;
public static final int scrollView = 0x7f0e0051;
public static final int scrollable = 0x7f0e003e;
public static final int search_badge = 0x7f0e0064;
public static final int search_bar = 0x7f0e0063;
public static final int search_button = 0x7f0e0065;
public static final int search_close_btn = 0x7f0e006a;
public static final int search_edit_frame = 0x7f0e0066;
public static final int search_go_btn = 0x7f0e006c;
public static final int search_mag_icon = 0x7f0e0067;
public static final int search_plate = 0x7f0e0068;
public static final int search_src_text = 0x7f0e0069;
public static final int search_voice_btn = 0x7f0e006d;
public static final int select_dialog_listview = 0x7f0e006e;
public static final int shortcut = 0x7f0e0058;
public static final int showCustom = 0x7f0e0013;
public static final int showHome = 0x7f0e0014;
public static final int showTitle = 0x7f0e0015;
public static final int smallLabel = 0x7f0e0077;
public static final int snackbar_action = 0x7f0e007c;
public static final int snackbar_text = 0x7f0e007b;
public static final int snap = 0x7f0e001b;
public static final int spacer = 0x7f0e004a;
public static final int split_action_bar = 0x7f0e0008;
public static final int src_atop = 0x7f0e001f;
public static final int src_in = 0x7f0e0020;
public static final int src_over = 0x7f0e0021;
public static final int start = 0x7f0e002c;
public static final int status_bar_latest_event_content = 0x7f0e008b;
public static final int submenuarrow = 0x7f0e005a;
public static final int submit_area = 0x7f0e006b;
public static final int tabMode = 0x7f0e000f;
public static final int text = 0x7f0e009b;
public static final int text2 = 0x7f0e0099;
public static final int textSpacerNoButtons = 0x7f0e0052;
public static final int text_input_password_toggle = 0x7f0e0082;
public static final int time = 0x7f0e0091;
public static final int title = 0x7f0e0048;
public static final int title_template = 0x7f0e004d;
public static final int top = 0x7f0e002d;
public static final int topPanel = 0x7f0e004c;
public static final int touch_outside = 0x7f0e0079;
public static final int transition_current_scene = 0x7f0e0009;
public static final int transition_scene_layoutid_cache = 0x7f0e000a;
public static final int up = 0x7f0e000b;
public static final int useLogo = 0x7f0e0016;
public static final int view_offset_helper = 0x7f0e000c;
public static final int withText = 0x7f0e003c;
public static final int wrap_content = 0x7f0e0022;
}
public static final class integer {
public static final int abc_config_activityDefaultDur = 0x7f0b0001;
public static final int abc_config_activityShortDur = 0x7f0b0002;
public static final int app_bar_elevation_anim_duration = 0x7f0b0003;
public static final int bottom_sheet_slide_duration = 0x7f0b0004;
public static final int cancel_button_image_alpha = 0x7f0b0005;
public static final int design_snackbar_text_max_lines = 0x7f0b0000;
public static final int status_bar_notification_info_maxnum = 0x7f0b0006;
}
public static final class layout {
public static final int abc_action_bar_title_item = 0x7f040000;
public static final int abc_action_bar_up_container = 0x7f040001;
public static final int abc_action_bar_view_list_nav_layout = 0x7f040002;
public static final int abc_action_menu_item_layout = 0x7f040003;
public static final int abc_action_menu_layout = 0x7f040004;
public static final int abc_action_mode_bar = 0x7f040005;
public static final int abc_action_mode_close_item_material = 0x7f040006;
public static final int abc_activity_chooser_view = 0x7f040007;
public static final int abc_activity_chooser_view_list_item = 0x7f040008;
public static final int abc_alert_dialog_button_bar_material = 0x7f040009;
public static final int abc_alert_dialog_material = 0x7f04000a;
public static final int abc_dialog_title_material = 0x7f04000b;
public static final int abc_expanded_menu_layout = 0x7f04000c;
public static final int abc_list_menu_item_checkbox = 0x7f04000d;
public static final int abc_list_menu_item_icon = 0x7f04000e;
public static final int abc_list_menu_item_layout = 0x7f04000f;
public static final int abc_list_menu_item_radio = 0x7f040010;
public static final int abc_popup_menu_header_item_layout = 0x7f040011;
public static final int abc_popup_menu_item_layout = 0x7f040012;
public static final int abc_screen_content_include = 0x7f040013;
public static final int abc_screen_simple = 0x7f040014;
public static final int abc_screen_simple_overlay_action_mode = 0x7f040015;
public static final int abc_screen_toolbar = 0x7f040016;
public static final int abc_search_dropdown_item_icons_2line = 0x7f040017;
public static final int abc_search_view = 0x7f040018;
public static final int abc_select_dialog_material = 0x7f040019;
public static final int design_bottom_navigation_item = 0x7f04001f;
public static final int design_bottom_sheet_dialog = 0x7f040020;
public static final int design_layout_snackbar = 0x7f040021;
public static final int design_layout_snackbar_include = 0x7f040022;
public static final int design_layout_tab_icon = 0x7f040023;
public static final int design_layout_tab_text = 0x7f040024;
public static final int design_menu_item_action_area = 0x7f040025;
public static final int design_navigation_item = 0x7f040026;
public static final int design_navigation_item_header = 0x7f040027;
public static final int design_navigation_item_separator = 0x7f040028;
public static final int design_navigation_item_subheader = 0x7f040029;
public static final int design_navigation_menu = 0x7f04002a;
public static final int design_navigation_menu_item = 0x7f04002b;
public static final int design_text_input_password_icon = 0x7f04002c;
public static final int notification_action = 0x7f04002e;
public static final int notification_action_tombstone = 0x7f04002f;
public static final int notification_media_action = 0x7f040030;
public static final int notification_media_cancel_action = 0x7f040031;
public static final int notification_template_big_media = 0x7f040032;
public static final int notification_template_big_media_custom = 0x7f040033;
public static final int notification_template_big_media_narrow = 0x7f040034;
public static final int notification_template_big_media_narrow_custom = 0x7f040035;
public static final int notification_template_custom_big = 0x7f040036;
public static final int notification_template_icon_group = 0x7f040037;
public static final int notification_template_lines_media = 0x7f040038;
public static final int notification_template_media = 0x7f040039;
public static final int notification_template_media_custom = 0x7f04003a;
public static final int notification_template_part_chronometer = 0x7f04003b;
public static final int notification_template_part_time = 0x7f04003c;
public static final int select_dialog_item_material = 0x7f04003d;
public static final int select_dialog_multichoice_material = 0x7f04003e;
public static final int select_dialog_singlechoice_material = 0x7f04003f;
public static final int support_simple_spinner_dropdown_item = 0x7f040040;
}
public static final class string {
public static final int abc_action_bar_home_description = 0x7f070000;
public static final int abc_action_bar_home_description_format = 0x7f070001;
public static final int abc_action_bar_home_subtitle_description_format = 0x7f070002;
public static final int abc_action_bar_up_description = 0x7f070003;
public static final int abc_action_menu_overflow_description = 0x7f070004;
public static final int abc_action_mode_done = 0x7f070005;
public static final int abc_activity_chooser_view_see_all = 0x7f070006;
public static final int abc_activitychooserview_choose_application = 0x7f070007;
public static final int abc_capital_off = 0x7f070008;
public static final int abc_capital_on = 0x7f070009;
public static final int abc_font_family_body_1_material = 0x7f070015;
public static final int abc_font_family_body_2_material = 0x7f070016;
public static final int abc_font_family_button_material = 0x7f070017;
public static final int abc_font_family_caption_material = 0x7f070018;
public static final int abc_font_family_display_1_material = 0x7f070019;
public static final int abc_font_family_display_2_material = 0x7f07001a;
public static final int abc_font_family_display_3_material = 0x7f07001b;
public static final int abc_font_family_display_4_material = 0x7f07001c;
public static final int abc_font_family_headline_material = 0x7f07001d;
public static final int abc_font_family_menu_material = 0x7f07001e;
public static final int abc_font_family_subhead_material = 0x7f07001f;
public static final int abc_font_family_title_material = 0x7f070020;
public static final int abc_search_hint = 0x7f07000a;
public static final int abc_searchview_description_clear = 0x7f07000b;
public static final int abc_searchview_description_query = 0x7f07000c;
public static final int abc_searchview_description_search = 0x7f07000d;
public static final int abc_searchview_description_submit = 0x7f07000e;
public static final int abc_searchview_description_voice = 0x7f07000f;
public static final int abc_shareactionprovider_share_with = 0x7f070010;
public static final int abc_shareactionprovider_share_with_application = 0x7f070011;
public static final int abc_toolbar_collapse_description = 0x7f070012;
public static final int appbar_scrolling_view_behavior = 0x7f070024;
public static final int bottom_sheet_behavior = 0x7f070025;
public static final int character_counter_pattern = 0x7f070026;
public static final int search_menu_title = 0x7f070013;
public static final int status_bar_notification_info_overflow = 0x7f070014;
}
public static final class style {
public static final int AlertDialog_AppCompat = 0x7f09009a;
public static final int AlertDialog_AppCompat_Light = 0x7f09009b;
public static final int Animation_AppCompat_Dialog = 0x7f09009c;
public static final int Animation_AppCompat_DropDownUp = 0x7f09009d;
public static final int Animation_Design_BottomSheetDialog = 0x7f09009e;
public static final int Base_AlertDialog_AppCompat = 0x7f0900a0;
public static final int Base_AlertDialog_AppCompat_Light = 0x7f0900a1;
public static final int Base_Animation_AppCompat_Dialog = 0x7f0900a2;
public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0900a3;
public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0900a5;
public static final int Base_DialogWindowTitle_AppCompat = 0x7f0900a4;
public static final int Base_TextAppearance_AppCompat = 0x7f09003b;
public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f09003c;
public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f09003d;
public static final int Base_TextAppearance_AppCompat_Button = 0x7f090023;
public static final int Base_TextAppearance_AppCompat_Caption = 0x7f09003e;
public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f09003f;
public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f090040;
public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f090041;
public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f090042;
public static final int Base_TextAppearance_AppCompat_Headline = 0x7f090043;
public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f09000c;
public static final int Base_TextAppearance_AppCompat_Large = 0x7f090044;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f09000d;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f090045;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f090046;
public static final int Base_TextAppearance_AppCompat_Medium = 0x7f090047;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f09000e;
public static final int Base_TextAppearance_AppCompat_Menu = 0x7f090048;
public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0900a6;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f090049;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f09004a;
public static final int Base_TextAppearance_AppCompat_Small = 0x7f09004b;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f09000f;
public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f09004c;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f090010;
public static final int Base_TextAppearance_AppCompat_Title = 0x7f09004d;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f090011;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f090091;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f09004e;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f09004f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f090050;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f090051;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f090052;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f090053;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f090054;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f090092;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0900a7;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f090055;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f090056;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f090057;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f090058;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f090059;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0900a8;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f09005a;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f09005b;
public static final int Base_ThemeOverlay_AppCompat = 0x7f0900b1;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0900b2;
public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0900b3;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0900b4;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f090014;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0900b5;
public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0900b6;
public static final int Base_Theme_AppCompat = 0x7f09005c;
public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0900a9;
public static final int Base_Theme_AppCompat_Dialog = 0x7f090012;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f090002;
public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0900aa;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0900ab;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0900ac;
public static final int Base_Theme_AppCompat_Light = 0x7f09005d;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0900ad;
public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f090013;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f090003;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0900ae;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0900af;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0900b0;
public static final int Base_V11_ThemeOverlay_AppCompat_Dialog = 0x7f090017;
public static final int Base_V11_Theme_AppCompat_Dialog = 0x7f090015;
public static final int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f090016;
public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f09001f;
public static final int Base_V12_Widget_AppCompat_EditText = 0x7f090020;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f090062;
public static final int Base_V21_Theme_AppCompat = 0x7f09005e;
public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f09005f;
public static final int Base_V21_Theme_AppCompat_Light = 0x7f090060;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f090061;
public static final int Base_V22_Theme_AppCompat = 0x7f09008f;
public static final int Base_V22_Theme_AppCompat_Light = 0x7f090090;
public static final int Base_V23_Theme_AppCompat = 0x7f090093;
public static final int Base_V23_Theme_AppCompat_Light = 0x7f090094;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0900bb;
public static final int Base_V7_Theme_AppCompat = 0x7f0900b7;
public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0900b8;
public static final int Base_V7_Theme_AppCompat_Light = 0x7f0900b9;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0900ba;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0900bc;
public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0900bd;
public static final int Base_Widget_AppCompat_ActionBar = 0x7f0900be;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0900bf;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0900c0;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f090063;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f090064;
public static final int Base_Widget_AppCompat_ActionButton = 0x7f090065;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f090066;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f090067;
public static final int Base_Widget_AppCompat_ActionMode = 0x7f0900c1;
public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0900c2;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f090021;
public static final int Base_Widget_AppCompat_Button = 0x7f090068;
public static final int Base_Widget_AppCompat_ButtonBar = 0x7f09006c;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0900c4;
public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f090069;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f09006a;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0900c3;
public static final int Base_Widget_AppCompat_Button_Colored = 0x7f090095;
public static final int Base_Widget_AppCompat_Button_Small = 0x7f09006b;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f09006d;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f09006e;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0900c5;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f090000;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0900c6;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f09006f;
public static final int Base_Widget_AppCompat_EditText = 0x7f090022;
public static final int Base_Widget_AppCompat_ImageButton = 0x7f090070;
public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0900c7;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0900c8;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0900c9;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f090071;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f090072;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f090073;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f090074;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f090075;
public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0900ca;
public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f090076;
public static final int Base_Widget_AppCompat_ListView = 0x7f090077;
public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f090078;
public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f090079;
public static final int Base_Widget_AppCompat_PopupMenu = 0x7f09007a;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f09007b;
public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0900cb;
public static final int Base_Widget_AppCompat_ProgressBar = 0x7f090018;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f090019;
public static final int Base_Widget_AppCompat_RatingBar = 0x7f09007c;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f090096;
public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f090097;
public static final int Base_Widget_AppCompat_SearchView = 0x7f0900cc;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0900cd;
public static final int Base_Widget_AppCompat_SeekBar = 0x7f09007d;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0900ce;
public static final int Base_Widget_AppCompat_Spinner = 0x7f09007e;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f090004;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f09007f;
public static final int Base_Widget_AppCompat_Toolbar = 0x7f0900cf;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f090080;
public static final int Base_Widget_Design_AppBarLayout = 0x7f0900d0;
public static final int Base_Widget_Design_TabLayout = 0x7f0900d1;
public static final int Platform_AppCompat = 0x7f09001a;
public static final int Platform_AppCompat_Light = 0x7f09001b;
public static final int Platform_ThemeOverlay_AppCompat = 0x7f090081;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f090082;
public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f090083;
public static final int Platform_V11_AppCompat = 0x7f09001c;
public static final int Platform_V11_AppCompat_Light = 0x7f09001d;
public static final int Platform_V14_AppCompat = 0x7f090024;
public static final int Platform_V14_AppCompat_Light = 0x7f090025;
public static final int Platform_V21_AppCompat = 0x7f090084;
public static final int Platform_V21_AppCompat_Light = 0x7f090085;
public static final int Platform_V25_AppCompat = 0x7f090098;
public static final int Platform_V25_AppCompat_Light = 0x7f090099;
public static final int Platform_Widget_AppCompat_Spinner = 0x7f09001e;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f09002d;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f09002e;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f09002f;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f090030;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f090031;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f090032;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f090038;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f090033;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f090034;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f090035;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f090036;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f090037;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f090039;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f09003a;
public static final int TextAppearance_AppCompat = 0x7f0900d5;
public static final int TextAppearance_AppCompat_Body1 = 0x7f0900d6;
public static final int TextAppearance_AppCompat_Body2 = 0x7f0900d7;
public static final int TextAppearance_AppCompat_Button = 0x7f0900d8;
public static final int TextAppearance_AppCompat_Caption = 0x7f0900d9;
public static final int TextAppearance_AppCompat_Display1 = 0x7f0900da;
public static final int TextAppearance_AppCompat_Display2 = 0x7f0900db;
public static final int TextAppearance_AppCompat_Display3 = 0x7f0900dc;
public static final int TextAppearance_AppCompat_Display4 = 0x7f0900dd;
public static final int TextAppearance_AppCompat_Headline = 0x7f0900de;
public static final int TextAppearance_AppCompat_Inverse = 0x7f0900df;
public static final int TextAppearance_AppCompat_Large = 0x7f0900e0;
public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0900e1;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0900e2;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0900e3;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0900e4;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0900e5;
public static final int TextAppearance_AppCompat_Medium = 0x7f0900e6;
public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0900e7;
public static final int TextAppearance_AppCompat_Menu = 0x7f0900e8;
public static final int TextAppearance_AppCompat_Notification = 0x7f090026;
public static final int TextAppearance_AppCompat_Notification_Info = 0x7f090086;
public static final int TextAppearance_AppCompat_Notification_Info_Media = 0x7f090087;
public static final int TextAppearance_AppCompat_Notification_Line2 = 0x7f0900e9;
public static final int TextAppearance_AppCompat_Notification_Line2_Media = 0x7f0900ea;
public static final int TextAppearance_AppCompat_Notification_Media = 0x7f090088;
public static final int TextAppearance_AppCompat_Notification_Time = 0x7f090089;
public static final int TextAppearance_AppCompat_Notification_Time_Media = 0x7f09008a;
public static final int TextAppearance_AppCompat_Notification_Title = 0x7f090027;
public static final int TextAppearance_AppCompat_Notification_Title_Media = 0x7f09008b;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0900eb;
public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0900ec;
public static final int TextAppearance_AppCompat_Small = 0x7f0900ed;
public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0900ee;
public static final int TextAppearance_AppCompat_Subhead = 0x7f0900ef;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0900f0;
public static final int TextAppearance_AppCompat_Title = 0x7f0900f1;
public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0900f2;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0900f3;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0900f4;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0900f5;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0900f6;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0900f7;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0900f8;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0900f9;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0900fa;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0900fb;
public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0900fc;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0900fd;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0900fe;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0900ff;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f090100;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f090101;
public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f090102;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f090103;
public static final int TextAppearance_Design_CollapsingToolbar_Expanded = 0x7f090104;
public static final int TextAppearance_Design_Counter = 0x7f090105;
public static final int TextAppearance_Design_Counter_Overflow = 0x7f090106;
public static final int TextAppearance_Design_Error = 0x7f090107;
public static final int TextAppearance_Design_Hint = 0x7f090108;
public static final int TextAppearance_Design_Snackbar_Message = 0x7f090109;
public static final int TextAppearance_Design_Tab = 0x7f09010a;
public static final int TextAppearance_StatusBar_EventContent = 0x7f090028;
public static final int TextAppearance_StatusBar_EventContent_Info = 0x7f090029;
public static final int TextAppearance_StatusBar_EventContent_Line2 = 0x7f09002a;
public static final int TextAppearance_StatusBar_EventContent_Time = 0x7f09002b;
public static final int TextAppearance_StatusBar_EventContent_Title = 0x7f09002c;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f09010b;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f09010c;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f09010d;
public static final int ThemeOverlay_AppCompat = 0x7f090122;
public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f090123;
public static final int ThemeOverlay_AppCompat_Dark = 0x7f090124;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f090125;
public static final int ThemeOverlay_AppCompat_Dialog = 0x7f090126;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f090127;
public static final int ThemeOverlay_AppCompat_Light = 0x7f090128;
public static final int Theme_AppCompat = 0x7f09010e;
public static final int Theme_AppCompat_CompactMenu = 0x7f09010f;
public static final int Theme_AppCompat_DayNight = 0x7f090005;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f090006;
public static final int Theme_AppCompat_DayNight_Dialog = 0x7f090007;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f09000a;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f090008;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f090009;
public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f09000b;
public static final int Theme_AppCompat_Dialog = 0x7f090110;
public static final int Theme_AppCompat_DialogWhenLarge = 0x7f090113;
public static final int Theme_AppCompat_Dialog_Alert = 0x7f090111;
public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f090112;
public static final int Theme_AppCompat_Light = 0x7f090114;
public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f090115;
public static final int Theme_AppCompat_Light_Dialog = 0x7f090116;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f090119;
public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f090117;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f090118;
public static final int Theme_AppCompat_Light_NoActionBar = 0x7f09011a;
public static final int Theme_AppCompat_NoActionBar = 0x7f09011b;
public static final int Theme_Design = 0x7f09011c;
public static final int Theme_Design_BottomSheetDialog = 0x7f09011d;
public static final int Theme_Design_Light = 0x7f09011e;
public static final int Theme_Design_Light_BottomSheetDialog = 0x7f09011f;
public static final int Theme_Design_Light_NoActionBar = 0x7f090120;
public static final int Theme_Design_NoActionBar = 0x7f090121;
public static final int Widget_AppCompat_ActionBar = 0x7f090129;
public static final int Widget_AppCompat_ActionBar_Solid = 0x7f09012a;
public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f09012b;
public static final int Widget_AppCompat_ActionBar_TabText = 0x7f09012c;
public static final int Widget_AppCompat_ActionBar_TabView = 0x7f09012d;
public static final int Widget_AppCompat_ActionButton = 0x7f09012e;
public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f09012f;
public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f090130;
public static final int Widget_AppCompat_ActionMode = 0x7f090131;
public static final int Widget_AppCompat_ActivityChooserView = 0x7f090132;
public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f090133;
public static final int Widget_AppCompat_Button = 0x7f090134;
public static final int Widget_AppCompat_ButtonBar = 0x7f09013a;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f09013b;
public static final int Widget_AppCompat_Button_Borderless = 0x7f090135;
public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f090136;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f090137;
public static final int Widget_AppCompat_Button_Colored = 0x7f090138;
public static final int Widget_AppCompat_Button_Small = 0x7f090139;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f09013c;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f09013d;
public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f09013e;
public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f09013f;
public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f090140;
public static final int Widget_AppCompat_EditText = 0x7f090141;
public static final int Widget_AppCompat_ImageButton = 0x7f090142;
public static final int Widget_AppCompat_Light_ActionBar = 0x7f090143;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f090144;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f090145;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f090146;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f090147;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f090148;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f090149;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f09014a;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f09014b;
public static final int Widget_AppCompat_Light_ActionButton = 0x7f09014c;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f09014d;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f09014e;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f09014f;
public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f090150;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f090151;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f090152;
public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f090153;
public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f090154;
public static final int Widget_AppCompat_Light_PopupMenu = 0x7f090155;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f090156;
public static final int Widget_AppCompat_Light_SearchView = 0x7f090157;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f090158;
public static final int Widget_AppCompat_ListMenuView = 0x7f090159;
public static final int Widget_AppCompat_ListPopupWindow = 0x7f09015a;
public static final int Widget_AppCompat_ListView = 0x7f09015b;
public static final int Widget_AppCompat_ListView_DropDown = 0x7f09015c;
public static final int Widget_AppCompat_ListView_Menu = 0x7f09015d;
public static final int Widget_AppCompat_NotificationActionContainer = 0x7f09008c;
public static final int Widget_AppCompat_NotificationActionText = 0x7f09008d;
public static final int Widget_AppCompat_PopupMenu = 0x7f09015e;
public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f09015f;
public static final int Widget_AppCompat_PopupWindow = 0x7f090160;
public static final int Widget_AppCompat_ProgressBar = 0x7f090161;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f090162;
public static final int Widget_AppCompat_RatingBar = 0x7f090163;
public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f090164;
public static final int Widget_AppCompat_RatingBar_Small = 0x7f090165;
public static final int Widget_AppCompat_SearchView = 0x7f090166;
public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f090167;
public static final int Widget_AppCompat_SeekBar = 0x7f090168;
public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f090169;
public static final int Widget_AppCompat_Spinner = 0x7f09016a;
public static final int Widget_AppCompat_Spinner_DropDown = 0x7f09016b;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f09016c;
public static final int Widget_AppCompat_Spinner_Underlined = 0x7f09016d;
public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f09016e;
public static final int Widget_AppCompat_Toolbar = 0x7f09016f;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f090170;
public static final int Widget_Design_AppBarLayout = 0x7f09008e;
public static final int Widget_Design_BottomNavigationView = 0x7f090171;
public static final int Widget_Design_BottomSheet_Modal = 0x7f090172;
public static final int Widget_Design_CollapsingToolbar = 0x7f090173;
public static final int Widget_Design_CoordinatorLayout = 0x7f090174;
public static final int Widget_Design_FloatingActionButton = 0x7f090175;
public static final int Widget_Design_NavigationView = 0x7f090176;
public static final int Widget_Design_ScrimInsetsFrameLayout = 0x7f090177;
public static final int Widget_Design_Snackbar = 0x7f090178;
public static final int Widget_Design_TabLayout = 0x7f090001;
public static final int Widget_Design_TextInputLayout = 0x7f090179;
}
public static final class styleable {
public static final int[] ActionBar = { 0x7f010001, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, 0x7f01005f };
public static final int[] ActionBarLayout = { 0x010100b3 };
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int ActionBar_background = 10;
public static final int ActionBar_backgroundSplit = 12;
public static final int ActionBar_backgroundStacked = 11;
public static final int ActionBar_contentInsetEnd = 21;
public static final int ActionBar_contentInsetEndWithActions = 25;
public static final int ActionBar_contentInsetLeft = 22;
public static final int ActionBar_contentInsetRight = 23;
public static final int ActionBar_contentInsetStart = 20;
public static final int ActionBar_contentInsetStartWithNavigation = 24;
public static final int ActionBar_customNavigationLayout = 13;
public static final int ActionBar_displayOptions = 3;
public static final int ActionBar_divider = 9;
public static final int ActionBar_elevation = 26;
public static final int ActionBar_height = 0;
public static final int ActionBar_hideOnContentScroll = 19;
public static final int ActionBar_homeAsUpIndicator = 28;
public static final int ActionBar_homeLayout = 14;
public static final int ActionBar_icon = 7;
public static final int ActionBar_indeterminateProgressStyle = 16;
public static final int ActionBar_itemPadding = 18;
public static final int ActionBar_logo = 8;
public static final int ActionBar_navigationMode = 2;
public static final int ActionBar_popupTheme = 27;
public static final int ActionBar_progressBarPadding = 17;
public static final int ActionBar_progressBarStyle = 15;
public static final int ActionBar_subtitle = 4;
public static final int ActionBar_subtitleTextStyle = 6;
public static final int ActionBar_title = 1;
public static final int ActionBar_titleTextStyle = 5;
public static final int[] ActionMenuItemView = { 0x0101013f };
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMenuView = { };
public static final int[] ActionMode = { 0x7f010001, 0x7f010007, 0x7f010008, 0x7f01000c, 0x7f01000e, 0x7f01001e };
public static final int ActionMode_background = 3;
public static final int ActionMode_backgroundSplit = 4;
public static final int ActionMode_closeItemLayout = 5;
public static final int ActionMode_height = 0;
public static final int ActionMode_subtitleTextStyle = 2;
public static final int ActionMode_titleTextStyle = 1;
public static final int[] ActivityChooserView = { 0x7f01001f, 0x7f010020 };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
public static final int ActivityChooserView_initialActivityCount = 0;
public static final int[] AlertDialog = { 0x010100f2, 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025 };
public static final int AlertDialog_android_layout = 0;
public static final int AlertDialog_buttonPanelSideLayout = 1;
public static final int AlertDialog_listItemLayout = 5;
public static final int AlertDialog_listLayout = 2;
public static final int AlertDialog_multiChoiceItemLayout = 3;
public static final int AlertDialog_singleChoiceItemLayout = 4;
public static final int[] AppBarLayout = { 0x010100d4, 0x7f01001c, 0x7f010026 };
public static final int[] AppBarLayoutStates = { 0x7f010027, 0x7f010028 };
public static final int AppBarLayoutStates_state_collapsed = 0;
public static final int AppBarLayoutStates_state_collapsible = 1;
public static final int[] AppBarLayout_Layout = { 0x7f010029, 0x7f01002a };
public static final int AppBarLayout_Layout_layout_scrollFlags = 0;
public static final int AppBarLayout_Layout_layout_scrollInterpolator = 1;
public static final int AppBarLayout_android_background = 0;
public static final int AppBarLayout_elevation = 1;
public static final int AppBarLayout_expanded = 2;
public static final int[] AppCompatImageView = { 0x01010119, 0x7f01002b };
public static final int AppCompatImageView_android_src = 0;
public static final int AppCompatImageView_srcCompat = 1;
public static final int[] AppCompatSeekBar = { 0x01010142, 0x7f01002c, 0x7f01002d, 0x7f01002e };
public static final int AppCompatSeekBar_android_thumb = 0;
public static final int AppCompatSeekBar_tickMark = 1;
public static final int AppCompatSeekBar_tickMarkTint = 2;
public static final int AppCompatSeekBar_tickMarkTintMode = 3;
public static final int[] AppCompatTextHelper = { 0x01010034, 0x0101016d, 0x0101016e, 0x0101016f, 0x01010170, 0x01010392, 0x01010393 };
public static final int AppCompatTextHelper_android_drawableBottom = 2;
public static final int AppCompatTextHelper_android_drawableEnd = 6;
public static final int AppCompatTextHelper_android_drawableLeft = 3;
public static final int AppCompatTextHelper_android_drawableRight = 4;
public static final int AppCompatTextHelper_android_drawableStart = 5;
public static final int AppCompatTextHelper_android_drawableTop = 1;
public static final int AppCompatTextHelper_android_textAppearance = 0;
public static final int[] AppCompatTextView = { 0x01010034, 0x7f01002f };
public static final int AppCompatTextView_android_textAppearance = 0;
public static final int AppCompatTextView_textAllCaps = 1;
public static final int[] AppCompatTheme = { 0x01010057, 0x010100ae, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037, 0x7f010038, 0x7f010039, 0x7f01003a, 0x7f01003b, 0x7f01003c, 0x7f01003d, 0x7f01003e, 0x7f01003f, 0x7f010040, 0x7f010041, 0x7f010042, 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054, 0x7f010055, 0x7f010056, 0x7f010057, 0x7f010058, 0x7f010059, 0x7f01005a, 0x7f01005b, 0x7f01005c, 0x7f01005d, 0x7f01005e, 0x7f01005f, 0x7f010060, 0x7f010061, 0x7f010062, 0x7f010063, 0x7f010064, 0x7f010065, 0x7f010066, 0x7f010067, 0x7f010068, 0x7f010069, 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089, 0x7f01008a, 0x7f01008b, 0x7f01008c, 0x7f01008d, 0x7f01008e, 0x7f01008f, 0x7f010090, 0x7f010091, 0x7f010092, 0x7f010093, 0x7f010094, 0x7f010095, 0x7f010096, 0x7f010097, 0x7f010098, 0x7f010099, 0x7f01009a, 0x7f01009b, 0x7f01009c, 0x7f01009d, 0x7f01009e, 0x7f01009f, 0x7f0100a0 };
public static final int AppCompatTheme_actionBarDivider = 23;
public static final int AppCompatTheme_actionBarItemBackground = 24;
public static final int AppCompatTheme_actionBarPopupTheme = 17;
public static final int AppCompatTheme_actionBarSize = 22;
public static final int AppCompatTheme_actionBarSplitStyle = 19;
public static final int AppCompatTheme_actionBarStyle = 18;
public static final int AppCompatTheme_actionBarTabBarStyle = 13;
public static final int AppCompatTheme_actionBarTabStyle = 12;
public static final int AppCompatTheme_actionBarTabTextStyle = 14;
public static final int AppCompatTheme_actionBarTheme = 20;
public static final int AppCompatTheme_actionBarWidgetTheme = 21;
public static final int AppCompatTheme_actionButtonStyle = 50;
public static final int AppCompatTheme_actionDropDownStyle = 46;
public static final int AppCompatTheme_actionMenuTextAppearance = 25;
public static final int AppCompatTheme_actionMenuTextColor = 26;
public static final int AppCompatTheme_actionModeBackground = 29;
public static final int AppCompatTheme_actionModeCloseButtonStyle = 28;
public static final int AppCompatTheme_actionModeCloseDrawable = 31;
public static final int AppCompatTheme_actionModeCopyDrawable = 33;
public static final int AppCompatTheme_actionModeCutDrawable = 32;
public static final int AppCompatTheme_actionModeFindDrawable = 37;
public static final int AppCompatTheme_actionModePasteDrawable = 34;
public static final int AppCompatTheme_actionModePopupWindowStyle = 39;
public static final int AppCompatTheme_actionModeSelectAllDrawable = 35;
public static final int AppCompatTheme_actionModeShareDrawable = 36;
public static final int AppCompatTheme_actionModeSplitBackground = 30;
public static final int AppCompatTheme_actionModeStyle = 27;
public static final int AppCompatTheme_actionModeWebSearchDrawable = 38;
public static final int AppCompatTheme_actionOverflowButtonStyle = 15;
public static final int AppCompatTheme_actionOverflowMenuStyle = 16;
public static final int AppCompatTheme_activityChooserViewStyle = 58;
public static final int AppCompatTheme_alertDialogButtonGroupStyle = 94;
public static final int AppCompatTheme_alertDialogCenterButtons = 95;
public static final int AppCompatTheme_alertDialogStyle = 93;
public static final int AppCompatTheme_alertDialogTheme = 96;
public static final int AppCompatTheme_android_windowAnimationStyle = 1;
public static final int AppCompatTheme_android_windowIsFloating = 0;
public static final int AppCompatTheme_autoCompleteTextViewStyle = 101;
public static final int AppCompatTheme_borderlessButtonStyle = 55;
public static final int AppCompatTheme_buttonBarButtonStyle = 52;
public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 99;
public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 100;
public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 98;
public static final int AppCompatTheme_buttonBarStyle = 51;
public static final int AppCompatTheme_buttonStyle = 102;
public static final int AppCompatTheme_buttonStyleSmall = 103;
public static final int AppCompatTheme_checkboxStyle = 104;
public static final int AppCompatTheme_checkedTextViewStyle = 105;
public static final int AppCompatTheme_colorAccent = 85;
public static final int AppCompatTheme_colorBackgroundFloating = 92;
public static final int AppCompatTheme_colorButtonNormal = 89;
public static final int AppCompatTheme_colorControlActivated = 87;
public static final int AppCompatTheme_colorControlHighlight = 88;
public static final int AppCompatTheme_colorControlNormal = 86;
public static final int AppCompatTheme_colorPrimary = 83;
public static final int AppCompatTheme_colorPrimaryDark = 84;
public static final int AppCompatTheme_colorSwitchThumbNormal = 90;
public static final int AppCompatTheme_controlBackground = 91;
public static final int AppCompatTheme_dialogPreferredPadding = 44;
public static final int AppCompatTheme_dialogTheme = 43;
public static final int AppCompatTheme_dividerHorizontal = 57;
public static final int AppCompatTheme_dividerVertical = 56;
public static final int AppCompatTheme_dropDownListViewStyle = 75;
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 47;
public static final int AppCompatTheme_editTextBackground = 64;
public static final int AppCompatTheme_editTextColor = 63;
public static final int AppCompatTheme_editTextStyle = 106;
public static final int AppCompatTheme_homeAsUpIndicator = 49;
public static final int AppCompatTheme_imageButtonStyle = 65;
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 82;
public static final int AppCompatTheme_listDividerAlertDialog = 45;
public static final int AppCompatTheme_listMenuViewStyle = 114;
public static final int AppCompatTheme_listPopupWindowStyle = 76;
public static final int AppCompatTheme_listPreferredItemHeight = 70;
public static final int AppCompatTheme_listPreferredItemHeightLarge = 72;
public static final int AppCompatTheme_listPreferredItemHeightSmall = 71;
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 73;
public static final int AppCompatTheme_listPreferredItemPaddingRight = 74;
public static final int AppCompatTheme_panelBackground = 79;
public static final int AppCompatTheme_panelMenuListTheme = 81;
public static final int AppCompatTheme_panelMenuListWidth = 80;
public static final int AppCompatTheme_popupMenuStyle = 61;
public static final int AppCompatTheme_popupWindowStyle = 62;
public static final int AppCompatTheme_radioButtonStyle = 107;
public static final int AppCompatTheme_ratingBarStyle = 108;
public static final int AppCompatTheme_ratingBarStyleIndicator = 109;
public static final int AppCompatTheme_ratingBarStyleSmall = 110;
public static final int AppCompatTheme_searchViewStyle = 69;
public static final int AppCompatTheme_seekBarStyle = 111;
public static final int AppCompatTheme_selectableItemBackground = 53;
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 54;
public static final int AppCompatTheme_spinnerDropDownItemStyle = 48;
public static final int AppCompatTheme_spinnerStyle = 112;
public static final int AppCompatTheme_switchStyle = 113;
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 40;
public static final int AppCompatTheme_textAppearanceListItem = 77;
public static final int AppCompatTheme_textAppearanceListItemSmall = 78;
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 42;
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 67;
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 66;
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 41;
public static final int AppCompatTheme_textColorAlertDialogListItem = 97;
public static final int AppCompatTheme_textColorSearchUrl = 68;
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 60;
public static final int AppCompatTheme_toolbarStyle = 59;
public static final int AppCompatTheme_windowActionBar = 2;
public static final int AppCompatTheme_windowActionBarOverlay = 4;
public static final int AppCompatTheme_windowActionModeOverlay = 5;
public static final int AppCompatTheme_windowFixedHeightMajor = 9;
public static final int AppCompatTheme_windowFixedHeightMinor = 7;
public static final int AppCompatTheme_windowFixedWidthMajor = 6;
public static final int AppCompatTheme_windowFixedWidthMinor = 8;
public static final int AppCompatTheme_windowMinWidthMajor = 10;
public static final int AppCompatTheme_windowMinWidthMinor = 11;
public static final int AppCompatTheme_windowNoTitle = 3;
public static final int[] BottomNavigationView = { 0x7f01001c, 0x7f0100e2, 0x7f0100e3, 0x7f0100e4, 0x7f0100e5 };
public static final int BottomNavigationView_elevation = 0;
public static final int BottomNavigationView_itemBackground = 4;
public static final int BottomNavigationView_itemIconTint = 2;
public static final int BottomNavigationView_itemTextColor = 3;
public static final int BottomNavigationView_menu = 1;
public static final int[] BottomSheetBehavior_Layout = { 0x7f0100a1, 0x7f0100a2, 0x7f0100a3 };
public static final int BottomSheetBehavior_Layout_behavior_hideable = 1;
public static final int BottomSheetBehavior_Layout_behavior_peekHeight = 0;
public static final int BottomSheetBehavior_Layout_behavior_skipCollapsed = 2;
public static final int[] ButtonBarLayout = { 0x7f0100a4 };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] CollapsingToolbarLayout = { 0x7f010003, 0x7f0100a5, 0x7f0100a6, 0x7f0100a7, 0x7f0100a8, 0x7f0100a9, 0x7f0100aa, 0x7f0100ab, 0x7f0100ac, 0x7f0100ad, 0x7f0100ae, 0x7f0100af, 0x7f0100b0, 0x7f0100b1, 0x7f0100b2, 0x7f0100b3 };
public static final int[] CollapsingToolbarLayout_Layout = { 0x7f0100b4, 0x7f0100b5 };
public static final int CollapsingToolbarLayout_Layout_layout_collapseMode = 0;
public static final int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1;
public static final int CollapsingToolbarLayout_collapsedTitleGravity = 13;
public static final int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7;
public static final int CollapsingToolbarLayout_contentScrim = 8;
public static final int CollapsingToolbarLayout_expandedTitleGravity = 14;
public static final int CollapsingToolbarLayout_expandedTitleMargin = 1;
public static final int CollapsingToolbarLayout_expandedTitleMarginBottom = 5;
public static final int CollapsingToolbarLayout_expandedTitleMarginEnd = 4;
public static final int CollapsingToolbarLayout_expandedTitleMarginStart = 2;
public static final int CollapsingToolbarLayout_expandedTitleMarginTop = 3;
public static final int CollapsingToolbarLayout_expandedTitleTextAppearance = 6;
public static final int CollapsingToolbarLayout_scrimAnimationDuration = 12;
public static final int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11;
public static final int CollapsingToolbarLayout_statusBarScrim = 9;
public static final int CollapsingToolbarLayout_title = 0;
public static final int CollapsingToolbarLayout_titleEnabled = 15;
public static final int CollapsingToolbarLayout_toolbarId = 10;
public static final int[] ColorStateListItem = { 0x010101a5, 0x0101031f, 0x7f0100b6 };
public static final int ColorStateListItem_alpha = 2;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_android_color = 0;
public static final int[] CompoundButton = { 0x01010107, 0x7f0100b7, 0x7f0100b8 };
public static final int CompoundButton_android_button = 0;
public static final int CompoundButton_buttonTint = 1;
public static final int CompoundButton_buttonTintMode = 2;
public static final int[] CoordinatorLayout = { 0x7f0100b9, 0x7f0100ba };
public static final int[] CoordinatorLayout_Layout = { 0x010100b3, 0x7f0100bb, 0x7f0100bc, 0x7f0100bd, 0x7f0100be, 0x7f0100bf, 0x7f0100c0 };
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
public static final int CoordinatorLayout_Layout_layout_anchor = 2;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 4;
public static final int CoordinatorLayout_Layout_layout_behavior = 1;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 6;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 5;
public static final int CoordinatorLayout_Layout_layout_keyline = 3;
public static final int CoordinatorLayout_keylines = 0;
public static final int CoordinatorLayout_statusBarBackground = 1;
public static final int[] DesignTheme = { 0x7f0100c1, 0x7f0100c2, 0x7f0100c3 };
public static final int DesignTheme_bottomSheetDialogTheme = 0;
public static final int DesignTheme_bottomSheetStyle = 1;
public static final int DesignTheme_textColorError = 2;
public static final int[] DrawerArrowToggle = { 0x7f0100c4, 0x7f0100c5, 0x7f0100c6, 0x7f0100c7, 0x7f0100c8, 0x7f0100c9, 0x7f0100ca, 0x7f0100cb };
public static final int DrawerArrowToggle_arrowHeadLength = 4;
public static final int DrawerArrowToggle_arrowShaftLength = 5;
public static final int DrawerArrowToggle_barLength = 6;
public static final int DrawerArrowToggle_color = 0;
public static final int DrawerArrowToggle_drawableSize = 2;
public static final int DrawerArrowToggle_gapBetweenBars = 3;
public static final int DrawerArrowToggle_spinBars = 1;
public static final int DrawerArrowToggle_thickness = 7;
public static final int[] FloatingActionButton = { 0x7f01001c, 0x7f0100cc, 0x7f0100cd, 0x7f0100ce, 0x7f0100cf, 0x7f0100d0, 0x7f0100d1, 0x7f0100d2, 0x7f0100d3, 0x7f0100d4, 0x7f0100d5, 0x7f0100d6, 0x7f01013b, 0x7f01013c };
public static final int[] FloatingActionButton_Behavior_Layout = { 0x7f0100d7 };
public static final int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0;
public static final int FloatingActionButton_backgroundTint = 12;
public static final int FloatingActionButton_backgroundTintMode = 13;
public static final int FloatingActionButton_borderWidth = 10;
public static final int FloatingActionButton_elevation = 0;
public static final int FloatingActionButton_fabSize = 8;
public static final int FloatingActionButton_pressedTranslationZ = 9;
public static final int FloatingActionButton_rippleColor = 7;
public static final int FloatingActionButton_useCompatPadding = 11;
public static final int[] ForegroundLinearLayout = { 0x01010109, 0x01010200, 0x7f0100d8 };
public static final int ForegroundLinearLayout_android_foreground = 0;
public static final int ForegroundLinearLayout_android_foregroundGravity = 1;
public static final int ForegroundLinearLayout_foregroundInsidePadding = 2;
public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f01000b, 0x7f0100d9, 0x7f0100da, 0x7f0100db };
public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 };
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
public static final int LinearLayoutCompat_android_baselineAligned = 2;
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
public static final int LinearLayoutCompat_android_gravity = 0;
public static final int LinearLayoutCompat_android_orientation = 1;
public static final int LinearLayoutCompat_android_weightSum = 4;
public static final int LinearLayoutCompat_divider = 5;
public static final int LinearLayoutCompat_dividerPadding = 8;
public static final int LinearLayoutCompat_measureWithLargestChild = 6;
public static final int LinearLayoutCompat_showDividers = 7;
public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad };
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 };
public static final int MenuGroup_android_checkableBehavior = 5;
public static final int MenuGroup_android_enabled = 0;
public static final int MenuGroup_android_id = 1;
public static final int MenuGroup_android_menuCategory = 3;
public static final int MenuGroup_android_orderInCategory = 4;
public static final int MenuGroup_android_visible = 2;
public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f0100dc, 0x7f0100dd, 0x7f0100de, 0x7f0100df };
public static final int MenuItem_actionLayout = 14;
public static final int MenuItem_actionProviderClass = 16;
public static final int MenuItem_actionViewClass = 15;
public static final int MenuItem_android_alphabeticShortcut = 9;
public static final int MenuItem_android_checkable = 11;
public static final int MenuItem_android_checked = 3;
public static final int MenuItem_android_enabled = 1;
public static final int MenuItem_android_icon = 0;
public static final int MenuItem_android_id = 2;
public static final int MenuItem_android_menuCategory = 5;
public static final int MenuItem_android_numericShortcut = 10;
public static final int MenuItem_android_onClick = 12;
public static final int MenuItem_android_orderInCategory = 6;
public static final int MenuItem_android_title = 7;
public static final int MenuItem_android_titleCondensed = 8;
public static final int MenuItem_android_visible = 4;
public static final int MenuItem_showAsAction = 13;
public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f0100e0, 0x7f0100e1 };
public static final int MenuView_android_headerBackground = 4;
public static final int MenuView_android_horizontalDivider = 2;
public static final int MenuView_android_itemBackground = 5;
public static final int MenuView_android_itemIconDisabledAlpha = 6;
public static final int MenuView_android_itemTextAppearance = 1;
public static final int MenuView_android_verticalDivider = 3;
public static final int MenuView_android_windowAnimationStyle = 0;
public static final int MenuView_preserveIconSpacing = 7;
public static final int MenuView_subMenuArrow = 8;
public static final int[] NavigationView = { 0x010100d4, 0x010100dd, 0x0101011f, 0x7f01001c, 0x7f0100e2, 0x7f0100e3, 0x7f0100e4, 0x7f0100e5, 0x7f0100e6, 0x7f0100e7 };
public static final int NavigationView_android_background = 0;
public static final int NavigationView_android_fitsSystemWindows = 1;
public static final int NavigationView_android_maxWidth = 2;
public static final int NavigationView_elevation = 3;
public static final int NavigationView_headerLayout = 9;
public static final int NavigationView_itemBackground = 7;
public static final int NavigationView_itemIconTint = 5;
public static final int NavigationView_itemTextAppearance = 8;
public static final int NavigationView_itemTextColor = 6;
public static final int NavigationView_menu = 4;
public static final int[] PopupWindow = { 0x01010176, 0x010102c9, 0x7f0100e8 };
public static final int[] PopupWindowBackgroundState = { 0x7f0100e9 };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int PopupWindow_android_popupAnimationStyle = 1;
public static final int PopupWindow_android_popupBackground = 0;
public static final int PopupWindow_overlapAnchor = 2;
public static final int[] RecyclerView = { 0x010100c4, 0x010100f1, 0x7f0100ea, 0x7f0100eb, 0x7f0100ec, 0x7f0100ed };
public static final int RecyclerView_android_descendantFocusability = 1;
public static final int RecyclerView_android_orientation = 0;
public static final int RecyclerView_layoutManager = 2;
public static final int RecyclerView_reverseLayout = 4;
public static final int RecyclerView_spanCount = 3;
public static final int RecyclerView_stackFromEnd = 5;
public static final int[] ScrimInsetsFrameLayout = { 0x7f0100ee };
public static final int ScrimInsetsFrameLayout_insetForeground = 0;
public static final int[] ScrollingViewBehavior_Layout = { 0x7f0100ef };
public static final int ScrollingViewBehavior_Layout_behavior_overlapTop = 0;
public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f0100f0, 0x7f0100f1, 0x7f0100f2, 0x7f0100f3, 0x7f0100f4, 0x7f0100f5, 0x7f0100f6, 0x7f0100f7, 0x7f0100f8, 0x7f0100f9, 0x7f0100fa, 0x7f0100fb, 0x7f0100fc };
public static final int SearchView_android_focusable = 0;
public static final int SearchView_android_imeOptions = 3;
public static final int SearchView_android_inputType = 2;
public static final int SearchView_android_maxWidth = 1;
public static final int SearchView_closeIcon = 8;
public static final int SearchView_commitIcon = 13;
public static final int SearchView_defaultQueryHint = 7;
public static final int SearchView_goIcon = 9;
public static final int SearchView_iconifiedByDefault = 5;
public static final int SearchView_layout = 4;
public static final int SearchView_queryBackground = 15;
public static final int SearchView_queryHint = 6;
public static final int SearchView_searchHintIcon = 11;
public static final int SearchView_searchIcon = 10;
public static final int SearchView_submitBackground = 16;
public static final int SearchView_suggestionRowLayout = 14;
public static final int SearchView_voiceIcon = 12;
public static final int[] SnackbarLayout = { 0x0101011f, 0x7f01001c, 0x7f0100fd };
public static final int SnackbarLayout_android_maxWidth = 0;
public static final int SnackbarLayout_elevation = 1;
public static final int SnackbarLayout_maxActionInlineWidth = 2;
public static final int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f01001d };
public static final int Spinner_android_dropDownWidth = 3;
public static final int Spinner_android_entries = 0;
public static final int Spinner_android_popupBackground = 1;
public static final int Spinner_android_prompt = 2;
public static final int Spinner_popupTheme = 4;
public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f0100fe, 0x7f0100ff, 0x7f010100, 0x7f010101, 0x7f010102, 0x7f010103, 0x7f010104, 0x7f010105, 0x7f010106, 0x7f010107, 0x7f010108 };
public static final int SwitchCompat_android_textOff = 1;
public static final int SwitchCompat_android_textOn = 0;
public static final int SwitchCompat_android_thumb = 2;
public static final int SwitchCompat_showText = 13;
public static final int SwitchCompat_splitTrack = 12;
public static final int SwitchCompat_switchMinWidth = 10;
public static final int SwitchCompat_switchPadding = 11;
public static final int SwitchCompat_switchTextAppearance = 9;
public static final int SwitchCompat_thumbTextPadding = 8;
public static final int SwitchCompat_thumbTint = 3;
public static final int SwitchCompat_thumbTintMode = 4;
public static final int SwitchCompat_track = 5;
public static final int SwitchCompat_trackTint = 6;
public static final int SwitchCompat_trackTintMode = 7;
public static final int[] TabItem = { 0x01010002, 0x010100f2, 0x0101014f };
public static final int TabItem_android_icon = 0;
public static final int TabItem_android_layout = 1;
public static final int TabItem_android_text = 2;
public static final int[] TabLayout = { 0x7f010109, 0x7f01010a, 0x7f01010b, 0x7f01010c, 0x7f01010d, 0x7f01010e, 0x7f01010f, 0x7f010110, 0x7f010111, 0x7f010112, 0x7f010113, 0x7f010114, 0x7f010115, 0x7f010116, 0x7f010117, 0x7f010118 };
public static final int TabLayout_tabBackground = 3;
public static final int TabLayout_tabContentStart = 2;
public static final int TabLayout_tabGravity = 5;
public static final int TabLayout_tabIndicatorColor = 0;
public static final int TabLayout_tabIndicatorHeight = 1;
public static final int TabLayout_tabMaxWidth = 7;
public static final int TabLayout_tabMinWidth = 6;
public static final int TabLayout_tabMode = 4;
public static final int TabLayout_tabPadding = 15;
public static final int TabLayout_tabPaddingBottom = 14;
public static final int TabLayout_tabPaddingEnd = 13;
public static final int TabLayout_tabPaddingStart = 11;
public static final int TabLayout_tabPaddingTop = 12;
public static final int TabLayout_tabSelectedTextColor = 10;
public static final int TabLayout_tabTextAppearance = 8;
public static final int TabLayout_tabTextColor = 9;
public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x0101009a, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f01002f };
public static final int TextAppearance_android_shadowColor = 5;
public static final int TextAppearance_android_shadowDx = 6;
public static final int TextAppearance_android_shadowDy = 7;
public static final int TextAppearance_android_shadowRadius = 8;
public static final int TextAppearance_android_textColor = 3;
public static final int TextAppearance_android_textColorHint = 4;
public static final int TextAppearance_android_textSize = 0;
public static final int TextAppearance_android_textStyle = 2;
public static final int TextAppearance_android_typeface = 1;
public static final int TextAppearance_textAllCaps = 9;
public static final int[] TextInputLayout = { 0x0101009a, 0x01010150, 0x7f010119, 0x7f01011a, 0x7f01011b, 0x7f01011c, 0x7f01011d, 0x7f01011e, 0x7f01011f, 0x7f010120, 0x7f010121, 0x7f010122, 0x7f010123, 0x7f010124, 0x7f010125, 0x7f010126 };
public static final int TextInputLayout_android_hint = 1;
public static final int TextInputLayout_android_textColorHint = 0;
public static final int TextInputLayout_counterEnabled = 6;
public static final int TextInputLayout_counterMaxLength = 7;
public static final int TextInputLayout_counterOverflowTextAppearance = 9;
public static final int TextInputLayout_counterTextAppearance = 8;
public static final int TextInputLayout_errorEnabled = 4;
public static final int TextInputLayout_errorTextAppearance = 5;
public static final int TextInputLayout_hintAnimationEnabled = 10;
public static final int TextInputLayout_hintEnabled = 3;
public static final int TextInputLayout_hintTextAppearance = 2;
public static final int TextInputLayout_passwordToggleContentDescription = 13;
public static final int TextInputLayout_passwordToggleDrawable = 12;
public static final int TextInputLayout_passwordToggleEnabled = 11;
public static final int TextInputLayout_passwordToggleTint = 14;
public static final int TextInputLayout_passwordToggleTintMode = 15;
public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f010003, 0x7f010006, 0x7f01000a, 0x7f010016, 0x7f010017, 0x7f010018, 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001d, 0x7f010127, 0x7f010128, 0x7f010129, 0x7f01012a, 0x7f01012b, 0x7f01012c, 0x7f01012d, 0x7f01012e, 0x7f01012f, 0x7f010130, 0x7f010131, 0x7f010132, 0x7f010133, 0x7f010134, 0x7f010135, 0x7f010136, 0x7f010137 };
public static final int Toolbar_android_gravity = 0;
public static final int Toolbar_android_minHeight = 1;
public static final int Toolbar_buttonGravity = 21;
public static final int Toolbar_collapseContentDescription = 23;
public static final int Toolbar_collapseIcon = 22;
public static final int Toolbar_contentInsetEnd = 6;
public static final int Toolbar_contentInsetEndWithActions = 10;
public static final int Toolbar_contentInsetLeft = 7;
public static final int Toolbar_contentInsetRight = 8;
public static final int Toolbar_contentInsetStart = 5;
public static final int Toolbar_contentInsetStartWithNavigation = 9;
public static final int Toolbar_logo = 4;
public static final int Toolbar_logoDescription = 26;
public static final int Toolbar_maxButtonHeight = 20;
public static final int Toolbar_navigationContentDescription = 25;
public static final int Toolbar_navigationIcon = 24;
public static final int Toolbar_popupTheme = 11;
public static final int Toolbar_subtitle = 3;
public static final int Toolbar_subtitleTextAppearance = 13;
public static final int Toolbar_subtitleTextColor = 28;
public static final int Toolbar_title = 2;
public static final int Toolbar_titleMargin = 14;
public static final int Toolbar_titleMarginBottom = 18;
public static final int Toolbar_titleMarginEnd = 16;
public static final int Toolbar_titleMarginStart = 15;
public static final int Toolbar_titleMarginTop = 17;
public static final int Toolbar_titleMargins = 19;
public static final int Toolbar_titleTextAppearance = 12;
public static final int Toolbar_titleTextColor = 27;
public static final int[] View = { 0x01010000, 0x010100da, 0x7f010138, 0x7f010139, 0x7f01013a };
public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f01013b, 0x7f01013c };
public static final int ViewBackgroundHelper_android_background = 0;
public static final int ViewBackgroundHelper_backgroundTint = 1;
public static final int ViewBackgroundHelper_backgroundTintMode = 2;
public static final int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 };
public static final int ViewStubCompat_android_id = 0;
public static final int ViewStubCompat_android_inflatedId = 2;
public static final int ViewStubCompat_android_layout = 1;
public static final int View_android_focusable = 1;
public static final int View_android_theme = 0;
public static final int View_paddingEnd = 3;
public static final int View_paddingStart = 2;
public static final int View_theme = 4;
}
}
| [
"krkeco@gmail.com"
] | krkeco@gmail.com |
908c4e4de6e9bbd30a8bdd901bc20ce4992d8ef0 | b1ea158d1a1d370bc3c41524160a6c2d3ce2438f | /src/main/java/com/github/zhuyiyi1990/designpattern/commandpattern/BuyStock.java | 1cfa5ba47efce7b17c1dae63c9c5b8c0df20c278 | [] | no_license | zhuyiyi1990/design-pattern | 5021c6a8ab7b59068e839697702d988815763187 | 99b3f3a3dfd5f225abf2bfe70834cb9be998b9a2 | refs/heads/master | 2023-03-28T00:52:03.724303 | 2021-03-25T08:53:15 | 2021-03-25T08:53:15 | 349,308,844 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 286 | java | package com.github.zhuyiyi1990.designpattern.commandpattern;
public class BuyStock implements Order {
private Stock abcStock;
public BuyStock(Stock abcStock) {
this.abcStock = abcStock;
}
@Override
public void execute() {
abcStock.buy();
}
}
| [
"zhuyiyi1990@outlook.com"
] | zhuyiyi1990@outlook.com |
1016d85041d7ed7b142fd22559e57cd52800c394 | bbd9a0df70ce0bea8e5b85cb4d6bd2355e74874c | /src/main/java/com/telkomdev/protodemo/Product.java | 36452bc6df6cfcb5bb439274b0514f19d5ba1dfc | [] | no_license | telkomdev/JavaProtobufDemo | cb6ed69166b6261f1a98f16357ce42beab6b135f | 49851ecb0c122948a1a13637e4532bc513b3806c | refs/heads/master | 2022-10-14T06:51:55.690653 | 2019-10-02T01:59:33 | 2019-10-02T01:59:33 | 212,168,077 | 0 | 0 | null | 2022-10-04T23:53:34 | 2019-10-01T18:19:38 | Java | UTF-8 | Java | false | false | 3,453 | java | package com.telkomdev.protodemo;
/*
* Copyright 2019 wuriyanto.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.
*/
import com.google.protobuf.InvalidProtocolBufferException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
public class Product {
private String id;
private String name;
private Integer quantity;
private List<String> images;
public Product() {
}
public Product(String id, String name, Integer quantity, List<String> images) {
this.id = id;
this.name = name;
this.quantity = quantity;
this.images = images;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getQuantity() {
return quantity;
}
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
public List<String> getImages() {
return images;
}
public void setImages(List<String> images) {
this.images = images;
}
@Override
public String toString() {
return "Product{" +
"id='" + id + '\'' +
", name='" + name + '\'' +
", quantity=" + quantity +
", images=" + images +
'}';
}
public ProductProtos.Product toProto() {
ProductProtos.Product productOut = ProductProtos.Product.newBuilder()
.setID(this.id)
.setName(this.name)
.setQuantity(this.quantity)
.addAllImages(this.images)
.build();
return productOut;
}
public static Product fromProto(byte[] in) throws InvalidProtocolBufferException {
ProductProtos.Product productIn = ProductProtos.Product.parseFrom(in);
Product product = new Product();
product.setId(productIn.getID());
product.setName(productIn.getName());
product.setQuantity((int) productIn.getQuantity());
List<String> images = new ArrayList<>();
for (String image : productIn.getImagesList()) {
images.add(image);
}
product.setImages(images);
return product;
}
public static Product fromProto(InputStream in) throws IOException {
ProductProtos.Product productIn = ProductProtos.Product.parseFrom(in);
Product product = new Product();
product.setId(productIn.getID());
product.setName(productIn.getName());
product.setQuantity((int) productIn.getQuantity());
List<String> images = new ArrayList<>();
for (String image : productIn.getImagesList()) {
images.add(image);
}
product.setImages(images);
return product;
}
}
| [
"wuriyanto48@yahoo.co.id"
] | wuriyanto48@yahoo.co.id |
abdf0adad32d84d16c869a6c5565725a3781889d | 056ff5f928aec62606f95a6f90c2865dc126bddc | /javashop/shop-core/src/main/java/com/enation/app/shop/component/payment/plugin/alipay/sdk34/api/response/AlipayMarketingVoucherAuthSendResponse.java | 855b965ff0551e67480f4c6760a82a371166815e | [] | no_license | luobintianya/javashop | 7846c7f1037652dbfdd57e24ae2c38237feb1104 | ac15b14e8f6511afba93af60e8878ff44e380621 | refs/heads/master | 2022-11-17T11:12:39.060690 | 2019-09-04T08:57:58 | 2019-09-04T08:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 789 | java | package com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.response;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.AlipayResponse;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.internal.mapping.ApiField;
/**
* ALIPAY API: alipay.marketing.voucher.auth.send response.
*
* @author auto create
* @since 1.0, 2017-03-28 22:18:44
*/
public class AlipayMarketingVoucherAuthSendResponse extends AlipayResponse {
private static final long serialVersionUID = 6727728893381958254L;
/**
* 券ID
*/
@ApiField("voucher_id")
private String voucherId;
public void setVoucherId(String voucherId) {
this.voucherId = voucherId;
}
public String getVoucherId( ) {
return this.voucherId;
}
}
| [
"sylow@javashop.cn"
] | sylow@javashop.cn |
eb3359b2d299800ec99666156c3836fbadd3d818 | a746f1204cbcbc1e7ccfb65676317e35d220226a | /app/src/main/java/com/example/itachi/com/pab/Tabpageradaptor.java | e3358249d899b2ec11d9e1a1aba75af0ad3090ee | [] | no_license | FDSM4/Pab | a42e1227f91c77263e808c5e64345a340e76d176 | f495ac378d890b10e0a297c907716c2759da924c | refs/heads/master | 2021-05-05T06:42:35.813804 | 2018-01-24T14:28:53 | 2018-01-24T14:28:53 | 118,776,123 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,099 | java | package com.example.itachi.com.pab;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
/**
* Created by ITACHI on 21-01-2018.
*/
public class Tabpageradaptor extends FragmentStatePagerAdapter {
String[] tabarray = new String[]{"CAKES","NORTH INDIAN FOOD","SNACKS","PICK N DROP"};
public Tabpageradaptor(FragmentManager fm) {
super(fm);
}
@Override
public CharSequence getPageTitle(int position) {
return tabarray[position];
}
@Override
public Fragment getItem(int position) {
switch (position){
case 0:
CAKE cak = new CAKE();
return cak;
case 1:
NORTH nr = new NORTH();
return nr;
case 2:
SNACK sk = new SNACK();
return sk;
case 3:
PND pn = new PND();
return pn;
}
return null;
}
@Override
public int getCount() {
return 4;
}
} | [
"lifehacker2k18@gmail.com"
] | lifehacker2k18@gmail.com |
22cdd34ace300deb332d5d83422e15e6356796db | 56a32d71146aa509aa240c736cde517f8f6c41b4 | /EvenementenApp/src/main/java/app/daolayer/IEvenementDao.java | 10c0c2348e9d24bed61c69a0451e165f45a27126 | [] | no_license | SamanthaLourens/EvenementenApp | eb3162f7f3895279f4fa5f581f28b05fa7bb34db | d5d3b0e1c289a29431e283f6465be3b51987cea3 | refs/heads/master | 2020-03-29T05:57:48.971410 | 2018-09-21T11:17:42 | 2018-09-21T11:17:42 | 149,603,467 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 438 | java | package app.daolayer;
import java.util.List;
import java.util.Optional;
import org.springframework.data.repository.CrudRepository;
import app.models.EvenementModel;
public interface IEvenementDao extends CrudRepository<EvenementModel, Long> {
List<EvenementModel> findAll();
List<EvenementModel> findByPlaats(String plaats);
List<EvenementModel> findByDatum(String datum);
List<EvenementModel> findByNaam(String naam);
}
| [
"samanthalourens1993@gmail.com"
] | samanthalourens1993@gmail.com |
7c9239442124f4c6ed4100730fe63a5b333d45ac | 647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4 | /com.tencent.mm/classes.jar/com/tencent/mm/protocal/protobuf/gdd.java | 38ce49b0d81c5cfefb5c0888f5cfe8f303c82ef0 | [] | no_license | tsuzcx/qq_apk | 0d5e792c3c7351ab781957bac465c55c505caf61 | afe46ef5640d0ba6850cdefd3c11badbd725a3f6 | refs/heads/main | 2022-07-02T10:32:11.651957 | 2022-02-01T12:41:38 | 2022-02-01T12:41:38 | 453,860,108 | 36 | 9 | null | 2022-01-31T09:46:26 | 2022-01-31T02:43:22 | Java | UTF-8 | Java | false | false | 11,828 | java | package com.tencent.mm.protocal.protobuf;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.LinkedList;
public final class gdd
extends com.tencent.mm.bx.a
{
public gol acaV;
public gol acaW;
public gol acaX;
public gol acaY;
public gol acaZ;
public gol acba;
public gol acbb;
public gol acbc;
public gol acbd;
public gol acbe;
public gol acbf;
public gol acbg;
public final int op(int paramInt, Object... paramVarArgs)
{
AppMethodBeat.i(155542);
if (paramInt == 0)
{
paramVarArgs = (i.a.a.c.a)paramVarArgs[0];
if (this.acaV != null)
{
paramVarArgs.qD(1, this.acaV.computeSize());
this.acaV.writeFields(paramVarArgs);
}
if (this.acaW != null)
{
paramVarArgs.qD(2, this.acaW.computeSize());
this.acaW.writeFields(paramVarArgs);
}
if (this.acaX != null)
{
paramVarArgs.qD(3, this.acaX.computeSize());
this.acaX.writeFields(paramVarArgs);
}
if (this.acaY != null)
{
paramVarArgs.qD(4, this.acaY.computeSize());
this.acaY.writeFields(paramVarArgs);
}
if (this.acaZ != null)
{
paramVarArgs.qD(5, this.acaZ.computeSize());
this.acaZ.writeFields(paramVarArgs);
}
if (this.acba != null)
{
paramVarArgs.qD(6, this.acba.computeSize());
this.acba.writeFields(paramVarArgs);
}
if (this.acbb != null)
{
paramVarArgs.qD(7, this.acbb.computeSize());
this.acbb.writeFields(paramVarArgs);
}
if (this.acbc != null)
{
paramVarArgs.qD(8, this.acbc.computeSize());
this.acbc.writeFields(paramVarArgs);
}
if (this.acbd != null)
{
paramVarArgs.qD(9, this.acbd.computeSize());
this.acbd.writeFields(paramVarArgs);
}
if (this.acbe != null)
{
paramVarArgs.qD(10, this.acbe.computeSize());
this.acbe.writeFields(paramVarArgs);
}
if (this.acbf != null)
{
paramVarArgs.qD(11, this.acbf.computeSize());
this.acbf.writeFields(paramVarArgs);
}
if (this.acbg != null)
{
paramVarArgs.qD(12, this.acbg.computeSize());
this.acbg.writeFields(paramVarArgs);
}
AppMethodBeat.o(155542);
return 0;
}
if (paramInt == 1) {
if (this.acaV == null) {
break label1750;
}
}
label1750:
for (int i = i.a.a.a.qC(1, this.acaV.computeSize()) + 0;; i = 0)
{
paramInt = i;
if (this.acaW != null) {
paramInt = i + i.a.a.a.qC(2, this.acaW.computeSize());
}
i = paramInt;
if (this.acaX != null) {
i = paramInt + i.a.a.a.qC(3, this.acaX.computeSize());
}
paramInt = i;
if (this.acaY != null) {
paramInt = i + i.a.a.a.qC(4, this.acaY.computeSize());
}
i = paramInt;
if (this.acaZ != null) {
i = paramInt + i.a.a.a.qC(5, this.acaZ.computeSize());
}
paramInt = i;
if (this.acba != null) {
paramInt = i + i.a.a.a.qC(6, this.acba.computeSize());
}
i = paramInt;
if (this.acbb != null) {
i = paramInt + i.a.a.a.qC(7, this.acbb.computeSize());
}
paramInt = i;
if (this.acbc != null) {
paramInt = i + i.a.a.a.qC(8, this.acbc.computeSize());
}
i = paramInt;
if (this.acbd != null) {
i = paramInt + i.a.a.a.qC(9, this.acbd.computeSize());
}
paramInt = i;
if (this.acbe != null) {
paramInt = i + i.a.a.a.qC(10, this.acbe.computeSize());
}
i = paramInt;
if (this.acbf != null) {
i = paramInt + i.a.a.a.qC(11, this.acbf.computeSize());
}
paramInt = i;
if (this.acbg != null) {
paramInt = i + i.a.a.a.qC(12, this.acbg.computeSize());
}
AppMethodBeat.o(155542);
return paramInt;
if (paramInt == 2)
{
paramVarArgs = new i.a.a.a.a((byte[])paramVarArgs[0], unknownTagHandler);
for (paramInt = com.tencent.mm.bx.a.getNextFieldNumber(paramVarArgs); paramInt > 0; paramInt = com.tencent.mm.bx.a.getNextFieldNumber(paramVarArgs)) {
if (!super.populateBuilderWithField(paramVarArgs, this, paramInt)) {
paramVarArgs.kFT();
}
}
AppMethodBeat.o(155542);
return 0;
}
if (paramInt == 3)
{
Object localObject = (i.a.a.a.a)paramVarArgs[0];
gdd localgdd = (gdd)paramVarArgs[1];
paramInt = ((Integer)paramVarArgs[2]).intValue();
gol localgol;
switch (paramInt)
{
default:
AppMethodBeat.o(155542);
return -1;
case 1:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acaV = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 2:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acaW = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 3:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acaX = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 4:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acaY = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 5:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acaZ = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 6:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acba = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 7:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acbb = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 8:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acbc = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 9:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acbd = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 10:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acbe = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
case 11:
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acbf = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
}
paramVarArgs = ((i.a.a.a.a)localObject).aMP(paramInt);
i = paramVarArgs.size();
paramInt = 0;
while (paramInt < i)
{
localObject = (byte[])paramVarArgs.get(paramInt);
localgol = new gol();
if ((localObject != null) && (localObject.length > 0)) {
localgol.dg((byte[])localObject);
}
localgdd.acbg = localgol;
paramInt += 1;
}
AppMethodBeat.o(155542);
return 0;
}
AppMethodBeat.o(155542);
return -1;
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes5.jar
* Qualified Name: com.tencent.mm.protocal.protobuf.gdd
* JD-Core Version: 0.7.0.1
*/ | [
"98632993+tsuzcx@users.noreply.github.com"
] | 98632993+tsuzcx@users.noreply.github.com |
d484012120f58360c31ce118504dfd7a04e899ff | fb9aadedc65478e9bff4d6b4d5a58234e0d8a088 | /homework/Examination.java | 2aadb9e14744d1ea85b1e59d407874ae5da24bff | [] | no_license | ctuu/ThinkingInJava | 80dbfa57bb8e074fb06d00b7d6f4caa21a59b383 | 51d5e188fe17459631fa9a85ace6048a619c425b | refs/heads/master | 2021-01-21T12:30:35.569385 | 2017-12-16T03:04:49 | 2017-12-16T03:04:49 | 102,073,285 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 730 | java | import java.util.*;
public class Examination {
private static final int MC = 30;
private static final float CP = 0.3f;
private static final int MG = 60;
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
try {
System.out.println("Enter your scoring in attendance and homework:");
float atteHomeScore = stdin.nextFloat();
System.out.println("Enter your scoring in attendance:");
int attendance = stdin.nextInt();
if (atteHomeScore < MG || attendance < MC * CP)
System.out.println("You are not qualified for the exam.");
else
System.out.println("You have the eligibility of the exam");
} finally {
stdin.close();
}
}
} | [
"ct.liuu@gmail.com"
] | ct.liuu@gmail.com |
2cfcc426782466a76022c4f9a1a92358ddd8dbf0 | 3203049a2ab026ba1f2cdb891cb5b52181492683 | /src/main/java/com/john/kiernan/todoservice/TodoListWrapper.java | 79d913cc21ab8fc2f1ad031ab26d97b41c79ccba | [] | no_license | johntk/todo-service | 64f82e382859b562425d1786a8b7fd571a2bfd75 | 3b08d75feeb4abeb48cf58f14536f9eb63ccd502 | refs/heads/master | 2022-12-07T03:50:13.546505 | 2020-08-30T08:32:01 | 2020-08-30T08:32:01 | 291,428,159 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 486 | java | package com.john.kiernan.todoservice;
import com.john.kiernan.todoservice.model.Todo;
import java.util.ArrayList;
public class TodoListWrapper {
private ArrayList<Todo> todo;
public TodoListWrapper() {
this.todo = new ArrayList<Todo>();
}
public ArrayList<Todo> getTodos() {
return todo;
}
public void setTodos(ArrayList<Todo> users) {
this.todo = users;
}
public void add(Todo todo) {
this.todo.add(todo);
}
}
| [
"johntk86@gmail.com"
] | johntk86@gmail.com |
7c9e19c1199e3731cecbd56f8d7ff7c1a99ad00d | 0c301eabab00cd1113e4ff2feabda149b222b0f1 | /src/main/java/entities/User.java | 946b4bb83403d97cd4623e49878e1ec064823598 | [] | no_license | fradali/ContactManagement-Back-JEE | 5b40c6f91302fcb439cc43e90a49066b465ef71c | 4df4bf6742770ed65b823d733b5d6e5aa9e84ba4 | refs/heads/master | 2020-03-21T06:03:48.279130 | 2018-06-25T10:16:19 | 2018-06-25T10:16:19 | 138,196,380 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,414 | java | package entities;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.Size;
@Entity
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Size(min = 4, max = 255, message = "Minimum username length: 4 characters")
@Column(unique = true, nullable = false)
private String username;
@Column(unique = true, nullable = false)
private String email;
@Size(min = 6, message = "Minimum password length: 6 characters")
private String password;
@ElementCollection(fetch = FetchType.EAGER)
List<Role> roles;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public List<Role> getRoles() {
return roles;
}
public void setRoles(List<Role> roles) {
this.roles = roles;
}
}
| [
"afrad@spark.local"
] | afrad@spark.local |
8061a54d554b4fe3441bff043667eca71ff05574 | 03cc6ecdb800f900a1f53bd46cb7985fb57e02d5 | /RealmBenchWk/app/src/main/java/com/example/enoch/realmbenchwk/models/Shop.java | 779d9ef758598c1c80bd007dff768addb71fed2c | [] | no_license | EMHankombo/RealmBnchWk | 1c8f1672075588f511035fe98e1289c8047cf45a | 58c5e0a3120c3308a59fd6fdd7dbaea547bbb3dc | refs/heads/master | 2021-08-11T12:30:17.431456 | 2017-11-13T17:47:35 | 2017-11-13T17:47:35 | 110,581,006 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 665 | java | package com.example.enoch.realmbenchwk.models;
import io.realm.RealmObject;
/**
* Created by mainza1992 on 13/11/2017.
*/
public class Shop extends RealmObject {
String shopName;
String ShopType;
public Shop() {
}
public Shop(String shopName, String shopType) {
this.shopName = shopName;
ShopType = shopType;
}
public String getShopName() {
return shopName;
}
public void setShopName(String shopName) {
this.shopName = shopName;
}
public String getShopType() {
return ShopType;
}
public void setShopType(String shopType) {
ShopType = shopType;
}
}
| [
"Enochmh2@hotmail.com"
] | Enochmh2@hotmail.com |
a8346567caea7ef2d9b0657529852163dbf9ab8a | fb4840a3f75c56049b5bcd3da2318efd9e7c58ac | /src/Chapter1_1_BasicProgrammingModel/Ex31.java | 2296728502f6869a8eecd5b490569dc1e35cbf57 | [] | no_license | Harveybegood/algs4_harvey | ee5236458841e33aa5a4e33fa887b6f802f6621f | efce8db4079141c6aa4cb7f5213178d050ff6ad2 | refs/heads/master | 2023-08-18T18:57:20.905538 | 2021-10-04T04:25:19 | 2021-10-04T04:25:19 | 54,006,574 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,200 | java | package Chapter1_1_BasicProgrammingModel;
import edu.princeton.cs.algs4.StdDraw;
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdRandom;
import java.awt.*;
/*
* Random connections. Write a program that takes as command-line arguments an integer N and a double value p
* (between 0 and 1), plots N equally spaced dots of size .05 on the circumference of a circle, and then, with
* probability p for each pair of points, draws a gray line connecting them.
*
* */
public class Ex31 {
public static void main(String[] args) {
//int N = Integer.parseInt(args[0]);
//double p = Double.parseDouble(args[1]);
/*for (int i = 0; i < N; i++){
plotDots(i);
}*/
int N = 12;
double p = 0.2;
plotDots(N, p);
}
public static void plotDots(int N, double p){
// determine their positions for N equally spaced dots with size of .05
// first step, to assume that the circumference of a circle and then put N equally spaced dots on it.
//double circumference = 2*Math.PI;
double angle = 360;
double[][] point = new double[N][2];
StdDraw.setXscale();
StdDraw.setYscale();
StdDraw.setPenColor(Color.BLUE);
double lengthCircle = .4;
StdDraw.circle(lengthCircle, lengthCircle, .3);
int k = -1;
// separate the angle from N and then draw all these equally spaced dots
for (int i = 0; i < angle; i += angle / N){
double radiant = Math.toRadians(i);
StdOut.println(radiant);
StdDraw.circle(lengthCircle + 0.3 * Math.cos(radiant), lengthCircle + 0.3 * Math.sin(radiant), .01);
k++;
point[k][0] = lengthCircle + 0.3 * Math.cos(radiant);
point[k][1] = lengthCircle + 0.3 * Math.sin(radiant);
}
StdDraw.setPenColor(Color.gray);
//StdDraw.setPenRadius();
for (int i = 0; i < N; i++){
for (int j = i; j < N; j++){
if (StdRandom.bernoulli(p)){
StdDraw.line(point[i][0], point[i][1], point[j][0], point[j][1]);
}
}
}
}
}
| [
"harveymorning@gmail.com"
] | harveymorning@gmail.com |
13b96aca56aca2edd926c75c15730f3035fa8167 | 02461d731477b359d68bd57c79ece840bc4344f4 | /bootcamp/src/main/java/com/project/bootcamp/BootcampApplication.java | 3297126aa4d4e6464fc3e1399fc89eec816db5d3 | [] | no_license | felipemartinsbr/SantanderBootcamp | 910ccb10d1b806bd498ead10ed6afa25082b1aa9 | 177e50ee9d0a3ec8346148e250f6e324a309efd2 | refs/heads/main | 2023-05-25T23:40:29.556428 | 2021-05-31T18:59:50 | 2021-05-31T18:59:50 | 371,351,227 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 863 | java | package com.project.bootcamp;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class BootcampApplication {
public static void main(String[] args) {
SpringApplication.run(BootcampApplication.class, args);
}
@Bean
public OpenAPI customOpenAPI(@Value("${application.description}") String description){
return new OpenAPI().info(new Info()
.title(description)
.version("1.0")
.termsOfService("http://swagger.io/terms")
.license(new License().name("Apache 2.0").url("http://springdoc.org")));
}
}
| [
"felipem.silva@viannasempre.com.br"
] | felipem.silva@viannasempre.com.br |
2515c8071164d9f4d1f0f8a2c77b123e4e86e7b4 | e2419764e64b59764005024acd89b99ac06b1174 | /Collection/src/cn/bjsxt/httpserver/util/CloseUtil.java | de6d1375a9f54cdf8567aa8f69a24229e825230d | [] | no_license | WhiteBrownBottle/BJSXTjava | 42b8780162823e19600eb60eb0bbf04ebd64e52f | 1052a7a6c721a736ddee1e2d979d8fd01905dd25 | refs/heads/master | 2021-06-19T06:33:19.311472 | 2017-07-22T17:37:14 | 2017-07-22T17:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 483 | java | package cn.bjsxt.httpserver.util;
import java.io.Closeable;
import java.io.IOException;
/**
* 关闭流的方法
* Created by BenWhite on 2017/7/1.
*/
public class CloseUtil {
public static void closeAll(Closeable ... io) {
for (Closeable temp : io) {
try {
if(temp != null) {
temp.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
| [
"958255724@qq.com"
] | 958255724@qq.com |
5c6b09fd13af94cbb09acb68777bd3224b875e90 | c4e71f8d33be5c66c1711872598ee24cf077003f | /SmartRunner/app/src/main/java/com/haneoum/smartrunner/setting_listview/Warning.java | 91c9276ab10a4d6b1037fecf2a45f10121aa01e2 | [] | no_license | pinokio531/SmartRunner-android | 200dcf4811c633c899c320df736b61ee51906407 | 5440f2ae2b726acf35b14bad71b025c873fb6dfa | refs/heads/master | 2020-03-22T09:30:34.030872 | 2019-01-12T05:35:20 | 2019-01-12T05:35:20 | 139,842,023 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,699 | java | package com.haneoum.smartrunner.setting_listview;
import android.content.Intent;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.SeekBar;
import android.widget.TextView;
import com.haneoum.smartrunner.R;
import com.haneoum.smartrunner.setting_listview.location.location_settings;
public class Warning extends AppCompatActivity {
//임승섭
MediaPlayer mp;
ListView lV;
String[] warninglist = {"warning horn 1", "warning horn 2", "warning horn 3"};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.warning);
Bundle bundle = getIntent().getExtras();
String text = bundle.getString("경고음 설정");
TextView Tx = (TextView) findViewById(R.id.Text);
Tx.setText(text);
SeekBar seekBar = (SeekBar) findViewById(R.id.seekBar_volume);
final AudioManager audioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
int nMax = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
int nCurrentVolume = audioManager
.getStreamVolume(AudioManager.STREAM_MUSIC);
seekBar.setMax(nMax);
seekBar.setProgress(nCurrentVolume);
seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, i, 0);
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
});
Button button = (Button) findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getApplicationContext(), location_settings.class);
startActivity(intent);
}
});
lV = (ListView) findViewById(R.id.waringlist);
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, warninglist);
lV.setAdapter(arrayAdapter);
lV.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
adapterView.getItemAtPosition(i);
if (i == 0) {
if (mp == null) {
mp = MediaPlayer.create(Warning.this, R.raw.siren);
mp.start();
} else {
PlayStop();
mp = MediaPlayer.create(Warning.this, R.raw.siren);
mp.start();
}
} else if (i == 1) {
if (mp == null) {
mp = MediaPlayer.create(Warning.this, R.raw.abc);
mp.start();
} else {
PlayStop();
mp = MediaPlayer.create(Warning.this, R.raw.abc);
mp.start();
}
} else if (i == 2) {
if (mp == null) {
mp = MediaPlayer.create(Warning.this, R.raw.def);
mp.start();
} else {
PlayStop();
mp = MediaPlayer.create(Warning.this, R.raw.def);
mp.start();
}
}
}
});
}
@Override
public void onBackPressed() {
if (mp.isPlaying() == true) {
PlayStop();
super.onBackPressed();
Intent intent;
intent = new Intent(getParent(), Setting.class);
startActivity(intent);
}
else {
super.onBackPressed();
Intent intent;
intent = new Intent(getParent(), Setting.class);
startActivity(intent);
}
}
public void PlayStop() {
mp.stop();
mp.release();
}
}
| [
""
] | |
1e82989ee115997ac05c3d70c84d349183bacbaf | 1a718e6cf118d34b15f6b5e7a07398a34d732994 | /EncryptZip/src/com/training/demo/Test/ZipFileWithPassword.java | 5245413e4692a0d74e48f10a0a0d836ee15f89e3 | [] | no_license | awei20081/encrypt-zip-as3-java | 6abb329b1f2dffc87eb1ff94f31ad9a8d4046ea7 | 373225bc9be046f445025d610d4c9c85642cd95b | refs/heads/master | 2016-09-16T09:37:25.614180 | 2011-06-29T14:09:30 | 2011-06-29T14:09:30 | 35,593,785 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,276 | java | /**
* Copyright (c) 2009 David Yao (xiang.okay@gmail.com)
* description: Test the function of Encryption and Decrytion the zipfile
* with password
* author: David Yao
* mail: xiang.okay@gmail.com
*/
package com.training.demo.Test;
import java.io.File;
import java.io.IOException;
import com.training.commons.file.FileUtils;
import nochump.util.extend.UnzipFromFlex;
import nochump.util.extend.ZipOutput2Flex;
import org.junit.Test;
public class ZipFileWithPassword {
public static final String zipDir = "C:\\test\\download";
public static final String EncryptZipFile = "C:\\test\\download\\Encrypt.zip";
public static final String password = "David Yao";
@Test
public void TestEncryptZipFile() {
File file = new File(zipDir);
byte[] zipByte = ZipOutput2Flex.getEncryptZipByte(file.listFiles(), password);
FileUtils.writeByteFile(zipByte, new File(EncryptZipFile));
}
@Test
public void TestDecryptZipFile() {
File file = new File(EncryptZipFile);
byte[] zipByte = FileUtils.readFileByte(file);
try {
UnzipFromFlex.unzipFiles(zipByte,password, zipDir);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
| [
"xiang.okay@gmail.com@765f6c85-d70e-0efb-503e-e1a785dd40c0"
] | xiang.okay@gmail.com@765f6c85-d70e-0efb-503e-e1a785dd40c0 |
8aa4ddc6248410c7908fd7c422835e382632b08b | 153891618b90edf64425eb063a0c0fb7cb0003ed | /pet-clinic-data/src/test/java/com/example/petclinic/service/springdatajpa/OwnerSDJpaServiceTest.java | 2b4d2dfb044b15bfaf7efe091275ed5f72cad4e6 | [] | no_license | DaoVuDat/pet-clinic | 52f4f9720c238085f87d9427bd99d12298e3e210 | 9bbab641af2da3e787863e1c5455eee0f0090ba4 | refs/heads/main | 2023-02-16T19:58:18.391773 | 2021-01-04T07:45:41 | 2021-01-04T07:45:41 | 325,729,822 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,039 | java | package com.example.petclinic.service.springdatajpa;
import com.example.petclinic.model.Owner;
import com.example.petclinic.repository.OwnerRepository;
import com.example.petclinic.repository.PetRepository;
import com.example.petclinic.repository.PetTypeRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@ExtendWith(MockitoExtension.class)
class OwnerSDJpaServiceTest {
public static final String SMITH = "Smith";
@Mock
OwnerRepository ownerRepository;
@Mock
PetRepository petRepository;
@Mock
PetTypeRepository petTypeRepository;
@InjectMocks
OwnerSDJpaService ownerSDJpaService;
Owner returnedOwner;
@BeforeEach
void setUp() {
// MockitoAnnotations.openMocks(this);
returnedOwner = Owner.builder().id(1L).lastName(SMITH).build();
}
@Test
void findAll() {
Set<Owner> returnedOwnersSet = new HashSet<>();
returnedOwnersSet.add(Owner.builder().id(1L).build());
returnedOwnersSet.add(Owner.builder().id(2L).build());
when(ownerRepository.findAll()).thenReturn(returnedOwnersSet);
Set<Owner> owners = ownerSDJpaService.findAll();
assertNotNull(owners);
assertEquals(2, owners.size());
}
@Test
void findById() {
when(ownerRepository.findById(anyLong())).thenReturn(Optional.of(returnedOwner));
Owner owner = ownerSDJpaService.findById(1L);
assertNotNull(owner);
}
@Test
void findByIdNotFound() {
when(ownerRepository.findById(anyLong())).thenReturn(Optional.empty());
Owner owner = ownerSDJpaService.findById(1L);
assertNull(owner);
}
@Test
void save() {
Owner ownerToSave = Owner.builder().id(1L).build();
when(ownerRepository.save(ownerToSave)).thenReturn(returnedOwner);
Owner savedOwner = ownerSDJpaService.save(ownerToSave);
assertNotNull(savedOwner);
verify(ownerRepository).save(any());
}
@Test
void delete() {
ownerSDJpaService.delete(returnedOwner);
verify(ownerRepository).delete(any());
}
@Test
void deleteById() {
ownerSDJpaService.deleteById(1L);
verify(ownerRepository).deleteById(anyLong());
}
@Test
void findByLastName() {
when(ownerRepository.findByLastName(any())).thenReturn(returnedOwner);
Owner owner = ownerSDJpaService.findByLastName(SMITH);
assertEquals(SMITH, owner.getLastName());
verify(ownerRepository).findByLastName(any());
}
} | [
"dat.daovu@gmail.com"
] | dat.daovu@gmail.com |
c01241f9366abd38cb5ede9c5ebd0738a2e76f1c | 568a75e1cbdbe73af9177312e8519c419f215a94 | /Day16/代码/2/src/main/java/activity/MainActivity.java | e0814f829c98dae050c077671fdbaf9dff75e4c3 | [] | no_license | daadt/HomeWork | e272e1d4ef7ac41ef7d8272164be3e40bb8fa5ef | 883017ccd098093ae094ac11c70aafd82ef99a62 | refs/heads/master | 2022-11-11T17:54:27.657848 | 2020-06-27T14:42:40 | 2020-06-27T14:42:40 | 268,200,642 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,957 | java | package activity;
import android.widget.Toast;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import com.example.douts.R;
import java.util.ArrayList;
import base.BaseActivity;
import base.CommPagerAdapter;
import bean.MainPageChangeEvent;
import bean.PauseVideoEvent;
import butterknife.BindView;
import fragment.MainFragment;
import fragment.PersonalHomeFragment;
import utils.RxBus;
/**
* create by libo
* create on 2020/5/19
* description 主页面
*/
public class MainActivity extends BaseActivity {
@BindView(R.id.viewpager)
ViewPager viewPager;
private CommPagerAdapter pagerAdapter;
private ArrayList<Fragment> fragments = new ArrayList<>();
public static int curMainPage;
private MainFragment mainFragment = new MainFragment();
private PersonalHomeFragment personalHomeFragment = new PersonalHomeFragment();
/** 上次点击返回键时间 */
private long lastTime;
/** 连续按返回键退出时间 */
private final int EXIT_TIME = 2000;
@Override
protected int setLayoutId() {
return R.layout.activity_main;
}
@Override
protected void init() {
fragments.add(mainFragment);
fragments.add(personalHomeFragment);
pagerAdapter = new CommPagerAdapter(getSupportFragmentManager(), fragments, new String[]{"",""});
viewPager.setAdapter(pagerAdapter);
//点击头像切换页面
RxBus.getDefault().toObservable(MainPageChangeEvent.class)
.subscribe((Action1<MainPageChangeEvent>) event -> {
if (viewPager != null) {
viewPager.setCurrentItem(event.getPage());
}
});
viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
}
@Override
public void onPageSelected(int position) {
curMainPage = position;
if (position == 0) {
RxBus.getDefault().post(new PauseVideoEvent(true));
} else if (position == 1){
RxBus.getDefault().post(new PauseVideoEvent(false));
}
}
@Override
public void onPageScrollStateChanged(int state) {
}
});
}
@Override
public void onBackPressed() {
//双击返回退出App
if (System.currentTimeMillis() - lastTime > EXIT_TIME) {
if (viewPager.getCurrentItem() == 1) {
viewPager.setCurrentItem(0);
}else{
Toast.makeText(getApplicationContext(), "再按一次退出", Toast.LENGTH_SHORT).show();
lastTime = System.currentTimeMillis();
}
} else {
super.onBackPressed();
}
}
}
| [
"floveandroid@sina.com"
] | floveandroid@sina.com |
a27cb9c8609f534c631c298b637e0e6b3d7a9a41 | 09ef2687ffeeca6aeef6f515272ddd5d23e4c980 | /src/main/java/zh/learn/java/ch01inroduction/exercises/PrintTable.java | 9adc6a73bb91621c73cf4438dbe26a92b589da2f | [] | no_license | dzheleznyakov/Learning-Java | c4d9a972ebb43b759aaeefd339567b475260fcef | ce7fa558eb056ea9d6914d3dfd472c95c9fc85c3 | refs/heads/master | 2022-08-15T00:10:25.501464 | 2022-08-04T06:31:02 | 2022-08-04T06:31:02 | 226,674,344 | 0 | 0 | null | 2020-10-13T18:58:38 | 2019-12-08T13:46:07 | Java | UTF-8 | Java | false | false | 433 | java | // chapter 01 exercise 1.4
package zh.learn.java.ch01inroduction.exercises;
public class PrintTable {
public static void main(String[] args) {
System.out.println("a a^2 a^3 a^4");
System.out.println("1 1 1 1");
System.out.println("2 4 8 16");
System.out.println("3 9 27 81");
System.out.println("4 16 64 256");
}
}
| [
"zheleznyakov.dmitry@gmail.com"
] | zheleznyakov.dmitry@gmail.com |
08cc4bda5e8f206554e1cb871bd496f885f592dc | 89f41ae752ee08e1ae64cf122d5335b962af1536 | /sndd/src/main/java/edu/syr/sndd/readData/ReadGSData.java | de93ed3c07c8fd2e3268c0e382bcfadf037efec2 | [] | no_license | ganscholz/SNDD | aa1cf3bcb3df7f4b9787e4db262dd92a77405537 | 9e835ccc85e70dcd11b652cbf68459dcc7aad7ef | refs/heads/master | 2020-12-30T13:29:07.113172 | 2017-06-26T05:13:55 | 2017-06-26T05:13:55 | 91,224,352 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,170 | java | /* (C) 2011 Stoney Q. Gan. All Rights Reserved
This source code is a registered copyright of Stoney Q. Gan.
Access to and copying of this source code is granted by the author provided users cite the web site as a reference.
Modification History
Date Version Author Description
------------------------------------------------------------------------------
2011-07-25 1.0 Stoney Q. Gan Initial Version.
------------------------------------------------------------------------------
*/
package edu.syr.sndd.readData;
/**
*
* @author Stoney Q. Gan
*/
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import edu.syr.sndd.common.util.*;
public class ReadGSData {
/**
* The original GSD data output from the instrument analysis were in Excel format. Consequentally, many of data processing are done with
* MS Excel format. This class reads the data from an MS Excel file into a 2-D array for further processing. Note: the number of columns
* read is defined in the AppConstant.COL_TITLE.
* @param fileName input file name in excel.
* @return double{}{}.
* @throws Exception
*/
public static String [][] readInputData (String fileName) throws Exception {
int numCols = AppConstant.COL_TITLE.length;
String sampleValues[][] = null;
try {
Workbook wb = new XSSFWorkbook(fileName);
Sheet sheet = wb.getSheetAt(0);
Row row;
int i, rows; // No of rows
rows = sheet.getPhysicalNumberOfRows();
System.out.println("this is the number of rows: " + rows);
if (rows < 1){
throw new Exception("This is a blank spreadsheet!");
}
// read the first row for the column titles
i=0;
row = sheet.getRow(i);
if (rows == 1){
throw new Exception("There is no data in this spreadsheet!");
}
sampleValues = new String[rows][numCols];
// read each row, do search and write result to an excel file.
for(int r = 0; r < rows; r++) {
row = sheet.getRow(r);
//System.out.print("this is row: " + r);
if(row != null) {
for (int c = 0; c< numCols; c++) {
sampleValues[r][c] = row.getCell(c).toString();
}
}
}
// do not forget to save and close both input and outfile
//ExcelUtil.writeAndClose();
} catch(Exception ioe) {
throw ioe;
}
return sampleValues;
}
public static void main(String[] args) throws Exception {
String inFileName = "C:\\dropbx\\Dropbox\\Stoney thesis docs\\chapter 2\\results-from-2012-03\\bosumtwi-proc-data.xlsx";
String inputData[][] = ReadGSData.readInputData(inFileName);
/*
int R = inputData.length;
int C = inputData[0].length;
for (int i = 1; i< R; i++){
for (int j =0; j< C ; j++) {
System.out.print(inputData[i][j] + " ");
}
System.out.println();
}
*/
}
}
| [
"sgan@syr.edu"
] | sgan@syr.edu |
50095d1a80fdfb7a50875e372cc1d546db7fa01d | 924905abd4ccf86c56ea89774a1a3e96837fbb09 | /src/main/java/leetcode/SumTree.java | 56285e62c4ace039f8d4de9a7beb7c5a4b49bc5a | [] | no_license | tejas1996/CompetitiveCoding | a224cf8d5806ed06d7e12b5a7cccff3025ced1e2 | 81f62a44dcc5be32ddbbdc03bee3bbe9ad3249fe | refs/heads/master | 2022-01-17T22:00:12.252681 | 2019-06-23T18:15:23 | 2019-06-23T18:15:23 | 114,524,166 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,499 | java | package leetcode;
public class SumTree {
public static void main(String[] args) {
TreeNode root = formTree();
bstToGst(root);
}
public static TreeNode bstToGst(TreeNode node) {
helper(node, 0);
System.out.println("root");
return node;
}
private static int helper(TreeNode node, int sum) {
if (node.left == null && node.right == null) {
int temp = node.val;
node.val = node.val + sum;
return temp;
}
int temp = node.val;
int right = 0, left = 0;
if (node.right != null) {
right = helper(node.right, sum);
}
node.val = node.val + right + sum;
if (node.left != null) {
left = helper(node.left, node.val);
}
return temp + left + right;
}
private static TreeNode formTree() {
TreeNode four = new TreeNode(4);
TreeNode six = new TreeNode(6);
TreeNode five = new TreeNode(5);
TreeNode seven = new TreeNode(7);
TreeNode eight = new TreeNode(8);
TreeNode one = new TreeNode(1);
TreeNode zero = new TreeNode(0);
TreeNode two = new TreeNode(2);
TreeNode three = new TreeNode(3);
four.right = six;
six.left = five;
six.right = seven;
seven.right = eight;
four.left = one;
one.right = two;
two.right = three;
one.left = zero;
return four;
}
}
| [
"tejas.dond@ves.ac.in"
] | tejas.dond@ves.ac.in |
3489b6b62c569033d67b1aef3d2d14abf849c6b7 | 63985d4451a102a9ee0f7d060c51ef551ad34bee | /src/vista/VistaAltaUsuario.java | 3eb26f69018835a678cf028cccb2ebfd171bec11 | [] | no_license | davidJavac/halcones_diarios | 9253a4d533ade4098ffa95b59eb76356985db13d | 6dddb28db1440f5982f4a34e38ffaec7178bcd28 | refs/heads/master | 2020-03-30T15:30:00.298451 | 2018-10-03T14:31:51 | 2018-10-03T14:31:51 | 151,366,074 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 93 | java | package vista;
import javax.swing.JPanel;
public class VistaAltaUsuario extends JPanel{
}
| [
"david.abramovich84@gmail.com"
] | david.abramovich84@gmail.com |
6a197b55b62deffbe6978713d9558cf900941118 | b545fe87a6823d27a2321c4c7414217327620515 | /gmall-user-manage/src/main/java/com/atguigu/gmall/gmallusermanage/service/impl/UserInfoServiceImpl.java | a9ea49ed918fa0284d970f75c202f5a81ea6f3dd | [] | no_license | Daniel19911009/gmall | 56aac73378961e5a61d25c24d9e65bf1c3f15959 | 7ae1758bf1f960ecf912b4fb2d03e35c2d8c66b5 | refs/heads/master | 2020-07-18T11:22:47.036435 | 2019-09-05T02:38:14 | 2019-09-05T02:38:14 | 206,236,441 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,614 | java | package com.atguigu.gmall.gmallusermanage.service.impl;
import com.atguigu.gmall.gmallusermanage.entity.UserInfo;
import com.atguigu.gmall.gmallusermanage.mapper.UserInfoMapper;
import com.atguigu.gmall.gmallusermanage.service.UserInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;
import java.util.List;
/**
* @author Daniel
* @create 2019--09--04--13:45
* @Description:
*/
@Service
@Slf4j
public class UserInfoServiceImpl implements UserInfoService {
@Autowired
private UserInfoMapper userInfoMapper;
@Override
public List<UserInfo> getUserInfoListAll() {
log.error("人生无常!!!!");
System.out.println("及时行乐!!!");
return userInfoMapper.selectAll();
}
@Override
public void addUser(UserInfo userInfo) {
userInfoMapper.insertSelective(userInfo);
}
@Override
public void updateUser(UserInfo userInfo) {
userInfoMapper.updateByPrimaryKeySelective(userInfo);
}
@Override
public void updateUserByName(String name, UserInfo userInfo) {
Example example = new Example(UserInfo.class);
example.createCriteria().andEqualTo("loginName",name);
userInfoMapper.updateByExampleSelective(userInfo,example);
}
@Override
public void delUser(String id) {
userInfoMapper.deleteByPrimaryKey(id);
}
@Override
public UserInfo getUserInfoById(String id) {
return userInfoMapper.selectByPrimaryKey(id);
}
}
| [
"939774887@qq.com"
] | 939774887@qq.com |
db34da1645155fa7add220e1f15ec05ffa872e3e | 5fb078ad77ff8a6389f5f90410a6d6ef17a37b12 | /src/main/java/com/WubbaLubbaDrive/Models/UserNote.java | 0e2b91db9a7b0c65dcf67320d42d3198fbb6e08d | [] | no_license | ahmedkorani/WubbaLubbaDrive | 07e63525758313defe4a7caa79e1e39386acc75f | 5b03d9cb91dfcc509fe2a0774cd2d2684d7020df | refs/heads/master | 2023-04-06T16:24:25.127315 | 2021-04-16T03:44:04 | 2021-04-16T03:44:04 | 358,467,062 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 63 | java | package com.WubbaLubbaDrive.Models;
public class UserNote {
}
| [
"ahmedmk1812@gmail.com"
] | ahmedmk1812@gmail.com |
4c1a59545f885d657ba1ae9e66125c2f82dbf5b2 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /java/neo4j/2015/12/MessageProcessingCallback.java | 237a389c879e7df20106fc31846853cab9c8c55e | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Java | false | false | 3,873 | java | /*
* Copyright (c) 2002-2015 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.bolt.v1.messaging.msgprocess;
import java.io.IOException;
import java.util.Collections;
import java.util.Map;
import org.neo4j.logging.Log;
import org.neo4j.bolt.v1.messaging.MessageHandler;
import org.neo4j.bolt.v1.runtime.Session;
import org.neo4j.bolt.v1.runtime.internal.Neo4jError;
public class MessageProcessingCallback<T> extends Session.Callback.Adapter<T,Void>
{
// TODO: move this somewhere more sane (when modules are unified)
public static void publishError( MessageHandler<IOException> out, Neo4jError error )
throws IOException
{
if ( error.status().code().classification().publishable() )
{
// If publishable, we forward the message as-is to the user.
out.handleFailureMessage( error.status(), error.message() );
}
else
{
// If not publishable, we only return an error reference to the user. This must
// be cross-referenced with the log files for full error detail. This feature
// exists to improve security so that sensitive information is not leaked.
out.handleFailureMessage( error.status(), String.format(
"An unexpected failure occurred, see details in the database " +
"logs, reference number %s.", error.reference() ) );
}
}
protected final Log log;
protected MessageHandler<IOException> out;
private Neo4jError error;
private Runnable onCompleted;
private boolean ignored;
public MessageProcessingCallback( Log logger )
{
this.log = logger;
}
public MessageProcessingCallback reset(
MessageHandler<IOException> out,
Runnable onCompleted )
{
this.out = out;
this.onCompleted = onCompleted;
clearState();
return this;
}
@Override
public void failure( Neo4jError err, Void none )
{
this.error = err;
}
@Override
public void ignored( Void none )
{
this.ignored = true;
}
@Override
public void completed( Void none )
{
try
{
if ( ignored )
{
out.handleIgnoredMessage();
}
else if ( error != null )
{
publishError( out, error );
}
else
{
out.handleSuccessMessage( successMetadata() );
}
}
catch ( Throwable e )
{
// TODO: we've lost the ability to communicate with the client. Shut down the session, close transactions.
log.error( "Failed to write response to driver", e );
}
finally
{
onCompleted.run();
clearState();
}
}
/** Allow sub-classes to override this to provide custom metadata */
protected Map<String,Object> successMetadata()
{
return Collections.emptyMap();
}
protected void clearState()
{
error = null;
ignored = false;
}
}
| [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
d64876e34199f622661dd63e7b87973cafa51def | 0ed34325a47f71e5fa963afeb906753f1c1726e1 | /src/views/ReadQRViews.java | 7a4e230a078e9a18eb7f103c8d7753d69addb525 | [] | no_license | chrisjoohn/attendance-system | e56d3be913b5d625d61d32712b47fb68983b98c8 | 6a66119295df586aa16c739b5d28b428fc59e4e9 | refs/heads/master | 2020-07-07T15:43:06.811973 | 2019-08-20T14:35:17 | 2019-08-20T14:35:17 | 200,231,447 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,226 | java | package views;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.image.BufferedImage;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import javax.swing.*;
import javax.swing.event.DocumentListener;
import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamPanel;
import com.github.sarxos.webcam.WebcamResolution;
import com.google.zxing.BinaryBitmap;
import com.google.zxing.LuminanceSource;
import com.google.zxing.MultiFormatReader;
import com.google.zxing.NotFoundException;
import com.google.zxing.Result;
import com.google.zxing.client.j2se.BufferedImageLuminanceSource;
import com.google.zxing.common.HybridBinarizer;
public class ReadQRViews extends JFrame implements Runnable, ThreadFactory {
private static final long serialVersionUID = 6441489157408381878L;
private Executor executor = Executors.newSingleThreadExecutor(this);
private Webcam webcam = null;
private WebcamPanel panel = null;
public JTextArea textarea, name;
public ReadQRViews() {
super();
setLayout(new FlowLayout());
// setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Dimension size = WebcamResolution.QVGA.getSize();
webcam = Webcam.getDefault();
webcam.setViewSize(size);
panel = new WebcamPanel(webcam);
panel.setPreferredSize(size);
panel.setFPSDisplayed(true);
textarea = new JTextArea();
// textarea.setEditable(false);
// textarea.setPreferredSize(size);
name = new JTextArea();
name.setEditable(false);
name.setPreferredSize(size);
add(panel);
// add(textarea);
add(name);
pack();
setLocationRelativeTo(null);
// setVisible(true);
executor.execute(this);
}
@Override
public void run() {
do {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
Result result = null;
BufferedImage image = null;
if (webcam.isOpen()) {
if ((image = webcam.getImage()) == null) {
continue;
}
LuminanceSource source = new BufferedImageLuminanceSource(image);
BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
try {
result = new MultiFormatReader().decode(bitmap);
} catch (NotFoundException e) {
// fall thru, it means there is no QR code in image
}
}
if (result != null) {
if(!textarea.getText().equals(result.getText())) {
textarea.setText(result.getText());
}
}
} while (true);
}
public void textFieldListener(DocumentListener change) {
this.textarea.getDocument().addDocumentListener(change);
}
@Override
public Thread newThread(Runnable r) {
Thread t = new Thread(r, "example-runner");
t.setDaemon(true);
return t;
}
}
| [
"cj@cj.workspace"
] | cj@cj.workspace |
fff26b4c03d106443e6c4e0fa87b446030c331d2 | 94122c95265bd0d5050548de511816f1930e3f85 | /addressbook/src/util/DataUtil.java | 73b09509a5b1f1c8e32a15a4467043f5b5708f60 | [] | no_license | rain-fog/addressbook | 306fc4daed43b492307be10ce7abce3b27a2b6ea | 0b4d7a71ca464d9e47fe53b06de2bcfea49cf759 | refs/heads/master | 2016-09-06T12:51:25.174729 | 2013-05-08T16:14:10 | 2013-05-08T16:14:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,497 | java | package util;
/**
* データユーティリティクラス
* @author shin
*
*/
public class DataUtil {
/**
* モード値を取得する。
* 適切な入力値でない場合は-1を返す。
* @param token 入力された文字列
* @return モード値。何も入力されていない、もしくは数値に変換
* 出来ない場合は-1を返す。
*/
public static int getMode(String input) {
String[] token = input.split(" ");
if (token.length == 0) {
return -1;
}
try {
Integer.parseInt(token[0]);
} catch (NumberFormatException e) {
return -1;
}
return Integer.parseInt(token[0]);
}
/**
* 名前に数値が含まれているかどうかチェックする。
* @param name 名前
* @return 名前に数値が含まれていなければtrue
*/
public static boolean checkName(String name) {
if (name.matches("\\d+")) {
return false;
}
return true;
}
/**
* 郵便番号が3桁-4桁、または7桁かチェックする。
* @param zip 郵便番号
* @return 郵便番号が正しければtrue
*/
public static boolean checkZip(String zip) {
if (zip.matches("\\d{3}-?\\d{4}")) {
return true;
}
return false;
}
/**
* 郵便番号が3桁-4桁の場合ハイフンを除く。
* @param zip 郵便番号
* @return ハイフンを除いた7桁の郵便番号。
* ハイフンなし7桁の場合は渡された郵便番号をそのまま返す。
* @throws IlleagalArgumentException - 郵便番号の値が正しくない場合
*/
public static String removeHyphen(String zip) {
if (!checkZip(zip)) {
throw new IllegalArgumentException("郵便番号の形式が正しくありません");
}
String[] token = zip.split("-");
String afterZip = "";
for (String str : token) {
afterZip += str;
}
return afterZip;
}
/**
* 7桁の郵便番号を3桁-4桁の形に変換する。
* @param zip 7桁の郵便番号
* @return 3桁-4桁の形式の郵便番号
*/
public static String addHyphen(String zip) {
if (zip == null) {
throw new NullPointerException("郵便番号の値がnullです");
} else if (!checkZip(zip)){
throw new IllegalArgumentException("郵便番号の形式が正しくありません");
}
String first = zip.substring(0, 3);
String latter = zip.substring(3);
String hyphenExistZip = first + "-" + latter;
return hyphenExistZip;
}
}
| [
"uno.threemouth@gmail.com"
] | uno.threemouth@gmail.com |
f569143c025671aee5d612d3644b526b0c60738c | 6798809bcb0db48e0094642ed776b0f95ed3d80c | /tests/semicolonexpected/NoSemicolonToSeparateStatements.java | 2b732a390304c49c7dbfd822041b5fd91e8b7720 | [] | no_license | thatsmydoing/javach | 8320142a170c5f80f8e1e09eb1d7c5b07d17083b | 0b59273a2886bc3f7ce92752332da291dcbfdf60 | refs/heads/master | 2021-01-22T02:04:40.265018 | 2012-06-06T07:40:15 | 2012-06-06T07:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 152 | java | public class NoSemicolonToSeparateStatements {
public static void main(String[] args) {
String out = "Hello World!" System.out.println(out);
}
} | [
"thomas@.home"
] | thomas@.home |
f454f98f6c7331a1aca73e0798823be8585d151b | 8ef9128df2f4523591a89221fac01c705156f00a | /PageObjectModel/src/test/java/com/crm/qa/testcases/LoginPageTest.java | 4333be31d3783dbe86d0b1c61aa00742b292bf43 | [] | no_license | Sanjee27/Office-Project | 2739bae9f734a03f655cfd8492011e7014a40585 | 67a7315ad63a9f0b6f2cd2e8e8b20ad6ca9de498 | refs/heads/master | 2023-05-11T19:43:56.364169 | 2019-08-22T09:36:53 | 2019-08-22T09:36:53 | 150,700,875 | 0 | 0 | null | 2023-05-09T18:13:07 | 2018-09-28T07:16:07 | HTML | UTF-8 | Java | false | false | 914 | java | package com.crm.qa.testcases;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.crm.qa.base.TestBase;
import com.crm.qa.pages.HomePage;
import com.crm.qa.pages.LoginPage;
public class LoginPageTest extends TestBase{
LoginPage loginpage;
HomePage homepage;
public LoginPageTest(){
super();
}
@BeforeMethod
public void setUp(){
initialization();
loginpage=new LoginPage();
}
@Test(priority=1)
public void loginPageTitleTest(){
String title=loginpage.ValidateLoginPageTitle();
Assert.assertEquals(title, "CRM");
}
@Test(priority=2)
public void loginTest(){
homepage=loginpage.login(prop.getProperty("username"), prop.getProperty("password"));
}
@AfterMethod
public void tearDown(){
driver.quit();
}
}
| [
"sanjeeban.deb@innoraft.com"
] | sanjeeban.deb@innoraft.com |
6af4ea2bfb38af42fb618002608c71ef1078f844 | 310c0b531c81154eb9385ef48ceafa6d506d48f1 | /Exercicio04_ListaDuplamenteEncadeadaCircular/Main.java | cbaa099de8b00d96c42b9e5be9f396a537afea58 | [
"MIT"
] | permissive | Jownao/EstruturaDeDados2021-1 | afb935ec6fe4af7b534544aa8b3c3325bb2cf4a9 | 1ce8f4910851cb8fda3fd5023d32f4031a0d4579 | refs/heads/main | 2023-05-07T10:24:39.481844 | 2021-06-01T04:22:50 | 2021-06-01T04:22:50 | 351,608,537 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,778 | java | package Exercicio04_ListaDuplamenteEncadeadaCircular;
import Exercicio03_ListaDuplamenteEncadeada.Aluno;
import Exercicio04_ListaDuplamenteEncadeadaCircular.ListaDuplaCircular;
public class Main {
public static void main(String[] args) {
//Estanciando alunos
Aluno a1 = new Aluno("Johnny", 40);
Aluno a2 = new Aluno("Paulo", 19);
Aluno a3 = new Aluno("Luiz", 19);
Aluno a4 = new Aluno("Gustavo", 20);
Aluno a5 = new Aluno("Vinicius", 19);
Aluno a6 = new Aluno("Augusto", 19);
Aluno a7 = new Aluno("Paul", 19);
//Criando a Lista Encadeada
ListaDuplaCircular<Aluno> lista = new ListaDuplaCircular<Aluno>();
//Adicionando Alunos no inicio da lista
lista.adicionaInicio(a1);
lista.adicionaInicio(a2);
lista.adicionaInicio(a3);
lista.adicionaInicio(a3);
lista.removerDuplos();
//Printando lista de Alunos
a1 = (Aluno) lista.Recupera(0);
a2 = (Aluno) lista.Recupera(1);
a3 = (Aluno) lista.Recupera(2);
// a4 = (Aluno) lista.Recupera(3);
System.out.println(a1.getNome());
System.out.println(a2.getNome());
System.out.println(a3.getNome());
// System.out.println(a4.getNome());
System.out.println("-".repeat(100));
// Removendo Aluno que esta no inicio
// lista.removeFim();
//
// //Printando lista de Alunos
// a1 = (Aluno) lista.Recupera(0);
// a2 = (Aluno) lista.Recupera(1);
// System.out.println(a1.getNome());
// System.out.println(a2.getNome());
// System.out.println("-".repeat(100));
}
}
| [
"50759662+Jownao@users.noreply.github.com"
] | 50759662+Jownao@users.noreply.github.com |
3a48a95a3330176cd937536b8685d30e32c8dfee | 21ac7ea72e8afb8502df15db36a5fedbfa95c812 | /taobao-dao/src/main/java/com/taobao/store/mapper/PersonMapper.java | 2e1bcf378a4cd08025541b1204c02862486cc6c3 | [] | no_license | szucielgp/store-taobao | 2a907debe9818967d5d009bc6863c5bfb15f7aa5 | 3356336bc6af27069c108b8243be554eeca183c3 | refs/heads/master | 2021-01-19T03:30:49.106536 | 2017-08-01T10:01:44 | 2017-08-01T10:01:44 | 87,321,205 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 309 | java | package com.taobao.store.mapper;
import com.taobao.store.pojo.Person;
import org.apache.ibatis.annotations.Param;
/**
* Created by kd_gavin on 2017/4/6,15:15.
*
* @dicription
*/
public interface PersonMapper {
Person selectByPrimaryKey(@Param("dbid") String dbid, @Param("openId") String openId);
}
| [
"gavin_lu@kingdee.com"
] | gavin_lu@kingdee.com |
3555cf4c32c2ab05e6f28442b4a7805cf50fe20b | 7647dee16c7f31b4245774c4f03409cd39c9de41 | /app/src/java/is203/se/Entity/BootstrapError.java | c26e4524ec52e8fd1c0c70bc4a8d882fe0f8ae84 | [] | no_license | randallh95/proto | cd73746514cf3b754b0d4169bb3322810a505b8a | d0193124b9b46c0238746bc7ecd4536897dee9aa | refs/heads/master | 2021-07-12T07:05:09.196042 | 2017-10-13T07:57:41 | 2017-10-13T07:57:41 | 105,674,457 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,360 | java | package is203.se.Entity;
import java.util.ArrayList;
public class BootstrapError {
private String fileName; // the name of the .csv file where this error was found
private int rowNum; // the row number of the error
private ArrayList<String> errorMsgList;
public BootstrapError(String fileName, int rowNum) {
this.fileName = fileName;
this.rowNum = rowNum;
errorMsgList = new ArrayList<>();
}
public void addErrorMsg(String errorMsg) {
errorMsgList.add(errorMsg);
}
public void addErrorMsgList(ArrayList<String> errorMsgList) {
this.errorMsgList = errorMsgList;
}
public String getFileName() {
return fileName;
}
public int getRowNum() {
return rowNum;
}
public ArrayList<String> getErrorMsgList() {
return errorMsgList;
}
public boolean hasNoErrors() {
return errorMsgList.isEmpty();
}
@Override
public String toString() {
String result = "";
int errorMsgListLength = errorMsgList.size();
for (int i = 0; i < errorMsgListLength; i++) {
if (i == errorMsgListLength - 1) {
result += errorMsgList.get(i);
} else {
result += errorMsgList.get(i) + ", ";
}
}
return result;
}
}
| [
"randallheng.2016@smu.edu.sg"
] | randallheng.2016@smu.edu.sg |
c2d74c2551d878a52ec2f1d7a93b37f6a8a8df98 | e35635eb5626aab2e42be3112ffca2ce56dd7016 | /WebmasterV6/src/com/boatsoft/common/VO.java | 206b03430dee6769d6d3113454c557c4c7561d79 | [] | no_license | alucard2501/WebmasterV6 | e0277b0ecaa1fe2b7f4bef22c93cb0412877f5f8 | 5fa47967945ca3338af544b2c34746896cd88430 | refs/heads/master | 2021-09-02T14:46:33.901091 | 2018-01-03T08:36:41 | 2018-01-03T08:36:41 | 115,324,264 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,084 | java | package com.boatsoft.common;
import java.util.ArrayList;
public class VO {
public String RequestAction="NONE";
public String TableName="";
public int id=0;
private ArrayList<MListItem> PropertyList;
public VO(){
PropertyList=new ArrayList<MListItem>();
}
public VO(String action){
this.RequestAction=action;
PropertyList=new ArrayList<MListItem>();
}
public Object getProperty(String key){
for(MListItem item:this.PropertyList){
if(item.getKey().equals(key)){
return item.getValue();
}
}
return null;
}
public Object getProperty(int index){
if(index>=this.PropertyList.size())return null;
return this.PropertyList.get(index).getValue();
}
public String getPropertyName(int index){
if(index>=this.PropertyList.size())return null;
return this.PropertyList.get(index).getKey();
}
public int PropertySize(){
return this.PropertyList.size();
}
public void setProperty(String key, String value) {
// TODO Auto-generated method stub
this.PropertyList.add(new MListItem(key,value));
}
}
| [
"413993822@qq.com"
] | 413993822@qq.com |
f6f809a8343f5e1d0810c805513eb699e5b4fe91 | 8af1164bac943cef64e41bae312223c3c0e38114 | /results-java/JetBrains--intellij-community/09145f30990d13c32f1bdbdb276e78fd84685b8d/before/ExtractClassTest.java | 856cc76c884584fbb37de621ee2bea54ae58e818 | [] | no_license | fracz/refactor-extractor | 3ae45c97cc63f26d5cb8b92003b12f74cc9973a9 | dd5e82bfcc376e74a99e18c2bf54c95676914272 | refs/heads/master | 2021-01-19T06:50:08.211003 | 2018-11-30T13:00:57 | 2018-11-30T13:00:57 | 87,353,478 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,965 | java | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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.
*/
/*
* User: anna
* Date: 20-Aug-2008
*/
package com.intellij.refactoring;
import com.intellij.JavaTestUtil;
import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiField;
import com.intellij.psi.PsiMethod;
import com.intellij.psi.PsiModifier;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.refactoring.extractclass.ExtractClassProcessor;
import com.intellij.refactoring.util.classMembers.MemberInfo;
import junit.framework.Assert;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.TreeSet;
public class ExtractClassTest extends MultiFileTestCase{
@NotNull
@Override
protected String getTestRoot() {
return "/refactoring/extractClass/";
}
@Override
protected String getTestDataPath() {
return JavaTestUtil.getJavaTestDataPath();
}
private void doTestMethod() throws Exception {
doTestMethod(null);
}
private void doTestMethod(String conflicts) throws Exception {
doTestMethod("foo", conflicts);
}
private void doTestMethod(final String methodName, final String conflicts) throws Exception {
doTestMethod(methodName, conflicts, "Test");
}
private void doTestMethod(final String methodName,
final String conflicts,
final String qualifiedName) throws Exception {
doTest(new PerformAction() {
@Override
public void performAction(final VirtualFile rootDir, final VirtualFile rootAfter) throws Exception {
PsiClass aClass = myJavaFacade.findClass(qualifiedName, GlobalSearchScope.projectScope(myProject));
assertNotNull("Class Test not found", aClass);
final ArrayList<PsiMethod> methods = new ArrayList<PsiMethod>();
methods.add(aClass.findMethodsByName(methodName, false)[0]);
doTest(aClass, methods, new ArrayList<PsiField>(), conflicts, false);
}
});
}
public void testStatic() throws Exception {
doTestMethod();
}
public void testStaticImport() throws Exception {
doTestMethod();
}
public void testFieldReference() throws Exception {
doTestMethod("foo", "Field 'myField' needs getter");
}
public void testVarargs() throws Exception {
doTestMethod();
}
public void testNoDelegation() throws Exception {
doTestMethod();
}
public void testNoFieldDelegation() throws Exception {
doTestFieldAndMethod();
}
public void testFieldInitializers() throws Exception {
doTestField(null);
}
public void testDependantFieldInitializers() throws Exception {
doTestField(null);
}
public void testDependantNonStaticFieldInitializers() throws Exception {
doTestField(null, true);
}
public void testInheritanceDelegation() throws Exception {
doTestMethod();
}
public void testEnumSwitch() throws Exception {
doTestMethod();
}
public void testImplicitReferenceTypeParameters() throws Exception {
doTestMethod();
}
public void testStaticImports() throws Exception {
doTestMethod("foo", null, "foo.Test");
}
public void testNoConstructorParams() throws Exception {
doTestFieldAndMethod();
}
public void testConstructorParams() throws Exception {
doTestFieldAndMethod();
}
private void doTestFieldAndMethod() throws Exception {
doTestFieldAndMethod("bar");
}
public void testInnerClassRefs() throws Exception {
doTestInnerClass();
}
private void doTestFieldAndMethod(final String methodName) throws Exception {
doTest(new PerformAction() {
@Override
public void performAction(final VirtualFile rootDir, final VirtualFile rootAfter) throws Exception {
PsiClass aClass = myJavaFacade.findClass("Test", GlobalSearchScope.projectScope(myProject));
assertNotNull("Class Test not found", aClass);
final ArrayList<PsiMethod> methods = new ArrayList<PsiMethod>();
methods.add(aClass.findMethodsByName(methodName, false)[0]);
final ArrayList<PsiField> fields = new ArrayList<PsiField>();
fields.add(aClass.findFieldByName("myT", false));
doTest(aClass, methods, fields, null, false);
}
});
}
private void doTestField(final String conflicts) throws Exception {
doTestField(conflicts, false);
}
private void doTestField(final String conflicts, final boolean generateGettersSetters) throws Exception {
doTest(new PerformAction() {
@Override
public void performAction(final VirtualFile rootDir, final VirtualFile rootAfter) throws Exception {
PsiClass aClass = myJavaFacade.findClass("Test", GlobalSearchScope.projectScope(myProject));
assertNotNull("Class Test not found", aClass);
final ArrayList<PsiMethod> methods = new ArrayList<PsiMethod>();
final ArrayList<PsiField> fields = new ArrayList<PsiField>();
fields.add(aClass.findFieldByName("myT", false));
doTest(aClass, methods, fields, conflicts, generateGettersSetters);
}
});
}
private static void doTest(final PsiClass aClass, final ArrayList<PsiMethod> methods, final ArrayList<PsiField> fields, final String conflicts,
boolean generateGettersSetters) {
try {
ExtractClassProcessor processor = new ExtractClassProcessor(aClass, fields, methods, new ArrayList<PsiClass>(), StringUtil.getPackageName(aClass.getQualifiedName()), null,
"Extracted", null, generateGettersSetters, Collections.<MemberInfo>emptyList());
processor.run();
LocalFileSystem.getInstance().refresh(false);
FileDocumentManager.getInstance().saveAllDocuments();
}
catch (BaseRefactoringProcessor.ConflictsInTestsException e) {
if (conflicts != null) {
TreeSet expectedConflictsSet = new TreeSet(Arrays.asList(conflicts.split("\n")));
TreeSet actualConflictsSet = new TreeSet(Arrays.asList(e.getMessage().split("\n")));
Assert.assertEquals(expectedConflictsSet, actualConflictsSet);
return;
} else {
fail(e.getMessage());
}
}
if (conflicts != null) {
fail("Conflicts were not detected: " + conflicts);
}
}
public void testGenerateGetters() throws Exception {
doTestField(null, true);
}
public void testIncrementDecrement() throws Exception {
doTestField(null, true);
}
public void testGetters() throws Exception {
doTestFieldAndMethod("getMyT");
}
public void testHierarchy() throws Exception {
doTestFieldAndMethod();
}
public void testPublicFieldDelegation() throws Exception {
doTest(new PerformAction() {
@Override
public void performAction(final VirtualFile rootDir, final VirtualFile rootAfter) throws Exception {
PsiClass aClass = myJavaFacade.findClass("Test", GlobalSearchScope.projectScope(myProject));
assertNotNull("Class Test not found", aClass);
final ArrayList<PsiField> fields = new ArrayList<PsiField>();
fields.add(aClass.findFieldByName("myT", false));
ExtractClassProcessor processor = new ExtractClassProcessor(aClass, fields, new ArrayList<PsiMethod>(), new ArrayList<PsiClass>(), "", "Extracted");
processor.run();
LocalFileSystem.getInstance().refresh(false);
FileDocumentManager.getInstance().saveAllDocuments();
}
});
}
private void doTestInnerClass() throws Exception {
doTest(new PerformAction() {
@Override
public void performAction(final VirtualFile rootDir, final VirtualFile rootAfter) throws Exception {
PsiClass aClass = myJavaFacade.findClass("Test", GlobalSearchScope.projectScope(myProject));
assertNotNull("Class Test not found", aClass);
final ArrayList<PsiClass> classes = new ArrayList<PsiClass>();
classes.add(aClass.findInnerClassByName("Inner", false));
ExtractClassProcessor processor = new ExtractClassProcessor(aClass, new ArrayList<PsiField>(), new ArrayList<PsiMethod>(), classes, "", "Extracted");
processor.run();
LocalFileSystem.getInstance().refresh(false);
FileDocumentManager.getInstance().saveAllDocuments();
}
});
}
public void testInner() throws Exception {
doTestInnerClass();
}
public void testMultipleGetters() throws Exception {
doTestField("Field 'myT' needs getter");
}
public void testMultipleGetters1() throws Exception {
doTestMethod("getMyT", "Field 'myT' needs getter");
}
public void testUsedInInitializer() throws Exception {
doTestField("Field 'myT' needs setter\n" +
"Field 'myT' needs getter\n" +
"Class initializer requires moved members");
}
public void testUsedInConstructor() throws Exception {
doTestField("Field 'myT' needs getter\n" +
"Field 'myT' needs setter\n" +
"Constructor requires moved members");
}
public void testRefInJavadoc() throws Exception {
doTestField(null);
}
public void testMethodTypeParameters() throws Exception {
doTestMethod();
}
public void testPublicVisibility() throws Exception {
doTest(new PerformAction() {
@Override
public void performAction(final VirtualFile rootDir, final VirtualFile rootAfter) throws Exception {
PsiClass aClass = myJavaFacade.findClass("Test", GlobalSearchScope.projectScope(myProject));
assertNotNull("Class Test not found", aClass);
final ArrayList<PsiMethod> methods = new ArrayList<PsiMethod>();
methods.add(aClass.findMethodsByName("foos", false)[0]);
final ArrayList<PsiField> fields = new ArrayList<PsiField>();
fields.add(aClass.findFieldByName("myT", false));
final ExtractClassProcessor processor =
new ExtractClassProcessor(aClass, fields, methods, new ArrayList<PsiClass>(), "", null, "Extracted", PsiModifier.PUBLIC, false, Collections.<MemberInfo>emptyList());
processor.run();
LocalFileSystem.getInstance().refresh(false);
FileDocumentManager.getInstance().saveAllDocuments();
}
});
}
} | [
"fraczwojciech@gmail.com"
] | fraczwojciech@gmail.com |
1e7a4c6f1900ec0e715a3f2e5ecbf7cb2111451c | ff90717e060a2aafec3b099e709085116fcbe866 | /org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslLexer.java | 1e876183112bb6b42eccdb0c68e14bbd80d1b2a3 | [] | no_license | trileude/IMSE | 60a8c80fcb672388efcb3c0ef315d10b53a0a84f | 1c3751d97932f509a981f5916b5bc07aba5b56cf | refs/heads/master | 2021-01-22T09:48:09.071588 | 2013-12-16T12:40:12 | 2013-12-16T12:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 36,206 | java | package org.xtext.example.mydsl.parser.antlr.internal;
// Hack: Use our own Lexer superclass by means of import.
// Currently there is no other way to specify the superclass for the lexer.
import org.eclipse.xtext.parser.antlr.Lexer;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
@SuppressWarnings("all")
public class InternalMyDslLexer extends Lexer {
public static final int RULE_ID=4;
public static final int RULE_STRING=6;
public static final int T__16=16;
public static final int T__15=15;
public static final int T__17=17;
public static final int T__12=12;
public static final int T__11=11;
public static final int T__14=14;
public static final int T__13=13;
public static final int RULE_ANY_OTHER=10;
public static final int RULE_INT=5;
public static final int RULE_WS=9;
public static final int RULE_SL_COMMENT=8;
public static final int EOF=-1;
public static final int RULE_ML_COMMENT=7;
// delegates
// delegators
public InternalMyDslLexer() {;}
public InternalMyDslLexer(CharStream input) {
this(input, new RecognizerSharedState());
}
public InternalMyDslLexer(CharStream input, RecognizerSharedState state) {
super(input,state);
}
public String getGrammarFileName() { return "../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g"; }
// $ANTLR start "T__11"
public final void mT__11() throws RecognitionException {
try {
int _type = T__11;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:11:7: ( ':' )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:11:9: ':'
{
match(':');
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "T__11"
// $ANTLR start "T__12"
public final void mT__12() throws RecognitionException {
try {
int _type = T__12;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:12:7: ( '!' )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:12:9: '!'
{
match('!');
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "T__12"
// $ANTLR start "T__13"
public final void mT__13() throws RecognitionException {
try {
int _type = T__13;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:13:7: ( 'Radio' )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:13:9: 'Radio'
{
match("Radio");
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "T__13"
// $ANTLR start "T__14"
public final void mT__14() throws RecognitionException {
try {
int _type = T__14;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:14:7: ( 'Text' )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:14:9: 'Text'
{
match("Text");
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "T__14"
// $ANTLR start "T__15"
public final void mT__15() throws RecognitionException {
try {
int _type = T__15;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:15:7: ( 'TextArea' )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:15:9: 'TextArea'
{
match("TextArea");
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "T__15"
// $ANTLR start "T__16"
public final void mT__16() throws RecognitionException {
try {
int _type = T__16;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:16:7: ( 'DropDown' )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:16:9: 'DropDown'
{
match("DropDown");
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "T__16"
// $ANTLR start "T__17"
public final void mT__17() throws RecognitionException {
try {
int _type = T__17;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:17:7: ( 'CheckBox' )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:17:9: 'CheckBox'
{
match("CheckBox");
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "T__17"
// $ANTLR start "RULE_ID"
public final void mRULE_ID() throws RecognitionException {
try {
int _type = RULE_ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:225:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:225:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
{
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:225:11: ( '^' )?
int alt1=2;
int LA1_0 = input.LA(1);
if ( (LA1_0=='^') ) {
alt1=1;
}
switch (alt1) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:225:11: '^'
{
match('^');
}
break;
}
if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;}
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:225:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
loop2:
do {
int alt2=2;
int LA2_0 = input.LA(1);
if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {
alt2=1;
}
switch (alt2) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:
{
if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;}
}
break;
default :
break loop2;
}
} while (true);
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "RULE_ID"
// $ANTLR start "RULE_INT"
public final void mRULE_INT() throws RecognitionException {
try {
int _type = RULE_INT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:227:10: ( ( '0' .. '9' )+ )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:227:12: ( '0' .. '9' )+
{
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:227:12: ( '0' .. '9' )+
int cnt3=0;
loop3:
do {
int alt3=2;
int LA3_0 = input.LA(1);
if ( ((LA3_0>='0' && LA3_0<='9')) ) {
alt3=1;
}
switch (alt3) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:227:13: '0' .. '9'
{
matchRange('0','9');
}
break;
default :
if ( cnt3 >= 1 ) break loop3;
EarlyExitException eee =
new EarlyExitException(3, input);
throw eee;
}
cnt3++;
} while (true);
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "RULE_INT"
// $ANTLR start "RULE_STRING"
public final void mRULE_STRING() throws RecognitionException {
try {
int _type = RULE_STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
{
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
int alt6=2;
int LA6_0 = input.LA(1);
if ( (LA6_0=='\"') ) {
alt6=1;
}
else if ( (LA6_0=='\'') ) {
alt6=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 6, 0, input);
throw nvae;
}
switch (alt6) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
{
match('\"');
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
loop4:
do {
int alt4=3;
int LA4_0 = input.LA(1);
if ( (LA4_0=='\\') ) {
alt4=1;
}
else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) {
alt4=2;
}
switch (alt4) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
{
match('\\');
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;}
}
break;
case 2 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:66: ~ ( ( '\\\\' | '\"' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;}
}
break;
default :
break loop4;
}
} while (true);
match('\"');
}
break;
case 2 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
{
match('\'');
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
loop5:
do {
int alt5=3;
int LA5_0 = input.LA(1);
if ( (LA5_0=='\\') ) {
alt5=1;
}
else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) {
alt5=2;
}
switch (alt5) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:92: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
{
match('\\');
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;}
}
break;
case 2 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:229:137: ~ ( ( '\\\\' | '\\'' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;}
}
break;
default :
break loop5;
}
} while (true);
match('\'');
}
break;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "RULE_STRING"
// $ANTLR start "RULE_ML_COMMENT"
public final void mRULE_ML_COMMENT() throws RecognitionException {
try {
int _type = RULE_ML_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:231:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:231:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:231:24: ( options {greedy=false; } : . )*
loop7:
do {
int alt7=2;
int LA7_0 = input.LA(1);
if ( (LA7_0=='*') ) {
int LA7_1 = input.LA(2);
if ( (LA7_1=='/') ) {
alt7=2;
}
else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) {
alt7=1;
}
}
else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) {
alt7=1;
}
switch (alt7) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:231:52: .
{
matchAny();
}
break;
default :
break loop7;
}
} while (true);
match("*/");
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "RULE_ML_COMMENT"
// $ANTLR start "RULE_SL_COMMENT"
public final void mRULE_SL_COMMENT() throws RecognitionException {
try {
int _type = RULE_SL_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:233:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:233:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
{
match("//");
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:233:24: (~ ( ( '\\n' | '\\r' ) ) )*
loop8:
do {
int alt8=2;
int LA8_0 = input.LA(1);
if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) {
alt8=1;
}
switch (alt8) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:233:24: ~ ( ( '\\n' | '\\r' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;}
}
break;
default :
break loop8;
}
} while (true);
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:233:40: ( ( '\\r' )? '\\n' )?
int alt10=2;
int LA10_0 = input.LA(1);
if ( (LA10_0=='\n'||LA10_0=='\r') ) {
alt10=1;
}
switch (alt10) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:233:41: ( '\\r' )? '\\n'
{
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:233:41: ( '\\r' )?
int alt9=2;
int LA9_0 = input.LA(1);
if ( (LA9_0=='\r') ) {
alt9=1;
}
switch (alt9) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:233:41: '\\r'
{
match('\r');
}
break;
}
match('\n');
}
break;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "RULE_SL_COMMENT"
// $ANTLR start "RULE_WS"
public final void mRULE_WS() throws RecognitionException {
try {
int _type = RULE_WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:235:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:235:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:235:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt11=0;
loop11:
do {
int alt11=2;
int LA11_0 = input.LA(1);
if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) {
alt11=1;
}
switch (alt11) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:
{
if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;}
}
break;
default :
if ( cnt11 >= 1 ) break loop11;
EarlyExitException eee =
new EarlyExitException(11, input);
throw eee;
}
cnt11++;
} while (true);
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "RULE_WS"
// $ANTLR start "RULE_ANY_OTHER"
public final void mRULE_ANY_OTHER() throws RecognitionException {
try {
int _type = RULE_ANY_OTHER;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:237:16: ( . )
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:237:18: .
{
matchAny();
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
// $ANTLR end "RULE_ANY_OTHER"
public void mTokens() throws RecognitionException {
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:8: ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
int alt12=14;
alt12 = dfa12.predict(input);
switch (alt12) {
case 1 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:10: T__11
{
mT__11();
}
break;
case 2 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:16: T__12
{
mT__12();
}
break;
case 3 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:22: T__13
{
mT__13();
}
break;
case 4 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:28: T__14
{
mT__14();
}
break;
case 5 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:34: T__15
{
mT__15();
}
break;
case 6 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:40: T__16
{
mT__16();
}
break;
case 7 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:46: T__17
{
mT__17();
}
break;
case 8 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:52: RULE_ID
{
mRULE_ID();
}
break;
case 9 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:60: RULE_INT
{
mRULE_INT();
}
break;
case 10 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:69: RULE_STRING
{
mRULE_STRING();
}
break;
case 11 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:81: RULE_ML_COMMENT
{
mRULE_ML_COMMENT();
}
break;
case 12 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:97: RULE_SL_COMMENT
{
mRULE_SL_COMMENT();
}
break;
case 13 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:113: RULE_WS
{
mRULE_WS();
}
break;
case 14 :
// ../org.xtext.mapping.dsl/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDsl.g:1:121: RULE_ANY_OTHER
{
mRULE_ANY_OTHER();
}
break;
}
}
protected DFA12 dfa12 = new DFA12(this);
static final String DFA12_eotS =
"\3\uffff\4\22\1\16\2\uffff\3\16\4\uffff\1\22\1\uffff\3\22\5\uffff"+
"\5\22\1\45\2\22\1\50\1\22\1\uffff\2\22\1\uffff\6\22\1\62\1\63\1"+
"\64\3\uffff";
static final String DFA12_eofS =
"\65\uffff";
static final String DFA12_minS =
"\1\0\2\uffff\1\141\1\145\1\162\1\150\1\101\2\uffff\2\0\1\52\4\uffff"+
"\1\144\1\uffff\1\170\1\157\1\145\5\uffff\1\151\1\164\1\160\1\143"+
"\1\157\1\60\1\104\1\153\1\60\1\162\1\uffff\1\157\1\102\1\uffff\1"+
"\145\1\167\1\157\1\141\1\156\1\170\3\60\3\uffff";
static final String DFA12_maxS =
"\1\uffff\2\uffff\1\141\1\145\1\162\1\150\1\172\2\uffff\2\uffff\1"+
"\57\4\uffff\1\144\1\uffff\1\170\1\157\1\145\5\uffff\1\151\1\164"+
"\1\160\1\143\1\157\1\172\1\104\1\153\1\172\1\162\1\uffff\1\157\1"+
"\102\1\uffff\1\145\1\167\1\157\1\141\1\156\1\170\3\172\3\uffff";
static final String DFA12_acceptS =
"\1\uffff\1\1\1\2\5\uffff\1\10\1\11\3\uffff\1\15\1\16\1\1\1\2\1\uffff"+
"\1\10\3\uffff\1\11\1\12\1\13\1\14\1\15\12\uffff\1\4\2\uffff\1\3"+
"\11\uffff\1\5\1\6\1\7";
static final String DFA12_specialS =
"\1\0\11\uffff\1\2\1\1\51\uffff}>";
static final String[] DFA12_transitionS = {
"\11\16\2\15\2\16\1\15\22\16\1\15\1\2\1\12\4\16\1\13\7\16\1\14"+
"\12\11\1\1\6\16\2\10\1\6\1\5\15\10\1\3\1\10\1\4\6\10\3\16\1"+
"\7\1\10\1\16\32\10\uff85\16",
"",
"",
"\1\21",
"\1\23",
"\1\24",
"\1\25",
"\32\22\4\uffff\1\22\1\uffff\32\22",
"",
"",
"\0\27",
"\0\27",
"\1\30\4\uffff\1\31",
"",
"",
"",
"",
"\1\33",
"",
"\1\34",
"\1\35",
"\1\36",
"",
"",
"",
"",
"",
"\1\37",
"\1\40",
"\1\41",
"\1\42",
"\1\43",
"\12\22\7\uffff\1\44\31\22\4\uffff\1\22\1\uffff\32\22",
"\1\46",
"\1\47",
"\12\22\7\uffff\32\22\4\uffff\1\22\1\uffff\32\22",
"\1\51",
"",
"\1\52",
"\1\53",
"",
"\1\54",
"\1\55",
"\1\56",
"\1\57",
"\1\60",
"\1\61",
"\12\22\7\uffff\32\22\4\uffff\1\22\1\uffff\32\22",
"\12\22\7\uffff\32\22\4\uffff\1\22\1\uffff\32\22",
"\12\22\7\uffff\32\22\4\uffff\1\22\1\uffff\32\22",
"",
"",
""
};
static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS);
static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS);
static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS);
static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS);
static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS);
static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS);
static final short[][] DFA12_transition;
static {
int numStates = DFA12_transitionS.length;
DFA12_transition = new short[numStates][];
for (int i=0; i<numStates; i++) {
DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]);
}
}
class DFA12 extends DFA {
public DFA12(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 12;
this.eot = DFA12_eot;
this.eof = DFA12_eof;
this.min = DFA12_min;
this.max = DFA12_max;
this.accept = DFA12_accept;
this.special = DFA12_special;
this.transition = DFA12_transition;
}
public String getDescription() {
return "1:1: Tokens : ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );";
}
public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
IntStream input = _input;
int _s = s;
switch ( s ) {
case 0 :
int LA12_0 = input.LA(1);
s = -1;
if ( (LA12_0==':') ) {s = 1;}
else if ( (LA12_0=='!') ) {s = 2;}
else if ( (LA12_0=='R') ) {s = 3;}
else if ( (LA12_0=='T') ) {s = 4;}
else if ( (LA12_0=='D') ) {s = 5;}
else if ( (LA12_0=='C') ) {s = 6;}
else if ( (LA12_0=='^') ) {s = 7;}
else if ( ((LA12_0>='A' && LA12_0<='B')||(LA12_0>='E' && LA12_0<='Q')||LA12_0=='S'||(LA12_0>='U' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='z')) ) {s = 8;}
else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 9;}
else if ( (LA12_0=='\"') ) {s = 10;}
else if ( (LA12_0=='\'') ) {s = 11;}
else if ( (LA12_0=='/') ) {s = 12;}
else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 13;}
else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||(LA12_0>='#' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='.')||(LA12_0>=';' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||(LA12_0>='{' && LA12_0<='\uFFFF')) ) {s = 14;}
if ( s>=0 ) return s;
break;
case 1 :
int LA12_11 = input.LA(1);
s = -1;
if ( ((LA12_11>='\u0000' && LA12_11<='\uFFFF')) ) {s = 23;}
else s = 14;
if ( s>=0 ) return s;
break;
case 2 :
int LA12_10 = input.LA(1);
s = -1;
if ( ((LA12_10>='\u0000' && LA12_10<='\uFFFF')) ) {s = 23;}
else s = 14;
if ( s>=0 ) return s;
break;
}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 12, _s, input);
error(nvae);
throw nvae;
}
}
} | [
"manu@manu-linux.(none)"
] | manu@manu-linux.(none) |
3724bc1e1326b575c4b713ed656a5c4327a3f3bb | 7875546b3c70d1f8662b9a855485c9791d56341d | /api/src/main/java/shop/jinwookoh/api/security/config/WebSecurityConfig.java | a01cc3ae51e623fb8f37cc50d0fad2640c1ffade | [] | no_license | wlsdnr4675/TEAM_PROJECT | 948b07ac54d084076eca6f29df7f23c20f5957ac | c39233d25389c08acb1ea69cdcb289bbb1d5ee93 | refs/heads/main | 2023-06-05T15:03:35.242216 | 2021-06-27T08:59:17 | 2021-06-27T08:59:17 | 365,939,763 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,726 | java | package shop.jinwookoh.api.security.config;
import shop.jinwookoh.api.security.domain.SecurityProvider;
import lombok.RequiredArgsConstructor;
import org.modelmapper.ModelMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
@Configuration // 인터셉터
@EnableWebSecurity
@RequiredArgsConstructor
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
private final SecurityProvider provider;
@Bean
PasswordEncoder passwordEncoder() {
return new BCryptPasswordEncoder();
}
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
return super.authenticationManagerBean();
}
@Bean
public ModelMapper modelMapper() {
return new ModelMapper();
}
@Override // 오버라이드 할때 열쇠있는걸로 오버라이드해야한다.
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable(); // csrf 기능 비활성화
http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
http.authorizeRequests().antMatchers("/artists/signin").permitAll().antMatchers("/artists/signup").permitAll()
.antMatchers("/artists/findAll").permitAll().antMatchers("/h2-console/**/**").permitAll()
.antMatchers("/artists/{artistId}").permitAll().antMatchers("/artists/update/{artistId}").permitAll()
.antMatchers("/resume/**/**").permitAll().antMatchers("/resume_file/**/**").permitAll()
.antMatchers("/category/**/**").permitAll()
.anyRequest().authenticated();
http.exceptionHandling().accessDeniedPage("/login");
http.apply(new SecurityConfig(provider));
}
@Override
public void configure(WebSecurity web) throws Exception {
web.ignoring().antMatchers(HttpMethod.OPTIONS, "/*/**") // 모든 곳에서 접속
.antMatchers("/", "/h2-console/**");
}
} | [
"wlsdnr4675@gmail.com"
] | wlsdnr4675@gmail.com |
2d6ae2d61a413aa029ed359183dad445f263bb91 | d815bf4787aa5c3f0799576b0bf18ff2bab0585b | /src/main/java/world/ucode/pojo/Registration.java | 52b2c2fa203ce28f3345f0dfe1a2dabb91568bf4 | [] | no_license | OlgaLopushanska/ubay | e79027dca4bac067f4596ab04f703fbf429f4a86 | bfacb5c5c0c449840713ac4d76dbe7ca81b377fe | refs/heads/main | 2023-04-04T22:57:17.378397 | 2021-04-08T19:51:19 | 2021-04-08T19:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,378 | java | package world.ucode.pojo;
import javax.persistence.*;
import java.security.SecureRandom;
import java.sql.SQLTransactionRollbackException;
@Entity
@Table(name = "Registration")
public class Registration {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
@Column(name = "Id", updatable = false, nullable = false)
private int id;
@Column(name = "login", nullable = false)
private String login;
@Column(name = "password", nullable = false)
private String password;
@Column(name = "role", nullable = false)
private String role;
@Column(name = "state", updatable = true)
private String state;
@Column(name = "IPadress", updatable = true)
private String IPadress;
@Column(name = "email", nullable = false, updatable = true)
private String email;
@Column(name = "hash", nullable = false, updatable = true)
private int hash;
public Registration(){}
public Registration(int id, String login, String password, String role, String state, String IPadress, String email,
int hash){
this.id = id;
this.login = login;
this.password = password;
this.role = role;
this.state = state;
this.IPadress = IPadress;
this.email = email;
this.hash = hash;
}
public int getId(){
return id;
}
public void setId(int id){
this.id = id;
}
public String getLogin(){
return login;
}
public String getPassword(){
return password;
}
public String getRole(){
return role;
}
public String getState() {
return state;
}
public String getIPadress() {
return IPadress;
}
public String getEmail() {
return email;
}
public int getHash() {
return hash;
}
public void setLogin(String login){
this.login = login;
}
public void setPassword(String password){
this.password = password;
}
public void setRole(String role){
this.role = role;
}
public void setState(String state) {
this.state = state;
}
public void setIPadress(String iPadress) {
this.IPadress = iPadress;
}
public void setEmail(String email) {
this.email = email;
}
public void setHash(int hash) {
this.hash = hash;
}
}
| [
"onlyonekissforme@gmail.com"
] | onlyonekissforme@gmail.com |
9eb7d1bfee2a0d4867aa0551dde672f355bd2ef6 | 162592581fedc5b1e47c9b44aa09e0febec4c194 | /network/src/main/java/com/shenkai/network/errorhandler/HttpErrorHandler.java | f9ed00ad0daa072c09affc924586770dc7f98612 | [] | no_license | conquerSK/JetpackMvvm | 6d0fcc7b835b7cec9ab95442956592396220d587 | 4e8d8cd56c321212ebd5ca251173d62d55c2afba | refs/heads/master | 2020-09-11T22:42:39.786533 | 2020-04-23T06:25:37 | 2020-04-23T06:25:37 | 222,214,718 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 671 | java | package com.shenkai.network.errorhandler;
import io.reactivex.Observable;
import io.reactivex.functions.Function;
/**
* Author:shenkai
* Time:2020/4/23 13:29
* Description:
* HttpResponseFunc处理以下两类网络错误:
* 1、http请求相关的错误,例如:404,403,socket timeout等等;
* 2、应用数据的错误会抛RuntimeException,最后也会走到这个函数来统一处理;
*/
public class HttpErrorHandler<T> implements Function<Throwable, Observable<T>> {
@Override
public Observable<T> apply(Throwable throwable) throws Exception {
return Observable.error(ExceptionHandle.handleException(throwable));
}
}
| [
"shenk@galanz.com"
] | shenk@galanz.com |
b23c81afc3301ed17431916cf17846ce91654096 | 30ad2a73c1858fdaa2acddbcded39192780965cd | /src/main/java/com/involucionados/modelo/entidades/Rol.java | 88f5f3e8fd355d79e0d762a7f07ca29518c86127 | [] | no_license | cristobalcifuentes/ProyectoFinalAwakelab | 588ed32a02a13a843b9e75136528321cab0a94a6 | a46be76fb79f084120555971ffa0cac6e2286cef | refs/heads/master | 2022-12-14T22:30:22.534896 | 2020-08-03T21:23:57 | 2020-08-03T21:23:57 | 282,069,867 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,102 | java | package com.involucionados.modelo.entidades;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
@Entity
@Table(name="Rol")
public class Rol {
@Id
@GeneratedValue(generator="autoincrementID")
@SequenceGenerator(name="autoincrementID",sequenceName="SEC_ROL", allocationSize=1)
@Column(name="ID")
private int id;
@Column(name="ROL")
private String rol;
@OneToMany(mappedBy="rol")
private List<Usuario> usuarios;
public Rol() {
super();
}
public Rol(int id, String rol) {
super();
this.id = id;
this.rol = rol;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getRol() {
return rol;
}
public void setRol(String rol) {
this.rol = rol;
}
public List<Usuario> getUsuarios() {
return usuarios;
}
public void setUsuarios(List<Usuario> usuarios) {
this.usuarios = usuarios;
}
}
| [
"Gerald@DESKTOP-9L3AH2H"
] | Gerald@DESKTOP-9L3AH2H |
73690700e3561c32070c146aeff0666f2ce7bb3a | 4e059afed4008148457f3bc1fc14368cf19878b9 | /Node.java | 0612213ab67403441cf84488730c333b0dbacf61 | [] | no_license | rachelizabeth92/NewmanRachelH4 | 3ad202c27a95a56cd82bb82268e1fc2f6f395aec | 6027e839abe35815449d1ac5e820c9cfdc40376c | refs/heads/master | 2021-01-18T16:18:51.084565 | 2017-04-10T01:07:38 | 2017-04-10T01:07:38 | 86,735,337 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 858 | java | public class Node
{
private String element;
private Node next;
private Node prev;
public Node(String element)
{
this.element = element;
this.next = null;
this.prev = null;
}
//methods
public void setNext(Node node)
{
this.next = node;
}
public Node getNext()
{
return this.next;
}
public void setPrev(Node node)
{
this.prev = node;
}
public Node getPrev()
{
return this.prev;
}
public String getElem()
{
return this.element;
}
} | [
"rnewman@albany.edu"
] | rnewman@albany.edu |
ef01bc6cf196b4a5eacaa62528ec7a8216d00180 | 5707536bdaffe1c0de2abfa838111cabb287c452 | /components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authz/validators/ResponseTypeRequestValidator.java | 36b833ea1501cf8430ad04f35d71876e03475440 | [
"Apache-2.0"
] | permissive | wso2-extensions/identity-inbound-auth-oauth | 1ea5481d0595e56fdf972c1bc6e6bd1c61bd7d82 | d153b3dd2ae065df135566cb6e8951ac8c1a8645 | refs/heads/master | 2023-09-01T08:58:09.127138 | 2023-09-01T05:37:33 | 2023-09-01T05:37:33 | 52,758,721 | 28 | 410 | Apache-2.0 | 2023-09-14T12:13:20 | 2016-02-29T02:41:06 | Java | UTF-8 | Java | false | false | 1,987 | java | /*
* Copyright (c) 2022, WSO2 Inc. (http://www.wso2.com).
*
* WSO2 Inc. 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.wso2.carbon.identity.oauth2.authz.validators;
import org.wso2.carbon.identity.oauth.common.exception.InvalidOAuthRequestException;
import org.wso2.carbon.identity.oauth2.dto.OAuth2ClientValidationResponseDTO;
import javax.servlet.http.HttpServletRequest;
/**
* Validator interface for OAuth 2 response types. This will validate the inputs from the client.
*/
public interface ResponseTypeRequestValidator {
/**
* Get the response type.
*
* @return Response type.
*/
String getResponseType();
/**
* Check Whether the provided inputs from the client satisfy the response type validation
*
* @param request The HttpServletRequest front the client.
* @throws InvalidOAuthRequestException InvalidOAuthRequestException.
*/
void validateInputParameters(HttpServletRequest request) throws InvalidOAuthRequestException;
/**
* Check Whether the provided client information satisfy the response type validation
*
* @param request The HttpServletRequest front the client.
* @return <code>OAuth2ClientValidationResponseDTO</code> bean with validity information,
* callback, App Name, Error Code and Error Message when appropriate.
*/
OAuth2ClientValidationResponseDTO validateClientInfo(HttpServletRequest request);
}
| [
"senthalank@gmail.com"
] | senthalank@gmail.com |
9fd8e6d0560e9ac7df884f20be86e18fce512562 | c58830ca182253e1fe11305ab861dc26db085751 | /aventurasGraficas/src-gen/ar/edu/unq/aventuraGrafica/impl/RecogerObjetoImpl.java | 1ea8a4619ea8cea993a4b20f02dde7ffb12a2dc8 | [] | no_license | camilagarcia113/xtext-dsl-obj3 | 2e135e565a301ef9ec899bfd89c76838e3ffa8e6 | cb44c141c8484aa46bb572a8402be178b1d41003 | refs/heads/master | 2021-01-17T19:25:59.385417 | 2016-07-27T01:32:11 | 2016-07-27T01:32:11 | 64,266,748 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,751 | java | /**
*/
package ar.edu.unq.aventuraGrafica.impl;
import ar.edu.unq.aventuraGrafica.AventuraGraficaPackage;
import ar.edu.unq.aventuraGrafica.Objeto;
import ar.edu.unq.aventuraGrafica.RecogerObjeto;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Recoger Objeto</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link ar.edu.unq.aventuraGrafica.impl.RecogerObjetoImpl#getObjeto <em>Objeto</em>}</li>
* </ul>
*
* @generated
*/
public class RecogerObjetoImpl extends ComandoImpl implements RecogerObjeto
{
/**
* The cached value of the '{@link #getObjeto() <em>Objeto</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getObjeto()
* @generated
* @ordered
*/
protected Objeto objeto;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected RecogerObjetoImpl()
{
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass()
{
return AventuraGraficaPackage.Literals.RECOGER_OBJETO;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Objeto getObjeto()
{
if (objeto != null && objeto.eIsProxy())
{
InternalEObject oldObjeto = (InternalEObject)objeto;
objeto = (Objeto)eResolveProxy(oldObjeto);
if (objeto != oldObjeto)
{
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, AventuraGraficaPackage.RECOGER_OBJETO__OBJETO, oldObjeto, objeto));
}
}
return objeto;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Objeto basicGetObjeto()
{
return objeto;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setObjeto(Objeto newObjeto)
{
Objeto oldObjeto = objeto;
objeto = newObjeto;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AventuraGraficaPackage.RECOGER_OBJETO__OBJETO, oldObjeto, objeto));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case AventuraGraficaPackage.RECOGER_OBJETO__OBJETO:
if (resolve) return getObjeto();
return basicGetObjeto();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case AventuraGraficaPackage.RECOGER_OBJETO__OBJETO:
setObjeto((Objeto)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case AventuraGraficaPackage.RECOGER_OBJETO__OBJETO:
setObjeto((Objeto)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case AventuraGraficaPackage.RECOGER_OBJETO__OBJETO:
return objeto != null;
}
return super.eIsSet(featureID);
}
} //RecogerObjetoImpl
| [
"camilagarcia.113@gmail.com"
] | camilagarcia.113@gmail.com |
674b60f04c4209b5f0af3158e1ff04d1a9c3ef50 | 25fba3f7dc18e0d684c1162643d77db795f5b129 | /src/main/java/org/sblim/cimclient/internal/cimxml/CIMClientXML_HelperImpl.java | 7d594d520b81f7d62cf21fcc1c14506be3aefd46 | [] | no_license | lkx007/sblim-cim-client2 | c0fb1eb1d4bb9a4a8fe8be25a6197ac01d5462c1 | 5fbf0c281cbbe9d52e4d9c8cf18bfcd2a09946f7 | refs/heads/main | 2023-02-11T08:36:38.568797 | 2018-11-16T03:54:40 | 2018-11-16T03:54:40 | 327,822,545 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 97,555 | java | /**
* (C) Copyright IBM Corp. 2005, 2013
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
* CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
*
* You can obtain a current copy of the Eclipse Public License from
* http://www.opensource.org/licenses/eclipse-1.0.php
*
* @author : Roberto Pineiro, IBM, roberto.pineiro@us.ibm.com
* @author : Chung-hao Tan, IBM, chungtan@us.ibm.com
*
*
* Change History
* Flag Date Prog Description
*-------------------------------------------------------------------------------
* 13521 2004-11-26 thschaef XML Request Composition for static method call is wrong
* 18075 2005-08-11 pineiro5 Can not use method CIMClient.invokeMethod
* 1535756 2006-08-07 lupusalex Make code warning free
* 1365086 2006-10-25 ebak Possible bug in createQualifier
* 1565892 2006-11-16 lupusalex Make SBLIM client JSR48 compliant
* 1610046 2006-12-18 lupusalex Does not escape trailing spaces <KEYVALUE>
* 1610046 2007-01-10 lupusalex Rework: Does not escape trailing spaces <KEYVALUE>
* 1649611 2007-01-31 lupusalex Interop issue: Quotes not escaped by client
* 1671502 2007-02-28 lupusalex Remove dependency from Xerces
* 1660756 2007-03-02 ebak Embedded object support
* 1689085 2007-04-10 ebak Embedded object enhancements for Pegasus
* 1669961 2006-04-16 lupusalex CIMTypedElement.getType() =>getDataType()
* 1715027 2007-05-08 lupusalex Make message id random
* 1719991 2007-05-16 ebak FVT: regression ClassCastException in EmbObjHandler
* 1734888 2007-06-11 ebak Wrong reference building in METHODCALL request
* 1827728 2007-11-12 ebak embeddedInstances: attribute EmbeddedObject not set
* 1827728 2007-11-20 ebak rework: embeddedInstances: attribute EmbeddedObject not set
* 2003590 2008-06-30 blaschke-oss Change licensing from CPL to EPL
* 2204488 2008-10-28 raman_arora Fix code to remove compiler warnings
* 2524131 2009-01-21 raman_arora Upgrade client to JDK 1.5 (Phase 1)
* 2531371 2009-02-10 raman_arora Upgrade client to JDK 1.5 (Phase 2)
* 2763216 2009-04-14 blaschke-oss Code cleanup: visible spelling/grammar errors
* 2797550 2009-06-01 raman_arora JSR48 compliance - add Java Generics
* 2845211 2009-08-27 raman_arora Pull Enumeration Feature (SAX Parser)
* 2865222 2009-09-29 raman_arora enumerateQualifierTypes shouldn't require a class name
* 2858933 2009-10-12 raman_arora JSR48 new APIs: associatorClasses & associatorInstances
* 2886829 2009-11-18 raman_arora JSR48 new APIs: referenceClasses & referenceInstances
* 2944219 2010-02-05 blaschke-oss Problem with pull operations using client against EMC CIMOM
* 3027479 2010-07-09 blaschke-oss Dead store to local variable
* 3062747 2010-09-21 blaschke-oss SblimCIMClient does not log all CIM-XML responces.
* 3514537 2012-04-03 blaschke-oss TCK: execQueryInstances requires boolean, not Boolean
* 3521119 2012-04-24 blaschke-oss JSR48 1.0.0: remove CIMObjectPath 2/3/4-parm ctors
* 3527580 2012-05-17 blaschke-oss WBEMClient should not throw IllegalArgumentException
* 3601894 2013-01-23 blaschke-oss Enhance HTTP and CIM-XML tracing
* 2616 2013-02-23 blaschke-oss Add new API WBEMClientSBLIM.sendIndication()
* 2689 2013-10-10 blaschke-oss createMETHODCALL should not add PARAMTYPE attribute
*/
package org.sblim.cimclient.internal.cimxml;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;
import java.util.Random;
import java.util.Vector;
import javax.cim.CIMArgument;
import javax.cim.CIMClass;
import javax.cim.CIMDataType;
import javax.cim.CIMInstance;
import javax.cim.CIMNamedElementInterface;
import javax.cim.CIMObjectPath;
import javax.cim.CIMProperty;
import javax.cim.CIMQualifierType;
import javax.cim.CIMValuedElement;
import javax.cim.UnsignedInteger32;
import javax.wbem.WBEMException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.sblim.cimclient.internal.logging.TimeStamp;
import org.sblim.cimclient.internal.util.MOF;
import org.sblim.cimclient.internal.wbem.CIMError;
import org.sblim.cimclient.internal.wbem.operations.CIMAssociatorNamesOp;
import org.sblim.cimclient.internal.wbem.operations.CIMAssociatorsOp;
import org.sblim.cimclient.internal.wbem.operations.CIMCreateClassOp;
import org.sblim.cimclient.internal.wbem.operations.CIMCreateInstanceOp;
import org.sblim.cimclient.internal.wbem.operations.CIMCreateNameSpaceOp;
import org.sblim.cimclient.internal.wbem.operations.CIMCreateQualifierTypeOp;
import org.sblim.cimclient.internal.wbem.operations.CIMDeleteClassOp;
import org.sblim.cimclient.internal.wbem.operations.CIMDeleteInstanceOp;
import org.sblim.cimclient.internal.wbem.operations.CIMDeleteQualifierTypeOp;
import org.sblim.cimclient.internal.wbem.operations.CIMEnumClassNamesOp;
import org.sblim.cimclient.internal.wbem.operations.CIMEnumClassesOp;
import org.sblim.cimclient.internal.wbem.operations.CIMEnumInstanceNamesOp;
import org.sblim.cimclient.internal.wbem.operations.CIMEnumInstancesOp;
import org.sblim.cimclient.internal.wbem.operations.CIMEnumNameSpaceOp;
import org.sblim.cimclient.internal.wbem.operations.CIMEnumQualifierTypesOp;
import org.sblim.cimclient.internal.wbem.operations.CIMExecQueryOp;
import org.sblim.cimclient.internal.wbem.operations.CIMGetClassOp;
import org.sblim.cimclient.internal.wbem.operations.CIMGetInstanceOp;
import org.sblim.cimclient.internal.wbem.operations.CIMGetPropertyOp;
import org.sblim.cimclient.internal.wbem.operations.CIMGetQualifierTypeOp;
import org.sblim.cimclient.internal.wbem.operations.CIMInvokeMethodOp;
import org.sblim.cimclient.internal.wbem.operations.CIMOperation;
import org.sblim.cimclient.internal.wbem.operations.CIMReferenceNamesOp;
import org.sblim.cimclient.internal.wbem.operations.CIMReferencesOp;
import org.sblim.cimclient.internal.wbem.operations.CIMSetClassOp;
import org.sblim.cimclient.internal.wbem.operations.CIMSetInstanceOp;
import org.sblim.cimclient.internal.wbem.operations.CIMSetPropertyOp;
import org.sblim.cimclient.internal.wbem.operations.CIMSetQualifierTypeOp;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
/**
* Class CIMClientXML_HelperImpl is responsible for building CIM-XML requests
* and responses.
*/
public class CIMClientXML_HelperImpl {
private static class Counter {
private int iCounter;
protected Counter(int pCounter) {
this.iCounter = pCounter;
}
protected int incrementAndGet() {
return ++this.iCounter;
}
}
private static final String VERSION = "1.0";
private static final String ASSOCIATOR_NAMES = "AssociatorNames";
// Pull Enumeration variables
private static final String ASSOC_CLASS = "AssocClass";
private static final String CLASS_NAME = "ClassName";
private static final String CONTINUE_ON_ERROR = "ContinueOnError";
private static final String DEEP_INHERITANCE = "DeepInheritance";
private static final String ENUMERATION_CONTEXT = "EnumerationContext";
private static final String FILTER_QUERY_LANGUAGE = "FilterQueryLanguage";
private static final String FILTER_QUERY = "FilterQuery";
private static final String INCLUDE_CLASS_ORIGIN = "IncludeClassOrigin";
private static final String INSTANCE_NAME = "InstanceName";
private static final String MAX_OBJECT_COUNT = "MaxObjectCount";
private static final String PROPERTY_LIST = "PropertyList";
private static final String OPERATION_TIMEOUT = "OperationTimeout";
private static final String RESULT_CLASS = "ResultClass";
private static final String RETURN_QUERY_RESULT_CLASS = "ReturnQueryResultClass";
private static final String QUERY_RESULT_CLASS = "QueryResultClass";
private static final String ROLE = "Role";
private static final String RESULT_ROLE = "ResultRole";
private static final Random RANDOM = new Random();
private static final int MAX_ID = 1 << 20;
private final ThreadLocal<Counter> iCurrentId = new ThreadLocal<Counter>();
private final DocumentBuilder iBuilder;
private static String valueStr(CIMValuedElement<?> pE) {
Object o = pE.getValue();
return o == null ? MOF.NULL : o.toString();
}
/**
* Ctor.
*
* @throws ParserConfigurationException
*/
public CIMClientXML_HelperImpl() throws ParserConfigurationException {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
this.iBuilder = factory.newDocumentBuilder();
}
/**
* getDocumentBuilder
*
* @return DocumentBuilder
*/
public DocumentBuilder getDocumentBuilder() {
return this.iBuilder;
}
/**
* newDocument
*
* @return Document
*/
public Document newDocument() {
return this.iBuilder.newDocument();
}
/**
* parse
*
* @param pIS
* @return Document
* @throws IOException
* @throws SAXException
*/
public Document parse(InputSource pIS) throws IOException, SAXException {
if (pIS == null) throw new IllegalArgumentException("null input stream argument");
return this.iBuilder.parse(pIS);
}
/**
* Serializes a given DOM document as (CIM-)XML to a given output stream
*
* @param pOS
* The output stream
* @param pDoc
* The documents
* @throws IOException
* Whenever something goes wrong
*/
public static void serialize(OutputStream pOS, Document pDoc) throws IOException {
CimXmlSerializer.serialize(pOS, pDoc, false);
}
/**
* Serializes a given DOM document as (CIM-)XML to a given output stream.
* The document is pretty wrapped and indented and surrounded with markers
* for the begin and end.
*
* @param pOS
* The output stream
* @param pDoc
* The documents
* @throws IOException
*/
public static void dumpDocument(OutputStream pOS, Document pDoc) throws IOException {
dumpDocument(pOS, pDoc, null);
}
/**
* Serializes a given DOM document as (CIM-)XML to a given output stream.
* The document is pretty wrapped and indented and surrounded with markers
* for the begin and end.
*
* @param pOS
* The output stream
* @param pDoc
* The documents
* @param pOrigin
* The origin of the output stream (request, indication response,
* etc.)
* @throws IOException
*/
public static void dumpDocument(OutputStream pOS, Document pDoc, String pOrigin)
throws IOException {
// debug
if (pOS == null) { return; }
if (pOrigin == null) pOrigin = "unknown";
pOS.write("<--- ".getBytes());
pOS.write(pOrigin.getBytes());
pOS.write(" begin ".getBytes());
pOS.write(TimeStamp.formatWithMillis(System.currentTimeMillis()).getBytes());
pOS.write(" -----\n".getBytes());
CimXmlSerializer.serialize(pOS, pDoc, true);
pOS.write("\n---- ".getBytes());
pOS.write(pOrigin.getBytes());
pOS.write(" end ------>\n".getBytes());
}
/**
* createCIMMessage
*
* @param pDoc
* @param pRequestE
* @return Element
*/
public Element createCIMMessage(Document pDoc, Element pRequestE) {
Element cimE = CIMXMLBuilderImpl.createCIM(pDoc);
Element messageE = CIMXMLBuilderImpl.createMESSAGE(pDoc, cimE, String.valueOf(getNextId()),
VERSION);
if (pRequestE != null) {
messageE.appendChild(pRequestE);
}
return messageE;
}
/**
* createMultiReq
*
* @param pDoc
* @return Element
*/
public Element createMultiReq(Document pDoc) {
Element multireqE = CIMXMLBuilderImpl.createMULTIREQ(pDoc);
return multireqE;
}
/**
* associatorNames_request
*
* @param pDoc
* @param pObjectName
* @param pAssocClass
* @param pResultClass
* @param pRole
* @param pResultRole
* @return Element
* @throws WBEMException
*/
public Element associatorNames_request(Document pDoc, CIMObjectPath pObjectName,
String pAssocClass, String pResultClass, String pRole, String pResultRole)
throws WBEMException {
// obtain data
String className = pObjectName.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
CIMProperty<?>[] keysA = pObjectName.getKeys();
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
ASSOCIATOR_NAMES);
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pObjectName);
Element iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "ObjectName");
Element instancenameE = CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, className);
for (int i = 0; i < keysA.length; i++) {
CIMProperty<?> prop = keysA[i];
String propName = prop.getName();
// TODO: check that CIMDataType.toString() satisfies this
String propTypeStr = prop.getDataType().toString();
String propValueStr = valueStr(prop);
Element keybindingE = CIMXMLBuilderImpl.createKEYBINDING(pDoc, instancenameE, propName);
CIMXMLBuilderImpl.createKEYVALUE(pDoc, keybindingE, propTypeStr, propValueStr);
}
if (pAssocClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "AssocClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pAssocClass);
}
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "Role");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
if (pResultRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultRole");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pResultRole);
}
return simplereqE;
}
/**
* associatorNames_response
*
* @param pDoc
* @param pPathA
* @return Element
*/
public static Element associatorNames_response(Document pDoc, CIMObjectPath[] pPathA) {
Element simpRspE = CIMXMLBuilderImpl.createSIMPLERSP(pDoc, null);
Element iMethRspE = CIMXMLBuilderImpl.createIMETHODRESPONSE(pDoc, simpRspE,
"associatorNames");
Element iRetValE = CIMXMLBuilderImpl.createIRETURNVALUE(pDoc, iMethRspE);
try {
for (int i = 0; i < pPathA.length; i++) {
CIMXMLBuilderImpl.createOBJECTPATH(pDoc, iRetValE, pPathA[i]);
}
} catch (WBEMException e) {
throw new RuntimeException(e);
}
return simpRspE;
}
/**
* associatorInstances_request
*
* @param pDoc
* @param pObjectName
* @param pAssocClass
* @param pResultClass
* @param pRole
* @param pResultRole
* @param pIncludeClassOrigin
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element associatorInstances_request(Document pDoc, CIMObjectPath pObjectName,
String pAssocClass, String pResultClass, String pRole, String pResultRole,
boolean pIncludeClassOrigin, String[] pPropertyList) throws WBEMException {
String className = pObjectName.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
CIMProperty<?>[] keysA = pObjectName.getKeys();
// Make sure keys are populated
if (keysA.length == 0) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"associatorInstances requires keys for the instance to be populated");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "Associators");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pObjectName);
Element iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "ObjectName");
Element instancenameE = CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, className);
for (int i = 0; i < keysA.length; i++) {
CIMProperty<?> prop = keysA[i];
String propName = prop.getName();
String propTypeStr = prop.getDataType().toString();
String propValueStr = valueStr(prop);
Element keybindingE = CIMXMLBuilderImpl.createKEYBINDING(pDoc, instancenameE, propName);
CIMXMLBuilderImpl.createKEYVALUE(pDoc, keybindingE, propTypeStr, propValueStr);
}
if (pAssocClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "AssocClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pAssocClass);
}
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "Role");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
if (pResultRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultRole");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pResultRole);
}
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList");
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* associatorClasses_request
*
* @param pDoc
* @param pObjectName
* @param pAssocClass
* @param pResultClass
* @param pRole
* @param pResultRole
* @param pIncludeQualifiers
* @param pIncludeClassOrigin
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element associatorClasses_request(Document pDoc, CIMObjectPath pObjectName,
String pAssocClass, String pResultClass, String pRole, String pResultRole,
boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList)
throws WBEMException {
String className = pObjectName.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
// Make sure keys are not populated
if (pObjectName.getKeys().length != 0) throw new WBEMException(
WBEMException.CIM_ERR_INVALID_PARAMETER,
"Keys should not be populated for associatorClasses");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "Associators");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pObjectName);
Element iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "ObjectName");
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, className);
if (pAssocClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "AssocClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pAssocClass);
}
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "Role");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
if (pResultRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultRole");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pResultRole);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "IncludeQualifiers");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeQualifiers);
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList");
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* associators_request
*
* @param pDoc
* @param pObjectName
* @param pAssocClass
* @param pResultClass
* @param pRole
* @param pResultRole
* @param pIncludeQualifiers
* @param pIncludeClassOrigin
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element associators_request(Document pDoc, CIMObjectPath pObjectName,
String pAssocClass, String pResultClass, String pRole, String pResultRole,
boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList)
throws WBEMException {
// obtain data
String className = pObjectName.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
CIMProperty<?>[] keysA = pObjectName.getKeys();
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "Associators");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pObjectName);
Element iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "ObjectName");
Element instancenameE = CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, className);
for (int i = 0; i < keysA.length; i++) {
CIMProperty<?> prop = keysA[i];
String propName = prop.getName();
// TODO: check that CIMDataType.toString() satisfies this
String propTypeStr = prop.getDataType().toString();
// CIMXMLBuilderImpl.getTypeStr(pValue.getType());
String propValueStr = valueStr(prop);
Element keybindingE = CIMXMLBuilderImpl.createKEYBINDING(pDoc, instancenameE, propName);
CIMXMLBuilderImpl.createKEYVALUE(pDoc, keybindingE, propTypeStr, propValueStr);
}
if (pAssocClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "AssocClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pAssocClass);
}
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "Role");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
if (pResultRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultRole");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pResultRole);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "IncludeQualifiers");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeQualifiers);
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList"); // BB
// fixed
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* associators_response
*
* @param pDoc
* @param pNamedElementA
* @return Element
*/
public static Element associators_response(Document pDoc,
CIMNamedElementInterface[] pNamedElementA) {
Element simpRspE = CIMXMLBuilderImpl.createSIMPLERSP(pDoc, null);
Element iMethRspE = CIMXMLBuilderImpl.createIMETHODRESPONSE(pDoc, simpRspE, "associators");
Element iRetValE = CIMXMLBuilderImpl.createIRETURNVALUE(pDoc, iMethRspE);
try {
for (int i = 0; i < pNamedElementA.length; i++) {
CIMNamedElementInterface namedElement = pNamedElementA[i];
CIMObjectPath op = namedElement.getObjectPath();
String nameSpace = op == null ? null : op.getNamespace();
CIMXMLBuilderImpl
.createVALUEOBJECTWITHPATH(pDoc, iRetValE, namedElement, nameSpace);
/*
* CIMXMLBuilderImpl.createCLASSPATH( pDoc, iRetValE,
* pClassA[i].getObjectPath() );
* CIMXMLBuilderImpl.createCLASS(pDoc, iRetValE, pClassA[i]);
*/
}
} catch (WBEMException e) {
throw new RuntimeException(e);
}
return simpRspE;
}
/**
* enumerateInstanceNames_request
*
* @param pDoc
* @param pPath
* @return Element
* @throws WBEMException
*/
public Element enumerateInstanceNames_request(Document pDoc, CIMObjectPath pPath)
throws WBEMException {
// obtain data
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"EnumerateInstanceNames");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ClassName");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, className);
return simplereqE;
}
/**
* enumerateInstances_request
*
* @param pDoc
* @param pPath
* @param pDeepInheritance
* @param pLocalOnly
* @param pIncludeQualifiers
* @param pIncludeClassOrigin
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element enumerateInstances_request(Document pDoc, CIMObjectPath pPath,
boolean pDeepInheritance, boolean pLocalOnly, boolean pIncludeQualifiers,
boolean pIncludeClassOrigin, String[] pPropertyList) throws WBEMException {
// obtain data
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"EnumerateInstances");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ClassName");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, className);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "LocalOnly");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pLocalOnly);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "DeepInheritance");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pDeepInheritance);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "IncludeQualifiers");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeQualifiers);
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList");
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* getInstance_request
*
* @param pDoc
* @param pName
* @param pLocalOnly
* @param pIncludeQualifiers
* @param pIncludeClassOrigin
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element getInstance_request(Document pDoc, CIMObjectPath pName, boolean pLocalOnly,
boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList)
throws WBEMException {
// obtain data
String className = pName.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "GetInstance");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pName);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"InstanceName");
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, pName);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "LocalOnly");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pLocalOnly);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "IncludeQualifiers");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeQualifiers);
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList");
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* deleteInstance_request
*
* @param pDoc
* @param pName
* @return Element
* @throws WBEMException
*/
public Element deleteInstance_request(Document pDoc, CIMObjectPath pName) throws WBEMException {
// obtain data
String className = pName.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"DeleteInstance");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pName);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"InstanceName");
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, pName);
return simplereqE;
}
/**
* getClass_request
*
* @param pDoc
* @param pName
* @param pLocalOnly
* @param pIncludeQualifiers
* @param pIncludeClassOrigin
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element getClass_request(Document pDoc, CIMObjectPath pName, boolean pLocalOnly,
boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList)
throws WBEMException {
// obtain data
String className = pName.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "GetClass");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pName);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ClassName");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, className);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "LocalOnly");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pLocalOnly);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "IncludeQualifiers");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeQualifiers);
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList");
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* createInstance_request
*
* @param pDoc
* @param pName
* @param pInstance
* @return Element
* @throws WBEMException
*/
public Element createInstance_request(Document pDoc, CIMObjectPath pName, CIMInstance pInstance)
throws WBEMException {
String className = pInstance.getObjectPath().getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"CreateInstance");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pName);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"NewInstance");
CIMXMLBuilderImpl.createINSTANCE(pDoc, iparamvalueE, pInstance);
return simplereqE;
}
/**
* invokeMethod_request
*
* @param pDoc
* @param pLocalPath
* @param pMethodName
* @param pInArgs
* @return Element
* @throws WBEMException
*/
public Element invokeMethod_request(Document pDoc, CIMObjectPath pLocalPath,
String pMethodName, CIMArgument<?>[] pInArgs) throws WBEMException {
// obtain data
String className = pLocalPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
CIMProperty<?>[] keysA = pLocalPath.getKeys();
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element methodcallE = CIMXMLBuilderImpl.createMETHODCALL(pDoc, simplereqE, pMethodName);
// 13521
if (keysA.length > 0) {
Element localpathE = CIMXMLBuilderImpl.createLOCALINSTANCEPATH(pDoc, methodcallE);
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, localpathE, pLocalPath); // 13521
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, localpathE, pLocalPath); // 13521
} else {
CIMXMLBuilderImpl.createLOCALCLASSPATH(pDoc, methodcallE, pLocalPath);
}
buildParamValues(pDoc, methodcallE, pLocalPath, pInArgs);
return simplereqE;
}
/**
* invokeMethod_response
*
* @param pDoc
* @param pMethodName
* @param pLocalPath
* @param pRetVal
* @param pOutArgA
* @return Element
* @throws WBEMException
*/
public static Element invokeMethod_response(Document pDoc, String pMethodName,
CIMObjectPath pLocalPath, Object pRetVal, CIMArgument<?>[] pOutArgA)
throws WBEMException {
if (pMethodName == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null method name");
Element simpleRspE = CIMXMLBuilderImpl.createSIMPLERSP(pDoc, null);
Element methodRspE = CIMXMLBuilderImpl.createMETHODRESPONSE(pDoc, simpleRspE, pMethodName);
CIMXMLBuilderImpl.createRETURNVALUE(pDoc, methodRspE, pRetVal);
buildParamValues(pDoc, methodRspE, pLocalPath, pOutArgA);
return simpleRspE;
}
/**
* @param pLocalPath
*/
private static void buildParamValues(Document pDoc, Element pParentE, CIMObjectPath pLocalPath,
CIMArgument<?>[] pArgA) throws WBEMException {
if (pArgA == null) return;
for (int i = 0; i < pArgA.length; i++) {
CIMArgument<?> arg = pArgA[i];
if (arg == null) continue;
CIMXMLBuilderImpl.createPARAMVALUE(pDoc, pParentE, arg);
}
}
// public CIMResponse createIndication_request(Document doc) throws
// CIMXMLParseException, CIMException {
// Element rootE = doc.getDocumentElement();
// CIMResponse response = (CIMResponse)xmlParser.parseCIM(rootE);
// response.checkError();
// return response;
// // Vector v = (Vector)response.getFirstReturnValue();
// //
// // //TODO: Should we return the whole list of instances or just the first
// instance?
// // //TODO: return the whole vector of indications
// // if (v.size() > 0)
// // return (CIMInstance)v.elementAt(0);
// // else
// // return null;
// }
/**
* createIndication_response
*
* @param error
* @return Document
*/
public Document createIndication_response(CIMError error) {
// CIMXMLBuilderImpl.create XML
Document doc = this.iBuilder.newDocument();
Element cimE = CIMXMLBuilderImpl.createCIM(doc);
Element messageE = CIMXMLBuilderImpl.createMESSAGE(doc, cimE, String.valueOf(getNextId()),
"1.0");
Element simpleexprspE = CIMXMLBuilderImpl.createSIMPLEEXPRSP(doc, messageE);
Element expmethodresponseE = CIMXMLBuilderImpl.createEXPMETHODRESPONSE(doc, simpleexprspE,
"ExportIndication");
if (error == null) {
CIMXMLBuilderImpl.createIRETURNVALUE(doc, expmethodresponseE);
} else {
CIMXMLBuilderImpl.createERROR(doc, expmethodresponseE, error);
}
// Element
return doc;
}
/**
* createClass_request
*
* @param pDoc
* @param pPath
* @param pClass
* @return Element
* @throws WBEMException
*/
public Element createClass_request(Document pDoc, CIMObjectPath pPath, CIMClass pClass)
throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "CreateClass");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "NewClass");
CIMXMLBuilderImpl.createCLASS(pDoc, iparamvalueE, pClass);
return simplereqE;
}
/**
* getQualifier_request
*
* @param pDoc
* @param pPath
* @param pQt
* @return Element
* @throws WBEMException
*/
public Element getQualifier_request(Document pDoc, CIMObjectPath pPath, String pQt)
throws WBEMException {
// obtain data
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl
.createIMETHODCALL(pDoc, simplereqE, "GetQualifier");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"QualifierName");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pPath.getObjectName());
return simplereqE;
}
/**
* createQualifierType_request : This has been replaced by
* setQualifierType_request
*
* @param pDoc
* @param pPath
* @param pQt
* @return Element
* @throws WBEMException
*/
public Element createQualifierType_request(Document pDoc, CIMObjectPath pPath,
CIMQualifierType<?> pQt) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl
.createIMETHODCALL(pDoc, simplereqE, "SetQualifier");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"QualifierDeclaration");
CIMXMLBuilderImpl.createQUALIFIER_DECLARATION(pDoc, iparamvalueE, pQt);
return simplereqE;
}
/**
* deleteClass_request
*
* @param pDoc
* @param pPath
* @return Element
* @throws WBEMException
*/
public Element deleteClass_request(Document pDoc, CIMObjectPath pPath) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "DeleteClass");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ClassName");
CIMXMLBuilderImpl.createOBJECTNAME(pDoc, iparamvalueE, pPath);
return simplereqE;
}
/**
* deleteQualifierType_request
*
* @param pDoc
* @param pPath
* @return Element
* @throws WBEMException
*/
public Element deleteQualifierType_request(Document pDoc, CIMObjectPath pPath)
throws WBEMException {
// obtain data
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"DeleteQualifier");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"QualifierName");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pPath.getObjectName());
return simplereqE;
}
/**
* enumerateClasses_request
*
* @param pDoc
* @param pPath
* @param pDeepInheritance
* @param pLocalOnly
* @param pIncludeQualifiers
* @param pIncludeClassOrigin
* @return Element
*/
public Element enumerateClasses_request(Document pDoc, CIMObjectPath pPath,
boolean pDeepInheritance, boolean pLocalOnly, boolean pIncludeQualifiers,
boolean pIncludeClassOrigin) {
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"EnumerateClasses");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE;
if (pPath != null && pPath.getObjectName() != null
&& pPath.getObjectName().trim().length() != 0) {
String className = pPath.getObjectName();
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ClassName");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, className);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "LocalOnly");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pLocalOnly);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "DeepInheritance");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pDeepInheritance);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "IncludeQualifiers");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeQualifiers);
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
return simplereqE;
}
/**
* enumerateClasses_response
*
* @param pDoc
* @param pClA
* @return Element
*/
public static Element enumerateClasses_response(Document pDoc, CIMClass[] pClA) {
Element simpRspE = CIMXMLBuilderImpl.createSIMPLERSP(pDoc, null);
Element iMethRspE = CIMXMLBuilderImpl.createIMETHODRESPONSE(pDoc, simpRspE,
"enumerateClasses");
Element iRetValE = CIMXMLBuilderImpl.createIRETURNVALUE(pDoc, iMethRspE);
try {
for (int i = 0; i < pClA.length; i++) {
CIMXMLBuilderImpl.createCLASS(pDoc, iRetValE, pClA[i]);
}
} catch (WBEMException e) {
throw new RuntimeException(e);
}
return simpRspE;
}
/**
* enumerateInstances_response
*
* @param pDoc
* @param pInstA
* @return Element
*/
public static Element enumerateInstances_response(Document pDoc, CIMInstance[] pInstA) {
Element simpRspE = CIMXMLBuilderImpl.createSIMPLERSP(pDoc, null);
Element iMethRspE = CIMXMLBuilderImpl.createIMETHODRESPONSE(pDoc, simpRspE,
"enumerateInstances");
Element iRetValE = CIMXMLBuilderImpl.createIRETURNVALUE(pDoc, iMethRspE);
try {
for (int i = 0; i < pInstA.length; i++) {
CIMXMLBuilderImpl.createINSTANCE(pDoc, iRetValE, pInstA[i]);
}
} catch (WBEMException e) {
throw new RuntimeException(e);
}
return simpRspE;
}
/**
* enumerateClassNames_request
*
* @param pDoc
* @param pPath
* @param pDeepInheritance
* @return Element
*/
public Element enumerateClassNames_request(Document pDoc, CIMObjectPath pPath,
boolean pDeepInheritance) {
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"EnumerateClassNames");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE;
if (pPath != null && pPath.getObjectName() != null
&& pPath.getObjectName().trim().length() != 0) {
String className = pPath.getObjectName();
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ClassName");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, className);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "DeepInheritance");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pDeepInheritance);
return simplereqE;
}
/**
* getProperty_request
*
* @param pDoc
* @param pPath
* @param pPropertyName
* @return Element
* @throws WBEMException
*/
public Element getProperty_request(Document pDoc, CIMObjectPath pPath, String pPropertyName)
throws WBEMException {
// obtain data
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "GetProperty");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"InstanceName");
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, pPath);
if (pPropertyName != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyName");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pPropertyName);
}
return simplereqE;
}
/**
* referenceNames_request
*
* @param pDoc
* @param pPath
* @param pResultClass
* @param pRole
* @return Element
* @throws WBEMException
*/
public Element referenceNames_request(Document pDoc, CIMObjectPath pPath, String pResultClass,
String pRole) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"ReferenceNames");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "ObjectName");
CIMXMLBuilderImpl.createOBJECTNAME(pDoc, iparamvalueE, pPath);
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "Role");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
return simplereqE;
}
/**
* referenceClasses_request
*
* @param pDoc
* @param pPath
* @param pResultClass
* @param pRole
* @param pIncludeQualifiers
* @param pIncludeClassOrigin
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element referenceClasses_request(Document pDoc, CIMObjectPath pPath,
String pResultClass, String pRole, boolean pIncludeQualifiers,
boolean pIncludeClassOrigin, String[] pPropertyList) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
// Make sure keys are not populated
if (pPath.getKeys().length != 0) throw new WBEMException(
WBEMException.CIM_ERR_INVALID_PARAMETER,
"Keys should not be populated for referenceClasses");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "References");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "ObjectName");
// createOBJECTNAME will internally call createINSTANCENAME but as there
// are no keys Element containing keys will not be populated
CIMXMLBuilderImpl.createOBJECTNAME(pDoc, iparamvalueE, pPath);
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "Role");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "IncludeQualifiers");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeQualifiers);
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList");
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* referenceInstances_request
*
* @param pDoc
* @param pPath
* @param pResultClass
* @param pRole
* @param pIncludeClassOrigin
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element referenceInstances_request(Document pDoc, CIMObjectPath pPath,
String pResultClass, String pRole, boolean pIncludeClassOrigin, String[] pPropertyList)
throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
// keys are required for CIMInstance
if (pPath.getKeys().length == 0) throw new WBEMException(
WBEMException.CIM_ERR_INVALID_PARAMETER,
"refrenceInstances requires keys for the instance to be populated");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "References");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "ObjectName");
// createOBJECTNAME will internally call createINSTANCENAME to populate
// Element containing keys
CIMXMLBuilderImpl.createOBJECTNAME(pDoc, iparamvalueE, pPath);
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "Role");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList");
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* references_request
*
* @param pDoc
* @param pPath
* @param pResultClass
* @param pRole
* @param pIncludeQualifiers
* @param pIncludeClassOrigin
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element references_request(Document pDoc, CIMObjectPath pPath, String pResultClass,
String pRole, boolean pIncludeQualifiers, boolean pIncludeClassOrigin,
String[] pPropertyList) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "References");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE;
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ObjectName");
CIMXMLBuilderImpl.createOBJECTNAME(pDoc, iparamvalueE, pPath);
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "ResultClass");
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "Role");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "IncludeQualifiers");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeQualifiers);
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, "IncludeClassOrigin");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList");
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* setClass_request
*
* @param pDoc
* @param pPath
* @param pClass
* @return Element
* @throws WBEMException
*/
public Element setClass_request(Document pDoc, CIMObjectPath pPath, CIMClass pClass)
throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "ModifyClass");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"ModifiedClass");
CIMXMLBuilderImpl.createCLASS(pDoc, iparamvalueE, pClass);
return simplereqE;
}
/**
* setInstance_request
*
* @param pDoc
* @param pPath
* @param pInstance
* @param pIncludeQualifiers
* @param pPropertyList
* @return Element
* @throws WBEMException
*/
public Element setInstance_request(Document pDoc, CIMObjectPath pPath, CIMInstance pInstance,
boolean pIncludeQualifiers, String[] pPropertyList) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"ModifyInstance");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"ModifiedInstance");
CIMXMLBuilderImpl.createVALUENAMEDINSTANCE(pDoc, iparamvalueE, pPath, pInstance);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "IncludeQualifiers");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeQualifiers);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyList");
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++) {
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
}
return simplereqE;
}
/**
* setProperty_request
*
* @param pDoc
* @param pPath
* @param pPropertyName
* @param pNewValue
* @return Element
* @throws WBEMException
*/
public Element setProperty_request(Document pDoc, CIMObjectPath pPath, String pPropertyName,
Object pNewValue) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "SetProperty");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"InstanceName");
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, pPath);
if (pPropertyName != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "PropertyName");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pPropertyName);
}
if (pNewValue != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "NewValue");
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pNewValue);
}
return simplereqE;
}
/**
* setQualifierType_request
*
* @param pDoc
* @param pPath
* @param pQt
* @return Element
* @throws WBEMException
*/
public Element setQualifierType_request(Document pDoc, CIMObjectPath pPath,
CIMQualifierType<?> pQt) throws WBEMException {
// Make sure class name exists, it is required to uniquely identify
// qualifier in namespace
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl
.createIMETHODCALL(pDoc, simplereqE, "SetQualifier");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"QualifierDeclaration");
CIMXMLBuilderImpl.createQUALIFIER_DECLARATION(pDoc, iparamvalueE, pQt);
return simplereqE;
}
/**
* enumQualifierTypes_request
*
* @param pDoc
* @param pPath
* @return Element
* @throws WBEMException
*/
public Element enumQualifierTypes_request(Document pDoc, CIMObjectPath pPath)
throws WBEMException {
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"EnumerateQualifiers");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
return simplereqE;
}
/**
* enumQualifierTypes_response
*
* @param pDoc
* @param pQualiTypeA
* @return Element
* @throws WBEMException
*/
public static Element enumQualifierTypes_response(Document pDoc,
CIMQualifierType<?>[] pQualiTypeA) throws WBEMException {
Element simpRspE = CIMXMLBuilderImpl.createSIMPLERSP(pDoc, null);
Element iMethRspE = CIMXMLBuilderImpl.createIMETHODRESPONSE(pDoc, simpRspE,
"associatorNames");
Element iRetValE = CIMXMLBuilderImpl.createIRETURNVALUE(pDoc, iMethRspE);
for (int i = 0; i < pQualiTypeA.length; i++) {
CIMXMLBuilderImpl.createQUALIFIER_DECLARATION(pDoc, iRetValE, pQualiTypeA[i]);
}
return simpRspE;
}
/**
* execQuery_request
*
* @param pDoc
* @param pPath
* @param pQuery
* @param pQueryLanguage
* @return Element
*/
public Element execQuery_request(Document pDoc, CIMObjectPath pPath, String pQuery,
String pQueryLanguage) {
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE, "ExecQuery");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element querylanguageE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
"QueryLanguage");
CIMXMLBuilderImpl.createVALUE(pDoc, querylanguageE, pQueryLanguage);
Element queryE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, "Query");
CIMXMLBuilderImpl.createVALUE(pDoc, queryE, pQuery);
return simplereqE;
}
/**
* performBatchOperation_request
*
* @param pDoc
* @param pOperations
* @return Element
* @throws WBEMException
*/
public Element performBatchOperation_request(Document pDoc, Vector<CIMOperation> pOperations)
throws WBEMException {
Element messageE = createCIMMessage(pDoc, null);
if (pOperations.size() > 1) {
Element multireqE = createMultiReq(pDoc);
messageE.appendChild(multireqE);
messageE = multireqE;
}
int i = 0;
Iterator<CIMOperation> iter = pOperations.iterator();
while (iter.hasNext()) {
CIMOperation op = iter.next();
try {
Element requestE = null;
if (op instanceof CIMAssociatorsOp) {
CIMAssociatorsOp associatorsOp = (CIMAssociatorsOp) op;
requestE = associators_request(pDoc, associatorsOp.getObjectName(),
associatorsOp.getAssocClass(), associatorsOp.getResultClass(),
associatorsOp.getRole(), associatorsOp.getResultRole(), associatorsOp
.isIncludeQualifiers(), associatorsOp.isIncludeClassOrigin(),
associatorsOp.getPropertyList());
} else if (op instanceof CIMAssociatorNamesOp) {
CIMAssociatorNamesOp associatorNamesOp = (CIMAssociatorNamesOp) op;
requestE = associatorNames_request(pDoc, associatorNamesOp.getObjectName(),
associatorNamesOp.getAssocClass(), associatorNamesOp.getResultClass(),
associatorNamesOp.getRole(), associatorNamesOp.getResultRole());
} else if (op instanceof CIMCreateClassOp) {
CIMCreateClassOp createClassOp = (CIMCreateClassOp) op;
requestE = createClass_request(pDoc, createClassOp.getObjectName(),
createClassOp.getCimClass());
} else if (op instanceof CIMCreateInstanceOp) {
CIMCreateInstanceOp createInstanceOp = (CIMCreateInstanceOp) op;
requestE = createInstance_request(pDoc, createInstanceOp.getObjectName(),
createInstanceOp.getInstance());
} else if (op instanceof CIMCreateNameSpaceOp) {
CIMCreateNameSpaceOp createNameSpaceOp = (CIMCreateNameSpaceOp) op;
String namespace = createNameSpaceOp.getNameSpace();
int j = namespace.lastIndexOf('/');
if (j < 0) throw new WBEMException(WBEMException.CIM_ERR_NOT_FOUND,
"Invalid namespace. Must contain at least /");
String parentNs = namespace.substring(0, j);
namespace = namespace.substring(j + 1);
/*
* CIMInstance inst = new CIMInstance();
* inst.setClassName("CIM_NameSpace"); CIMProperty prop =
* new CIMProperty("NameSpace"); prop.setValue(new
* CIMValue(namespace, CIMDataType
* .getPredefinedType(CIMDataType.STRING))); Vector v = new
* Vector(); v.add(prop); inst.setProperties(v);
*/
CIMInstance inst = new CIMInstance(new CIMObjectPath(null, null, null, null,
"CIM_NameSpace", null), new CIMProperty[] { new CIMProperty<String>(
"NameSpace", CIMDataType.STRING_T, namespace, true, false, null) });
CIMObjectPath object = new CIMObjectPath(null, null, null, parentNs, null, null);
requestE = createInstance_request(pDoc, object, inst);
} else if (op instanceof CIMCreateQualifierTypeOp) {
CIMCreateQualifierTypeOp createQualifierTypeOp = (CIMCreateQualifierTypeOp) op;
requestE = createQualifierType_request(pDoc, createQualifierTypeOp
.getObjectName(), createQualifierTypeOp.getQualifierType());
} else if (op instanceof CIMDeleteClassOp) {
CIMDeleteClassOp deleteClassOp = (CIMDeleteClassOp) op;
requestE = deleteClass_request(pDoc, deleteClassOp.getObjectName());
} else if (op instanceof CIMDeleteInstanceOp) {
CIMDeleteInstanceOp deleteInstanceOp = (CIMDeleteInstanceOp) op;
requestE = deleteClass_request(pDoc, deleteInstanceOp.getObjectName());
} else if (op instanceof CIMDeleteQualifierTypeOp) {
CIMDeleteQualifierTypeOp deleteQualifierTypeOp = (CIMDeleteQualifierTypeOp) op;
requestE = deleteClass_request(pDoc, deleteQualifierTypeOp.getObjectName());
} else if (op instanceof CIMEnumClassesOp) {
CIMEnumClassesOp enumClassesOp = (CIMEnumClassesOp) op;
requestE = enumerateClasses_request(pDoc, enumClassesOp.getObjectName(),
enumClassesOp.isDeep(), enumClassesOp.isLocalOnly(), enumClassesOp
.isIncludeQualifiers(), enumClassesOp.isIncludeClassOrigin());
} else if (op instanceof CIMEnumClassNamesOp) {
CIMEnumClassNamesOp enumClassNamesOp = (CIMEnumClassNamesOp) op;
requestE = enumerateClassNames_request(pDoc, enumClassNamesOp.getObjectName(),
enumClassNamesOp.isDeep());
} else if (op instanceof CIMEnumInstanceNamesOp) {
CIMEnumInstanceNamesOp enumInstanceNamesOp = (CIMEnumInstanceNamesOp) op;
requestE = enumerateInstanceNames_request(pDoc, enumInstanceNamesOp
.getObjectName());
} else if (op instanceof CIMEnumInstancesOp) {
CIMEnumInstancesOp enumInstancesOp = (CIMEnumInstancesOp) op;
requestE = enumerateInstances_request(pDoc, enumInstancesOp.getObjectName(),
enumInstancesOp.isDeep(), enumInstancesOp.isLocalOnly(),
enumInstancesOp.isIncludeQualifiers(), enumInstancesOp
.isIncludeClassOrigin(), enumInstancesOp.getPropertyList());
} else if (op instanceof CIMEnumNameSpaceOp) {
CIMEnumNameSpaceOp enumNameSpaceOp = (CIMEnumNameSpaceOp) op;
// ebak: here we have to set CIMObjectPath's objectname
// enumNameSpaceOp.getObjectName().setObjectName("CIM_NameSpace");
CIMObjectPath objPath = enumNameSpaceOp.getObjectName();
objPath = new CIMObjectPath(objPath.getScheme(), objPath.getHost(), objPath
.getPort(), objPath.getNamespace(), "CIM_NameSpace", objPath.getKeys());
requestE = enumerateInstanceNames_request(pDoc, enumNameSpaceOp.getObjectName());
} else if (op instanceof CIMEnumQualifierTypesOp) {
CIMEnumQualifierTypesOp enumQualifierTypesOp = (CIMEnumQualifierTypesOp) op;
requestE = enumQualifierTypes_request(pDoc, enumQualifierTypesOp
.getObjectName());
} else if (op instanceof CIMExecQueryOp) {
CIMExecQueryOp execQueryOp = (CIMExecQueryOp) op;
requestE = execQuery_request(pDoc, execQueryOp.getObjectName(), execQueryOp
.getQuery(), execQueryOp.getQueryLanguage());
} else if (op instanceof CIMGetPropertyOp) {
CIMGetPropertyOp getPropertyOp = (CIMGetPropertyOp) op;
requestE = getInstance_request(pDoc, getPropertyOp.getObjectName(), false,
false, false, new String[] { getPropertyOp.getPropertyName() });
} else if (op instanceof CIMGetClassOp) {
CIMGetClassOp getClassOp = (CIMGetClassOp) op;
requestE = getClass_request(pDoc, getClassOp.getObjectName(), getClassOp
.isLocalOnly(), getClassOp.isIncludeQualifiers(), getClassOp
.isIncludeClassOrigin(), getClassOp.getPropertyList());
} else if (op instanceof CIMGetInstanceOp) {
CIMGetInstanceOp getInstanceOp = (CIMGetInstanceOp) op;
requestE = getInstance_request(pDoc, getInstanceOp.getObjectName(),
getInstanceOp.isLocalOnly(), getInstanceOp.isIncludeQualifiers(),
getInstanceOp.isIncludeClassOrigin(), getInstanceOp.getPropertyList());
} else if (op instanceof CIMGetQualifierTypeOp) {
CIMGetQualifierTypeOp getQualifierTypeOp = (CIMGetQualifierTypeOp) op;
requestE = getQualifier_request(pDoc, getQualifierTypeOp.getObjectName(),
getQualifierTypeOp.getQualifierType());
} else if (op instanceof CIMInvokeMethodOp) {
CIMInvokeMethodOp invokeMethodOp = (CIMInvokeMethodOp) op;
requestE = invokeMethod_request(pDoc, invokeMethodOp.getObjectName(),
invokeMethodOp.getMethodCall(), invokeMethodOp.getInParams());
} else if (op instanceof CIMReferenceNamesOp) {
CIMReferenceNamesOp referenceNamesOp = (CIMReferenceNamesOp) op;
requestE = referenceNames_request(pDoc, referenceNamesOp.getObjectName(),
referenceNamesOp.getResultClass(), referenceNamesOp.getResultRole());
} else if (op instanceof CIMReferencesOp) {
CIMReferencesOp referencesOp = (CIMReferencesOp) op;
requestE = references_request(pDoc, referencesOp.getObjectName(), referencesOp
.getResultClass(), referencesOp.getRole(), referencesOp
.isIncludeQualifiers(), referencesOp.isIncludeClassOrigin(),
referencesOp.getPropertyList());
} else if (op instanceof CIMSetClassOp) {
CIMSetClassOp setClassOp = (CIMSetClassOp) op;
requestE = setClass_request(pDoc, setClassOp.getObjectName(), setClassOp
.getCimClass());
} else if (op instanceof CIMSetInstanceOp) {
CIMSetInstanceOp setInstanceOp = (CIMSetInstanceOp) op;
requestE = setInstance_request(pDoc, setInstanceOp.getObjectName(),
setInstanceOp.getInstance(), setInstanceOp.isIncludeQualifiers(),
setInstanceOp.getPropertyList());
} else if (op instanceof CIMSetPropertyOp) {
CIMSetPropertyOp setPropertyOp = (CIMSetPropertyOp) op;
requestE = setProperty_request(pDoc, setPropertyOp.getObjectName(),
setPropertyOp.getPropertyName(), setPropertyOp.getCimValue());
} else if (op instanceof CIMSetQualifierTypeOp) {
CIMSetQualifierTypeOp setQualifierTypeOp = (CIMSetQualifierTypeOp) op;
requestE = setQualifierType_request(pDoc, setQualifierTypeOp.getObjectName(),
setQualifierTypeOp.getQualifierType());
}
if (requestE == null) throw new WBEMException(
WBEMException.CIM_ERR_INVALID_PARAMETER, "Illegal batch operation number ("
+ i + ") " + op.getClass());
messageE.appendChild(requestE);
} catch (WBEMException e) {
throw e;
} catch (Exception e) {
throw new WBEMException(WBEMException.CIM_ERR_FAILED, "At batch operation (" + i
+ ')', null, e);
}
i++;
}
return messageE;
}
/**
* Sets the message id counter to a given value. For use in units tests
* only.
*
* @param pId
* The new value
*/
public void setId(int pId) {
this.iCurrentId.set(new Counter(pId - 1));
}
/**
* Get the next message id. If this method is called for the first time by
* the current thread it will choose a start value randomly. Afterwards the
* id is incremented by 1. Be aware that different threads will have
* distinct id counters.
*
* @return The next message id
*/
private int getNextId() {
if (this.iCurrentId.get() == null) {
this.iCurrentId.set(new Counter(RANDOM.nextInt(MAX_ID)));
}
return this.iCurrentId.get().incrementAndGet();
}
/**
* pAssociatorPaths_request
*
* @param pDoc
* @param pPath
* @param pAssocClass
* @param pResultClass
* @param pRole
* @param pResultRole
* @param pFilterQueryLanguage
* @param pFilterQuery
* @param pOperationTimeout
* @param pContinueOnError
* @param pMaxObjectCount
* @return Element
* @throws WBEMException
*/
public Element OpenAssociatorInstancePaths_request(Document pDoc, CIMObjectPath pPath,
String pAssocClass, String pResultClass, String pRole, String pResultRole,
String pFilterQueryLanguage, String pFilterQuery, UnsignedInteger32 pOperationTimeout,
boolean pContinueOnError, UnsignedInteger32 pMaxObjectCount) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"OpenAssociatorInstancePaths");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
INSTANCE_NAME);
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, pPath);
if (pAssocClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, ASSOC_CLASS);
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pAssocClass);
}
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, RESULT_CLASS);
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, ROLE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
if (pResultRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, RESULT_ROLE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pResultRole);
}
if (pFilterQueryLanguage != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
FILTER_QUERY_LANGUAGE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQueryLanguage);
}
if (pFilterQuery != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, FILTER_QUERY);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQuery);
}
if (pOperationTimeout != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
OPERATION_TIMEOUT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pOperationTimeout);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, CONTINUE_ON_ERROR);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContinueOnError);
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
return simplereqE;
}
/**
* OpenAssociatorInstances_request
*
* @param pDoc
* @param pPath
* @param pAssocClass
* @param pResultClass
* @param pRole
* @param pResultRole
* @param pIncludeClassOrigin
* @param pPropertyList
* @param pFilterQueryLanguage
* @param pFilterQuery
* @param pOperationTimeout
* @param pContinueOnError
* @param pMaxObjectCount
* @return Element OpenAssociatorInstances_request
* @throws WBEMException
*/
public Element OpenAssociatorInstances_request(Document pDoc, CIMObjectPath pPath,
String pAssocClass, String pResultClass, String pRole, String pResultRole,
boolean pIncludeClassOrigin, String[] pPropertyList, String pFilterQueryLanguage,
String pFilterQuery, UnsignedInteger32 pOperationTimeout, boolean pContinueOnError,
UnsignedInteger32 pMaxObjectCount) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"OpenAssociatorInstances");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
INSTANCE_NAME);
// createINSTANCENAME will take care of keyBindings
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, pPath);
if (pAssocClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, ASSOC_CLASS);
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pAssocClass);
}
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, RESULT_CLASS);
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, ROLE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
if (pResultRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, RESULT_ROLE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pResultRole);
}
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, INCLUDE_CLASS_ORIGIN);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, PROPERTY_LIST);
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++)
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
if (pFilterQueryLanguage != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
FILTER_QUERY_LANGUAGE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQueryLanguage);
}
if (pFilterQuery != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, FILTER_QUERY);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQuery);
}
if (pOperationTimeout != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
OPERATION_TIMEOUT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pOperationTimeout);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, CONTINUE_ON_ERROR);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContinueOnError);
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
return simplereqE;
}
/**
* OpenEnumerateInstancePaths_request
*
* @param pDoc
* @param pPath
* @param pFilterQueryLanguage
* @param pFilterQuery
* @param pOperationTimeout
* @param pContinueOnError
* @param pMaxObjectCount
* @return Element
* @throws WBEMException
*/
public Element OpenEnumerateInstancePaths_request(Document pDoc, CIMObjectPath pPath,
String pFilterQueryLanguage, String pFilterQuery, UnsignedInteger32 pOperationTimeout,
boolean pContinueOnError, UnsignedInteger32 pMaxObjectCount) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"OpenEnumerateInstancePaths");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, CLASS_NAME);
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, className);
if (pFilterQueryLanguage != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
FILTER_QUERY_LANGUAGE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQueryLanguage);
}
if (pFilterQuery != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, FILTER_QUERY);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQuery);
}
if (pOperationTimeout != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
OPERATION_TIMEOUT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pOperationTimeout);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, CONTINUE_ON_ERROR);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContinueOnError);
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
return simplereqE;
}
/**
* OpenEnumerateInstances_request
*
* @param pDoc
* @param pPath
* @param pPropertyList
* @param pIncludeClassOrigin
* @param pDeepInheritance
* @param pFilterQueryLanguage
* @param pFilterQuery
* @param pOperationTimeout
* @param pContinueOnError
* @param pMaxObjectCount
* @return Element
* @throws WBEMException
*/
public Element OpenEnumerateInstances_request(Document pDoc, CIMObjectPath pPath,
boolean pDeepInheritance, boolean pIncludeClassOrigin, String[] pPropertyList,
String pFilterQueryLanguage, String pFilterQuery, UnsignedInteger32 pOperationTimeout,
boolean pContinueOnError, UnsignedInteger32 pMaxObjectCount) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"OpenEnumerateInstances");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, CLASS_NAME);
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, className);
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, DEEP_INHERITANCE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pDeepInheritance);
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, INCLUDE_CLASS_ORIGIN);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, PROPERTY_LIST);
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++)
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
if (pFilterQueryLanguage != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
FILTER_QUERY_LANGUAGE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQueryLanguage);
}
if (pFilterQuery != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, FILTER_QUERY);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQuery);
}
if (pOperationTimeout != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
OPERATION_TIMEOUT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pOperationTimeout);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, CONTINUE_ON_ERROR);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContinueOnError);
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
return simplereqE;
}
/**
* EnumerationCount_request
*
* @param pDoc
* @param pPath
* @param pEnumerationContext
* @return Element
* @throws WBEMException
*/
public Element EnumerationCount_request(Document pDoc, CIMObjectPath pPath,
String pEnumerationContext) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"EnumerationCount");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
if (pEnumerationContext != null) {
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
ENUMERATION_CONTEXT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pEnumerationContext);
}
return simplereqE;
}
/**
* CloseEnumeration_request
*
* @param pDoc
* @param pPath
* @param pEnumerationContext
* @return Element
* @throws WBEMException
*/
public Element CloseEnumeration_request(Document pDoc, CIMObjectPath pPath,
String pEnumerationContext) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"CloseEnumeration");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
if (pEnumerationContext != null) {
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
ENUMERATION_CONTEXT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pEnumerationContext);
}
return simplereqE;
}
/**
* referencePaths_request
*
* @param pDoc
* @param pPath
* @param pResultClass
* @param pRole
* @param pFilterQueryLanguage
* @param pFilterQuery
* @param pOperationTimeout
* @param pContinueOnError
* @param pMaxObjectCount
* @return Element referencePaths_request
* @throws WBEMException
*/
public Element OpenReferenceInstancePaths_request(Document pDoc, CIMObjectPath pPath,
String pResultClass, String pRole, String pFilterQueryLanguage, String pFilterQuery,
UnsignedInteger32 pOperationTimeout, boolean pContinueOnError,
UnsignedInteger32 pMaxObjectCount) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"OpenReferenceInstancePaths");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
INSTANCE_NAME);
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, pPath);
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, RESULT_CLASS);
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, ROLE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
if (pFilterQueryLanguage != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
FILTER_QUERY_LANGUAGE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQueryLanguage);
}
if (pFilterQuery != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, FILTER_QUERY);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQuery);
}
if (pOperationTimeout != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
OPERATION_TIMEOUT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pOperationTimeout);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, CONTINUE_ON_ERROR);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContinueOnError);
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
return simplereqE;
}
/**
* references_request
*
* @param pDoc
* @param pPath
* @param pResultClass
* @param pRole
* @param pIncludeClassOrigin
* @param pPropertyList
* @param pFilterQueryLanguage
* @param pFilterQuery
* @param pOperationTimeout
* @param pContinueOnError
* @param pMaxObjectCount
* @return Element references_request
* @throws WBEMException
*/
public Element OpenReferenceInstances_request(Document pDoc, CIMObjectPath pPath,
String pResultClass, String pRole, boolean pIncludeClassOrigin, String[] pPropertyList,
String pFilterQueryLanguage, String pFilterQuery, UnsignedInteger32 pOperationTimeout,
boolean pContinueOnError, UnsignedInteger32 pMaxObjectCount) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"OpenReferenceInstances");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
INSTANCE_NAME);
CIMXMLBuilderImpl.createINSTANCENAME(pDoc, iparamvalueE, pPath);
if (pResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, RESULT_CLASS);
CIMXMLBuilderImpl.createCLASSNAME(pDoc, iparamvalueE, pResultClass);
}
if (pRole != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, ROLE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pRole);
}
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, INCLUDE_CLASS_ORIGIN);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pIncludeClassOrigin);
if (pPropertyList != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, PROPERTY_LIST);
Element valuearrayE = CIMXMLBuilderImpl.createVALUEARRAY(pDoc, iparamvalueE);
for (int i = 0; i < pPropertyList.length; i++)
CIMXMLBuilderImpl.createVALUE(pDoc, valuearrayE, pPropertyList[i]);
}
if (pFilterQueryLanguage != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
FILTER_QUERY_LANGUAGE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQueryLanguage);
}
if (pFilterQuery != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, FILTER_QUERY);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQuery);
}
if (pOperationTimeout != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
OPERATION_TIMEOUT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pOperationTimeout);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, CONTINUE_ON_ERROR);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContinueOnError);
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
return simplereqE;
}
/**
* OpenQueryInstances_request
*
* @param pDoc
* @param pPath
* @param pFilterQuery
* @param pFilterQueryLanguage
* @param pReturnQueryResultClass
* @param pOperationTimeout
* @param pContinueOnError
* @param pMaxObjectCount
* @param pQueryResultClass
* @return Element OpenQueryInstances_request
* @throws WBEMException
*/
public Element OpenQueryInstances_request(Document pDoc, CIMObjectPath pPath,
String pFilterQuery, String pFilterQueryLanguage, boolean pReturnQueryResultClass,
UnsignedInteger32 pOperationTimeout, boolean pContinueOnError,
UnsignedInteger32 pMaxObjectCount, CIMClass pQueryResultClass) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"OpenQueryInstances");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE;
if (pFilterQuery != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, FILTER_QUERY);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQuery);
}
if (pFilterQueryLanguage != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
FILTER_QUERY_LANGUAGE);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pFilterQueryLanguage);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
RETURN_QUERY_RESULT_CLASS);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pReturnQueryResultClass);
if (pOperationTimeout != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
OPERATION_TIMEOUT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pOperationTimeout);
}
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE, CONTINUE_ON_ERROR);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContinueOnError);
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
if (pQueryResultClass != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
QUERY_RESULT_CLASS);
CIMXMLBuilderImpl.createCLASS(pDoc, iparamvalueE, pQueryResultClass);
}
return simplereqE;
}
/**
* PullInstancesWithPath_request
*
* @param pDoc
* @param pPath
* @param pContext
* @param pMaxObjectCount
* @return Element PullInstancesWithPath_request
* @throws WBEMException
*/
public Element PullInstancesWithPath_request(Document pDoc, CIMObjectPath pPath,
String pContext, UnsignedInteger32 pMaxObjectCount) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"PullInstancesWithPath");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE;
if (pContext != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
ENUMERATION_CONTEXT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContext);
}
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
return simplereqE;
}
/**
* PullInstancePaths_request
*
* @param pDoc
* @param pPath
* @param pContext
* @param pMaxObjectCount
* @return Element PullInstancePaths
* @throws WBEMException
*/
public Element PullInstancePaths_request(Document pDoc, CIMObjectPath pPath, String pContext,
UnsignedInteger32 pMaxObjectCount) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"PullInstancePaths");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE;
if (pContext != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
ENUMERATION_CONTEXT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContext);
}
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
return simplereqE;
}
/**
* PullInstances_request
*
* @param pDoc
* @param pPath
* @param pContext
* @param pMaxObjectCount
* @return Element PullInstances_request
* @throws WBEMException
*/
public Element PullInstances_request(Document pDoc, CIMObjectPath pPath, String pContext,
UnsignedInteger32 pMaxObjectCount) throws WBEMException {
String className = pPath.getObjectName();
if (className == null) throw new WBEMException(WBEMException.CIM_ERR_INVALID_PARAMETER,
"null class name");
Element simplereqE = CIMXMLBuilderImpl.createSIMPLEREQ(pDoc);
Element imethodcallE = CIMXMLBuilderImpl.createIMETHODCALL(pDoc, simplereqE,
"PullInstances");
CIMXMLBuilderImpl.createLOCALNAMESPACEPATH(pDoc, imethodcallE, pPath);
Element iparamvalueE;
if (pContext != null) {
iparamvalueE = CIMXMLBuilderImpl.createIPARAMVALUE(pDoc, imethodcallE,
ENUMERATION_CONTEXT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pContext);
}
if (pMaxObjectCount != null) {
iparamvalueE = CIMXMLBuilderImpl
.createIPARAMVALUE(pDoc, imethodcallE, MAX_OBJECT_COUNT);
CIMXMLBuilderImpl.createVALUE(pDoc, iparamvalueE, pMaxObjectCount);
}
return simplereqE;
}
/**
* sendIndication_request
*
* @param pDoc
* @param pIndication
* @return Element sendIndication_request
* @throws WBEMException
*/
public Element sendIndication_request(Document pDoc, CIMInstance pIndication)
throws WBEMException {
Element simpleexpreqE = CIMXMLBuilderImpl.createSIMPLEEXPREQ(pDoc);
Element expmethodcallE = CIMXMLBuilderImpl.createEXPMETHODCALL(pDoc, simpleexpreqE,
"ExportIndication");
Element expparamvalueE = CIMXMLBuilderImpl.createEXPPARAMVALUE(pDoc, expmethodcallE,
"NewIndication");
CIMXMLBuilderImpl.createINSTANCE(pDoc, expparamvalueE, pIndication);
return simpleexpreqE;
}
}
| [
"liukaixiang@beyondcent.com"
] | liukaixiang@beyondcent.com |
cfa16a9ad3696bfd146d2db419db748f41a84ab0 | ec79e7da1321e7b4b83364d45dc692836bd70c2e | /src/main/java/soot/block/overrides/BlockMixerImproved.java | 289ee2a32d0f3db36f608f2314ea7beebd337179 | [
"MIT"
] | permissive | Aemande123/Soot | 6f0337659c141b67e2dbf07b7900a9c3ea135b94 | 7f1bcd2bb6e4169006f14b9704447a8ac4ae417a | refs/heads/master | 2020-03-30T04:17:34.873599 | 2018-09-28T12:22:21 | 2018-09-28T12:22:21 | 139,576,712 | 0 | 0 | MIT | 2018-07-03T11:58:06 | 2018-07-03T11:58:05 | null | UTF-8 | Java | false | false | 1,964 | java | package soot.block.overrides;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import soot.tile.overrides.TileEntityMixerBottomImproved;
import soot.util.EmberUtil;
import soot.util.IMigrateable;
import soot.util.MigrationUtil;
import teamroots.embers.RegistryManager;
import teamroots.embers.block.BlockMixer;
import teamroots.embers.item.ItemTinkerHammer;
import teamroots.embers.tileentity.TileEntityMixerTop;
import javax.annotation.Nullable;
public class BlockMixerImproved extends BlockMixer implements IMigrateable {
public BlockMixerImproved(Material material, String name, boolean addToTab) {
super(material, name, addToTab);
EmberUtil.overrideRegistryLocation(this,name);
}
@Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float x, float y, float z) {
ItemStack heldItem = player.getHeldItem(hand);
if (heldItem.getItem() instanceof ItemTinkerHammer && state.getBlock() == this){
MigrationUtil.migrateBlock(world,pos);
return true;
}
return super.onBlockActivated(world, pos, state, player, hand, facing, x, y, z);
}
@Nullable
@Override
public TileEntity createNewTileEntity(World worldIn, int meta) {
if(meta == 1)
return new TileEntityMixerTop();
else
return new TileEntityMixerBottomImproved();
}
@Override
public IBlockState getReplacementState(IBlockState state) {
return RegistryManager.mixer.getDefaultState().withProperty(isTop,state.getValue(isTop));
}
}
| [
"bordlistian@hotmail.de"
] | bordlistian@hotmail.de |
7c18d0a6ce1452f557e5806a6861ee8f8a639925 | 691cec0e9a22c7874f19cc4eea3ca64a6aa50df9 | /offer_code_08.03/src/cn/kobe/Solution3.java | a2cdeeabc83384b087b0fddcb1c14785a9e4d5a5 | [] | no_license | luffryfight/Leetcode | 2b3ed1ea415ef9561ceafe7ff7331618b3b1823c | d668f7749b9dd4a0bdf907bbf93c498596d60c93 | refs/heads/master | 2023-07-15T19:04:13.670186 | 2021-08-23T03:23:19 | 2021-08-23T03:23:19 | 257,553,289 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 332 | java | package cn.kobe;
public class Solution3 {
//暴力的优化
public int findMagicIndex(int[] nums) {
for (int i = 0; i < nums.length; i++) {
if (nums[i] == i)
return i;
if (nums[i] > i + 1) {
i = nums[i] - 1;
}
}
return -1;
}
}
| [
"1161074235@qq.com"
] | 1161074235@qq.com |
bb3ceb2d947742f45607ad1ba6be181740d6b750 | 2e7f733be84815bb04ec181316820195650beb6f | /java-solutions/module-info.java | b4aaa10881512299f993586056645e5cb191b584 | [] | no_license | doctor-kaliy/java-advanced | fb405b351182db9faffb75155f45bf498f105a48 | 791d443f490ed131907b5f41f05035cbb8af10ab | refs/heads/main | 2023-07-07T22:41:26.206230 | 2021-09-06T12:26:40 | 2021-09-06T12:26:40 | 399,823,070 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 540 | java | module java.solutions {
requires transitive info.kgeorgiy.java.advanced.base;
requires info.kgeorgiy.java.advanced.implementor;
requires info.kgeorgiy.java.advanced.concurrent;
requires java.compiler;
requires info.kgeorgiy.java.advanced.crawler;
requires info.kgeorgiy.java.advanced.hello;
requires java.rmi;
exports info.kgeorgiy.ja.kosogorov.implementor;
exports info.kgeorgiy.ja.kosogorov.concurrent;
exports info.kgeorgiy.ja.kosogorov.bank;
opens info.kgeorgiy.ja.kosogorov.bank to junit;
}
| [
"284661@niuitmo.ru"
] | 284661@niuitmo.ru |
1d8a7e4f4879968b4c869fc85852f004086b61c6 | cab3a64205bfdd34280d1978205d407e8ebd725e | /src/main/java/com/tsien/mall/controller/backend/UserManageController.java | 5ebabd2a0bd2a23e4c07bd39331f46a29ef2c3f8 | [
"Apache-2.0"
] | permissive | Tsien16/TsienMall | cefec4ed8c24fce93100cc366aac7969058e22f3 | 12b9a2e503e476ef7b6a7b6251b26f7cb0a9a075 | refs/heads/master | 2022-12-10T13:35:14.631524 | 2021-12-02T01:23:31 | 2021-12-02T01:23:31 | 193,214,739 | 2 | 1 | Apache-2.0 | 2021-03-31T21:16:11 | 2019-06-22T09:15:23 | Java | UTF-8 | Java | false | false | 1,818 | java | package com.tsien.mall.controller.backend;
import com.tsien.mall.constant.Const;
import com.tsien.mall.constant.RoleEnum;
import com.tsien.mall.model.UserDO;
import com.tsien.mall.service.UserService;
import com.tsien.mall.util.ServerResponse;
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 javax.annotation.Resource;
import javax.servlet.http.HttpSession;
/**
* Created with IntelliJ IDEA.
*
* @author tsien
* @version 1.0.0
* @date 2019/6/28 0028 0:20
*/
@RestController
@RequestMapping("/manage/user")
public class UserManageController {
@Resource
private UserService userService;
/**
* 管理员用户登陆
*
* @param session session
* @param username username
* @param password password
* @return response
*/
@PostMapping("login.do")
public ServerResponse<UserDO> login(HttpSession session,
@RequestParam("username") String username,
@RequestParam("password") String password) {
ServerResponse<UserDO> response = userService.login(username, password);
if (response.isSuccess()) {
UserDO userDO = response.getData();
// 判断登陆的用户是否是管理员
if (userDO.getRole() == RoleEnum.ROLE_ADMIN.getCode()) {
session.setAttribute(Const.CURRENT_USER, response.getData());
return response;
} else {
return ServerResponse.createByErrorMessage("不是管理员,无法登陆");
}
}
return response;
}
}
| [
"tsien16@qq.com"
] | tsien16@qq.com |
0bb92ead0c861c2f69557c08347ff30401b80c1e | ec3ee5557e2120e9046f61a81b9d828e63f24c88 | /frostmourne-monitor/src/main/java/com/autohome/frostmourne/monitor/dao/mybatis/frostmourne/mapper/dynamic/RecipientDynamicSqlSupport.java | 7610273fff816865217f3644551ab87436eee5ea | [
"MIT"
] | permissive | xyzj91/frostmourne-1 | 34d9f4a1b12ca471a4b40aeb309dfefefa3bfd77 | d66da4e0a6c17b7e0eee910c2c3950a0ef0c6b79 | refs/heads/master | 2022-11-19T08:07:09.781357 | 2020-07-16T16:21:23 | 2020-07-16T16:21:23 | 280,370,796 | 1 | 0 | MIT | 2020-07-17T08:31:12 | 2020-07-17T08:31:11 | null | UTF-8 | Java | false | false | 2,299 | java | package com.autohome.frostmourne.monitor.dao.mybatis.frostmourne.mapper.dynamic;
import java.sql.JDBCType;
import java.util.Date;
import javax.annotation.Generated;
import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class RecipientDynamicSqlSupport {
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2020-07-11T14:44:51.801+08:00", comments="Source Table: recipient")
public static final Recipient recipient = new Recipient();
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2020-07-11T14:44:51.801+08:00", comments="Source field: recipient.id")
public static final SqlColumn<Long> id = recipient.id;
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2020-07-11T14:44:51.801+08:00", comments="Source field: recipient.alarm_id")
public static final SqlColumn<Long> alarm_id = recipient.alarm_id;
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2020-07-11T14:44:51.801+08:00", comments="Source field: recipient.alert_id")
public static final SqlColumn<Long> alert_id = recipient.alert_id;
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2020-07-11T14:44:51.801+08:00", comments="Source field: recipient.account")
public static final SqlColumn<String> account = recipient.account;
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2020-07-11T14:44:51.801+08:00", comments="Source field: recipient.create_at")
public static final SqlColumn<Date> create_at = recipient.create_at;
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2020-07-11T14:44:51.801+08:00", comments="Source Table: recipient")
public static final class Recipient extends SqlTable {
public final SqlColumn<Long> id = column("id", JDBCType.BIGINT);
public final SqlColumn<Long> alarm_id = column("alarm_id", JDBCType.BIGINT);
public final SqlColumn<Long> alert_id = column("alert_id", JDBCType.BIGINT);
public final SqlColumn<String> account = column("account", JDBCType.VARCHAR);
public final SqlColumn<Date> create_at = column("create_at", JDBCType.TIMESTAMP);
public Recipient() {
super("recipient");
}
}
} | [
"kechangqing@autohome.com.cn"
] | kechangqing@autohome.com.cn |
a6db5487650cf554e0996a5fa5243ec488733ebf | 602e369052c0e53e731701140d154bcd1c421db8 | /zlschool-api/src/main/java/com/zl/school/business/dto/course/GetCourseUnderListRes.java | 1d4510b4a5fa360aae84894c52de62c3ace7a830 | [] | no_license | 123wangkun/baoluaninfo | 1d51e32a7885719bec936c575ddc2d1d3213f0e2 | a5b2f4b1a52bbb0c78c1d325da5fdc0eee9bdaba | refs/heads/master | 2022-11-26T15:06:43.494843 | 2019-06-24T08:48:59 | 2019-06-24T08:48:59 | 193,442,090 | 1 | 0 | null | 2022-11-16T08:24:59 | 2019-06-24T05:50:23 | JavaScript | UTF-8 | Java | false | false | 1,285 | java | package com.zl.school.business.dto.course;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
import java.util.Date;
@Data
public class GetCourseUnderListRes {
@ApiModelProperty(value = "编码",required = true)
private String id;
@ApiModelProperty(value = "线下课程名称",required = true)
private String name;
@ApiModelProperty(value = "课程类型",required = true)
private String typeName;
@ApiModelProperty(value = "课程状态名称",required = true)
private Integer stateName;
@ApiModelProperty(value = "课程状态(1审核中;2进行中;3已结束;4未启用;)",required = true)
private Integer state;
@ApiModelProperty(value = "开始时间(线下)",required = true)
@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
private Date studyTime;
@ApiModelProperty(value = "创建时间",required = true)
@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
private Date createdTime;
@ApiModelProperty(value = "课程时长(分钟)",required = true)
private Integer totalTime;
}
| [
"807294668@qq.com"
] | 807294668@qq.com |
1f6e73b44a1a1f579a22878320df43ff119b2fe8 | ff90b24d08ec20054f03564a4238400a7fff5d1e | /src/main/java/com/luotianyi/test3/web/UserController.java | 4bf477943932625876005d101d793509b91c507d | [] | no_license | blogsProject/ssh3 | d53c78527af96354086c3d809881953676d99053 | 7bf23b72d3524909042c899441abe56504e5f6b8 | refs/heads/master | 2020-04-07T05:17:51.582515 | 2018-03-07T14:53:22 | 2018-03-07T14:53:22 | 124,184,355 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 974 | java | package com.luotianyi.test3.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import com.luotianyi.test3.entiy.User;
import com.luotianyi.test3.service.UserService;
import com.opensymphony.xwork2.ActionSupport;
@SuppressWarnings("serial")
@Controller
public class UserController extends ActionSupport {
@Autowired
@Qualifier("userService")
UserService userService;
User user;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public String login() {
String flag;
System.out.println(user);
String username = user.getUsername();
User temp = userService.getUserByUsername(username);
if (temp == null) {
flag = "error";
} else {
flag = temp.getPassword().equals(user.getPassword()) ? "success" : "error";
}
return flag;
}
}
| [
"z173391478@gmail.com"
] | z173391478@gmail.com |
f35be0726af8d3b307631c0a291ab918efe304ce | a7c12e4a8c47ebdf4549cc62a5c2730c8cbd5dee | /src/main/java/com/jouav/myapp/service/impl/JobHistoryServiceImpl.java | 9516aff05be279b5d27d1addb5bdb9513c3a29d6 | [] | no_license | hanjingyao/app3 | 40e3529b390631d26145a140c87eaac1c7f3f0c0 | 276022a22e9ee5027fd7b7530a2c14f83c288279 | refs/heads/master | 2021-04-26T23:03:25.091959 | 2018-03-05T07:27:41 | 2018-03-05T13:30:57 | 123,923,334 | 0 | 1 | null | 2020-09-18T08:37:49 | 2018-03-05T13:27:15 | Java | UTF-8 | Java | false | false | 2,665 | java | package com.jouav.myapp.service.impl;
import com.jouav.myapp.service.JobHistoryService;
import com.jouav.myapp.domain.JobHistory;
import com.jouav.myapp.repository.JobHistoryRepository;
import com.jouav.myapp.service.dto.JobHistoryDTO;
import com.jouav.myapp.service.mapper.JobHistoryMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* Service Implementation for managing JobHistory.
*/
@Service
@Transactional
public class JobHistoryServiceImpl implements JobHistoryService {
private final Logger log = LoggerFactory.getLogger(JobHistoryServiceImpl.class);
private final JobHistoryRepository jobHistoryRepository;
private final JobHistoryMapper jobHistoryMapper;
public JobHistoryServiceImpl(JobHistoryRepository jobHistoryRepository, JobHistoryMapper jobHistoryMapper) {
this.jobHistoryRepository = jobHistoryRepository;
this.jobHistoryMapper = jobHistoryMapper;
}
/**
* Save a jobHistory.
*
* @param jobHistoryDTO the entity to save
* @return the persisted entity
*/
@Override
public JobHistoryDTO save(JobHistoryDTO jobHistoryDTO) {
log.debug("Request to save JobHistory : {}", jobHistoryDTO);
JobHistory jobHistory = jobHistoryMapper.toEntity(jobHistoryDTO);
jobHistory = jobHistoryRepository.save(jobHistory);
return jobHistoryMapper.toDto(jobHistory);
}
/**
* Get all the jobHistories.
*
* @param pageable the pagination information
* @return the list of entities
*/
@Override
@Transactional(readOnly = true)
public Page<JobHistoryDTO> findAll(Pageable pageable) {
log.debug("Request to get all JobHistories");
return jobHistoryRepository.findAll(pageable)
.map(jobHistoryMapper::toDto);
}
/**
* Get one jobHistory by id.
*
* @param id the id of the entity
* @return the entity
*/
@Override
@Transactional(readOnly = true)
public JobHistoryDTO findOne(Long id) {
log.debug("Request to get JobHistory : {}", id);
JobHistory jobHistory = jobHistoryRepository.findOne(id);
return jobHistoryMapper.toDto(jobHistory);
}
/**
* Delete the jobHistory by id.
*
* @param id the id of the entity
*/
@Override
public void delete(Long id) {
log.debug("Request to delete JobHistory : {}", id);
jobHistoryRepository.delete(id);
}
}
| [
"1254292279@qq.com"
] | 1254292279@qq.com |
4a8e794faed8382de76d730bcd387b467b553b5e | e707e6d6f7769a35d4292e45fdaab34edec5749e | /Dara1/app/src/main/java/com/example/test/dara/StartingLocationActivity.java | 75403ced2ace2f82de42650b0148e1163ee98c21 | [] | no_license | alecglen/Dara | 1594730c151d932188b9aa63d0131d48f2579884 | d43286ad4cbb04142161a5a246f7e84fc7056eb5 | refs/heads/master | 2021-04-12T08:06:26.266390 | 2018-05-22T20:31:49 | 2018-05-22T20:31:49 | 126,091,995 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,821 | java | package com.example.test.dara;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class StartingLocationActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_starting_location);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Make button lead back to the New Req interface
Button getAddress = findViewById(R.id.addressContinue);
getAddress.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
EditText temp = findViewById(R.id.editText7);
String addr1 = temp.getText().toString();
EditText temp2 = findViewById(R.id.EndingeditText13);
String city = temp2.getText().toString();
EditText temp3 = findViewById(R.id.editText8);
String state = temp3.getText().toString();
String address = addr1 + ", " + city + ", " + state;
if (address.length() > 35) address = address.substring(0, 32) + "...";
Intent myIntent = new Intent(StartingLocationActivity.this, NewReqActivity.class);
Bundle bundle = getIntent().getExtras();
bundle.putString("Pick-up Location", address);
myIntent.putExtras(bundle);
StartingLocationActivity.this.startActivity(myIntent);
}
});
}
}
| [
"alec.ostrander@gmail.com"
] | alec.ostrander@gmail.com |
ff444c8b6b257a4a3b4e0cbf4093a806cdc9bb43 | 0f5c44fb88644abe232c35ae219ed50ff233af8d | /src/main/java/open/commons/tool/dvm/widget/UpdateLogDigalog.java | 6088aec9f90bbc5eb63eea0be383c82410223681 | [
"MIT"
] | permissive | parkjunhong/doc-version-manager | a792d01df73cb7719f3be30e2e7dd574c4afd59d | e763248449143f8f778821f81d112c4d3b263844 | refs/heads/master | 2023-01-24T15:25:49.658237 | 2021-07-29T07:55:26 | 2021-07-29T07:55:26 | 227,792,906 | 0 | 0 | MIT | 2021-12-10T01:01:11 | 2019-12-13T08:32:48 | Java | UTF-8 | Java | false | false | 3,798 | java | /*
*
* This file is generated under this project, "DocVersionManager".
*
* Date : 2014. 11. 26. 오후 5:03:42
*
* Author: Park_Jun_Hong_(fafanmama_at_naver_com)
*
*/
package open.commons.tool.dvm.widget;
import java.util.List;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.wb.swt.SWTResourceManager;
public class UpdateLogDigalog extends TitleAreaDialog {
private ScrolledComposite scrolledComposite;
private Text text;
private final int MAX_LENGTH = 0xFFFFF;
/**
* Create the dialog.
*
* @param parentShell
*/
public UpdateLogDigalog(Shell parentShell) {
super(parentShell);
setShellStyle(SWT.BORDER | SWT.RESIZE | SWT.TITLE);
setBlockOnOpen(false);
}
public void ready() {
create();
constrainShellSize();
getShell().setVisible(false);
}
/**
* Create contents of the dialog.
*
* @param parent
*/
@Override
protected Control createDialogArea(Composite parent) {
setMessage("문서 업데이트 로그창");
setTitle("문서 업데이트 로그창");
setTitleImage(SWTResourceManager.getImage(UpdateLogDigalog.class, "/images/ic_action_go_to_today.png"));
Composite area = (Composite) super.createDialogArea(parent);
Composite container = new Composite(area, SWT.NONE);
container.setLayout(new GridLayout(1, false));
container.setLayoutData(new GridData(GridData.FILL_BOTH));
this.scrolledComposite = new ScrolledComposite(container, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
this.scrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
this.scrolledComposite.setExpandHorizontal(true);
this.scrolledComposite.setExpandVertical(true);
this.text = new Text(this.scrolledComposite, SWT.BORDER | SWT.WRAP | SWT.MULTI);
this.text.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
scrolledComposite.setMinSize(text.computeSize(SWT.DEFAULT, SWT.DEFAULT));
}
});
this.scrolledComposite.setContent(this.text);
this.scrolledComposite.setMinSize(this.text.computeSize(SWT.DEFAULT, SWT.DEFAULT));
return area;
}
int curLogLen = 0;
public void addLog(List<String> logs) {
StringBuffer sb = new StringBuffer();
for (String log : logs) {
sb.append(log);
sb.append("\n");
}
int ll = sb.length();
int rl = (curLogLen + ll) - MAX_LENGTH;
if (rl > 0) {
text.setSelection(curLogLen - ll, curLogLen);
text.clearSelection();
}
text.append(sb.toString());
}
@Override
protected void okPressed() {
getShell().setVisible(false);
}
/**
* Create contents of the button bar.
*
* @param parent
*/
@Override
protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.OK_ID, "Close", true);
}
/**
* Return the initial size of the dialog.
*/
@Override
protected Point getInitialSize() {
return new Point(868, 404);
}
}
| [
"parkjunhong77@gmail.com"
] | parkjunhong77@gmail.com |
91f437a5fef8cf442d4822124e2ff315ebd956a0 | 0f442bd5a47888ecea6b29b8d80e64ad890b368e | /src/main/java/org/rtassembly/npgraph/grpc/RequestAssembly.java | 1900e9ee942c831f40ef20aca15dd6a56125476b | [
"LicenseRef-scancode-other-permissive"
] | permissive | hsnguyen/assembly | 1c49ac2213012fd13f01f293b72937db438ea446 | 26bd8df1b834d9df0c09be34c64de9dd7d0b5175 | refs/heads/master | 2022-12-14T23:22:28.562235 | 2020-12-06T12:35:44 | 2020-12-06T12:35:44 | 100,936,177 | 23 | 2 | null | 2022-12-02T22:21:51 | 2017-08-21T09:30:17 | Java | UTF-8 | Java | false | true | 30,521 | java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: npgraph_service.proto
package org.rtassembly.npgraph.grpc;
/**
* <pre>
* Client sent all hits from a chunk simultaneously
* </pre>
*
* Protobuf type {@code assembly.RequestAssembly}
*/
public final class RequestAssembly extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:assembly.RequestAssembly)
RequestAssemblyOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestAssembly.newBuilder() to construct.
private RequestAssembly(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private RequestAssembly() {
readId_ = "";
hitsList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestAssembly();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestAssembly(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
readId_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
hitsList_ = new java.util.ArrayList<org.rtassembly.npgraph.grpc.AlignmentMsg>();
mutable_bitField0_ |= 0x00000001;
}
hitsList_.add(
input.readMessage(org.rtassembly.npgraph.grpc.AlignmentMsg.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
hitsList_ = java.util.Collections.unmodifiableList(hitsList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.rtassembly.npgraph.grpc.AssemblyGuideProto.internal_static_assembly_RequestAssembly_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.rtassembly.npgraph.grpc.AssemblyGuideProto.internal_static_assembly_RequestAssembly_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.rtassembly.npgraph.grpc.RequestAssembly.class, org.rtassembly.npgraph.grpc.RequestAssembly.Builder.class);
}
public static final int READ_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object readId_;
/**
* <code>string read_id = 1;</code>
* @return The readId.
*/
public java.lang.String getReadId() {
java.lang.Object ref = readId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
readId_ = s;
return s;
}
}
/**
* <code>string read_id = 1;</code>
* @return The bytes for readId.
*/
public com.google.protobuf.ByteString
getReadIdBytes() {
java.lang.Object ref = readId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
readId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HITS_LIST_FIELD_NUMBER = 2;
private java.util.List<org.rtassembly.npgraph.grpc.AlignmentMsg> hitsList_;
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public java.util.List<org.rtassembly.npgraph.grpc.AlignmentMsg> getHitsListList() {
return hitsList_;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public java.util.List<? extends org.rtassembly.npgraph.grpc.AlignmentMsgOrBuilder>
getHitsListOrBuilderList() {
return hitsList_;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public int getHitsListCount() {
return hitsList_.size();
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public org.rtassembly.npgraph.grpc.AlignmentMsg getHitsList(int index) {
return hitsList_.get(index);
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public org.rtassembly.npgraph.grpc.AlignmentMsgOrBuilder getHitsListOrBuilder(
int index) {
return hitsList_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getReadIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, readId_);
}
for (int i = 0; i < hitsList_.size(); i++) {
output.writeMessage(2, hitsList_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getReadIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, readId_);
}
for (int i = 0; i < hitsList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, hitsList_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.rtassembly.npgraph.grpc.RequestAssembly)) {
return super.equals(obj);
}
org.rtassembly.npgraph.grpc.RequestAssembly other = (org.rtassembly.npgraph.grpc.RequestAssembly) obj;
if (!getReadId()
.equals(other.getReadId())) return false;
if (!getHitsListList()
.equals(other.getHitsListList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + READ_ID_FIELD_NUMBER;
hash = (53 * hash) + getReadId().hashCode();
if (getHitsListCount() > 0) {
hash = (37 * hash) + HITS_LIST_FIELD_NUMBER;
hash = (53 * hash) + getHitsListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.rtassembly.npgraph.grpc.RequestAssembly parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.rtassembly.npgraph.grpc.RequestAssembly prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* Client sent all hits from a chunk simultaneously
* </pre>
*
* Protobuf type {@code assembly.RequestAssembly}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:assembly.RequestAssembly)
org.rtassembly.npgraph.grpc.RequestAssemblyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.rtassembly.npgraph.grpc.AssemblyGuideProto.internal_static_assembly_RequestAssembly_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.rtassembly.npgraph.grpc.AssemblyGuideProto.internal_static_assembly_RequestAssembly_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.rtassembly.npgraph.grpc.RequestAssembly.class, org.rtassembly.npgraph.grpc.RequestAssembly.Builder.class);
}
// Construct using org.rtassembly.npgraph.grpc.RequestAssembly.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHitsListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
readId_ = "";
if (hitsListBuilder_ == null) {
hitsList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
hitsListBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.rtassembly.npgraph.grpc.AssemblyGuideProto.internal_static_assembly_RequestAssembly_descriptor;
}
@java.lang.Override
public org.rtassembly.npgraph.grpc.RequestAssembly getDefaultInstanceForType() {
return org.rtassembly.npgraph.grpc.RequestAssembly.getDefaultInstance();
}
@java.lang.Override
public org.rtassembly.npgraph.grpc.RequestAssembly build() {
org.rtassembly.npgraph.grpc.RequestAssembly result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.rtassembly.npgraph.grpc.RequestAssembly buildPartial() {
org.rtassembly.npgraph.grpc.RequestAssembly result = new org.rtassembly.npgraph.grpc.RequestAssembly(this);
int from_bitField0_ = bitField0_;
result.readId_ = readId_;
if (hitsListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
hitsList_ = java.util.Collections.unmodifiableList(hitsList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.hitsList_ = hitsList_;
} else {
result.hitsList_ = hitsListBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.rtassembly.npgraph.grpc.RequestAssembly) {
return mergeFrom((org.rtassembly.npgraph.grpc.RequestAssembly)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.rtassembly.npgraph.grpc.RequestAssembly other) {
if (other == org.rtassembly.npgraph.grpc.RequestAssembly.getDefaultInstance()) return this;
if (!other.getReadId().isEmpty()) {
readId_ = other.readId_;
onChanged();
}
if (hitsListBuilder_ == null) {
if (!other.hitsList_.isEmpty()) {
if (hitsList_.isEmpty()) {
hitsList_ = other.hitsList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHitsListIsMutable();
hitsList_.addAll(other.hitsList_);
}
onChanged();
}
} else {
if (!other.hitsList_.isEmpty()) {
if (hitsListBuilder_.isEmpty()) {
hitsListBuilder_.dispose();
hitsListBuilder_ = null;
hitsList_ = other.hitsList_;
bitField0_ = (bitField0_ & ~0x00000001);
hitsListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHitsListFieldBuilder() : null;
} else {
hitsListBuilder_.addAllMessages(other.hitsList_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.rtassembly.npgraph.grpc.RequestAssembly parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.rtassembly.npgraph.grpc.RequestAssembly) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object readId_ = "";
/**
* <code>string read_id = 1;</code>
* @return The readId.
*/
public java.lang.String getReadId() {
java.lang.Object ref = readId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
readId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string read_id = 1;</code>
* @return The bytes for readId.
*/
public com.google.protobuf.ByteString
getReadIdBytes() {
java.lang.Object ref = readId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
readId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string read_id = 1;</code>
* @param value The readId to set.
* @return This builder for chaining.
*/
public Builder setReadId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
readId_ = value;
onChanged();
return this;
}
/**
* <code>string read_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearReadId() {
readId_ = getDefaultInstance().getReadId();
onChanged();
return this;
}
/**
* <code>string read_id = 1;</code>
* @param value The bytes for readId to set.
* @return This builder for chaining.
*/
public Builder setReadIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
readId_ = value;
onChanged();
return this;
}
private java.util.List<org.rtassembly.npgraph.grpc.AlignmentMsg> hitsList_ =
java.util.Collections.emptyList();
private void ensureHitsListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
hitsList_ = new java.util.ArrayList<org.rtassembly.npgraph.grpc.AlignmentMsg>(hitsList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.rtassembly.npgraph.grpc.AlignmentMsg, org.rtassembly.npgraph.grpc.AlignmentMsg.Builder, org.rtassembly.npgraph.grpc.AlignmentMsgOrBuilder> hitsListBuilder_;
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public java.util.List<org.rtassembly.npgraph.grpc.AlignmentMsg> getHitsListList() {
if (hitsListBuilder_ == null) {
return java.util.Collections.unmodifiableList(hitsList_);
} else {
return hitsListBuilder_.getMessageList();
}
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public int getHitsListCount() {
if (hitsListBuilder_ == null) {
return hitsList_.size();
} else {
return hitsListBuilder_.getCount();
}
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public org.rtassembly.npgraph.grpc.AlignmentMsg getHitsList(int index) {
if (hitsListBuilder_ == null) {
return hitsList_.get(index);
} else {
return hitsListBuilder_.getMessage(index);
}
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public Builder setHitsList(
int index, org.rtassembly.npgraph.grpc.AlignmentMsg value) {
if (hitsListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHitsListIsMutable();
hitsList_.set(index, value);
onChanged();
} else {
hitsListBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public Builder setHitsList(
int index, org.rtassembly.npgraph.grpc.AlignmentMsg.Builder builderForValue) {
if (hitsListBuilder_ == null) {
ensureHitsListIsMutable();
hitsList_.set(index, builderForValue.build());
onChanged();
} else {
hitsListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public Builder addHitsList(org.rtassembly.npgraph.grpc.AlignmentMsg value) {
if (hitsListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHitsListIsMutable();
hitsList_.add(value);
onChanged();
} else {
hitsListBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public Builder addHitsList(
int index, org.rtassembly.npgraph.grpc.AlignmentMsg value) {
if (hitsListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHitsListIsMutable();
hitsList_.add(index, value);
onChanged();
} else {
hitsListBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public Builder addHitsList(
org.rtassembly.npgraph.grpc.AlignmentMsg.Builder builderForValue) {
if (hitsListBuilder_ == null) {
ensureHitsListIsMutable();
hitsList_.add(builderForValue.build());
onChanged();
} else {
hitsListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public Builder addHitsList(
int index, org.rtassembly.npgraph.grpc.AlignmentMsg.Builder builderForValue) {
if (hitsListBuilder_ == null) {
ensureHitsListIsMutable();
hitsList_.add(index, builderForValue.build());
onChanged();
} else {
hitsListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public Builder addAllHitsList(
java.lang.Iterable<? extends org.rtassembly.npgraph.grpc.AlignmentMsg> values) {
if (hitsListBuilder_ == null) {
ensureHitsListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hitsList_);
onChanged();
} else {
hitsListBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public Builder clearHitsList() {
if (hitsListBuilder_ == null) {
hitsList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
hitsListBuilder_.clear();
}
return this;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public Builder removeHitsList(int index) {
if (hitsListBuilder_ == null) {
ensureHitsListIsMutable();
hitsList_.remove(index);
onChanged();
} else {
hitsListBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public org.rtassembly.npgraph.grpc.AlignmentMsg.Builder getHitsListBuilder(
int index) {
return getHitsListFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public org.rtassembly.npgraph.grpc.AlignmentMsgOrBuilder getHitsListOrBuilder(
int index) {
if (hitsListBuilder_ == null) {
return hitsList_.get(index); } else {
return hitsListBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public java.util.List<? extends org.rtassembly.npgraph.grpc.AlignmentMsgOrBuilder>
getHitsListOrBuilderList() {
if (hitsListBuilder_ != null) {
return hitsListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(hitsList_);
}
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public org.rtassembly.npgraph.grpc.AlignmentMsg.Builder addHitsListBuilder() {
return getHitsListFieldBuilder().addBuilder(
org.rtassembly.npgraph.grpc.AlignmentMsg.getDefaultInstance());
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public org.rtassembly.npgraph.grpc.AlignmentMsg.Builder addHitsListBuilder(
int index) {
return getHitsListFieldBuilder().addBuilder(
index, org.rtassembly.npgraph.grpc.AlignmentMsg.getDefaultInstance());
}
/**
* <code>repeated .assembly.AlignmentMsg hits_list = 2;</code>
*/
public java.util.List<org.rtassembly.npgraph.grpc.AlignmentMsg.Builder>
getHitsListBuilderList() {
return getHitsListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.rtassembly.npgraph.grpc.AlignmentMsg, org.rtassembly.npgraph.grpc.AlignmentMsg.Builder, org.rtassembly.npgraph.grpc.AlignmentMsgOrBuilder>
getHitsListFieldBuilder() {
if (hitsListBuilder_ == null) {
hitsListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.rtassembly.npgraph.grpc.AlignmentMsg, org.rtassembly.npgraph.grpc.AlignmentMsg.Builder, org.rtassembly.npgraph.grpc.AlignmentMsgOrBuilder>(
hitsList_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
hitsList_ = null;
}
return hitsListBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:assembly.RequestAssembly)
}
// @@protoc_insertion_point(class_scope:assembly.RequestAssembly)
private static final org.rtassembly.npgraph.grpc.RequestAssembly DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.rtassembly.npgraph.grpc.RequestAssembly();
}
public static org.rtassembly.npgraph.grpc.RequestAssembly getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<RequestAssembly>
PARSER = new com.google.protobuf.AbstractParser<RequestAssembly>() {
@java.lang.Override
public RequestAssembly parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestAssembly(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<RequestAssembly> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<RequestAssembly> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.rtassembly.npgraph.grpc.RequestAssembly getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
| [
"hoangnguyen.minor@gmail.com"
] | hoangnguyen.minor@gmail.com |
f3f47ae3c03d06ab767b449b1d5b45d3d6739440 | 37bdf47bab979d25ef29e5c4562c298cfeb942f3 | /HomeWork_day4/src/Date.java | bd2f700ca8530b8afc874c6da30a80e8073b4895 | [] | no_license | NovaXam/Cognizant | a4642037877f33146a4eefcd480f97e146f21d90 | d3f034e6350c320e7cd404c1e7a6b083ba57a3a2 | refs/heads/master | 2021-09-09T11:11:44.955835 | 2018-03-15T13:13:49 | 2018-03-15T13:13:49 | 124,000,490 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 171 | java | /**
* Created by student on 3/8/18.
*/
public class Date {
public Date() {
};
public String toString() {
return this.getClass().getName();
};
}
| [
"novakhm@gmail.com"
] | novakhm@gmail.com |
3485b797a1abe07397c0d97c36964099614faff5 | f773573e1493e514ae9708302a3c672ea1d3afd4 | /app/src/androidTest/java/com/example/lg/a216230115/ExampleInstrumentedTest.java | 7e2d717abaeeac92a625bd78092afea9c842ede2 | [] | no_license | mjkim1345/216230115_2nd | 79a1c4a4198a181628ed45737166cba818d19d23 | 506cee28349a3b15054b0b42b889c0df9e004f52 | refs/heads/master | 2021-08-23T16:45:38.326776 | 2017-12-05T18:54:08 | 2017-12-05T18:54:08 | 113,220,692 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 754 | java | package com.example.lg.a216230115;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.lg.a216230115", appContext.getPackageName());
}
}
| [
"mjkim1345@daum.net"
] | mjkim1345@daum.net |
a45ec2e0dfa8c3dbc4f8f854f49edb558800cfbc | 000f4ec33333e40dec5d75093a537070bc5a32e5 | /kodilla-patterns2/src/test/java/com/kodilla/patterns2/adapter/company/SalaryAdapterTestSuite.java | 4fe412bbea45fb7997c9544320d1a34749eb3599 | [] | no_license | michal-tokarski/michal-tokarski-kodilla-java | 67ac73e8ab237d6e964c46614f840f7a47944693 | 4e902fac090cdeb9a7b0a91ca2bbc9e8b2074163 | refs/heads/master | 2021-06-20T19:31:29.608260 | 2021-03-14T18:34:44 | 2021-03-14T18:34:44 | 190,971,793 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 611 | java | package com.kodilla.patterns2.adapter.company;
import com.kodilla.patterns2.adapter.company.oldhrsystem.Workers;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class SalaryAdapterTestSuite {
@Test
public void testTotalSalary() {
//Given
Workers workers = new Workers();
SalaryAdapter salaryAdapter = new SalaryAdapter();
//When
double totalSalary = salaryAdapter.TotalSalary(workers.getWorkers(), workers.getSalaries());
//Then
System.out.println(totalSalary);
assertEquals(totalSalary, 27750, 0);
}
}
| [
"michal_tokarski@wp.pl"
] | michal_tokarski@wp.pl |
4030831dfdd9a4787005c02afd9cf04515ecfa7a | a2f95d3709f26265ca1eeee7f8c44f192d26a328 | /src/LeetCode/Company/FaceBook/NextPermutation.java | 41539db7dad9fe4956f791a08879f3bb868542a3 | [] | no_license | ruoyanhuang/algorithm | 7bc27b5b94f19a6596d6a61a17940a335443fe29 | 0b8c65148db161a8906ce546ab896458b3d70557 | refs/heads/master | 2020-04-05T16:55:57.913046 | 2019-03-03T22:25:30 | 2019-03-03T22:25:30 | 157,035,572 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,352 | java | package LeetCode.Company.FaceBook;
public class NextPermutation {
public void nextPermutation(int[] nums) {
if (nums == null || nums.length == 0) {
return;
}
for (int i = nums.length - 2; i >= 0; i--) {
if (nums[i] < nums[i + 1]) {
int tmp = findSmallestLarger(nums, nums[i], i + 1);
swap(nums, i, tmp);
reverse(nums, i + 1, nums.length - 1);
return;
}
}
reverse(nums, 0, nums.length - 1);
return;
}
public int findSmallestLarger(int[] nums, int target, int left) {
int right = nums.length - 1;
while (left + 1 < right) {
int mid = left + (right - left) / 2;
if (target >= nums[mid]) {
right = mid - 1;
} else {
left = mid;
}
}
return target < nums[right] ? right : left;
}
public void swap(int[] nums, int left, int right) {
int tmp = nums[left];
nums[left] = nums[right];
nums[right] = tmp;
}
public void reverse(int[] nums, int left, int right) {
if (left >= right) {
return;
}
while (left < right) {
swap(nums, left, right);
left++;
right--;
}
}
}
| [
"huangustc@gmail.com"
] | huangustc@gmail.com |
92578fbdd6763ee06439bd6a16bdef06d0b61779 | dd1598513c6ee9aa3abff4118f8c9a2347f50a73 | /Bendo/src/ca/bendo/controller/course/CourseProfessorController.java | 4c48e3c5899f3c11402c6367cb057e497f1ab8fd | [] | no_license | timotheeguerin/uniiv-java | 2426b3b77fdfb6045c5080e74008bc2e71d1f4ec | dc94b1d72368af2b782a3cdc8d4a6710769f42d4 | refs/heads/master | 2021-03-27T14:32:54.115371 | 2013-07-19T13:53:56 | 2013-07-19T13:53:56 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 5,516 | java | /**
*
*/
package ca.bendo.controller.course;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import ca.bendo.alert.UserWarning;
import ca.bendo.db.entity.lang.Language;
import ca.bendo.form.handler.course.CourseProfessorHandler;
import ca.bendo.session.UserSession;
import ca.bendo.translation.RequestTranslator;
import ca.bendo.translation.translation.Translator;
/**
* @author Timothée Guérin
* @version Bendo
*
* <b>CourseProfessorController</b>
* <p>
* </p>
*
*
*/
@Controller
public class CourseProfessorController
{
/**
*
*/
@Autowired
private CourseProfessorHandler courseProfessorHandler;
/**
* Get the request after filling inputs and submit of login.
*
* @param request
* Request
* @param response
* Response
* @param universityId
* University id
*
* @param courseId
* Course id
* @return Jsp page
*/
@RequestMapping(value = "/university/{uniId}/course/{courseId}/professors", method = RequestMethod.GET)
public String courseTeachedByProfessor(@PathVariable("uniId") final long universityId,
@PathVariable("courseId") final long courseId, final HttpServletRequest request,
final HttpServletResponse response)
{
// Translator translator = (Translator)
// request.getAttribute("translator");
/**
*
*/
if (courseProfessorHandler.setupCourseProfessorPage(universityId, courseId, request))
{
return "views/university/course/CourseProfessorList";
} else
{
return "redirect:/university/univeristyerror";
}
}
/**
* Get the request after filling inputs and submit of login.
*
* @param professorId
* Professor id
* @param request
* Request
* @param response
* Response
* @return Jsp page
*/
@RequestMapping(value = "/professor/{profId}/courses/", method = RequestMethod.GET)
public String professorUniversity(@PathVariable("profId") final int professorId, final HttpServletRequest request,
final HttpServletResponse response)
{
// Translator translator = (Translator)
// request.getAttribute("translator");
/**
*
*/
if (courseProfessorHandler.setupProfessorCoursePage(professorId, request))
{
return "views/university/course/ProfessorCourseList";
} else
{
return "redirect:/university/univeristyerror";
}
}
/**
* Get the request after filling inputs and submit of login.
*
* @param request
* Request
* @param response
* Response
* @param universityId
* University id
*
* @param courseId
* Course id
* @return Jsp page
*/
@RequestMapping(value = "/university/{uniId}/course/{courseId}/professor/new", method = RequestMethod.GET)
public String professorReview(@PathVariable("uniId") final long universityId,
@PathVariable("courseId") final long courseId, final HttpServletRequest request,
final HttpServletResponse response)
{
return newCourseProfessorPage(universityId, courseId, request, response);
}
/**
* Get the request after filling inputs and submit of login.
*
* @param request
* Request
* @param response
* Response
* @param universityId
* University id
*
* @param courseId
* Course id
* @return Jsp page
*/
@RequestMapping(value = "/university/{uniId}/course/{courseId}/professor/new", method = RequestMethod.POST)
public String handleNewProfessorReview(@PathVariable("uniId") final long universityId,
@PathVariable("courseId") final long courseId, final HttpServletRequest request,
final HttpServletResponse response)
{
Translator translator = (Translator) request.getAttribute("translator");
Long languageId = Language.loadId(request);
if (UserSession.getSession(request).hasPermission("user"))
{
if (courseProfessorHandler.handle(universityId, courseId, request))
{
String url = "/university/" + universityId + "/course/" + courseId;
String param = "?alertmsg=alert_info_course_professor_added";
return "redirect:" + translator.translateUrl(url + param, languageId);
} else
{
request.setAttribute("new_review_form_error", true);
}
}
return newCourseProfessorPage(universityId, courseId, request, response);
}
/**
* Get the request after filling inputs and submit of login.
*
* @param universityId
* University id
* @param courseId
* Course id
* @param request
* Request
* @param response
* Response
* @return Jsp page
*/
public String newCourseProfessorPage(final long universityId, final long courseId,
final HttpServletRequest request, final HttpServletResponse response)
{
UserWarning.needValidUser(request);
RequestTranslator translator = RequestTranslator.load(request);
if (!courseProfessorHandler.setupNewCourseProfessorPage(universityId, courseId, request))
{
return "redirect:" + translator.getTranslator().getLink("new_course", translator.getLanguage().getId())
+ "?err_no_course_with_id=" + courseId;
} else
{
return "views/university/course/newCourseProfessor";
}
}
}
| [
"timothee.guerin@outlook.com"
] | timothee.guerin@outlook.com |
c92ad14fc1185e090a5a84fa3b19b77b66f32882 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/8/8_88d681204b8fdb8aa10813dd393b532df9401d3b/TextComponentOperator/8_88d681204b8fdb8aa10813dd393b532df9401d3b_TextComponentOperator_t.java | e1d69f2b62b69b9fd88732e3f2c5156015ded5f0 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 1,459 | java | /*
* Copyright 2008 Nokia Siemens Networks Oyj
*
* 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.robotframework.swing.textcomponent;
import org.netbeans.jemmy.ComponentChooser;
import org.netbeans.jemmy.operators.ContainerOperator;
import org.netbeans.jemmy.operators.JTextComponentOperator;
import org.robotframework.swing.operator.ComponentWrapper;
public class TextComponentOperator extends JTextComponentOperator implements ComponentWrapper {
public TextComponentOperator(ContainerOperator container, int index) {
super(container, index);
}
public TextComponentOperator(ContainerOperator container, ComponentChooser chooser) {
super(container, chooser);
}
/*
* We want to let the application do whatever it wants with the inputs the textfield receives.
*/
@Override
public boolean getVerification() {
return false;
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
74796812cb6bf46b3cf51d6f4c0052607b5790e7 | 5239779c4efc5e6179bbf4e9b906f4900957397e | /spark-project/src/main/java/com/ibeifeng/sparkproject/spark/product/AreaTop3ProductSpark.java | 6ae552ffc6a8435fc8b70059839e3b62933f6e06 | [] | no_license | tongweiliu/idea-hadoop-5 | 97ef436f7962ae819cbeba3c822fe65cb8f6bf82 | d27f2d66da8e9c0feaff6c37d927d03e2efee9bc | refs/heads/master | 2020-04-02T12:05:40.928362 | 2018-10-24T01:23:29 | 2018-10-24T01:23:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 15,913 | java | package com.ibeifeng.sparkproject.spark.product;
import com.alibaba.fastjson.JSONObject;
import com.ibeifeng.sparkproject.conf.ConfigurationManager;
import com.ibeifeng.sparkproject.constant.Constants;
import com.ibeifeng.sparkproject.dao.IAreaTop3ProductDAO;
import com.ibeifeng.sparkproject.dao.ITaskDAO;
import com.ibeifeng.sparkproject.dao.factory.DAOFactory;
import com.ibeifeng.sparkproject.domain.AreaTop3Product;
import com.ibeifeng.sparkproject.domain.Task;
import com.ibeifeng.sparkproject.util.ParamUtils;
import com.ibeifeng.sparkproject.util.SparkUtils;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.Function;
import org.apache.spark.api.java.function.PairFunction;
import org.apache.spark.sql.DataFrame;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.RowFactory;
import org.apache.spark.sql.SQLContext;
import org.apache.spark.sql.types.DataTypes;
import org.apache.spark.sql.types.StructType;
import scala.Tuple2;
import java.util.*;
/**
* 各区域top3热门商品统计Spark作业
* @author Administrator
*
*/
public class AreaTop3ProductSpark {
public static void main(String[] args) {
//创建SparkConf
SparkConf conf = new SparkConf()
.setAppName("AreaTop3ProductSpark");
SparkUtils.setMaster(conf);
//构建Spark上下文
JavaSparkContext sc = new JavaSparkContext(conf);
SQLContext sqlContext=SparkUtils.getSQLContext(sc.sc());
//注册自定义函数
sqlContext.udf().register("concat_long_string",
new ConcatLongStringUDF(), DataTypes.StringType);
sqlContext.udf().register("get_json_object",
new GetJsonObjectUDF(), DataTypes.StringType);
sqlContext.udf().register("random_prefix",
new ConcatLongStringUDF(), DataTypes.StringType);
sqlContext.udf().register("remove_random_prefix",
new RemoveRandomPrefixUDF(), DataTypes.StringType);
sqlContext.udf().register("group_concat_distinct",
new GroupConcatDistinctUDAF());
// 准备模拟数据
SparkUtils.mockData(sc, sqlContext);
// 获取命令行传入的taskid,查询对应的任务参数
ITaskDAO taskDAO = DAOFactory.getTaskDAO();
long taskid = ParamUtils.getTaskIdFromArgs(args,
Constants.SPARK_LOCAL_TASKID_PRODUCT);
Task task = taskDAO.findById(taskid);
JSONObject taskParam = JSONObject.parseObject(task.getTaskParam());
String startDate = ParamUtils.getParam(taskParam, Constants.PARAM_START_DATE);
String endDate = ParamUtils.getParam(taskParam, Constants.PARAM_END_DATE);
/*
* 查询用户指定日期范围内控点击行为数据(city_id,在哪个城市发生的点击行为)
* 技术点1:Hive数据源的使用
* */
JavaPairRDD<Long, Row> cityid2clickActionRDD = getcityid2ClickActionRDDByDate(
sqlContext, startDate, endDate);
/*
* 从MySQL中查询城市信息
* 技术点2:异构数据源之MySQL的使用
* */
JavaPairRDD<Long, Row> cityid2cityInfoRDD = getcityid2CityInfoRDD(sqlContext);
// 生成点击商品基础信息临时表
// 技术点3:将RDD转换为DataFrame,并注册临时表
generateTempClickProductBasicTable(sqlContext,
cityid2clickActionRDD, cityid2cityInfoRDD);
// 生成各区域各商品点击次数的临时表
generateTempAreaPrdocutClickCountTable(sqlContext);
// 生成包含完整商品信息的各区域各商品点击次数的临时表
generateTempAreaFullProductClickCountTable(sqlContext);
// 使用开窗函数获取各个区域内点击次数排名前3的热门商品
JavaRDD<Row> areaTop3ProductRDD = getAreaTop3ProductRDD(sqlContext);
// 这边的写入mysql和之前不太一样
// 因为实际上,就这个业务需求而言,计算出来的最终数据量是比较小的
// 总共就不到10个区域,每个区域还是top3热门商品,总共最后数据量也就是几十个
// 所以可以直接将数据collect()到本地
// 用批量插入的方式,一次性插入mysql即可
List<Row> rows = areaTop3ProductRDD.collect();
System.out.println("rows: " + rows.size());
persistAreaTop3Product(taskid, rows);
sc.close();
}
/**
* 将计算出来的各区域top3热门商品写入MySQL中
* @param taskid
* @param rows
*/
private static void persistAreaTop3Product(long taskid, List<Row> rows) {
List<AreaTop3Product> areaTop3Products=new ArrayList<>();
for(Row row : rows) {
AreaTop3Product areaTop3Product = new AreaTop3Product();
areaTop3Product.setTaskid(taskid);
areaTop3Product.setArea(row.getString(0));
areaTop3Product.setAreaLevel(row.getString(1));
areaTop3Product.setProductid(row.getLong(2));
areaTop3Product.setClickCount(Long.valueOf(String.valueOf(row.get(3))));
areaTop3Product.setCityInfos(row.getString(4));
areaTop3Product.setProductName(row.getString(5));
areaTop3Product.setProductStatus(row.getString(6));
areaTop3Products.add(areaTop3Product);
}
IAreaTop3ProductDAO areTop3ProductDAO = DAOFactory.getAreaTop3ProductDAO();
areTop3ProductDAO.insertBatch(areaTop3Products);
}
private static JavaRDD<Row> getAreaTop3ProductRDD(SQLContext sqlContext) {
/*
* 技术点:开窗函数
*
* 使用开窗函数,先进行一个子查询
* 按照area进行分组,给每个分组内的数据,按照点击次数降序排序,打上一个组内的行号
* 接着在外层查询中,过滤出各个组内的行号排名前3的数据
* 其实就是咱们的各个区域下的top3热门商品
*
* 华北,华东,华南,华中,西北,西南,东北
* A级:华北,华东
* B级:华南,华中
* C级:西北,西南
* D级:东北
*
* case when
* 根据多个条件,不同的条件对应不同的值
* case when then ... when then ... else ... end
* */
String sql =
"SELECT "
+ "area,"
+ "CASE "
+ "WHEN area='China North' OR area='China East' THEN 'A Level' "
+ "WHEN area='China South' OR area='China Middle' THEN 'B Level' "
+ "WHEN area='West North' OR area='West South' THEN 'C Level' "
+ "ELSE 'D Level' "
+ "END area_level,"
+ "product_id,"
+ "click_count,"
+ "city_infos,"
+ "product_name,"
+ "product_status "
+ "FROM ("
+ "SELECT "
+ "area,"
+ "product_id,"
+ "click_count,"
+ "city_infos,"
+ "product_name,"
+ "product_status,"
+ "row_number() OVER (PARTITION BY area ORDER BY click_count DESC) rank "
+ "FROM tmp_area_fullprod_click_count "
+ ") t "
+ "WHERE rank<=3";
DataFrame df = sqlContext.sql(sql);
return df.javaRDD();
}
/**
* 生成区域商品点击次数临时表(包含了商品的完整信息)
* @param sqlContext
*/
private static void generateTempAreaFullProductClickCountTable(SQLContext sqlContext) {
/*
* 将之前得到的各区域各商品点击次数表,product_id
* 去关联商品信息表,product_id,product_name和product_status
* product_status要特殊处理,0,1分别代表了自营和第三方的商品,
* 放在了一个json串里面
* get_json_object()函数,可以从json串中获取指定的字段的值
* if()函数,判断,如果product_status是0,那么就是自营商品,如果是1,
* 那么不是第三方商品
* area,product_id,click_count,city_infos,product_name,product_status
*
* 为什么要费时费力,计算出来商品经营类型
* 你拿一了某个区域top3热门的商品,那么其实这个商品是自营的,还是每三方的
* 其实是很重要的一件事
*
* 技术点:内置if函数的使用
* */
String sql =
"SELECT "
+ "tapcc.area,"
+ "tapcc.product_id,"
+ "tapcc.click_count,"
+ "tapcc.city_infos,"
+ "pi.product_name,"
+ "if(get_json_object(pi.extend_info,'product_status')='0','Self','Third Party') product_status "
+ "FROM tmp_area_product_click_count tapcc "
+ "JOIN product_info pi ON tapcc.product_id=pi.product_id ";
DataFrame df = sqlContext.sql(sql);
df.registerTempTable("tmp_area_fullprod_click_count");
}
/**
* 生成各区域商品点击次数临时表
* @param sqlContext
*/
private static void generateTempAreaPrdocutClickCountTable(SQLContext sqlContext) {
/*
* 按照area和product_id两个字段进行分组
* 计算出各区域各商品的点击次数
* 可以获取每个area下的每个product_id的城市信息拼接起来的串
* */
String sql="select area,product_id,count(*) click_count," +
"group_concat_distinct(concat_long_string(city_id,city_name,':')) city_infos " +
"from tmp_click_product_basic group by area,product_id";
//使用Spark SQL执行这条SQL语句
DataFrame df = sqlContext.sql(sql);
/*
* 再次将查询出来的数据注册为一个临时表
* 各区域各商品的点击次数(以及额外的城市列表)
* */
df.registerTempTable("tmp_area_product_click_count");
}
/**
* 生成点击商品基础信息临时表
* @param sqlContext
* @param cityid2clickActionRDD
* @param cityid2cityInfoRDD
*/
private static void generateTempClickProductBasicTable(SQLContext sqlContext, JavaPairRDD<Long, Row> cityid2clickActionRDD, JavaPairRDD<Long, Row> cityid2cityInfoRDD) {
// 执行join操作,进行点击行为数据和城市数据的关联
JavaPairRDD<Long, Tuple2<Row, Row>> joinedRDD =
cityid2clickActionRDD.join(cityid2cityInfoRDD);
//将上面的JavaPairRDD,转换成一个JavaRDD<Row>(才能将RDD转换为DataFrame)
JavaRDD<Row> mapedRDD = joinedRDD.map(new Function<Tuple2<Long, Tuple2<Row, Row>>, Row>() {
private static final long serialVersionUID = -5344855997234131889L;
@Override
public Row call(Tuple2<Long, Tuple2<Row, Row>> tuple) throws Exception {
long cittid = tuple._1;
Row clickAction = tuple._2._1;
Row cityInfo = tuple._2._2;
long productid = clickAction.getLong(1);
String cityName = cityInfo.getString(1);
String area = cityInfo.getString(2);
return RowFactory.create(cittid, cityName, area, productid);
}
});
StructType schema=DataTypes.createStructType(Arrays.asList(
DataTypes.createStructField("city_id",DataTypes.LongType,true),
DataTypes.createStructField("city_name",DataTypes.StringType,true),
DataTypes.createStructField("area",DataTypes.StringType,true),
DataTypes.createStructField("product_id",DataTypes.LongType,true)
));
/*
* 1 北京
* 2 上海
* 1 北京
* group by area,product_id
* 1:北京,2:上海
*
* 两个函数UDF:concat2(),将两个字段拼接起来,用指定的分隔符
* UDAF:group_concat_distinct(),将一个分组中的多个字段值,用逗号拼接起来,
* 同时进行去重
* */
DataFrame df = sqlContext.createDataFrame(mapedRDD, schema);
//将DataFrame中的数据,注册成临时表(tmp_click_product_basic)
df.registerTempTable("tmp_click_product_basic");
}
/**
* 使用Spark SQL从MySQL中查询城市信息
* @param sqlContext
* @return
*/
private static JavaPairRDD<Long, Row> getcityid2CityInfoRDD(SQLContext sqlContext) {
//构建MySQL连接配置信息(直接从配置文件中获取)
String url;
String user;
String password;
boolean local = ConfigurationManager.getBoolean(Constants.SPARK_LOCAL);
if(local){
url = ConfigurationManager.getProperty(Constants.JDBC_URL);
user = ConfigurationManager.getProperty(Constants.JDBC_USER);
password = ConfigurationManager.getProperty(Constants.JDBC_PASSWORD);
}else {
url = ConfigurationManager.getProperty(Constants.JDBC_URL_PROD);
user = ConfigurationManager.getProperty(Constants.JDBC_USER_PROD);
password = ConfigurationManager.getProperty(Constants.JDBC_PASSWORD_PROD);
}
Map<String, String> options = new HashMap<>();
options.put("url", url);
options.put("dbtable", "city_info");
options.put("user", user);
options.put("password", password);
// 通过SQLContext去从MySQL中查询数据
DataFrame cityInfoDF = sqlContext.read().format("jdbc")
.options(options).load();
JavaRDD<Row> cityInfoRDD = cityInfoDF.javaRDD();
return cityInfoRDD.mapToPair(new PairFunction<Row, Long, Row>() {
private static final long serialVersionUID = 6066704517384710758L;
@Override
public Tuple2<Long, Row> call(Row row) throws Exception {
long cityid=Long.parseLong(String.valueOf(row.get(0)));
return new Tuple2<>(cityid,row);
}
});
}
/**
* 查询指定日期范围内的点击行为数据
* @param sqlContext
* @param startDate
* @param endDate
* @return
*/
private static JavaPairRDD<Long, Row> getcityid2ClickActionRDDByDate(SQLContext sqlContext, String startDate, String endDate) {
/*
* 从user_visit_action中,查询用户访问行为数据
* 第一个限定:click_product_id,限定为不为空的访问行为,那么就代表着点击行为
* 第二个限定:在用户指定的日期范围内的数据
* */
String sql="select city_id,click_product_id product_id " +
"from user_visit_action " +
"where click_product_id is not null " +
"and date>='"+startDate+"' " +
"and date <='"+endDate+",";
DataFrame clickActionDF = sqlContext.sql(sql);
JavaRDD<Row> clickActionRDD = clickActionDF.javaRDD();
return clickActionRDD.mapToPair(new PairFunction<Row, Long, Row>() {
private static final long serialVersionUID = 6066704517384710758L;
@Override
public Tuple2<Long, Row> call(Row row) throws Exception {
Long cityid = row.getLong(0);
return new Tuple2<>(cityid, row);
}
});
}
}
| [
"liutongwei@hydsoft.com"
] | liutongwei@hydsoft.com |
bc389426d0b07a268a019654f0a9b3cb5260e1e1 | 2582deebb8f42bce7d3280616077aa9c930fd12f | /etalon2017-master/.idea/dataSources/com/assignstudent/etalon/CompanyEntity.java | 1a5eb1f7bf419a9af08167bb3b61e861e4770b48 | [] | no_license | karpiyeniamv/JavaDev4 | c8066b231a2950acccc3617070e11e2c5250e631 | e357dd5e82b49303160113120060bc7634216f5a | refs/heads/master | 2021-05-04T19:55:17.656686 | 2017-12-29T14:48:18 | 2017-12-29T14:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,620 | java | package com.assignstudent.etalon;
import javax.persistence.*;
import java.util.Collection;
@Entity
@Table(name = "company", schema = "assignstudent", catalog = "")
public class CompanyEntity {
private int id;
private String companyName;
private Collection<com.assignstudent.etalon.RequestEntity> requestsById;
@Id
@Column(name = "id", nullable = false)
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Basic
@Column(name = "companyName", nullable = false, length = 45)
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CompanyEntity that = (CompanyEntity) o;
if (id != that.id) return false;
if (companyName != null ? !companyName.equals(that.companyName) : that.companyName != null) return false;
return true;
}
@Override
public int hashCode() {
int result = id;
result = 31 * result + (companyName != null ? companyName.hashCode() : 0);
return result;
}
@OneToMany(mappedBy = "companyByCompanyId")
public Collection<com.assignstudent.etalon.RequestEntity> getRequestsById() {
return requestsById;
}
public void setRequestsById(Collection<com.assignstudent.etalon.RequestEntity> requestsById) {
this.requestsById = requestsById;
}
}
| [
"karpiyenia.mv@gmail.com"
] | karpiyenia.mv@gmail.com |
a4732979a7ad34cb9cd07377809bab758af047fd | 8f87065bc3cb6d96ea2e398a98aacda4fc4bbe43 | /src/Class00000400Better.java | b51ae81010ab2efd705fc000445cf06eb6b22a0e | [] | no_license | fracz/code-quality-benchmark | a243d345441582473532f9b013993f77d59e19ae | c23e76fe315f43bea899beabb856e61348c34e09 | refs/heads/master | 2020-04-08T23:40:36.408828 | 2019-07-31T17:54:53 | 2019-07-31T17:54:53 | 159,835,188 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 296 | java | // original filename: 00028270.txt
// after
public class Class00000400Better {
@Override
public WebSocketConnectOptions setPort(int port) {
Arguments.requireInRange(port, 1, 65535, "port p must be in range 1 <= p <= 65535");
this.port = port;
return this;
}
}
| [
"fraczwojciech@gmail.com"
] | fraczwojciech@gmail.com |
ba483e2592858af7468700b67a03555e01478328 | 69cf7e7a74a365b556b76513cbe9a0e019280ca1 | /RTS/junit/edu/ycp/cs320/rts/junit/GameObjectTest.java | 4d83857fe19bea73519ff87b2b33f1842a41cc72 | [] | no_license | dmashuda/CS320RTS | 9806c3bbd09208ce0b80a57d656a9d4af0797ed4 | ae534aeecf5d0709eb12ea7ea724bdd8ee020b5d | refs/heads/master | 2021-01-01T19:16:48.651606 | 2014-05-14T03:40:21 | 2014-05-14T03:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,225 | java | package edu.ycp.cs320.rts.junit;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import edu.ycp.cs320.rts.shared.GameObject;
import edu.ycp.cs320.rts.shared.Point;
public class GameObjectTest {
private Point c1 = new Point(3,4);
private Point c2 = new Point(106,2);
private Point c3 = new Point(106,103);
private GameObject p1 = new GameObject();
private GameObject p2 = new GameObject();
private GameObject p3 = new GameObject();
@Before
public void setUp() throws Exception {
p1.setPosition(new Point(0,0));
p2.setPosition(new Point(10,10));
p3.setPosition(new Point(99,99));
p1.setSize(new Point(8,8));
p2.setSize(new Point(32,32));
p3.setSize(new Point(16,16));
}
@Test
public void testP1() {
assertEquals(true, p1.checkBounds(c1));
assertEquals(false, p1.checkBounds(c2));
assertEquals(false, p1.checkBounds(c3));
}
@Test
public void testP2() {
assertEquals(false, p2.checkBounds(c2));
assertEquals(false, p2.checkBounds(c3));
assertEquals(false, p2.checkBounds(c1));
}
@Test
public void testP3() {
assertEquals(false, p3.checkBounds(c1));
assertEquals(true, p3.checkBounds(c3));
assertEquals(false, p3.checkBounds(c2));
}
}
| [
"akoehler@ycp.edu"
] | akoehler@ycp.edu |
65798ce163b83bfdea67f01c5eb43ed10c096f79 | 5501e073f5207b8e78385446b6e00f05749096a1 | /src/main/java/com/k9sv/domain/pojo/ProfitLog.java | 97489a1ff66da5c9e2bda0964e64a61a9277bc99 | [] | no_license | verseboys/chongxin | 5d3aac3f14dd8569901f1d843450ab3a06bdadca | 528568c386c0d9a0332ed6aff2f1bb4dbf9baf68 | refs/heads/master | 2021-01-24T01:28:15.942092 | 2017-11-20T02:57:04 | 2017-11-20T02:57:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,280 | java | package com.k9sv.domain.pojo;
import java.util.Date;
import com.k9sv.util.DateUtil;
/**
* ProfitLog entity. 收益记录
*/
public class ProfitLog implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 7724732606603188852L;
private int id;
private int status;
private int uid;
private String buyId;
private int type;
private int fid;
private float profit;
private Date created;
@SuppressWarnings("unused")
private String createdStr;
private Profile profile;
private Profile friend;
private Buy buy;
// Constructors
/** default constructor */
public ProfitLog() {
}
/** full constructor */
public ProfitLog(int status, int uid, String buyId, int type, int fid,
float profit, Date created) {
this.status = status;
this.uid = uid;
this.buyId = buyId;
this.type = type;
this.fid = fid;
this.profit = profit;
this.created = created;
}
// Property accessors
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public int getStatus() {
return this.status;
}
public void setStatus(int status) {
this.status = status;
}
public int getUid() {
return this.uid;
}
public void setUid(int uid) {
this.uid = uid;
}
public String getBuyId() {
return this.buyId;
}
public void setBuyId(String buyId) {
this.buyId = buyId;
}
public int getType() {
return this.type;
}
public void setType(int type) {
this.type = type;
}
public int getFid() {
return this.fid;
}
public void setFid(int fid) {
this.fid = fid;
}
public float getProfit() {
return this.profit;
}
public void setProfit(float profit) {
this.profit = profit;
}
public Date getCreated() {
return this.created;
}
public void setCreated(Date created) {
this.created = created;
}
public Profile getFriend() {
return friend;
}
public void setFriend(Profile friend) {
this.friend = friend;
}
public Buy getBuy() {
return buy;
}
public void setBuy(Buy buy) {
this.buy = buy;
}
public String getCreatedStr() {
return DateUtil.getFormatDateTime(this.created, "yyyy-MM-dd HH:mm");
}
public Profile getProfile() {
return profile;
}
public void setProfile(Profile profile) {
this.profile = profile;
}
} | [
"machuanpeng1991@163.com"
] | machuanpeng1991@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.